Cleanup process.c.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fce70521
DN
12010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5 (socket_options): Use const char* for name.
6
a11889ab
JB
72010-08-06 Juanma Barranquero <lekktu@gmail.com>
8
9 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
10
11 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
12 Don't declare xmalloc_widget_value and digest_single_submenu.
13
14 * w32font.c (Qlatin): Remove declaration.
15
16 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
17
18 * dired.c (compile_pattern):
19 * syssignal.h (signal_handler_t): Restore declarations.
20
6254cdda
DN
212010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
22
04bab72c
DN
23 Remove extern declarations in .c files, .h files have them.
24 * data.c:
25 * dired.c:
26 * editfns.c:
27 * filelock.c:
28 * fns.c:
29 * font.c:
30 * fontset.c:
31 * frame.c:
32 * fringe.c:
33 * ftfont.c:
34 * gtkutil.c:
35 * indent.c:
36 * keyboard.c:
37 * keymap.c:
38 * lread.c:
39 * menu.c:
40 * print.c:
41 * search.c:
42 * sound.c:
43 * window.c:
44 * xdisp.c:
45 * xfaces.c:
46 * xfns.c:
47 * xfont.c:
48 * xftfont.c:
49 * xmenu.c:
50 * xterm.c: Remove declarations.
51
dff94ed5
DN
52 Cleanup syssignal.h.
53 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
54 (main_thread): Move down to remove #ifdef.
55 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
56 Remove conditional definition following unconditional ones.
57
99f3388e
DN
58 * lisp.h: Remove HAVE_SHM code, unused.
59 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
60 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
61 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
62 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
63 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
64 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
65 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
66 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
67 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
68 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
69 (Qwindow_scroll_functions, Vafter_load_alist)
70 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
71 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
72 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
73 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
74 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
75 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
76 (initial_argv, last_nonmenu_event, load_in_progress)
77 (noninteractive_need_newline, scroll_margin): Add declarations.
78
79 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
80 declarations, menu.h has them.
81 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
82 (Vinput_method_function, Qinput_method_function)
83 (Qevent_symbol_element_mask, last_event_timestamp):
84 * dispextern.h (Voverflow_newline_into_fringe):
85 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
86 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
87 (syms_of_w32font, syms_of_nsfont):
88 * fontset.h (find_font_encoding, Qlatin):
89 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
90 (Vtool_bar_mode, set_frame_menubar):
91 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
92 * xterm.h (Qx_gtk_map_stock):
93 * keymap.h (meta_prefix_char): Add declarations.
94
9f5dd6f2
DN
95 * term.c: Remove dead code.
96
6254cdda
DN
97 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
98 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
99 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
100 which is what was there before BSD_PGRPS was removed.
101
29cf3e20
EZ
1022010-08-05 Eli Zaretskii <eliz@gnu.org>
103
104 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
105
106 * unexcoff.c: Renamed from unexec.c.
107
aaa0a19a
SM
1082010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
109
110 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
111
8d1d9587
JB
1122010-08-03 Johan Bockgård <bojohan@gnu.org>
113
114 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 115 (Bug#6744)
8d1d9587 116
9a747ba6
JD
1172010-08-02 Jan Djärv <jan.h.d@swipnet.se>
118
4d464ae4
JD
119 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
120 to TRUE if depth of screen is < 16.
121
ac01763e
JD
122 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
123 USE_GTK_TOOLTIP.
e0d62a9b
JB
124 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
125 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 126 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
127 USE_GTK_TOOLTIP.
128 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
129
130 * xterm.h (USE_GTK_TOOLTIP): New define.
131 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
132
9a747ba6
JD
133 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
134 to Control-D (Bug#6771).
135
7b0815ba
JB
1362010-08-02 Juanma Barranquero <lekktu@gmail.com>
137
138 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
139 Wording by Drew Adams <drew.adams@oracle.com>.
140
aa1859f5
J
1412010-08-01 Jan Djärv <jan.h.d@swipnet.se>
142
143 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
144 ttip_lbl.
145
146 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
147 calling gtk_widget_queue_draw.
148 (x_free_frame_resources): Call xg_free_frame_widgets.
149
150 * xfns.c (x_gtk_use_system_tooltips): New variable.
151 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
152 new gtkutil tooltip functions to show the tooltip.
153 (Fx_hide_tip): Call xg_hide_tooltip.
154 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
155
156 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
157 (xg_show_tooltip, xg_hide_tooltip): Declare.
158
159 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
160 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
161 New functions.
aa1859f5
J
162 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
163 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
164 Remove code that is commented out.
165
76417ef4
SM
1662010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
167
168 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
169
16041401
CY
1702010-07-31 Chong Yidong <cyd@stupidchicken.com>
171
172 * xselect.c (x_own_selection): Use list4.
173
2c09a58f
DN
1742010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
175
176 * buffer.c (Qwindow): Do not define, already defined in data.c.
177 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
178
59df9fdd 1792010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 180
59df9fdd
JB
181 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
182 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
183 * config.in: Undef HAVE_DIRENT_H.
1c97e857 184 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 185 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 186
1b231651
DN
1872010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
188
189 Rename s/usg5-4.h -> s/usg5-4-common.h.
190 * s/usg5-4.h: Rename file to ...
191 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
192 * s/unixware.h:
193 * s/sol2-6.h:
194 * s/irix6-5.h: Update includes accordingly.
195
bfeabdc3
JD
1962010-07-29 Jan Djärv <jan.h.d@swipnet.se>
197
2ebf1083
J
198 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
199
bfeabdc3 200 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
201 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
202 Remove toolbar_height.
203 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
204 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
205 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
206 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
207
208 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
209
210 * xfns.c (x_set_tool_bar_position): New function.
211 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
212 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 213 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
214
215 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
216 and FRAME_TOOLBAR_LEFT_WIDTH.
217
218 * gtkutil.h (xg_change_toolbar_position): Declare.
219
220 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
221 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
222 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
223 (xg_create_frame_widgets): Create a hobox for placing widgets
224 vertically. Use gtk_box_pack_start.
225 (xg_height_or_width_changed): Renamed from xg_height_changed.
226 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
227 (xg_update_frame_menubar, free_frame_menubar): Change to
228 xg_height_or_width_changed.
229 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
230 size correctly. Remove hardcoded 4, instead use handlebox size -
231 toolbar size.
232 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 233 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
234 (xg_pack_tool_bar): POS is a new parameter.
235 Set orientation of tool bar based on pos.
236 Only make handlebox_widget if NULL.
237 Check if tool bar goes to vbox or hbox depending on pos.
238 (xg_update_tool_bar_sizes): New function.
239 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
240 height, call xg_update_tool_bar_sizes instead.
241 (free_frame_tool_bar): Remove from hbox or vbox depending on
242 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
243 (xg_change_toolbar_position): New function.
244
245 * frame.h (struct frame): Add tool_bar_position.
246 (Qbottom): Declare.
247
248 * frame.c (Qtool_bar_position): New variable.
249 (make_frame): Set tool_bar_position to Qtop.
250 (frame_parms): Add tool-bar-position.
251 (x_report_frame_params): Store tool_bar_position.
252 (x_set_fringe_width): Reset wm size hint after fringe changes.
253
26469a38
DN
2542010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
255
256 Make lisp_time_argument declaration work on all systems.
257 * lisp.h (lisp_time_argument): Move declaration ...
258 * systime.h (lisp_time_argument): ... here
259 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
260
8848b728
JD
2612010-07-29 Jan Djärv <jan.h.d@swipnet.se>
262
263 * vm-limit.c (POINTER): Add typedef for it.
264 (start_of_data): Change return type from POINTER to char *.
265
266 * frame.h (Qtty_color_mode): Move declaration out of ifdef
267 HAVE_WINDOW_SYSTEM.
268
76fd1ee9
DN
2692010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
270
0441987e
DN
271 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
272 Remove reference to __osf__, unused.
273
56a000c7
DN
274 * mem-limits.h: Remove duplicated includes.
275 (NULL): Remove definition, unused.
276 (POINTER): Remove definition.
277 (start_of_data): Use char* in prototype, as the function
278 definition does.
279
e6cba650
DN
280 Remove extern declarations from .c files, and them to .h files.
281 * keyboard.h (Qhelp_echo, waiting_for_input)
282 (input_available_clear_time, ignore_mouse_drag_p)
283 (Vdouble_click_time, real_this_command, Vthis_original_command):
284 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
285 (Voverriding_local_map_menu_flag):
286 * lisp.h (Qinteractive_form, use_file_dialog)
287 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
288 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
289 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
290 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
291 (Qfunction, debug_on_next_call, Qfield)
292 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
293 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
294 (Qfile_directory_p, Qinsert_file_contents)
295 (Qcompletion_ignore_case, Qcompletion_ignore_case)
296 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
297 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
298 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
299 (Qminibuffer_prompt)
300 (Vtemporary_file_directory,char_ins_del_vector, Qface):
301 * xterm.h (gray_bitmap_width, gray_bitmap_height)
302 (gray_bitmap_bits, xic_create_fontsetname):
303 * coding.h (Vtranslation_table_for_input): Add extern declarations.
304
305 * xsmfns.c (Vuser_login_name):
306 * xrdb.c (Vdouble_click_time):
307 * xfaces.c (xic_create_fontsetname):
308 * w32select.c (waiting_for_input):
309 * print.c (minibuffer_auto_raise):
310 * msdos.c (Qhelp_echo):
311 * macros.c (real_this_command):
312 * keymap.c (Voverriding_local_map):
313 * xterm.c (poll_for_input_1, gray_bitmap_width)
314 (gray_bitmap_height, gray_bitmap_bits;
315 * xmenu.c ( Voverriding_local_map)
316 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
317 (use_file_dialog, Xt_app_con):
318 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
319 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
320 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
321 (Qtool_bar_lines, ignore_mouse_drag_p):
322 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
323 (Qrear_nonsticky, nconc2):
324 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
325 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
326 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
327 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
328 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
329 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
330 (gc_in_progress):
331 * doc.c (Voverriding_local_map, Qremap):
332 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
333 (Vcompletion_regexp_list):
334 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
335 (Qcompletion_ignore_case):
336 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
337 (Vhistory_length, Vthis_original_command, real_this_command)
338 (Qface, Qminibuffer_prompt, history_delete_duplicates):
339 * image.c (Qrisky_local_variable):
340 * fontset.c (QCname):
341 * fns.c (minibuffer_auto_raise, QCname):
342 * dispnew.c (char_ins_del_cost):
343 * composite.c (font_fill_lglyph_metrics):
344 * cmds.c (Qface, Vtranslation_table_for_input):
345 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
346 * ccl.c (charset_unicode):
347 * callproc.c (Vtemporary_file_directory):
348 * buffer.c (emacs_strerror): Remove extern declarations.
349
350 * data.c (Qwindow): Make non-static, used from other files too.
351 * frame.c (validate_x_resource_name): Remove shadow definition for i.
352
76fd1ee9
DN
353 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
354 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
355 * s/usg5-4.h (COFF):
356 * s/template.h:
357 * s/msdos.h (COFF, NO_REMAP):
358 * s/ms-w32.h (NO_REMAP):
359 * s/hpux10-20.h (NO_REMAP):
360 * m/sparc.h (SEGMENT_MASK):
361 * m/m68k.h (NO_REMAP):
362 * m/intel386.h (SEGMENT_MASK):
363 * m/arm.h (NO_REMAP):
364 * m/alpha.h (COFF):
365 * m/template.h: Remove references to unused defines.
366
8a52f00a
JD
3672010-07-28 Jan Djärv <jan.h.d@swipnet.se>
368
369 * xsettings.c (Ftool_bar_get_system_style): Also check for
370 Qtext_image_horiz.
371
372 * xdisp.c (Qtext_image_horiz): Define.
373 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 374 to documentation of tool-bar-style.
8a52f00a
JD
375
376 * lisp.h (Qtext_image_horiz): Declare.
377
378 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
379 style text_image_horiz.
380
89dc303e
DN
3812010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
382
60799703
DN
383 * emacs.c (Fkill_emacs): Remove return statement.
384
37254dc1
DN
385 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
386 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
387 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
388 local extern declarations.
389
71c7345a
DN
390 * xmenu.c: Do not included lwlib.h, not needed.
391
6ba577cb
DN
392 * m/iris4d.h (XUINT, XSET): Remove, not needed.
393
fdb183d6
DN
394 * process.c: Move definitions earlier to minimize #ifdefs.
395
396 * xterm.h (x_get_customization_string, x_load_resources)
397 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
398 (x_check_errors, x_property_data_to_lisp, defined_color)
399 (xic_set_xfontset, x_defined_color): Use const.
400
401 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
402 (x_text_icon, x_check_errors, x_connection_closed): Use const.
403
404 * xselect.c (selection_data_to_lisp_data)
405 (x_property_data_to_lisp):
406 * xrdb.c (x_get_string_resource, file_p)
407 (x_get_customization_string, magic_file_p, search_magic_path)
408 (get_system_app, get_user_app, x_load_resources, x_get_resource)
409 (x_get_string_resource): Use const.
410
411 * xfns.c: Include xlwmenu.h when USE_LUCID.
412 (x_defined_color, xic_set_xfontset): Use const.
413 (Fx_hide_tip): Remove local extern declaration.
414
415 * xfaces.c (Qmouse_face): Remove declaration.
416 (face_color_gray_p, tty_defined_color, defined_color)
417 (face_color_gray_p, face_color_supported_p). Add const.
418
419 * xdisp.c (do_mouse_tracking): Remove declaration.
420 (add_to_log): Use const.
421
422 * minibuf.c (Qmouse_face): Remove declaration.
423
424 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
425
426 * keyboard.h (do_mouse_tracking): Add declaration.
427
428 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
429 (QCdata, QCtype, Qcenter): Remove declarations.
430
431 * frame.c (x_get_resource_string, x_get_string_resource)
432 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
433 (x_default_parameter): Use const.
434
435 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
436 (QCheight, QCsize, QCname): Remove declarations.
437
438 * emacs.c (main): Remove local extern declaration.
439
440 * editfns.c (region_limit, syms_of_editfns): Remove local extern
441 declarations.
442
443 * dispnew.c: Remove duplicate #include <unistd.h>.
444 (update_window, update_frame_1, init_display): Remove local extern
445 declarations.
446
447 * dispextern.h (add_to_log): Remove declaration.
448 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
449 (x_frame_get_and_record_arg, x_default_parameter): Add const.
450
451 * dired.c (scmp): Add const.
452 (directory_files_internal): Remove local extern declaration.
453
454 * data.c (Finteractive_form): Use const.
455
456 * composite.c (syms_of_composite): Remove local extern declarations.
457
458 * charset.c (add_to_log): Remove declaration.
459
460 * character.c (strwidth, parse_str_to_multibyte): Add const.
461
462 * character.h (strwidth, parse_str_to_multibyte): Likewise.
463
464 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
465
89dc303e 466 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
467 (Lisp_Subr): Make doc and intspec constant.
468 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
469 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
470 (QCheight, QCsize, QCname, QCwidth, QCforeground)
471 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
472 (display_arg): Add declarations.
89dc303e 473
0ed082fe 4742010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
475
476 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
477
0ed082fe
JB
478 * window.c (Fwindow_height): Doc fix (bug#6518).
479
4802010-07-27 Juanma Barranquero <lekktu@gmail.com>
481
482 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
483
ccaf0336
DN
4842010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
485
977105dc
DN
486 * keyboard.c (Ftop_level, Fexit_recursive_edit)
487 (Fabort_recursive_edit): Remove return statements in NO_RETURN
488 functions.
489
f5ada890
DN
490 * frame.h (Qtty_color_mode): Add declaration.
491
ccaf0336
DN
492 * lisp.h (Ftop_level, Fexit_recursive_edit)
493 (Fabort_recursive_edit): Mark as NO_RETURN.
494
dfe3c90f
KH
4952010-07-26 Kenichi Handa <handa@m17n.org>
496
497 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 498 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 499
7d383292
JB
5002010-07-26 Juanma Barranquero <lekktu@gmail.com>
501
502 * lread.c (unreadpure, mapatoms_1): Make static.
503
da31e629
JB
5042010-07-25 Juanma Barranquero <lekktu@gmail.com>
505
506 * terminfo.c (tparam): Fix prototype of tparm.
507
7bfa6d77
AS
5082010-07-25 Andreas Schwab <schwab@linux-m68k.org>
509
dcc19aac
AS
510 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
511 find start of text segment.
512 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
513 is defined.
514
7bfa6d77
AS
515 * callproc.c (set_initial_environment): Avoid unbalanced braces.
516
63f9a672
KB
5172010-07-25 Ken Brown <kbrown@cornell.edu>
518
519 * vm-limit.c (check_memory_limits): Fix previous change;
520 accidentally reverted an earlier change.
521
24933075
KB
5222010-07-25 Ken Brown <kbrown@cornell.edu>
523
524 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
525 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
526
361358ea
JB
5272010-07-25 Juanma Barranquero <lekktu@gmail.com>
528
529 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
530 * dired.c (opendir, readdir): Fix prototypes.
531 * editfns.c (w32_get_internal_run_time): Fix prototypes.
532 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
533 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
534 (telldir): Remove declaration.
535 * ralloc.c (real_morecore, __morecore): Fix prototypes.
536 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
537 * syssignal.h (strsignal): Fix prototype.
538 * term.c (tparam): Fix prototype.
539 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
540 (term_get_fkeys): Set inside "#ifndef DOS_NT".
541 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
542 and __morecore.
543 * w32gui.h (XParseGeometry): Fix prototype.
544 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
545 * w32term.c (my_set_focus): Declare inside #if 0.
546 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
547 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
548 (drain_message_queue, get_next_msg, post_msg, parse_button)
549 (ClipboardSequence_Proc): Fix prototypes.
550 (wait_for_sync): Remove declaration.
551
630b9592
JB
5522010-07-24 Juanma Barranquero <lekktu@gmail.com>
553
554 * w32fns.c (w32_to_x_color): Remove, unused.
555
6a0d6611
AS
5562010-07-24 Andreas Schwab <schwab@linux-m68k.org>
557
558 * lisp.h: Remove leftover P_.
559
4e8608ff
DN
5602010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
561
562 * ecrt0.c, unexalpha.c: Remove files, unused.
563
c8197983
AS
5642010-07-24 Andreas Schwab <schwab@linux-m68k.org>
565
566 * cmds.c (internal_self_insert): Make static.
567 * lisp.h (internal_self_insert): Remove declaration.
568
97b372d7
JB
5692010-07-23 Juanma Barranquero <lekktu@gmail.com>
570
33ac0414
JB
571 * alloc.c (free_float):
572 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
573 * frame.c (delete_frame_handler):
574 * ralloc.c (reorder_bloc):
575 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
576 Remove unused static functions.
577
94da8397
JB
578 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
579 it is called only from NS code.
580
2e6c8532
JB
581 * w32term.c (my_set_focus): #ifdef away; it is called only from
582 "#ifdef 0" code.
583
97b372d7
JB
584 * w32fns.c (x_edge_detection):
585 * xfaces.c (may_use_scalable_font_p):
586 Remove obsolete static declarations.
587
7c3320d8
JB
5882010-07-20 Juanma Barranquero <lekktu@gmail.com>
589
590 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
591 (emacs_blocked_realloc, uninterrupt_malloc):
592 * fringe.c (w32_reset_fringes):
593 * image.c (convert_mono_to_color_image, lookup_rgb_color)
594 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
595 * sound.c (be2hs, do_play_sound):
596 * vm-limit.c (get_lim_data, ret_lim_data):
597 * w32term.c (x_free_frame_resources):
598 * xfaces.c (x_create_gc, x_free_gc):
599 Convert definitions to standard C.
600
d5273788
SM
6012010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
602
603 * eval.c (Feval, Ffuncall): Use the new names.
604
605 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
606 (DEFUN): Add braces around the union initialisation and use ## to
607 specify the right union alternative and avoid a cast.
608
8d16a259
JB
6092010-07-18 Juanma Barranquero <lekktu@gmail.com>
610
611 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
612
3b8eff32
CY
6132010-07-17 Chong Yidong <cyd@stupidchicken.com>
614
615 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
616
499322ce
J
6172010-07-17 Jan Djärv <jan.h.d@swipnet.se>
618
619 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
620 is related to the menu bar (Bug#6499).
a628ad9d 621 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 622
f6003da5 6232010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
624
625 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
626
627 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
628
629 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
630 i.e. don't put back ButtonRelease (Bug#6608).
631
632 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
633 instead of Window. Call xg_event_is_for_menubar when
634 USE_GTK (Bug#6499).
635
636 * gtkutil.h (xg_event_is_for_menubar): Declare.
637
638 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
639
f6003da5 6402010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
641
642 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
643 when it's the same as the old foreground. (Bug#6609)
644
23243f29
J
6452010-07-16 Jan Djärv <jan.h.d@swipnet.se>
646
647 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
648 widget is non-null (Bug#6645).
649
2b23d2a6
AS
6502010-07-15 Andreas Schwab <schwab@linux-m68k.org>
651
01b564ff
AS
652 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
653 Convert old-style definition.
654
2b23d2a6
AS
655 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
656 timestamp argument.
657
c4affd2c
EZ
6582010-07-15 Eli Zaretskii <eliz@gnu.org>
659
660 * fringe.c (update_window_fringes): Restore mistakenly reverted
661 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
662
cf28cebc
J
6632010-07-14 Jan Djärv <jan.h.d@swipnet.se>
664
665 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
666 (SET_SAVED_KEY_EVENT): Remove (not used).
667 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
668 remove size parameter.
669 (handle_one_xevent): Check popup_activated () for menu for Xt also.
670 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
671 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
672 ButtonRelease.
6b2c4bd9
J
673 (x_set_window_size_1): scroll_bar_actual_width is always
674 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
675
676 * xdisp.c (pending_menu_activation): Remove extern declaration.
677 (prepare_menu_bars): Remove setting of pending_menu_activation.
678
679 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
680 (x_activate_menubar): Set popup_activated_flag for Xt also.
681 Remove setting of pending_menu_activation.
cf28cebc
J
682 (set_frame_menubar): Remove check of pending_menu_activation.
683 Declare menubar_size before code. Correct spelling in comment.
684
f6c1c771
KH
6852010-07-14 Kenichi Handa <handa@m17n.org>
686
687 * font.c (font_open_entity): Cancel previous change.
688 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
689
20477505
EZ
6902010-07-13 Eli Zaretskii <eliz@gnu.org>
691
77defa9a
EZ
692 Remove subprocesses #ifdefs.
693 * process.c <inhibit_sentinels>: Move to the common part.
694 (Fwaiting_for_user_input_p): Move to the common part; return nil
695 if async subprocesses aren't supported.
696 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
697 MS-DOS. Remove "#ifdef subprocesses".
698 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
699 (gettimeofday): Remove "#ifdef subprocesses".
700 (wait_without_blocking): Remove function.
701 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
702 Remove "#ifdef subprocesses".
703 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
704 compiled on MS-DOS.
705 * callproc.c (Fcall_process) [!MSDOS]: Don't call
706 wait_for_termination on MS-DOS.
707 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
708 initialization of inhibit_sentinels.
709 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
710 subprocesses" conditional.
711 * callproc.c (Fcall_process) [!subprocesses]: Don't call
712 wait_for_termination, since `buffer' cannot be an integer when
713 async subprocesses are not supported
714 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
715 for ifdefing away the call to Fprocess_status.
716
20477505
EZ
717 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
718 away the entire body of the function.
719
b3ffc17c
DN
7202010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
721
01faa934
DN
722 Remove subprocesses #ifdefs from term.c.
723 * process.c (add_keyboard_wait_descriptor)
724 (delete_keyboard_wait_descriptor): Move to common section, do
725 nothing when subprocesses is not defined.
a628ad9d
JB
726 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
727 Remove subprocesses #ifdefs.
01faa934 728
b3ffc17c
DN
729 Convert maybe_fatal to standard C.
730 * lisp.h (verror): Declare.
731 * eval.c (verror): New function containing the code from ...
732 (error): ... this. Call verror.
733 * term.c (vfatal): New function containing the code from ...
734 (fatal): ... this. Call vfatal.
735 (maybe_fatal): Convert to standard C, use variable number of
736 arguments. Declare as non-return.
737 (init_tty): Fix maybe_fatal call.
738
0521f580
DN
7392010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
740
741 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
742 (_scroll_bar_note_movement): Convert definitions to standard C.
743 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
744 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
745
ebd15611
DN
7462010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
747
748 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
749 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
750 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
751 (xaw_jump_callback, xaw_scroll_callback)
752 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
753 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
754 definitions to standard C.
755 * xmenu.c (menubar_id_to_frame, popup_get_selection)
756 (popup_activate_callback, popup_deactivate_callback)
757 (menu_highlight_callback, menubar_selection_callback)
758 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
759 (free_frame_menubar, popup_selection_callback, as)
760 (create_and_show_popup_menu, dialog_selection_callback)
761 (create_and_show_dialog):
762 * xfns.c (hack_wm_protocols, x_window):
763 * xfaces.c (x_update_menu_appearance):
764 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
765 (char_to_pixel_size, round_size_to_char, get_wm_shell)
766 (set_frame_size, update_wm_hints, setup_frame_gcs)
767 (update_various_frame_slots, update_from_various_frame_slots)
768 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
769 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
770 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
771
de06a2dd
AS
7722010-07-12 Andreas Schwab <schwab@linux-m68k.org>
773
a628ad9d 774 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 775
fc549af9
EZ
7762010-07-12 Eli Zaretskii <eliz@gnu.org>
777
778 * process.c (setup_process_coding_systems): Move to the part
779 shared by non-subprocesses systems, and make its body empty when
780 subprocesses is not defined.
781 (close_process_descs): Move to the part shared by non-subprocesses
782 systems.
1408902e
EZ
783 (wait_reading_process_output) [!subprocesses]: Convert arg list to
784 ANSI C.
fc549af9 785
d5a3eaaf
AS
7862010-07-12 Andreas Schwab <schwab@linux-m68k.org>
787
788 * editfns.c (transpose_markers): Convert old-style definition.
789 * emacs.c (abort, shut_down_emacs, fixup_locale)
790 (synchronize_system_time_locale)
791 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
792 * floatfns.c (extract_float, matherr, init_floatfns)
793 (syms_of_floatfns): Likewise.
794 * fns.c (make_hash_table): Likewise.
795 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
796 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
797 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
798 (ftfont_variation_glyphs): Likewise.
799 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
800 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
801 * lread.c (read_filtered_event): Likewise.
802 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
803 * process.c (wait_reading_process_output): Likewise.
804 * scroll.c (do_line_insertion_deletion_costs): Likewise.
805 * search.c (search_buffer, boyer_moore): Likewise.
806 * syntax.c (scan_sexps_forward): Likewise.
807 * xdisp.c (try_scrolling): Likewise.
808 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
809 (face_at_string_position): Likewise.
810 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
811 * xselect.c (x_get_window_property, receive_incremental_selection)
812 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
813 Likewise.
814 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
815
6f704c76
DN
8162010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
817
ded80a25
DN
818 * callproc.c (child_setup): Remove subprocesses conditional.
819 Remove code dealing with SET_EMACS_PRIORITY, unused.
820
49d937f4 821 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
822 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
823
824 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
825 (__do_global_dtors, __main): Use void in definition.
826 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
827 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
828 the only users from ...
829 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
830 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
831 (HAVE_VOLATILE): Remove, unused.
832
6f704c76
DN
833 Convert more function definitions to standard C.
834 * xdisp.c (window_box_edges, handle_single_display_spec)
835 (display_string): Convert definition to standard C.
836 * scroll.c (do_direct_scrolling, scrolling_1):
837 * dispnew.c (allocate_matrices_for_frame_redisplay)
838 (mirrored_line_dance):
839 * coding.c (code_convert_string):
840 * charset.c (map_charset_chars):
841 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
842 (Fregister_ccl_program, Fregister_code_conversion_map):
843 * keyboard.c (kbd_buffer_nr_stored): Likewise.
844 (head_table): Make static and const.
845
e6cfa7c3
AS
8462010-07-12 Andreas Schwab <schwab@linux-m68k.org>
847
848 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
849 (PROFILING_LDFLAGS): Set from substitution.
850 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
851 CFLAGS last.
852
892dd565
KH
8532010-07-12 Kenichi Handa <handa@m17n.org>
854
6f2cdcd1
KH
855 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
856 (shortlisp): Likewise.
857
892dd565
KH
858 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
859
860 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
861 of FONT_ENTITY_INDEX.
862 (Ffont_get): If KEY is :otf and the font-object doesn't have the
863 property, get the property value dynamically.
864 (Ffont_put): Accept font-entity and font-object too.
865 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
866 return value changed.
867 (syms_of_font): Adjusted for the above change.
868
ae96d47a
AS
8692010-07-11 Andreas Schwab <schwab@linux-m68k.org>
870
c8fc18ee
AS
871 * blockinput.h: Remove obsolete comment.
872
89887d67
AS
873 * lisp.h: Include <stddef.h>.
874 (OFFSETOF): Don't define.
875 (VECSIZE): Use offsetof instead of OFFSETOF.
876 (PSEUDOVECSIZE): Likewise.
877 * process.c (conv_sockaddr_to_lisp): Likewise.
878 * alloc.c: Don't include <stddef.h>.
879 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
880
ae96d47a
AS
881 * process.c: Remove obsolete comment.
882
635c0aa1
CY
8832010-07-11 Chong Yidong <cyd@stupidchicken.com>
884
885 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
886
a64df650
AS
8872010-07-11 Andreas Schwab <schwab@linux-m68k.org>
888
8966b757
AS
889 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
890 index, rindex.
891 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
892 * editfns.c (Fuser_full_name, Fformat): Likewise.
893 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
894 * fileio.c (Ffile_symlink_p): Likewise.
895 * filelock.c (current_lock_owner): Likewise.
896 * font.c (font_parse_name, font_parse_family_registry): Likewise.
897 * fontset.c (fontset_pattern_regexp): Likewise.
898 * lread.c (read1): Likewise.
899 * sysdep.c (init_system_name): Likewise.
900 * xfns.c (select_visual): Likewise.
901 * s/hpux10-20.h (index, rindex): Don't define.
902 * s/ms-w32.h (index): Likewise.
903 * s/usg5-4.h: Likewise.
904
cf237e27
AS
905 * callproc.c (relocate_fd): Use F_DUPFD if defined.
906
a8fe7202
AS
907 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
908 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
909 (egetenv): Likewise.
910 * doprnt.c (doprnt): Likewise.
911 * editfns.c (set_time_zone_rule, format2): Likewise.
912 * emacs.c (decode_env_path): Likewise.
913 * eval.c (signal_error, error): Likewise.
914 * insdel.c (replace_range_2): Likewise.
915 * keyboard.c (cmd_error_internal): Likewise.
916 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
917 * print.c (write_string, write_string_1, print_error_message):
918 Likewise.
919 * vm-limit.c (warn_function, memory_warnings): Likewise.
920 * xdisp.c (message1, message1_nolog, message_with_string)
921 (vmessage, message, message_nolog): Likewise.
922 * emacs.c: Remove duplicate declaration.
923 * keyboard.h: Likewise.
924 * lisp.h: Update prototypes.
925
bb8e180f
AS
926 * eval.c: Fix indentation problem.
927
83380e65
AS
928 * keyboard.c: Include "process.h"
929
a64df650
AS
930 * eval.c: Remove obsolete noinline declaration.
931 * fns.c: Likewise.
932
6a8033e1
KR
9332010-07-11 Ken Raeburn <raeburn@raeburn.org>
934
935 * doprnt.c (doprnt): Take a va_list argument instead of count and
936 pointer.
937 * eval.c (error): Change to a standard-C variadic function.
938 * xdisp.c (vmessage): Renamed from message, made static, and
939 changed to take a va_list argument.
940 (message): New variadic wrapper.
941 (message_nolog): Now a variadic function, calling vmessage.
942 * lisp.h: Include stdarg.h for va_list.
943 (doprnt, error, message, message_nolog): Decls updated.
944
462aa963
EZ
9452010-07-11 Eli Zaretskii <eliz@gnu.org>
946
947 * process.c (syms_of_process) <delete-exited-processes>: Define
948 even if !subprocesses.
949 (delete_exited_processes): Ditto.
950
951 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
952 (delete_exited_processes): Don't define.
953
48104462
CY
9542010-07-10 Chong Yidong <cyd@stupidchicken.com>
955
956 * frame.c (make_frame): Initialize menu_bar_lines and
957 tool_bar_lines members.
958 (make_initial_frame, make_terminal_frame): Initialize
959 menu_bar_lines using value of menu-bar-mode.
960
961 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
962
f388c88a
EZ
9632010-07-10 Eli Zaretskii <eliz@gnu.org>
964
965 * process.c: Reshuffle #include's. Condition some of the global
966 and static variables on `subprocesses'.
967 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
968 Leave only one implementation.
969 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
970 (kill_buffer_processes, Flist_system_processes)
971 (Fprocess_attributes, init_process, syms_of_process): Unify the
972 implementations for with subprocesses and without them.
973
723f5a07
J
9742010-07-09 Jan Djärv <jan.h.d@swipnet.se>
975
976 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
977 correct size for Motif.
978 (free_frame_menubar): Call x_set_window_size to update frame size.
979
980 * xfns.c (x_window): Set borderWidth to 0 for pane and
981 EmacsFrame. Frame size calculation is wrong otherwise.
982
2536a4b7
MA
9832010-07-09 Michael Albinus <michael.albinus@gmx.de>
984
985 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
986 allows to suppress errors when polling in Emacs' main loop.
987 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
988 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
989 (Fdbus_method_error_internal, Fdbus_send_signal)
990 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
991 (Fdbus_register_method): Use it. (Bug#6579)
992
5842a27b
DN
9932010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
994
995 * alloc.c: Convert DEFUNs to standard C.
996 * buffer.c:
997 * bytecode.c:
998 * callint.c:
999 * callproc.c:
1000 * casefiddle.c:
1001 * casetab.c:
1002 * category.c:
1003 * character.c:
1004 * charset.c:
1005 * chartab.c:
1006 * cmds.c:
1007 * coding.c:
1008 * composite.c:
1009 * data.c:
1010 * dbusbind.c:
1011 * dired.c:
1012 * dispnew.c:
1013 * doc.c:
1014 * dosfns.c:
1015 * editfns.c:
1016 * emacs.c:
1017 * eval.c:
1018 * fileio.c:
1019 * filelock.c:
1020 * floatfns.c:
1021 * fns.c:
1022 * font.c:
1023 * fontset.c:
1024 * frame.c:
1025 * fringe.c:
1026 * image.c:
1027 * indent.c:
1028 * insdel.c:
1029 * keyboard.c:
1030 * keymap.c:
1031 * lread.c:
1032 * macros.c:
1033 * marker.c:
1034 * menu.c:
1035 * minibuf.c:
1036 * msdos.c:
1037 * nsfns.m:
1038 * nsmenu.m:
1039 * nsselect.m:
1040 * print.c:
1041 * process.c:
1042 * search.c:
1043 * sound.c:
1044 * syntax.c:
1045 * term.c:
1046 * terminal.c:
1047 * textprop.c:
1048 * undo.c:
1049 * w16select.c:
1050 * w32console.c:
1051 * w32fns.c:
1052 * w32font.c:
1053 * w32menu.c:
1054 * w32proc.c:
1055 * w32select.c:
1056 * window.c:
1057 * xdisp.c:
1058 * xfaces.c:
1059 * xfns.c:
1060 * xmenu.c:
1061 * xselect.c:
1062 * xsettings.c:
1063 * xsmfns.c: Likewise.
1064
d568829b
EZ
10652010-07-08 Eli Zaretskii <eliz@gnu.org>
1066
1067 * process.c (kbd_is_on_hold, hold_keyboard_input)
1068 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1069
52214050
J
10702010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1071
1072 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1073 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1074 unless USE_LUCID.
1075
313d9eb2
DN
10762010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1077
a628ad9d
JB
1078 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1079 declaration.
d8825aa3 1080
295d0d8f
DN
1081 Clean up include guards.
1082 * tparam.c: Remove include guards for config.h, string.h and code
1083 that assumes #ifndef emacs.
1084 * termcap.c:
1085 * unexalpha.c:
1086 * sysdep.c:
1087 * filemode.c:
1088 * filelock.c:
1089 * bidi.c: Likewise.
1090
49d9e6b0
DN
1091 Remove prefix-args.c
1092 * prefix-args.c: Remove file.
1093 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1094 * Makefile.in (temacs${EXEEXT}): Remove references to
1095 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1096 (mostlyclean): Remove reference to prefix-args.
1097 (prefix-args): Remove.
1098
313d9eb2
DN
1099 Simplify cstart_of_data, start_of_code and related code.
1100 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1101 (start_of_data): Merge into start_of_data function.
1102 * sysdep.c (start_of_text): Remove. Move simplified versions of
1103 it in the only users: unexaix.c and unexec.c.
1104 (read_input_waiting): Remove local declaration of quit_char.
1105 (start, etext): Remove declarations.
1106 (start_of_data): Merge with the version in mem-limits.h and move
1107 to vm-limits.c.
1108 * vm-limit.c (start_of_data): Merged and simplified version of the
1109 code formerly in mem-limits.h and sysdep.c.
1110 * unexec.c (start): New declaration, moved from sysdep.c.
1111 (start_of_text): Simplified version of the code formerly in sysdep.c.
1112 * unexaix.c (start_of_text): Simplified version of the code
1113 formerly in sysdep.c.
1114 * m/alpha.h (HAVE_TEXT_START): Remove.
1115 (TEXT_START): Move ...
1116 * unexalpha.c (TEXT_START): ... here.
1117 * s/hpux10-20.h (TEXT_START): Remove.
1118 * s/darwin.h (TEXT_START):
1119 * m/mips.h (TEXT_START):
1120 * m/macppc.h (HAVE_TEXT_START):
1121 * m/m68k.h (TEXT_START):
1122 * m/iris4d.h (TEXT_START):
1123 * m/intel386.h (TEXT_START):
1124 * m/ibmrs6000.h (TEXT_START):
1125 * m/ia64.h (HAVE_TEXT_START):
1126 * s/msdos.h (TEXT_START): Likewise.
1127
72af86bd
AS
11282010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1129
1130 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1131 (overrun_check_free, xstrdup, allocate_string)
1132 (allocate_string_data, compact_small_strings, Fmake_string)
1133 (make_unibyte_string, make_multibyte_string)
1134 (make_string_from_bytes, make_specified_string, make_float)
1135 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1136 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1137 memcpy, memmove, memset, memcmp.
1138 * atimer.c (start_atimer, set_alarm): Likewise.
1139 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1140 (mmap_realloc, init_buffer_once): Likewise.
1141 * callint.c (Fcall_interactively): Likewise.
1142 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1143 (getenv_internal_1): Likewise.
1144 * casefiddle.c (casify_object): Likewise.
1145 * ccl.c (ccl_driver): Likewise.
1146 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1147 * charset.c (load_charset_map_from_file)
1148 (load_charset_map_from_file, load_charset_map_from_vector)
1149 (Fdefine_charset_internal): Likewise.
1150 * cm.c (Wcm_clear): Likewise.
1151 * coding.c (decode_eol, decode_coding_object)
1152 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1153 * data.c (Faset): Likewise.
1154 * dired.c (directory_files_internal, file_name_completion_stat):
1155 Likewise.
1156 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1157 (clear_glyph_row, copy_row_except_pointers)
1158 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1159 (save_current_matrix, restore_current_matrix)
1160 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1161 (mirror_line_dance, scrolling_window): Likewise.
1162 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1163 Likewise.
1164 * doprnt.c (doprnt): Likewise.
1165 * editfns.c (Fuser_full_name, make_buffer_string_both)
1166 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1167 * emacs.c (sort_args): Likewise.
1168 * eval.c (Fapply, Ffuncall): Likewise.
1169 * fileio.c (Ffile_name_directory, make_temp_name)
1170 (Fexpand_file_name, search_embedded_absfilename)
1171 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1172 (auto_save_error): Likewise.
1173 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1174 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1175 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1176 (Fmake_hash_table): Likewise.
1177 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1178 * ftfont.c (ftfont_text_extents): Likewise.
1179 * getloadavg.c (getloadavg): Likewise.
1180 * image.c (define_image_type, make_image, make_image_cache)
1181 (x_create_x_image_and_pixmap, xbm_image_p)
1182 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1183 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1184 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1185 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1186 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1187 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1188 Likewise.
1189 * indent.c (scan_for_column, compute_motion): Likewise.
1190 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1191 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1192 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1193 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1194 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1195 (store_user_signal_events, menu_bar_items, tool_bar_items)
1196 (process_tool_bar_item, append_tool_bar_item)
1197 (read_char_minibuf_menu_prompt, read_key_sequence)
1198 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1199 Likewise.
1200 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1201 Likewise.
1202 * lisp.h (STRING_COPYIN): Likewise.
1203 * lread.c (Fload, read1, oblookup): Likewise.
1204 * msdos.c (Frecent_doskeys): Likewise.
1205 * nsfns.m (Fx_create_frame): Likewise.
1206 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1207 Likewise.
1208 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1209 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1210 Likewise.
1211 * nsmenu.m (ns_update_menubar): Likewise.
1212 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1213 * print.c (print_unwind, printchar, strout, print_string)
1214 (print_error_message): Likewise.
1215 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1216 (Fmake_network_process, Fnetwork_interface_list)
1217 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1218 (init_process): Likewise.
1219 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1220 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1221 Likewise.
1222 * scroll.c (do_scrolling, do_direct_scrolling)
1223 (scrolling_max_lines_saved): Likewise.
1224 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1225 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1226 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1227 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1228 (emacs_set_tty): Likewise.
1229 * term.c (encode_terminal_code, calculate_costs)
1230 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1231 Likewise.
1232 * termcap.c (tgetst1, gobble_line): Likewise.
1233 * termhooks.h (EVENT_INIT): Likewise.
1234 * tparam.c (tparam1): Likewise.
1235 * unexalpha.c (unexec): Likewise.
1236 * unexec.c (write_segment): Likewise.
1237 * unexmacosx.c (unexec_write_zero): Likewise.
1238 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1239 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1240 * w32font.c (w32font_list_family, w32font_text_extents)
1241 (w32font_list_internal, w32font_match_internal)
1242 (w32font_open_internal, compute_metrics, Fx_select_font):
1243 Likewise.
1244 * w32menu.c (set_frame_menubar, add_menu_item)
1245 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1246 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1247 * w32uniscribe.c (uniscribe_list_family): Likewise.
1248 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1249 * window.c (make_window, replace_window, set_window_buffer)
1250 (Fsplit_window): Likewise.
1251 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1252 (add_to_log, message3, x_consider_frame_title)
1253 (append_space_for_newline, extend_face_to_end_of_line)
1254 (decode_mode_spec_coding, init_glyph_string): Likewise.
1255 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1256 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1257 (face_attr_equal_p, make_realized_face, make_face_cache)
1258 (free_realized_faces, lookup_named_face, smaller_face)
1259 (face_with_height, lookup_derived_face)
1260 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1261 (Finternal_set_font_selection_order, realize_default_face)
1262 (compute_char_face, face_at_buffer_position)
1263 (face_for_overlay_string, face_at_string_position, merge_faces):
1264 Likewise.
1265 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1266 (Fx_window_property, x_create_tip_frame)
1267 (Fx_backspace_delete_keys_p): Likewise.
1268 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1269 (xfont_text_extents): Likewise.
1270 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1271 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1272 * xselect.c (x_queue_event, x_get_window_property)
1273 (receive_incremental_selection): Likewise.
1274 * xsmfns.c (x_session_check_input): Likewise.
1275 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1276 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1277 Likewise.
1278 * character.h (BCOPY_SHORT): Removed.
1279 * config.in: Regenerate.
1280 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1281 * emacs.c (main) [PROFILING]: Don't declare
1282 dump_opcode_frequencies.
1283 * lisp.h (safe_bcopy): Remove declaration.
1284 (memset) [!HAVE_MEMSET]: Declare.
1285 (memcpy) [!HAVE_MEMCPY]: Likewise.
1286 (memmove) [!HAVE_MEMMOVE]: Likewise.
1287 (memcmp) [!HAVE_MEMCMP]: Likewise.
1288 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1289 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1290 Don't define.
1291 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1292 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1293 (BCOPY_DOWNWARD_SAFE): Don't define.
1294 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1295 (memcpy) [!HAVE_MEMCPY]: Define.
1296 (memmove) [!HAVE_MEMMOVE]: Define.
1297 (memcmp) [!HAVE_MEMCMP]: Define.
1298
cb768704
J
12992010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1300
1301 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1302 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1303 New functions.
cb768704
J
1304 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1305 select on empty input mask.
1306 (init_process): Initialize kbd_is_on_hold to 0.
1307
1308 * process.h (hold_keyboard_input, unhold_keyboard_input)
1309 (kbd_on_hold_p): Declare.
1310
1311 * keyboard.c (input_available_signal): Declare.
1312 (kbd_buffer_nr_stored): New function.
1313 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1314 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1315 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1316 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1317 (tty_read_avail_input): If input is on hold, return.
1318 Don't read more that free slots in kbd_buffer (Bug#6571).
1319
3a8ce822
EZ
13202010-07-07 Eli Zaretskii <eliz@gnu.org>
1321
1322 * msdos.h:
1323 * msdos.c:
1324 * dosfns.c:
1325 * w16select.c: Convert function definitions to ANSI C.
1326
a628ad9d
JB
1327 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1328 Remove unused prototypes.
3a8ce822 1329
cf84bb53
JB
13302010-07-07 Juanma Barranquero <lekktu@gmail.com>
1331
1332 * coding.c, sysdep.c: Convert some more functions to standard C.
1333
1a4990fb
JB
13342010-07-07 Juanma Barranquero <lekktu@gmail.com>
1335
1336 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1337 (encode_coding_object): Use SPECPDL_INDEX.
1338 (syms_of_coding): Use DOS_NT.
1339
c0f2f16b
DN
13402010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1341
48fb6855
DN
1342 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1343
c0f2f16b
DN
1344 Make the function member of Lisp_Subr use standard C prototypes.
1345 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1346 (DECL_ALIGN): Add a cast for the function.
1347 * eval.c (Feval, Ffuncall): Use the proper type for each type
1348 function call.
1349
67aecef9
CY
13502010-07-06 Chong Yidong <cyd@stupidchicken.com>
1351
1352 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1353 fringe face id, so face-remapping-alist works (Bug#6091).
1354
b56ceb92
JB
13552010-07-06 Juanma Barranquero <lekktu@gmail.com>
1356
1357 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1358 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1359 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1360
7af07b96
AS
13612010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1362
1363 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1364 * lisp.h: Declare x_get_keysym_name.
1365 * keyboard.c (modify_event_symbol): Don't declare
1366 x_get_keysym_name here.
1367
69e24e34
DN
13682010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1369
1370 * ecrt0.c: Revert conversion to standard C.
1371
d3da34e0 13722010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1373
1374 * vm-limit.c (memory_warnings):
1375 * keyboard.c (modify_event_symbol):
1376 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1377 (round2, emacs_rint):
1378 * process.c (send_process, old_sigpipe): Convert function
1379 definitions and declarations to standard C.
1380
13812010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1382
1383 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1384 * xdisp.c: Convert function definitions to standard C.
1385
1386 * cm.c (cmputc): Arg C is now int, not char.
1387 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1388
00be444c
J
13892010-07-05 James Cloos <cloos@jhcloos.com>
1390
1391 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1392
1393 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1394 _NET_WM_ICON_NAME atoms.
1395
1396 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1397 and _NET_WM_ICON_NAME properties, too, matching what is
1398 done in the Gtk+ case.
1399
e4c8d29a
J
14002010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1401
ff919460
J
1402 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1403
e4c8d29a
J
1404 * xsmfns.c (SSDATA): New macro.
1405 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1406 passed to strlen/strcpy/strcat.
1407 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1408 7:th arg to XChangeProperty to (unsigned char *)
1409
1410 * xsettings.c (something_changedCB, parse_settings)
1411 (apply_xft_settings): Reformat prototype.
1412 (something_changedCB, init_gconf): Remove unused variable i.
1413 (read_settings): Remove unused variable long_len.
1414
1415 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1416 (xg_get_image_for_pixmap, create_dialog)
1417 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1418 (menuitem_highlight_callback, make_menu_item)
1419 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1420 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1421 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1422 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1423 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1424 (xg_tool_bar_item_expose_callback): Reformat prototype.
1425 (xg_update_menubar): GList *group => GSList *group.
1426 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1427 before use.
1428 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1429 to GTK_IMAGE (wimage).
1430
dd4c5104
DN
14312010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1432
898b4c5c
DN
1433 * atimer.c: Use "" instead of <> for local includes for
1434 consistency with the rest of the code.
1435
dd4c5104
DN
1436 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1437 * xrdb.c (get_system_name):
1438 * window.c (shrink_windows):
1439 * syntax.c (forw_comment):
1440 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1441 (ins_del_costs):
1442 * mem-limits.h (start_of_data):
1443 * lread.c (readevalloop):
1444 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1445 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1446 * frame.c (x_get_focus_frame):
1447 * floatfns.c (fmod_float):
1448 * fileio.c (choose_write_coding_system):
1449 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1450 (malloc_initialize_hook, sort_args, synchronize_locale):
1451 * doprnt.c (doprnt):
1452 * dired.c (compile_pattern):
1453 * data.c (fmod_float):
1454 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1455 (map_char_table_for_charset):
1456 * charset.c (define_charset_internal):
1457 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1458 to standard C.
1459
9a39b306 14602010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1461 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1462
1463 * lread.c (read1): Fix up last change to not mess up `c'.
1464
e6cb2cbb
JB
14652010-07-04 Juanma Barranquero <lekktu@gmail.com>
1466
1467 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1468
438105ed
JB
14692010-07-04 Juanma Barranquero <lekktu@gmail.com>
1470
1471 Fix prototypes.
1472
e5447b22 1473 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1474 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1475 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1476 arg, as required by internal_condition_case_1.
dcc7404b 1477 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1478 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1479 (analyse_first): Fix "const const".
e5447b22 1480 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1481 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1482 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1483
971de7fb
DN
14842010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1485
1486 * alloc.c: Convert function definitions to standard C.
1487 * atimer.c:
1488 * bidi.c:
1489 * bytecode.c:
1490 * callint.c:
1491 * callproc.c:
1492 * casefiddle.c:
1493 * casetab.c:
1494 * category.c:
1495 * ccl.c:
1496 * character.c:
1497 * charset.c:
1498 * chartab.c:
1499 * cmds.c:
1500 * coding.c:
1501 * composite.c:
1502 * data.c:
1503 * dbusbind.c:
1504 * dired.c:
1505 * dispnew.c:
1506 * doc.c:
1507 * doprnt.c:
1508 * ecrt0.c:
1509 * editfns.c:
1510 * fileio.c:
1511 * filelock.c:
1512 * filemode.c:
1513 * fns.c:
1514 * font.c:
1515 * fontset.c:
1516 * frame.c:
1517 * fringe.c:
1518 * ftfont.c:
1519 * ftxfont.c:
1520 * gtkutil.c:
1521 * indent.c:
1522 * insdel.c:
1523 * intervals.c:
1524 * keymap.c:
1525 * lread.c:
1526 * macros.c:
1527 * marker.c:
1528 * md5.c:
1529 * menu.c:
1530 * minibuf.c:
1531 * prefix-args.c:
1532 * print.c:
1533 * ralloc.c:
1534 * regex.c:
1535 * region-cache.c:
1536 * scroll.c:
1537 * search.c:
1538 * sound.c:
1539 * strftime.c:
1540 * syntax.c:
1541 * sysdep.c:
1542 * termcap.c:
1543 * terminal.c:
1544 * terminfo.c:
1545 * textprop.c:
1546 * tparam.c:
1547 * undo.c:
1548 * unexelf.c:
1549 * window.c:
1550 * xfaces.c:
1551 * xfns.c:
1552 * xfont.c:
1553 * xftfont.c:
1554 * xgselect.c:
1555 * xmenu.c:
1556 * xrdb.c:
1557 * xselect.c:
1558 * xsettings.c:
1559 * xsmfns.c:
1560 * xterm.c: Likewise.
1561
ae492bec
EZ
15622010-07-03 Eli Zaretskii <eliz@gnu.org>
1563
76ea4cc9
EZ
1564 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1565 frames other than the initial one. Fix reversal of colors when
1566 `reverse' is specified in the frame parameters. Call
1567 update_face_from_frame_parameter instead of
1568 internal-set-lisp-face-attribute. Initialize screen colors from
1569 initial_screen_colors[] when f->default_face_done_p is zero,
1570 instead of depending on being called with default-frame-alist as
1571 the alist argument.
1572
1573 * xfaces.c (update_face_from_frame_parameter): Move out of
1574 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1575 with HAVE_WINDOW_SYSTEM.
1576
1e6255ae
EZ
1577 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1578 to menu-bar-mode, if not set in the frame parameters or in
1579 default-frame-alist.
1580
ae492bec
EZ
1581 * w32console.c (sys_tputs): Adjust argument list to prototype in
1582 term.c.
1583
3a35a84c
JB
15842010-07-03 Juanma Barranquero <lekktu@gmail.com>
1585
1586 * lisp.h (memory_warnings): Fix prototype.
1587
1588 * cm.h (evalcost): Fix prototype.
1589
1590 * cm.c (evalcost): Fix arg type.
1591
c532d349
DN
15922010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1593
1594 * term.c (term_clear_mouse_face, Fidentity):
1595 * syssignal.h (signal_handler_t):
1596 * lisp.h (memory_warnings):
1597 * coding.h (preferred_coding_system):
1598 * cm.h (evalcost):
1599 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1600
c0b36d46
EZ
16012010-07-02 Eli Zaretskii <eliz@gnu.org>
1602
1603 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1604 from prototypes.
1605
1606 * msdos.h (load_pixmap): Don't define away.
1607
383e0970
J
16082010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1609
f57e2426
J
1610 * lisp.h:
1611 * atimer.h: Remove define for P_.
1612
1613 * alloc.c: Remove __P and P_ from .c and .m files.
1614 * atimer.c:
1615 * buffer.c:
1616 * callint.c:
1617 * category.c:
1618 * charset.c:
1619 * chartab.c:
1620 * cm.c:
1621 * coding.c:
1622 * composite.c:
1623 * data.c:
1624 * dired.c:
1625 * dispnew.c:
1626 * doc.c:
1627 * editfns.c:
1628 * emacs.c:
1629 * eval.c:
1630 * fileio.c:
1631 * filelock.c:
1632 * fns.c:
1633 * font.c:
1634 * fontset.c:
1635 * frame.c:
1636 * ftfont.c:
1637 * ftxfont.c:
1638 * gmalloc.c:
1639 * gtkutil.c:
1640 * image.c:
1641 * indent.c:
1642 * intervals.c:
1643 * keyboard.c:
1644 * keymap.c:
1645 * lread.c:
1646 * marker.c:
1647 * menu.c:
1648 * minibuf.c:
1649 * print.c:
1650 * process.c:
1651 * scroll.c:
1652 * search.c:
1653 * sound.c:
1654 * strftime.c:
1655 * syntax.c:
1656 * sysdep.c:
1657 * term.c:
1658 * terminal.c:
1659 * textprop.c:
1660 * unexalpha.c:
1661 * w32console.c:
1662 * w32fns.c:
1663 * w32font.c:
1664 * w32menu.c:
1665 * w32term.c:
1666 * w32uniscribe.c:
1667 * window.c:
1668 * xdisp.c:
1669 * xfaces.c:
1670 * xfns.c:
1671 * xfont.c:
1672 * xftfont.c:
1673 * xmenu.c:
1674 * xselect.c:
1675 * xterm.c: Likewise.
1676
383e0970 1677 Remove P_ and __P macros.
f57e2426
J
1678 * atimer.h: Remove P_ and __P macros.
1679 * buffer.h:
383e0970
J
1680 * category.h:
1681 * ccl.h:
1682 * character.h:
1683 * charset.h:
1684 * cm.h:
1685 * coding.h:
1686 * composite.h:
1687 * dispextern.h:
1688 * disptab.h:
9e892c8d 1689 * dosfns.h:
383e0970
J
1690 * font.h:
1691 * fontset.h:
1692 * frame.h:
1693 * gtkutil.h:
1694 * indent.h:
1695 * intervals.h:
1696 * keyboard.h:
1697 * keymap.h:
1698 * lisp.h:
1699 * macros.h:
1700 * md5.h:
1701 * menu.h:
1702 * msdos.h:
1703 * nsterm.h:
1704 * puresize.h:
1705 * region-cache.h:
1706 * syntax.h:
1707 * syssignal.h:
1708 * systime.h:
1709 * termhooks.h:
9e892c8d 1710 * w32font.h:
383e0970
J
1711 * w32term.h:
1712 * widget.h:
1713 * window.h:
1714 * xgselect.h:
1715 * xsettings.h:
1716 * xterm.h: Likewise.
1717
98601119
DN
17182010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1719
d9170db5
DN
1720 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1721
98601119
DN
1722 Cleanup old code.
1723 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1724 * syssignal.h: Remove code for Lynx, not supported anymore.
1725 * vm-limit.c: Remove unused code the depends on emacs not being
1726 defined and NO_LIM_DATA being defined.
1727 * mem-limits.h: Remove dead code.
1728
1f984e12
J
17292010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1730
c49d071a
J
1731 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1732
9d5405ec
J
1733 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1734 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1735
7a18115b
J
1736 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1737 parameters, they are already absolute.
1738
a628ad9d
JB
1739 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1740 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1741
a628ad9d 1742 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1743
a628ad9d
JB
1744 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1745 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1746
a628ad9d
JB
1747 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1748 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1749
c1ef4455
CY
17502010-06-30 Chong Yidong <cyd@stupidchicken.com>
1751
1752 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1753 check default-frame-alist.
1754
ce8f5a9a
AS
17552010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1756
1757 * process.c (create_process): Avoid using invalid file descriptors.
1758
1759 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1760
bf935339
J
17612010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1762
1763 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1764 Improve documentation. Return font regardless of use_system_font.
1765 (syms_of_xsettings): Improve documentation for font-use-system-font.
1766
7c33a057
CY
17672010-07-10 Chong Yidong <cyd@stupidchicken.com>
1768
2ec1b5ee
CY
1769 * xfaces.c (realize_face): Garbage the frame if a face is removed
1770 (Bug#6593).
1771
17722010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1773
1774 * keyboard.c: Remove duplicate <setjmp.h>.
1775 (read_key_sequence): Remove volatile qualifiers.
1776
17772010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1778
1779 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1780 (struct glyph_row): New members left_fringe_offset and
1781 right_fringe_offset.
1782
1783 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1784 specially.
1785 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1786 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1787
1788 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1789 Take account of bitmap offset.
2ec1b5ee
CY
1790 (draw_window_fringes): Take account of window vscroll.
1791 (update_window_fringes): Likewise. Extend top-aligned top indicator
1792 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1793 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1794 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1795
17962010-07-04 Juanma Barranquero <lekktu@gmail.com>
1797
1798 * w32fns.c (Qtooltip): Declare.
1799 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1800
18012010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1802
1803 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1804 grab on just Press (Bug#6499).
1805
18062010-07-02 Chong Yidong <cyd@stupidchicken.com>
1807
1808 * frame.c (Qtooltip): New var.
1809 (delete_frame): Use it. Fix faulty if statement. Don't update
1810 mode line for tooltip frames. Suggested by Martin Rudalics.
1811
1812 * xfns.c (x_create_tip_frame):
1813 * w32fns.c (x_create_tip_frame): Use it.
1814
18152010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1816
1817 * xftfont.c (xftfont_open): Check font width one by one also when
1818 spacing is dual.
1819
1820 * ftfont.c (ftfont_open): Ditto.
1821
6259c2ec
GM
18222010-06-30 Glenn Morris <rgm@gnu.org>
1823
a46007e9
GM
1824 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1825
6259c2ec
GM
1826 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1827
1828 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1829 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1830 * s/darwin.h (SYSTEM_MALLOC):
1831 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1832
5d1d3d04
J
18332010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1834
1835 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1836 (ns_get_screen): Don't assign integer to f.
1837 (Fx_display_color_cells): Declarations before statements.
1838
e547b051
J
18392010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1840
5fc8e5bc
J
1841 * xfns.c (x_default_font_parameter): Remove got_from_system
1842 (Bug#6526).
1843
e547b051
J
1844 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1845 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1846 defines based on what configure finds.
1847
1848 * xterm.c (XTflash): Use gtk_widget_get_window.
1849 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1850 gtk_adjustment_get_page_size.
1851 (handle_one_xevent): Use gtk_widget_get_mapped.
1852 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1853 messages.
1854
1855 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1856
1857 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1858 HAVE_GTK_FILE_SELECTION_NEW.
1859
1860 * gtkutil.c (xg_display_open, xg_display_close): Remove
1861 HAVE_GTK_MULTIDISPLAY, it is always defined.
1862 (xg_display_open): Return type is void.
1863 (gtk_widget_set_has_window)
1864 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1865 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1866 (gtk_adjustment_set_page_increment)
1867 (gtk_adjustment_get_step_increment): #define these if not found
1868 by configure.
1869 (remove_submenu): New define based on Gtk+ version.
1870 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1871 gtk_widget_get_window.
1872 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1873 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1874 (create_dialog): Use gtk_dialog_get_action_area and
1875 gtk_dialog_get_content_area.
1876 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1877 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1878 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1879 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1880 g_object_ref and g_object_unref.
1881 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1882 gtk_widget_get_sensitive.
1883 (xg_update_submenu): Use remove_submenu.
1884 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1885 properties instead to get old x and y position.
1886 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1887 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1888 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1889 (xg_get_tool_bar_widgets): New function.
1890 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1891 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1892 (toolbar_set_orientation): New #define based on if configure
1893 finds gtk_orientable_set_orientation.
1894 (xg_create_tool_bar): Call toolbar_set_orientation.
1895 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1896 instead of gtk_box_pack_start_defaults.
1897
b9229673
CY
18982010-06-28 Chong Yidong <cyd@stupidchicken.com>
1899
1900 * cmds.c (Fdelete_backward_char): Move into Lisp.
1901
bbc803b0
DN
19022010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1903
1904 * s/freebsd.h (BSD4_2): Remove redundant definition.
1905 bsd-common.h defines it already.
1906
6431f2e6
CY
19072010-06-27 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1910 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1911 tool-bar-mode, which are now set using these X resources at
1912 startup, to determine the defaults (Bug#2249).
1913
1914 * w32fns.c (Fx_create_frame):
1915 * nsfns.m (Fx_create_frame): Likewise.
1916
1917 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1918
8c079ebb
JB
19192010-06-24 Juanma Barranquero <lekktu@gmail.com>
1920
1921 * gtkutil.c (xg_update_scrollbar_pos):
1922 Avoid C99 mid-block variable declaration.
1923
e9b7ab96
JD
19242010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1925
bc869eca
JD
1926 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1927
2b7e356a 1928 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1929
1930 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1931 if height is less than scroll bar min size.
1932 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1933
e9b7ab96
JD
1934 * xfns.c (x_default_font_parameter): Try to open font from system
1935 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1936
a628ad9d 19372010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1938
1939 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1940
70c4cfbb
EZ
19412010-06-20 Eli Zaretskii <eliz@gnu.org>
1942
1943 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1944 most-positive-fixnum, be extra accurate when scrolling window
1945 start, to avoid missing the cursor line.
1946
ad5a12b5
EZ
19472010-06-19 Eli Zaretskii <eliz@gnu.org>
1948
1949 * xdisp.c (try_scrolling): Compute the limit for searching point
1950 in forward scroll from scroll_max, instead of an arbitrary limit
1951 of 10 screen lines. See
1952 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1953 and
1954 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1955 for details.
1956
2a64315a 19572010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1958
1959 * editfns.c (Fbyte_to_string): Pacify compiler.
1960
288cf4e9
SM
19612010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1962
1963 * lread.c (read1): Phase out old-style backquotes a bit more.
1964
6e6e5760
EZ
19652010-06-12 Eli Zaretskii <eliz@gnu.org>
1966
cbc4fd20
EZ
1967 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1968 bidimirror.h.
1969
1970 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1971
317fbf33
EZ
1972 * bidi.c (bidi_initialize): Remove explicit initialization of
1973 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1974 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1975 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1976
1977 * biditype.h: New file.
1978
cbc4fd20
EZ
1979 * bidimirror.h: New file.
1980
6e6e5760
EZ
1981 * window.c (syms_of_window): Doc fix (bug#6409).
1982
4176cba2
RF
19832010-06-12 Romain Francoise <romain@orebokech.com>
1984
1985 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1986 ediff-hook.
1987
cb4bfcb5
GM
19882010-06-10 Glenn Morris <rgm@gnu.org>
1989
64c60c2f
GM
1990 * editfns.c (Fbyte_to_string): Pacify compiler.
1991
cb4bfcb5
GM
1992 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1993
2ec1b5ee
CY
19942010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1995
1996 * alloc.c (Fmake_byte_code): Don't access undefined argument
1997 (Bug#6517).
1998
19992010-06-25 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * xdisp.c (next_element_from_image): Ensure that after-strings are
2002 read the next time we hit handle_stop (Bug#1336).
2003
20042010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2005
2006 * lread.c (read1): Signal error if #s is not followed by paren.
2007
20082010-06-19 Chong Yidong <cyd@stupidchicken.com>
2009
2010 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2011
2012 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2013
20142010-06-15 Glenn Morris <rgm@gnu.org>
2015
2016 * editfns.c (Fbyte_to_string): Pacify compiler.
2017
e454a4a3
SM
20182010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2019
2020 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2021 Check `object's type before accessing its guts.
2022
c1b1acc2
DN
20232010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2024
2025 * s/usg5-4.h: Fix previous change.
2026 Suggested by Lawrence Mitchell <wence@gmx.li>
2027
657d4c0b
AS
20282010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2029
2030 * minibuf.c (Fall_completions): Add more checks.
2031
9b27fd9f
JB
20322010-06-08 Juanma Barranquero <lekktu@gmail.com>
2033
2034 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2035
a99ebb40
DN
20362010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2037
d7c5d87d
DN
2038 * lread.c (X_OK): Remove, unused.
2039
0263a941
DN
2040 * dispnew.c: Remove obsolete comment.
2041
a99ebb40
DN
2042 Remove INCLUDED_FCNTL.
2043 * xterm.c (INCLUDED_FCNTL):
2044 * callproc.c (INCLUDED_FCNTL):
2045 * alloc.c (INCLUDED_FCNTL):
2046 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2047 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2048
13b5221f
MR
20492010-06-07 Martin Rudalics <rudalics@gmx.at>
2050
2051 * window.c (Fselect_window): Move `record_buffer' up to the
2052 beginning of this function, so the buffer gets recorded
2053 even if the selected window does not change.
2054 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2055
5220357f
JB
20562010-06-07 Juanma Barranquero <lekktu@gmail.com>
2057
2058 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2059 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2060
3085237c
DN
20612010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2062
2063 Remove BSTRING related code, all platforms define it.
2064 * s/usg5-4.h (BSTRING): Remove definition.
2065 * s/template.h (BSTRING):
2066 * s/msdos.h (BSTRING):
2067 * s/ms-w32.h (BSTRING):
2068 * s/hpux10-20.h (BSTRING):
2069 * s/gnu-linux.h (BSTRING):
2070 * s/darwin.h (BSTRING):
2071 * s/cygwin.h (BSTRING):
2072 * s/bsd-common.h (BSTRING):
2073 * s/aix4-2.h (BSTRING): Likewise.
2074 * sysdep.c: Remove code depending on BSTRING not being defined.
2075
409f2919
JB
20762010-06-05 Juanma Barranquero <lekktu@gmail.com>
2077
2078 Remove obsolete macro BASE_LEADING_CODE_P.
2079 * character.h (BASE_LEADING_CODE_P): Remove.
2080 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2081 * buffer.c (Fset_buffer_multibyte):
2082 * indent.c (scan_for_column, compute_motion):
2083 * insdel.c (count_combining_before, count_combining_after):
2084 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2085
087fc47a
JB
20862010-06-04 Juanma Barranquero <lekktu@gmail.com>
2087
2088 Turn `directory-sep-char' into a noop.
2089
2090 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2091 (DIRECTORY_SEP): Define unconditionally.
2092
2093 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2094
2095 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2096 call dostounix_filename directly.
2097
2098 * fileio.c (CORRECT_DIR_SEPS): Remove.
2099 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2100 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2101 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2102 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2103
2104 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2105 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2106
0eb7675e
AS
21072010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2108
a628ad9d
JB
2109 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2110 (Bug#6346)
0eb7675e 2111
78edd3b7
JB
21122010-06-03 Juanma Barranquero <lekktu@gmail.com>
2113
2114 * ccl.c (Fccl_program_p): Fix typo in docstring.
2115
eb697db5
DN
21162010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2117
2118 Move UNEXEC definition to autoconf.
2119 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2120 * s/sol2-10.h (UNEXEC):
2121 * s/irix6-5.h (UNEXEC):
2122 * s/hpux10-20.h (UNEXEC):
2123 * s/gnu-linux.h (UNEXEC):
2124 * s/darwin.h (UNEXEC):
2125 * s/cygwin.h (UNEXEC):
2126 * s/bsd-common.h (UNEXEC):
2127 * s/aix4-2.h (UNEXEC):
2128 * m/alpha.h (UNEXEC): Likewise.
2129 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2130
aa3830c4
JB
21312010-06-03 Juanma Barranquero <lekktu@gmail.com>
2132
2133 Remove obsolete pre-unicode2 macros.
2134 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2135 * composite.c (composition_reseat_it):
2136 * data.c (Faset):
2137 * fns.c (Ffillarray):
2138 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2139 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2140
d234d13e
JL
21412010-06-03 Juri Linkov <juri@jurta.org>
2142
2143 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2144 (Fswitch_to_buffer): Remove unused variable `err'.
2145
0d4bcf4d
GM
21462010-06-03 Glenn Morris <rgm@gnu.org>
2147
e23dc1e2
GM
2148 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2149
05b09564
GM
2150 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2151 now that AH_BOTTOM does it.
2152
824e2978
GM
2153 * m/hp800.h (HAVE_ALLOCA):
2154 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2155
0d4bcf4d
GM
2156 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2157 Remove NOT_C_CODE tests, it is always true now.
2158
c55d2abf
DN
21592010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2160
08a494a3
DN
2161 Fix config.h includes.
2162 * xsettings.c:
2163 * xgselect.c:
2164 * nsterm.m:
2165 * nsselect.m:
2166 * nsimage.m:
2167 * nsfont.m:
2168 * nsfns.m:
2169 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2170 other files do.
2171
75934b1d
DN
2172 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2173
9f32a766
DN
2174 * s/sol2-6.h: Remove obsolete comments.
2175
c55d2abf
DN
2176 Remove unnecessary alloca.h includes.
2177 * keymap.c: Do not include alloca.h, config.h does that.
2178 * sysdep.c: Likewise. Do not define fwrite, not used.
2179
06ac62b4
SM
21802010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2181
2182 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2183 the HAVE_TERMIO where it belongs (bug#6149).
2184
1ab8293c
SM
21852010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2186
2187 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2188 of bug#6305).
2189
6dcfd253
EZ
21902010-05-30 Eli Zaretskii <eliz@gnu.org>
2191
2192 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2193 state is always cached (bug#6306).
2194
6d26bbb2
EZ
21952010-05-29 Eli Zaretskii <eliz@gnu.org>
2196
06fa4a23
EZ
2197 Fix cursor motion in bidi-reordered continued lines.
2198 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2199 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2200 over continuation lines in bidi-reordered buffers. Return
2201 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2202 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2203
f5783df3
MA
22042010-05-28 Michael Albinus <michael.albinus@gmx.de>
2205
2206 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2207
7d56b2dd
KH
22082010-05-28 Kenichi Handa <handa@m17n.org>
2209
2210 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2211 Don't sheck SPEC if it is nil.
2212 (font_list_entities): Call font_delete_unmatched if
b925d231 2213 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2214
e58d4ff7
GM
22152010-05-28 Glenn Morris <rgm@gnu.org>
2216
2217 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2218
f1a5d776
CY
22192010-05-27 Chong Yidong <cyd@stupidchicken.com>
2220
2221 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2222 whether to trash.
2223 (internal_delete_file, Frename_file): Callers changed.
2224 (delete_by_moving_to_trash): Doc fix.
2225 (Fdelete_directory_internal): Don't move to trash.
2226
2227 * callproc.c (delete_temp_file):
2228 * buffer.c (Fkill_buffer): Callers changed.
2229
2230 * lisp.h: Update prototype.
2231
f44a59e6
CY
22322010-05-27 Chong Yidong <cyd@stupidchicken.com>
2233
2234 * xdisp.c (redisplay_window): After redisplay, check if point is
2235 still valid before setting it (Bug#6177).
2236
81ac4f35
GM
22372010-05-27 Glenn Morris <rgm@gnu.org>
2238
2239 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2240 Convert comments to Makefile format.
2241
2242 * Makefile.in (bootstrap-clean): No more Makefile.c.
2243
ccd89fb3
GM
22442010-05-26 Glenn Morris <rgm@gnu.org>
2245
90278cb6
GM
2246 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2247 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2248
ccd89fb3
GM
2249 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2250 Remove.
2251 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2252
b7050583
KH
22532010-05-26 Kenichi Handa <handa@m17n.org>
2254
2255 * composite.c (composition_compute_stop_pos): Fix condition for
2256 backward scanning.
2257
e5458003
GM
22582010-05-25 Glenn Morris <rgm@gnu.org>
2259
c345fe90
GM
2260 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2261 Move before TEMACS_LDFLAGS.
2262 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2263 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2264
2e0689ab
GM
2265 * Makefile.in (NOT_C_CODE): No longer define.
2266 (config.h): No longer include.
2267
8009a5e8
GM
2268 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2269 variables it may reference.
2270
e5458003
GM
2271 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2272 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2273
10f72a37
KH
22742010-05-25 Kenichi Handa <handa@m17n.org>
2275
2276 * dispextern.h (struct composition_it): New members rule_idx and
2277 charpos.
2278
2279 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2280 that the character positions of IT point the last character of the
2281 current grapheme cluster.
2282 (next_element_from_composition): Don't change character positions
2283 of IT.
2284 (append_composite_glyph): Set glyph->charpos to
2285 it->cmp_it.charpos.
2286
2287 * composite.c (autocmp_chars): Change the first argument to RULE,
2288 and try composition with RULE only.
2289 (composition_compute_stop_pos): Record the index number of the
2290 composition rule in CMP_IT->rule_idx.
2291 (composition_reseat_it): Call autocmp_chars repeatedly until the
2292 correct rule of the composition is found.
2293 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2294 is at the last character of the current grapheme cluster when
2295 CMP_IT->reversed_p is nonzero.
2296
171eda53 22972010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2298
171eda53
SM
2299 * editfns.c (Fbyte_to_string): New function.
2300
66a9f7f4
SM
23012010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2302
2303 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2304 Suggested by Masatake YAMATO <yamato@redhat.com>.
2305
d8c315d1
EZ
23062010-05-23 Eli Zaretskii <eliz@gnu.org>
2307
171eda53 2308 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2309
f5b416d2 23102010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2311
2312 * s/netbsd.h: If terminfo is found, use it in preference to
2313 termcap. (Bug#6190) [Backport from trunk]
2314
0416466c
EZ
23152010-05-19 Eli Zaretskii <eliz@gnu.org>
2316
11117830 2317 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2318
2319 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2320 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2321 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2322 and maxpos members instead of start.pos and end.pos, respectively.
2323
2324 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2325 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2326 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2327 (try_window_reusing_current_matrix, try_window_id):
2328 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2329 (init_from_display_pos, init_iterator): Use EMACS_INT for
2330 character and byte positions.
66a9f7f4 2331 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2332 arguments for minimum and maximum buffer positions seen by
2333 display_line for this row. Don't use iterator to find the
2334 position following the maximum one; instead, increment the
11117830
EZ
2335 position found by display_line directly. Fix logic; eol_pos
2336 should be tested before the rest. Handle the case of characters
2337 delivered from display vector (bug#6036). Fix tests related to
2338 it->method. Handle the truncated_on_right_p rows.
2339 (RECORD_MAX_MIN_POS): New macro.
2340 (display_line): Use it to record the minimum and maximum buffer
2341 positions for glyphs in the row being assembled. Record the
2342 position of the newline that terminates the line. If word wrap is
2343 in effect, restore minimum and maximum positions seen up to the
2344 wrap point, when iterator returns to it.
2345 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2346 row and cursor not already at point. Restore original pre-bidi
2347 code for unidirectional buffers.
d36fe237
EZ
2348
2349 * dispnew.c (increment_row_positions, check_matrix_invariants):
2350 Increment and check row->start.pos and row->end.pos, in addition
2351 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2352
11117830
EZ
2353 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2354 Display truncated_on_left_p and truncated_on_right_p flags.
2355 Formatting fixes.
2356 (pmtxrows): Display the ordinal number of each row. Don't display
2357 rows beyond the last one.
2358
2359 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2360 it is not copied by bidi_copy_it.
2361
6e83d800
EZ
23622010-05-22 Eli Zaretskii <eliz@gnu.org>
2363
2364 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2365 (Bug#6237)
2366
110683ad
CY
23672010-05-22 Chong Yidong <cyd@stupidchicken.com>
2368
2369 * image.c (Fimage_flush): Rename from image-refresh.
2370
98fe5161
CY
23712010-05-21 Chong Yidong <cyd@stupidchicken.com>
2372
2373 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2374 just one window.
2375
2376 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2377 (clear_image_cache): If the number of cached images is unusually
2378 large, decrease the cache eviction delay (Bug#6230).
2379
e8752c66
GM
23802010-05-21 Glenn Morris <rgm@gnu.org>
2381
66dbf213
GM
2382 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2383 Move these rules to ns.mk.
2384 * ns.mk: New file.
2385
04384b2d
GM
2386 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2387
e8752c66
GM
2388 * Makefile.in (CANNOT_DUMP): New, set by configure.
2389 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2390
2e2bbddb
JL
23912010-05-20 Juri Linkov <juri@jurta.org>
2392
2393 * fileio.c (Fdelete_file): Change interative spec to use
2394 `read-file-name' like in `find-file-read-args' where the default
2395 value is `default-directory' instead of `buffer-file-name'.
2396 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2397
31c4aaf6
KR
23982010-05-20 Kevin Ryde <user42@zip.com.au>
2399
2400 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2401 (Voverriding_terminal_local_map, Vsystem_key_alist)
2402 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2403
9d5cf9b6
GM
24042010-05-20 Glenn Morris <rgm@gnu.org>
2405
2406 * Makefile.in (DEPDIR): New constant.
2407 (DEPFLAGS): Set with configure, not cpp.
2408 (MKDEPDIR): New, set by configure.
2409 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2410 (clean): Use $DEPDIR.
2411 (deps_frag): Include from configure.
2412 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2413 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2414
ead6f8f5
EZ
2415 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2416 reallocation of the cache. (Bug#6210)
2417
7f34aec3
GM
24182010-05-19 Glenn Morris <rgm@gnu.org>
2419
d494e8f2
GM
2420 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2421
c1d0dcfd
GM
2422 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2423 (GNULIB_VAR): Remove.
2424 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2425
2426 * m/ibms390x.h (LINKER):
2427 * m/macppc.h (LINKER) [GNU_LINUX]:
2428 * s/aix4-2.h (ORDINARY_LINK):
2429 * s/cygwin.h (LINKER):
2430 * s/darwin.h (ORDINARY_LINK):
2431 * s/gnu.h (ORDINARY_LINK):
2432 * s/netbsd.h (LINKER):
2433 * s/usg5-4.h (ORDINARY_LINK):
2434 Move to configure.
2435
7f34aec3
GM
2436 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2437
754790b6
CY
24382010-05-18 Chong Yidong <cyd@stupidchicken.com>
2439
2440 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2441 prevent stack overflow if number of arguments is too large
2442 (Bug#6214).
2443
161e44d1
JB
24442010-05-18 Juanma Barranquero <lekktu@gmail.com>
2445
2446 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2447
be4ff9da
GM
24482010-05-18 Glenn Morris <rgm@gnu.org>
2449
9539dc5d
GM
2450 * s/gnu-linux.h: Combine two conditionals.
2451
2452 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2453 $(POST_ALLOC_OBJ).
2454
40dc6bf4
GM
2455 * Makefile.in (RALLOC_OBJ): New, set by configure.
2456 (rallocobj): Replace with the previous variable.
2457 (otherobj): Use $RALLOC_OBJ.
2458
2459 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2460 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2461
be4ff9da
GM
2462 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2463 (gmallocobj, vmlimitobj): Replace with previous two variables.
2464 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2465
16455a85
GM
24662010-05-17 Glenn Morris <rgm@gnu.org>
2467
2468 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2469 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2470
5fdb7468
GM
24712010-05-16 Glenn Morris <rgm@gnu.org>
2472
7ca1f3f9
GM
2473 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2474
7541dad5
GM
2475 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2476
da53fab9
GM
2477 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2478 trailing "/".
2479
b02a6645
GM
2480 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2481 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2482
8877ca0f
GM
2483 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2484 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2485 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2486 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2487 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2488
5fdb7468
GM
2489 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2490 Remove ${STARTFLAGS}, nothing ever sets it.
2491
95adb4b1
DN
24922010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2493
2494 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2495
676b6304
GM
24962010-05-16 Glenn Morris <rgm@gnu.org>
2497
9beab9ce
GM
2498 * Makefile.in (LIBX_BASE): Always define.
2499
8a95f0e7
GM
2500 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2501
676b6304
GM
2502 * Makefile.in (LIBXT): Always define.
2503
6e546d18
GM
25042010-05-15 Glenn Morris <rgm@gnu.org>
2505
4235ca47 2506 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2507
6e546d18
GM
2508 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2509 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2510
8c5ff6dd
KR
25112010-05-15 Ken Raeburn <raeburn@raeburn.org>
2512
560bb7ae 2513 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2514 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2515
8b4eb796
KR
2516 * emacs.c (main): Initialize initial-environment and
2517 process-environment before generating from env, not after.
2518
8c5ff6dd
KR
2519 Handle --version reasonably in CANNOT_DUMP configuration.
2520 * emacs.c (emacs_version, emacs_copyright): New string variables.
2521 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2522 (syms_of_emacs): Defvar them, and initialize them from the C
2523 string variables.
2524 (main): If initialization hasn't been done, print initial version
2525 info from the C strings, instead of starting an interactive session.
2526
dbd3f723
EZ
25272010-05-15 Eli Zaretskii <eliz@gnu.org>
2528
d20e1419
EZ
2529 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2530 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2531 (bidi_paragraph_init): Remove redundant assertion that we are at
2532 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2533
2534 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2535 (syms_of_xdisp): Defsubr it.
2536
d36fe237
EZ
2537 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2538
dbd3f723
EZ
2539 * Makefile.in: Fix MSDOS-related comments.
2540
02be533b
GM
25412010-05-15 Glenn Morris <rgm@gnu.org>
2542
1a82cca9
GM
2543 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2544 (really-lwlib, really-oldXMenu): Always define.
2545 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2546
3df7b338
GM
2547 * Makefile.in: Simplify cpp conditional.
2548
2b5f541b
GM
2549 * Makefile.in (${ns_appdir}): Simplify using umask.
2550
02be533b
GM
2551 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2552
4e2db1fe
SM
25532010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2554
2555 * eval.c (specbind): Remove left-over duplicate test.
2556 Disallow let-binding frame-local vars. Add comment.
2557
4b292a22
EZ
25582010-05-14 Eli Zaretskii <eliz@gnu.org>
2559
2fe72643 2560 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2561 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2562 (bidi_init_it): Call it.
2563 (bidi_cache_iterator_state): Enlarge the cache if needed.
2564
4e2db1fe 2565 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2566 bidi_get_next_char_visually. All callers changed.
2567
82ebc97b
KH
25682010-05-14 Kenichi Handa <handa@m17n.org>
2569
2570 * dispextern.h (struct composition_it): New member reversed_p.
2571
2572 * composite.c (composition_compute_stop_pos): Search backward if
2573 ENDPOS < CHARPOS.
2574 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2575 Set CMP_IT->reversed_p.
b4b6e17e 2576 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2577
4e2db1fe
SM
2578 * xdisp.c (set_iterator_to_next):
2579 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2580 scanning backward. Call composition_compute_stop_pos if scan
2581 direction is changed.
2582 (next_element_from_buffer): Call composition_compute_stop_pos with
2583 negative ENDPOS if we are scanning backward.
2584 (next_element_from_composition): Pay attention to
2585 IT->cmp_it.reversed_p.
2586
0e5d7800
KH
25872010-05-14 Kenichi Handa <handa@m17n.org>
2588
560bb7ae 2589 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2590
cb027b32
GM
25912010-05-14 Glenn Morris <rgm@gnu.org>
2592
177b0288
GM
2593 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2594
fbc00890
GM
2595 * Makefile.in (mktime, X11, register): Move undefs to configure.
2596
f14d1dfd
GM
2597 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2598 (MSDOS_X_OBJ): New variable.
2599 (MSDOS_SUPPORT_REAL): New constant.
2600 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2601 (obj): Use MSDOS_X_OBJ.
2602 (lisp): Use MSDOS_SUPPORT as a variable.
2603
11842bd8
GM
2604 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2605 (GPM_MOUSE_SUPPORT): Now it's a constant.
2606 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2607 not cpp.
2608
489d31a4 2609 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2610 (ns_appresdir): Remove, unused.
e20f1f07 2611
489d31a4
GM
2612 * Makefile.in (SHELL): Move outside cpp section.
2613
cb027b32
GM
2614 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2615
5a903aa9
GM
26162010-05-13 Glenn Morris <rgm@gnu.org>
2617
3369c79f
GM
2618 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2619 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2620
d5e982a6
GM
2621 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2622 HAVE_WINDOW_SYSTEM must be too.
2623
6192e163
GM
2624 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2625 (lisp): Remove WINNT_SUPPORT.
2626
472c5d6b
GM
2627 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2628 Let configure set these variables (to empty) in this case as well.
2629
0116466b
GM
2630 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2631 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2632
5a903aa9
GM
2633 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2634 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2635 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2636 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2637 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2638 the values output by configure.
5a903aa9
GM
2639 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2640
1a0d7c06
GM
26412010-05-12 Glenn Morris <rgm@gnu.org>
2642
b5457f14
GM
2643 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2644 (LINKER_WAS_SPECIFIED): Remove.
2645
1a0d7c06
GM
2646 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2647 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2648 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2649 * s/cygwin.h (LIB_GCC):
2650 * s/freebsd.h (LIB_GCC):
2651 * s/gnu-linux.h (LIB_GCC):
2652 * s/msdos.h (LIB_GCC):
2653 * s/netbsd.h (LIB_GCC):
2654 Move to configure.
2655
3ffd4615 26562010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2657
2658 * ftfont.c: Fix incorrect parentheses of #if condition for
2659 definining M17N_FLT_USE_NEW_FEATURE.
2660
acddf8ae
GM
26612010-05-11 Glenn Morris <rgm@gnu.org>
2662
2663 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2664 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2665
ae5e04fa
EZ
26662010-05-10 Eli Zaretskii <eliz@gnu.org>
2667
2668 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2669 unibyte buffers. See
2670 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2671
7490175b
GM
26722010-05-10 Glenn Morris <rgm@gnu.org>
2673
97efb629
GM
2674 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2675 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2676 (LIBES): Use LIBS_SYSTEM as a variable.
2677 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2678 * s/aix4-2.h (LIBS_SYSTEM):
2679 * s/freebsd.h (LIBS_SYSTEM):
2680 * s/hpux10-20.h (LIBS_SYSTEM):
2681 * s/sol2-6.h (LIBS_SYSTEM):
2682 * s/unixware.h (LIBS_SYSTEM):
2683 Move to configure.
2684
7490175b
GM
2685 * s/aix4-2.h (MAIL_USE_LOCKF):
2686 * s/bsd-common.h (MAIL_USE_FLOCK):
2687 * s/darwin.h (MAIL_USE_FLOCK):
2688 * s/gnu-linux.h (MAIL_USE_FLOCK):
2689 * s/irix6-5.h (MAIL_USE_FLOCK):
2690 * s/template.h (MAIL_USE_FLOCK):
2691 Move to configure.
2692
0235128c 26932010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2694
2695 * Version 23.2 released.
2696
0235128c 26972010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2698
2699 * composite.c (autocmp_chars): Save point as marker before calling
2700 auto-composition-function (Bug#5984).
2701
2702 * lisp.h (restore_point_unwind): Add prototype.
2703
2704 * fileio.c (restore_point_unwind): Remove static attribute.
2705
0235128c 27062010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2707
2708 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2709 new feature of libotf and m17n-flt.
0235128c
SM
2710 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2711 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2712 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2713 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2714 that OUT is NULL. Use OTF_drive_gsub_with_log and
2715 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2716 OTF_drive_gpos.
2717 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2718 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2719 Setup mflt_enable_new_feature and mflt_try_otf.
2720
4721152c
J
27212010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2722
2723 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2724
2725 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2726 box and toolbar (Bug #6139).
2727 (xg_create_tool_bar): Remove comment (Bug #6139).
2728 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2729 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2730
ee0a16cf
JB
27312010-05-08 Juanma Barranquero <lekktu@gmail.com>
2732
2733 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2734 Update dependencies.
2735
96d79611
EZ
27362010-05-08 Eli Zaretskii <eliz@gnu.org>
2737
2738 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2739 R2L lines.
2740
40c17879
GM
27412010-05-08 Glenn Morris <rgm@gnu.org>
2742
7b42b29f
GM
2743 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2744
40c17879
GM
2745 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2746 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2747 (termcapobj): Replace with TERMCAP_OBJ.
2748 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2749 (LIBES): Use LIBS_TERMCAP as a variable.
2750
2751 * s/freebsd.h (osreldate.h): No longer include, since this file
2752 does not use __FreeBSD_version any more.
2753
2754 * s/aix4-2.h (TERMINFO):
2755 * s/cygwin.h (TERMINFO):
2756 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2757 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2758 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2759 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2760 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2761 * s/irix6-5.h (TERMINFO):
2762 * s/netbsd.h (LIBS_TERMCAP):
2763 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2764 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2765 * s/usg5-4.h (TERMINFO):
2766 Move to configure.
2767
94b612ad
SM
27682010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2769
2770 * eval.c (unbind_to): Don't unbind a local binding into the global
2771 binding when the local binding disappeared. Inversely, don't unbind
2772 a global binding into a newly created local binding.
2773 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2774 can specify the frame to use, when applicable. Adjust callers.
2775
15e12598 27762010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2777 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2778
2779 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2780
f724825e
EZ
27812010-05-07 Eli Zaretskii <eliz@gnu.org>
2782
5cba3209
EZ
2783 * w32fns.c: Include w32.h.
2784 (Fw32_shell_execute): Decode the error message before passing it
2785 to `error'. (Bug#6126)
2786
d16bdfc3
EZ
2787 * msdos.c (dos_set_window_size):
2788 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2789 instead of `XSYMBOL (foo)->value'.
2790
59d93e87
EZ
27912010-05-07 Eli Zaretskii <eliz@gnu.org>
2792
9fdec8bc
EZ
2793 Fix the MS-DOS build, broken by autoconfiscation.
2794
2795 * Makefile.in: Don't use Make-style comments past the "start of
2796 cpp stuff" line.
2797 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2798
2799 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2800 edited directly by msdos/sed1v2.inp).
f724825e 2801
2f86b22b
GM
28022010-05-07 Glenn Morris <rgm@gnu.org>
2803
2804 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2805 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2806 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2807 move out of cpp section.
2808 * s/freebsd.h (LD_SWITCH_SYSTEM):
2809 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2810 * s/netbsd.h (LD_SWITCH_SYSTEM):
2811 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2812
49ebbd65
DN
28132010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2814
2815 Define LIB_STANDARD and START_FILES using autoconf.
2816 * s/usg5-4.h (LIB_STANDARD):
2817 * s/netbsd.h (START_FILES):
2818 * s/irix6-5.h (LIB_STANDARD):
2819 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2820 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2821 * s/freebsd.h (START_FILES):
2822 * s/darwin.h (START_FILES):
2823 * s/cygwin.h (START_FILES):
2824 * s/aix4-2.h (LIB_STANDARD):
2825 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2826 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2827 autoconf, not cpp.
2828
d43c06d6
DN
28292010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2830
28823648
DN
2831 Remove NEED_BSDTTY and NEED_UNISTD_H.
2832 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2833 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2834 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2835 <sys/ptyio.h> and <unistd.h>.
2836
aca00430
DN
2837 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2838
d43c06d6
DN
2839 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2840 * s/gnu.h (START_FILES): Remove empty definition.
2841
3e56b11d
JD
28422010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2843
2844 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2845
e3cf0cde
GM
28462010-05-06 Glenn Morris <rgm@gnu.org>
2847
2848 * Makefile.in (CPP, LN_S): Remove unused variables.
2849
774b9a60
SM
28502010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2851
2852 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2853
4ab92842
LM
28542010-05-05 Lawrence Mitchell <wence@gmx.li>
2855
2856 * m/sparc.h: Fix typo in earlier change.
2857
178f2507
SM
28582010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2859
2860 Misc tweaks.
2861 * eval.c (Fdefvaralias): Remove unintended nested if.
2862 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2863
80f00217 28642010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2865
2866 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2867
ef03a4e6
DN
28682010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2869
58eb6cf0
DN
2870 Remove BSD_PGRPS.
2871 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2872 * s/gnu-linux.h (BSD_PGRPS): Remove.
2873 * term.c (dissociate_if_controlling_tty):
2874 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2875 (init_sys_modes, reset_sys_modes):
2876 * emacs.c (main):
2877 * callproc.c (Fcall_process, child_setup): Remove code depending
2878 on BSD_PGRPS.
2879
ef03a4e6
DN
2880 Remove POSIX_SIGNALS.
2881 * s/usg5-4.h (POSIX_SIGNALS):
2882 * s/netbsd.h (POSIX_SIGNALS):
2883 * s/msdos.h (POSIX_SIGNALS):
2884 * s/ms-w32.h (POSIX_SIGNALS):
2885 * s/hpux11.h (POSIX_SIGNALS):
2886 * s/gnu.h (POSIX_SIGNALS):
2887 * s/gnu-linux.h (POSIX_SIGNALS):
2888 * s/freebsd.h (POSIX_SIGNALS):
2889 * s/darwin.h (POSIX_SIGNALS):
2890 * s/cygwin.h (POSIX_SIGNALS):
2891 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2892 * s/unixware.h:
2893 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2894 * process.c (create_process):
2895 * syssignal.h:
2896 * sysdep.c (wait_for_termination, init_signals):
2897 * process.c (create_process):
2898 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2899 remove all code that assumes the contrary.
2900
49628785
GM
29012010-05-04 Glenn Morris <rgm@gnu.org>
2902
27a2cdfc
GM
2903 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2904 variable.
2905 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2906 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2907 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2908 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2909 LD_SWITCH_SYSTEM_tmp.
2910 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2911 New variables, set by configure.
2912
eb21eab5
GM
2913 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2914 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2915 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2916 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2917 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2918
49628785
GM
2919 * s/aix4-2.h (C_SWITCH_SYSTEM):
2920 * m/alpha.h (C_SWITCH_MACHINE):
2921 Move to configure.in.
2922 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2923 New variables, set by configure.
2924 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2925 $c_switch_machine and $c_switch_system.
2926
7dff330b
DN
29272010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2928
2929 * s/hpux10-20.h (LIB_STANDARD): New definition.
2930 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2931 on it, not used anymore.
2932
53967e09
CY
29332010-05-03 Chong Yidong <cyd@stupidchicken.com>
2934
2935 * eval.c (internal_condition_case_n): Rename from
2936 internal_condition_case_2.
2937 (internal_condition_case_2): New function.
2938
2939 * xdisp.c (safe_call): Use internal_condition_case_n.
2940
2941 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2942 (internal_delete_file, Frename_file): Callers changed.
2943
2944 * buffer.c (Fkill_buffer):
2945 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2946
2947 * lisp.h: Update prototypes.
2948
3dee6fdb
GM
29492010-05-03 Glenn Morris <rgm@gnu.org>
2950
2951 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2952 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2953 (LIBXT): Set with configure, not cpp.
2954 (LIBX): Remove.
2955 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2956
a101e0fb
DN
29572010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2958
2959 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2960 The FreeBSD is not needed, the default works, Solaris version is
2961 not needed, and the remaining case is not supported by configure.
2962
f63d0028
JD
29632010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2964
2965 * xsmfns.c (CHDIR_OPT): New define.
2966 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2967 restarting emacs.
2968
2969 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2970 shut_down_emacs.
2971
2972 * emacs.c (USAGE1): Mention --chdir.
2973 (main): Handle --chdir.
2974 (standard_args): Add --chdir.
2975 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2976 #5552).
2977
e4814a9f
DN
29782010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2979
cd03c74a
DN
2980 Remove LD_SWITCH_MACHINE.
2981 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2982 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2983
c3a398a1
DN
2984 Clean up IRIX code.
2985 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2986 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2987
87e7285c
DN
2988 Clean up AIX code.
2989 * m/ibmrs6000.inp: Remove file, unused.
2990 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2991 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2992 definition ...
2993 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2994
80f00217
JB
2995 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2996 unused.
e4814a9f 2997
59ca28de
EZ
29982010-05-01 Eli Zaretskii <eliz@gnu.org>
2999
197daef4
EZ
3000 Emulate POSIX_SIGNALS on MS-Windows.
3001
3002 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3003 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3004
3005 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3006 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3007 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3008
80f00217
JB
3009 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3010 New stubs.
197daef4 3011
af7c7572
EZ
3012 Miscellaneous fixes of bidi display.
3013
59ca28de
EZ
3014 * xdisp.c (find_row_end): New function, refactored from display_line.
3015 (display_line): Use it.
017ea819
EZ
3016 (extend_face_to_end_of_line): In almost-filled rows, extend only
3017 if the row is R2L and not continued.
166e930d 3018 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3019 Preserve overlay and string info in row->end.
166e930d
EZ
3020 (insert_left_trunc_glyphs): Support addition of left truncation
3021 glyphs to R2L rows.
b47e0dcf 3022 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3023 glyph between adjacent windows. Fix a crash when a display string
3024 is continued to the next line. Don't return zero if cursor was
3025 found by `cursor' property of a display string.
b47e0dcf
EZ
3026 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3027 test for that explicitly.
59ca28de 3028
7acac9f4
GM
30292010-05-01 Glenn Morris <rgm@gnu.org>
3030
3031 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3032 for clarity.
3033 (OTHER_OBJ): Remove.
3034 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3035 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3036
45841e65
KK
30372010-05-01 Karel Klíč <kklic@redhat.com>
3038
3039 * fileio.c (Ffile_selinux_context): Context functions may return null.
3040
afc61943
DN
30412010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3042
80f00217 3043 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3044
5a1bb006
GM
30452010-04-30 Glenn Morris <rgm@gnu.org>
3046
3047 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3048 (OTHER_OBJ): Define as a separate variable, for clarity.
3049
210af043
J
30502010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3051
3052 * xsettings.c: include limits.h and update file comment.
3053
0a7df391
GM
30542010-04-30 Glenn Morris <rgm@gnu.org>
3055
d5096f16
GM
3056 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3057 Set with configure, not cpp.
3058 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3059
7eb1ac33
GM
3060 * Makefile.in (mallocobj): Remove.
3061 (otherobj): Simplify using @OTHER_OBJ@.
3062
517d086b
GM
3063 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3064 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3065 Don't bother making nsgui.h dependency platform-specific.
3066
0a7df391
GM
3067 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3068
d6d23852
SM
30692010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3070
d2630aef
SM
3071 * process.c (read_process_output, exec_sentinel): Don't burp if the
3072 sentinel/filter kills the current buffer (bug#6060).
3073
f9dddf52 3074 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3075 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3076 Remove unused var `args'.
3077 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3078 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3079 * doc.c (store_function_docstring): Use XSETCAR.
3080
f1e3642a
GM
30812010-04-28 Glenn Morris <rgm@gnu.org>
3082
faf535f8
GM
3083 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3084 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3085
c40f9449
GM
3086 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3087
658f86ca
GM
3088 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3089 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3090
bc0b5f61
GM
3091 * Makefile.in (FONT_OBJ): New, set by configure.
3092 (FONT_DRIVERS): Use $FONT_OBJ.
3093
294c50a0
GM
3094 * Makefile.in (LIBXMU): Set with configure, not cpp.
3095 * s/aix4-2.h (LIBXMU):
3096 * s/hpux10-20.h (LIBXMU):
3097 Remove definition, now set in configure.
3098
e6ec4e99
GM
3099 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3100
f1e3642a
GM
3101 * m/amdx86-64.h [i386]: Move this test to configure.in.
3102
c6ea2936
GM
31032010-04-27 Glenn Morris <rgm@gnu.org>
3104
8fdac2c3
GM
3105 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3106 * s/unixware.h (NEED_LIBW): Remove definition.
3107
986fb647
GM
3108 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3109 (TOOLKIT_LIBW): New, set by configure.
3110 (@X_TOOLKIT_TYPE@): No longer define it.
3111
c6ea2936
GM
3112 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3113 (MOTIF_LIBW): Set with configure, not cpp.
3114 * s/aix4-2.h (LIB_MOTIF):
3115 * s/gnu-linux.h (LIB_MOTIF):
3116 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3117
aaa36002
DN
31182010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3119
3120 Reduce CPP usage.
3121 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3122 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3123 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3124 definitions and undefs. Inline definitions in the only user.
3125 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3126
b678dd8b
GM
31272010-04-27 Glenn Morris <rgm@gnu.org>
3128
76cda504
GM
3129 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3130 since the defaults (set by the system file) are fine in most cases.
3131 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3132 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3133 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3134 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3135 Remove definitions, since they are set correctly in s/gnu-linux.h.
3136 * s/freebsd.h (START_FILES, LIB_STANDARD):
3137 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3138 * s/hpux10-20.h (START_FILES):
3139 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3140 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3141
b678dd8b
GM
3142 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3143 (MOTIF_LIBW): Use $LIBXP.
3144 (otherobj): Use $WIDGET_OBJ.
3145
9452ded1
DN
31462010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3147
7e10844c
DN
3148 * Makefile.in (LIBS_MACHINE): Remove, unused.
3149
9452ded1
DN
3150 Use autoconf instead of cpp for LIB_MATH.
3151 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3152 * s/cygwin.h (LIB_MATH): Likewise.
3153 * Makefile.in (LIB_MATH): Do not define with cpp.
3154 (LIBES): Use autoconf for LIB_MATH.
3155
fcebfc6a
KH
31562010-04-26 Kenichi Handa <handa@m17n.org>
3157
3158 * composite.c (Ffind_composition_internal): Fix the return value
3159 for an automatic composition.
3160
39e2ad1b
DN
31612010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3162
3163 Remove all NO_ARG_ARRAY uses.
3164 * fns.c (concat2, concat3, nconc2):
3165 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3166 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3167 * m/xtensa.h (NO_ARG_ARRAY):
3168 * m/template.h (NO_ARG_ARRAY):
3169 * m/sparc.h (NO_ARG_ARRAY):
3170 * m/sh3.h (NO_ARG_ARRAY):
3171 * m/mips.h (NO_ARG_ARRAY):
3172 * m/macppc.h (NO_ARG_ARRAY):
3173 * m/iris4d.h (NO_ARG_ARRAY):
3174 * m/intel386.h (NO_ARG_ARRAY):
3175 * m/ibms390x.h (NO_ARG_ARRAY):
3176 * m/ibms390.h (NO_ARG_ARRAY):
3177 * m/ibmrs6000.h (NO_ARG_ARRAY):
3178 * m/ia64.h (NO_ARG_ARRAY):
3179 * m/hp800.h (NO_ARG_ARRAY):
3180 * m/arm.h (NO_ARG_ARRAY):
3181 * m/amdx86-64.h (NO_ARG_ARRAY):
3182 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3183
adf4f59c
EZ
31842010-04-25 Eli Zaretskii <eliz@gnu.org>
3185
6bdf5d65
EZ
3186 * xdisp.c (display_line): Don't assume 2nd call to
3187 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3188 (iterate_out_of_display_property): New function, body from pop_it.
3189 (pop_it): Use it.
adf4f59c 3190
dfbbda83
GM
31912010-04-24 Glenn Morris <rgm@gnu.org>
3192
3193 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3194 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3195 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3196 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3197
2d4018aa
EZ
31982010-04-24 Eli Zaretskii <eliz@gnu.org>
3199
a49884a6
EZ
3200 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3201 use `get_next_display_element' and `set_iterator_to_next' to
3202 advance to the next character, when looking for the character that
3203 begins the next row.
3204
76db6fcc 3205 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3206 definition of "struct Lisp_Symbol".
3207
70eab5c1
GM
32082010-04-24 Glenn Morris <rgm@gnu.org>
3209
3210 * Makefile.in (CRT_DIR): New variable, set by configure.
3211 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3212 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3213
1ad4cc3d
DN
32142010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3215
e769f484
DN
3216 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3217
4196ff33
DN
3218 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3219
879b0ee4
DN
3220 Remove redundant flags.
3221 * s/freebsd.h (C_SWITCH_SYSTEM):
3222 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3223 * s/netbsd.h (C_SWITCH_SYSTEM):
3224 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3225 of these.
3226
03cbbcb8
DN
3227 Simplify m/intel386.h.
3228 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3229 user: ecrt0.c.
3230 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3231 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3232 the only user: s/unixware.h.
3233 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3234 from m/intel386.h.
3235 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3236 moved here from m/intel386.h.
3237
1ad4cc3d
DN
3238 * m/mips.h: Remove #if 0 code.
3239
8785b888
EZ
32402010-04-23 Eli Zaretskii <eliz@gnu.org>
3241
728588cc
EZ
3242 Fix display of composed characters from L2R scripts in bidi buffers.
3243 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3244 After advancing IT past the composition, resync the bidi iterator
3245 with IT's position. (Bug#5977)
3246
a63f80b4
DN
32472010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3248
3249 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3250 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3251
ff5dec5c
SM
32522010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3253
3254 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3255
8785b888
EZ
32562010-04-23 Eli Zaretskii <eliz@gnu.org>
3257
58ccf243 3258 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3259 * xdisp.c (pop_it): When the stack is popped after displaying
3260 from a string, bidi-iterate to exit from the text portion covered
3261 by the `display' property or overlay. (Bug#5988, bug#5920)
3262
feeb1604
DN
32632010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3264
8e324eb6
DN
3265 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3266 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3267
809fcaba
DN
3268 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3269 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3270
ed710380
DN
3271 Simplify STARTFILES definition.
3272 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3273 relying on Makefile.in to define it.
3274 * s/cygwin.h (START_FILES): Likewise.
3275 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3276
feeb1604
DN
3277 Clean up Solaris code.
3278 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3279 (LIB_MOTIF): Remove, configure takes care of this.
3280 (NOT_USING_MOTIF): Remove, unused.
3281 * xrdb.c: Remove #if 0-ed #include.
3282 (SYSV): Remove conditional for old SysV.
3283 * sysdep.c (closedir): Remove conditional code for Solaris,
3284 Solaris has closedir.
3285
a0d0b563
JD
32862010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3287
3288 * xsettings.c (read_and_apply_settings): Check if current_font is
3289 NULL before strcmp (Bug#6001).
3290
56bae7c7
DN
32912010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3292
3293 Clean up HP-UX files.
3294 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3295 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3296 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3297 * s/hpux10-20.h: ... to the only user, here.
3298
372b7a95
EZ
32992010-04-21 Eli Zaretskii <eliz@gnu.org>
3300
3301 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3302 use buffer-local values of paragraph-start and paragraph-separate.
3303 <paragraph_start_re, paragraph_separate_re>: Rename from
3304 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3305 (Bug#5992)
3306
f904c0f9
JD
33072010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3308
3309 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3310 current_tool_bar_style are new.
3311 (store_config_changed_event): Rename from store_font_changed_event.
3312 (XSETTINGS_TOOL_BAR_STYLE): New define.
3313 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3314 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3315 HAVE_XFT.
3316 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3317 store_config_changed_event.
f904c0f9
JD
3318 (parse_settings): Rename from parse_xft_settings. Read
3319 non-xft xsettings outside #ifdef HAVE_XFT.
3320 (read_settings): Renamed from read_xft_settings.
3321 (apply_xft_settings): Take current settings as parameter. Do not
3322 call read_(xft)_settings.
3323 (read_and_apply_settings): New function.
3324 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3325 read_and_apply_settings if there are settings to be read.
3326 (init_xsettings): Renamed from init_xfd_settings.
3327 Call read_and_apply_settings unconditionally.
3328 (xsettings_initialize): Call init_xsettings.
3329 (Ftool_bar_get_system_style): New function.
3330 (syms_of_xsettings): Define Qmonospace_font_name and
3331 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3332 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3333 dynamic-setting.
31a01b90 3334 Move misplaced HAVE_GCONF
f904c0f9
JD
3335
3336 * xsettings.h (Ftool_bar_get_system_style): Declare.
3337
3338 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3339 Qtext, Qboth, Qboth_horiz are new.
3340 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3341 Vtool_bar_style, tool_bar_max_label_size.
3342
3343 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3344
3345 * keyboard.c: QClabel is new.
3346 (parse_tool_bar_item): Take out QClabel from tool bar items.
3347 Try to construct a label if ther is no QClabel.
3348 (syms_of_keyboard): Intern :label as QClabel.
3349
3350 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3351 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3352 New.
3353
3354 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3355 dynamic-setting.el.
3356
3357 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3358 (xg_make_tool_item, xg_show_toolbar_item): New function.
3359 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3360 Call xg_make_tool_item to make a tool bar item.
3361 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3362
3363 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3364 into account for toolbars.
3365
c632dfda
JD
33662010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3367
3368 * data.c (make_blv): Declarations before code (Bug#5993).
3369
10efe302
GM
33702010-04-21 Glenn Morris <rgm@gnu.org>
3371
3372 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3373 Define using autoconf, not cpp.
3374 (LIBXSM): New variable, set by autoconf.
3375 (LIBXT): Use $LIBXSM.
3376
4285ac5a
DN
33772010-04-21 Dan Nicolaescu <local_user@dannlt>
3378
3ec759e7
DN
3379 Remove NOMULTIPLEJOBS, unused.
3380 * s/template.h (NOMULTIPLEJOBS):
3381 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3382
4285ac5a
DN
3383 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3384 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3385 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3386 detects -znocombreloc and passes it to the linker
3387 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3388
2807228d
GM
33892010-04-21 Glenn Morris <rgm@gnu.org>
3390
3391 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3392
574c05e2
KK
33932010-04-21 Karel Klíč <kklic@redhat.com>
3394
3395 * Makefile.in (LIBSELINUX_LIBS): New.
3396 (LIBES): Add $LIBSELINUX_LIBS.
3397 * eval.c, lisp.h (call7): New function.
3398 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3399 (Ffile_selinux_context, Fset_file_selinux_context):
3400 New functions.
3401 (Fcopy_file): New parameter preserve-selinux-context.
3402 (Frename_file): Preserve selinux context when renaming by copy-file.
3403
91eac4bb 34042010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3405 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3406
50426a04
JB
3407 Don't depend on cm.c or termcap.c on Windows, use stubs.
3408 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3409 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3410 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3411 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3412 (sys_tputs, sys_tgetstr): New stubs.
3413 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3414 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3415
938efb77
JB
34162010-04-20 Juanma Barranquero <lekktu@gmail.com>
3417
3418 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3419
b4bf28b7
SM
34202010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3421
8b1e1112
SM
3422 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3423 Just signal a warning rather than an error when inside a let.
3424 (Fmake_variable_frame_local): Add the same test.
3425
933ac235
SM
3426 * font.c (syms_of_font): Make the style table vars read-only.
3427
b4bf28b7
SM
3428 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3429 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3430
3431 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3432
93d68d0c
EZ
34332010-04-20 Eli Zaretskii <eliz@gnu.org>
3434
3435 Fix R2L paragraph display on TTY.
3436
3437 * xdisp.c (unproduce_glyphs): New function.
3438 (display_line): Use it when produced glyphs are discarded from R2L
3439 glyph rows.
3440 (append_composite_glyph): In R2L rows, prepend the glyph rather
3441 than appending it.
3442
3443 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3444 rather than append it. Set up the resolved_level and bidi_type
3445 attributes of the appended glyph.
283ccc18
EZ
3446 (produce_special_glyphs): Mirror the backslash continuation
3447 character in R2L lines.
93d68d0c 3448
283ccc18 3449 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3450
283ccc18
EZ
3451 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3452 append_stretch_glyph.
3453 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3454 off-by-one error in computing x at end of text in the row.
3455 (append_stretch_glyph): In reversed row, prepend the glyph rather
3456 than append it. Set resolved_level and bidi_type of the glyph.
3457 (extend_face_to_end_of_line): If the row is reversed, prepend a
3458 stretch glyph whose width is such that the rightmost glyph will be
3459 drawn at the right margin of the window. Fix off-by-one error on
3460 TTY frames in testing whether a line needs face extension. Fix
3461 face extension at ZV. If this is the last glyph row, use
3462 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3463 region face.
3464 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3465 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3466 row->continuation_lines_width.
283ccc18
EZ
3467 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3468 are at ZV. Fixes a crash when reseated to ZV by
3469 try_window_reusing_current_matrix.
45903529
EZ
3470 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3471 which happens with R2L glyph rows. Fixes a crash when inserting a
3472 character at end of an R2L line.
283ccc18
EZ
3473 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3474 treat them as having zero-width characters. Improve comments.
3475 Don't reverse pos_before and pos_after for reversed glyph rows.
3476 Set cursor.x to negative value when the cursor might be on the
3477 left fringe.
3478 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3479 left fringe, not the right one.
f951a506
EZ
3480 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3481 (erase_phys_cursor): For reversed cursor_row, support cursor on
3482 the left fringe.
3483
283ccc18
EZ
3484 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3485 of continuation indicators on the fringes.
3486 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3487 left fringe.
3488
f951a506
EZ
3489 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3490 draw cursor on the left fringe.
3491
3492 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3493 cursor on the left fringe.
3494
f951a506
EZ
3495 * dispnew.c (update_text_area): Handle reversed desired rows when
3496 the cursor is on the left fringe.
3497 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3498 below, not by 0, for when the cursor is on the left fringe.
3499
3bb49aaf
JD
35002010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3501
3502 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3503 widget is a scrollbar.
3504
c0be27fd
KH
35052010-04-20 Kenichi Handa <handa@m17n.org>
3506
3507 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3508 only when the arg CHARSET_LIST is nil.
3509
ce5b453a
SM
35102010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3511
3512 Make variable forwarding explicit rather the using special values.
3513 Basically, this makes the structure of buffer-local values and object
3514 forwarding explicit in the type of Lisp_Symbols rather than use
3515 special Lisp_Objects for that. This tends to lead to slightly more
3516 verbose code, but is more C-like, simpler, and makes it easier to make
3517 sure we handled all cases, among other things by letting the compiler
3518 help us check it.
3519 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3520 Removing forwarding objects.
3521 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3522 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3523 explicit rather than hiding them inside Lisp_Object "values".
3524 (XFWDTYPE): New macro.
3525 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3526 (XBUFFER_LOCAL_VALUE): Remove.
3527 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3528 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3529 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3530 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3531 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3532 Remove the Lisp_Misc_* header.
3533 (struct Lisp_Buffer_Local_Value): Redefine.
3534 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3535 (struct Lisp_Misc_Any): Add filler to get the right size.
3536 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3537 Lisp_Intfwd.
3538 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3539 (DEFVAR_KBOARD): Allocate a forwarding object.
3540 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3541 (let_shadows_global_binding_p): New function.
3542 (union Lisp_Val_Fwd): New type.
3543 (make_blv): New function.
3544 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3545 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3546 (swap_in_symval_forwarding, find_symbol_value, Fset)
3547 (let_shadows_buffer_binding_p, set_internal, default_value)
3548 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3549 (Fkill_local_variable, Fmake_variable_frame_local)
3550 (Flocal_variable_p, Flocal_variable_if_set_p)
3551 (Fvariable_binding_locus):
3552 * xdisp.c (select_frame_for_redisplay):
3553 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3554 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3555 * frame.c (store_frame_param):
3556 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3557 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3558 value structure.
3559 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3560 (clone_per_buffer_values): Only adjust markers into the current buffer.
3561 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3562 (Fbuffer_local_value, set_buffer_internal_1)
3563 (swap_out_buffer_local_variables):
3564 Adapt to the new symbol value structure.
3565 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3566 (defvar_per_buffer): Take a new arg for the fwd object.
3567 (buffer_lisp_local_variables): Return a proper alist (different fix
3568 for bug#4138).
3569 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3570 (Fgarbage_collect): Don't handle buffer_defaults specially.
3571 (mark_object): Handle new symbol value structure rather than the old
3572 special Lisp_Misc_* objects.
3573 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3574 * term.c (set_tty_color_mode):
3575 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3576 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3577 a buffer_local_flags.
3578 * print.c (print_object): Get rid of impossible forwarding objects.
3579
fd3998ff
EZ
35802010-04-19 Eli Zaretskii <eliz@gnu.org>
3581
3582 * bidi.c (bidi_get_type, bidi_get_category)
3583 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3584 (bidi_type_of_next_char, bidi_level_of_next_char):
3585 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3586
e42cd1a7
JB
35872010-04-19 Juanma Barranquero <lekktu@gmail.com>
3588
3589 * dired.c (Ffile_attributes): Fix typo in docstring.
3590
6e104790 35912010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3592
3593 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3594 NSInteger (Bug#5811).
3595
6e104790 35962010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3597
3598 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3599 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3600
6e104790 36012010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3602
3603 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3604
6e104790
SM
36052010-04-19 Chong Yidong <cyd@stupidchicken.com>
3606
3607 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3608 terminal frames (Bug#5837).
3609
37dcfea0
EZ
36102010-04-19 Eli Zaretskii <eliz@gnu.org>
3611
d1da276f
EZ
3612 * .gdbinit (xsubchartable): New command.
3613
37dcfea0
EZ
36142010-04-19 Eli Zaretskii <eliz@gnu.org>
3615
3616 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3617 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3618 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3619 and
3620 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3621
e9515805
SM
36222010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3623
3624 * alloc.c (Fpurecopy): Hash-cons if requested.
3625 (syms_of_alloc): Update purify-flag docstring.
3626
22aa44a8
JD
36272010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3628
3629 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3630 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3631
ebb5722e
EZ
36322010-04-17 Eli Zaretskii <eliz@gnu.org>
3633
3634 Fix a crash when an NSM character is inserted at BEGV.
3635
3636 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3637 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3638 NEUTRAL_B or UNKNOWN_BT.
3639
0f4442ef
EZ
36402010-04-16 Eli Zaretskii <eliz@gnu.org>
3641
3642 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3643 other rows with cursor unless they are different from this row and
3644 this row is part of a continued line. (Bug#5943)
3645
7d4e45f8
DN
36462010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3647
3648 * s/freebsd.h: Restore osreldate.h include.
3649 Suggested by Naohiro Aota.
3650
5ba5ec85
J
36512010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3652
3653 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3654
20af301d
CY
36552010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3656
3657 * s/cygwin.h: Avoid linking against static libgcc.
3658
a4b000fb
JL
36592010-04-15 Juri Linkov <juri@jurta.org>
3660
3661 * window.c: Add Qscroll_command.
3662 Remove Vscroll_preserve_screen_position_commands.
3663 (window_scroll_pixel_based, window_scroll_line_based): Check the
3664 `scroll-command' property on the last command instead of searching
3665 the last command in Vscroll_preserve_screen_position_commands.
3666 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3667 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3668 (scroll-preserve-screen-position): Doc fix.
3669 (Vscroll_preserve_screen_position_commands): Remove variable.
3670
bc319ba4
DN
36712010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3672
6bb24457
DN
3673 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3674
19d4c244
DN
36752010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3676
3677 Reduce cpp use in Makefile.in.
3678 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3679 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3680 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3681 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3682 (CRT0_COMPILE): Remove, inline it in the only user.
3683
32129746
JL
36842010-04-14 Juri Linkov <juri@jurta.org>
3685
3686 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3687 `scroll-up-command' and `M-v' from `scroll-down' to
3688 `scroll-down-command'.
3689
9013a7f8
JL
36902010-04-14 Juri Linkov <juri@jurta.org>
3691
3692 * window.c (Vscroll_preserve_screen_position_commands): New variable
3693 with the default value as the list of Qscroll_down and Qscroll_up.
3694 (window_scroll_pixel_based, window_scroll_line_based): Search the
3695 last command in the list Vscroll_preserve_screen_position_commands
3696 instead of comparing with Qscroll_up and Qscroll_down.
3697
4bef8d26
JD
36982010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3699
92848133
JD
3700 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3701 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3702 does that.
3703
4bef8d26
JD
3704 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3705 to zero.
3706
58b963f7
SM
37072010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3708
84164a0d
SM
3709 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3710
2b0a91e7
SM
3711 Try to solve the problem of spurious EOF chars in long lines of text
3712 sent to interactive subprocesses.
3713 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3714 (system_process_attributes): Remove unused var `ttotal'.
3715 * process.c (send_process): Don't bother breaking long line with EOF
3716 chars when talking to ttys any more.
3717 (wait_reading_process_output): Output a warning when called in such
3718 a way that it could block without being interruptible.
3719
58b963f7
SM
3720 Try to detect file modification within the same second.
3721 * buffer.h (struct buffer): New field modtime_size.
3722 * buffer.c (reset_buffer): Initialize it.
3723 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3724 (Fverify_visited_file_modtime): Check it.
3725 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3726 (Fset_visited_file_modtime): Set (or clear) it.
3727
01f5787b
SM
37282010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3729
3730 * process.c (status_notify): Remove unused var `ro'.
3731
83725342
JD
37322010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3733
3734 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3735 more than one visual (Bug#5938).
3736
b9465836
DN
37372010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3738
50426a04
JB
3739 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3740 Undefine.
b9465836 3741
8d9c8ece
DN
37422010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3743
b1f52161
DN
3744 Remove C_SWITCH_SYSTEM_TEMACS.
3745 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3746 (malloc, realloc, free): Use emacs, not temacs for conditional
3747 definition.
3748
3749 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3750 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3751
8d9c8ece
DN
3752 Use autoconf, not cpp for some variables.
3753 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3754 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3755 (ALL_CFLAGS): Use them as make variables.
3756 (really-lwlib, really-oldXMenu): Do not pass them.
3757
1ecb2d3f
JD
37582010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3759
3760 * xmenu.c (apply_systemfont_to_dialog): New.
3761 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3762
3a4fa2f2
SM
37632010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3764
97e53006
SM
3765 * process.c (exec_sentinel): Preserve current-buffer.
3766
3a4fa2f2
SM
3767 * process.c (read_process_output): Move the save-current-buffer to
3768 apply to both the filter and the non-filter branches.
3769
88df7221
DN
37702010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3771
3772 * s/msdos.h (UNEXEC): New definition.
3773
5634ff85
YM
37742010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3775
6eff5c3d
YM
3776 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3777 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3778
3779 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3780 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3781 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3782 TRY_WINDOW_CHECK_MARGINS.
3783
3784 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3785 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3786 width only when it is for padding.
5634ff85 3787
b13aef54
J
37882010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3789
3790 * xfns.c (Fx_show_tip): Call try_window in a loop until
3791 fonts_changed_p is zero (Bug#2423).
3792
21d28484
EZ
37932010-04-08 Eli Zaretskii <eliz@gnu.org>
3794
3795 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3796 the end of TEXT_AREA. (Bug#5856)
3797
0269ef77
JD
37982010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3799
3800 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3801 HAVE_GCONF.
3802
5930fe97
EZ
38032010-04-08 Eli Zaretskii <eliz@gnu.org>
3804
3805 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3806 prev.orig_type, for resolving type of NSM. (Bug#5858)
3807
99852628
JD
38082010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3809
3810 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3811 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3812 in current_font.
3813 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3814 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3815 New functions.
3816 (syms_of_xsettings): Initialize current_font.
3817 defsubr Sfont_get_system_normal_font.
99852628
JD
3818
3819 * xsettings.h (Ffont_get_system_normal_font,
3820 xsettings_get_system_normal_font): Declare.
3821
3822 * xfns.c (extern xlwmenu_default_font): Remove.
3823 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3824 to xlwmenu.c.
3825
3826 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3827 menu items in UTF-8.
3828
3829 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3830 (apply_systemfont_to_menu): New function.
3831 (set_frame_menubar, create_and_show_popup_menu): Call
3832 apply_systemfont_to_menu.
3833
7fc874c4
J
38342010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3835
3836 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3837 FRAME_LINE_TO_PIXEL_Y.
3838
3839 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3840 pixelwidth/height.
3841
863bf481
DN
38422010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3843
5e5a3b92
DN
3844 Simplify code for HP machines.
3845 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3846 for GNU_LINUX, not needed.
3847 (UNEXEC, NEED_BSDTTY): Move definitions...
3848 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3849
863bf481
DN
3850 * m/iris4d.h (UNEXEC): Move definition ...
3851 * s/irix6-5.h (UNEXEC): ... here.
3852
3e6bec3b
JD
38532010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3854
3855 * xfns.c (set_machine_and_pid_properties): New function.
3856 (Fx_create_frame): Call set_machine_and_pid_properties.
3857
2912322b
SM
38582010-04-03 Eli Zaretskii <eliz@gnu.org>
3859
1502b819
EZ
3860 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3861 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3862 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3863
2912322b
SM
3864 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3865 in this function. (Bug#5703)
3866
38672010-04-03 Chong Yidong <cyd@stupidchicken.com>
3868
3869 * nsterm.h: Fix last change.
3870
c435b432
DN
38712010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3872
a568f507
DN
3873 * m/intel386.h (NO_REMAP): Move definition ...
3874 * s/msdos.h (NO_REMAP): ... here.
3875
4cd9f6c2
DN
3876 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3877
c435b432
DN
3878 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3879 used on those platforms.
3880
42a2c622
DN
38812010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3882
3883 Remove extern errno declarations.
3884 * xterm.c:
3885 * xrdb.c:
3886 * w32term.c:
3887 * unexec.c:
3888 * unexaix.c:
3889 * sysdep.c:
3890 * process.c:
3891 * lread.c:
3892 * keyboard.c:
3893 * floatfns.c:
3894 * filelock.c:
3895 * fileio.c:
3896 * emacs.c (main):
3897 * ecrt0.c:
3898 * dispnew.c:
3899 * callproc.c:
3900 * buffer.c: Remove errno extern declarations.
3901 * s/netbsd.h (NEED_ERRNO): Remove.
3902
8224f93d
DN
39032010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3904
3905 Remove all uses of LIBX11_SYSTEM.
3906 * Makefile.in (LIBX11_SYSTEM): Remove.
3907 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3908 instead.
3909
814062c7
EZ
39102010-04-01 Eli Zaretskii <eliz@gnu.org>
3911
ed68db4d
EZ
3912 Remove support for DJGPP v1.x (bug#5813).
3913
3914 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3915 * s/msdos.h:
3916 * unexec.c (make_hdr, copy_text_and_data):
3917 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3918 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3919 (IT_set_terminal_modes, __write, _rename, gethostname)
3920 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3921 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3922 the value of __DJGPP__.
ed68db4d
EZ
3923 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3924 compatibility code.
8224f93d
DN
3925 * lread.c:
3926 * gmalloc.c (memalign):
3927 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3928 * emacs.c (main):
3929 * dosfns.c (init_dosfns):
ed68db4d
EZ
3930 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3931
52f4d8d5
EZ
39322010-04-01 Eli Zaretskii <eliz@gnu.org>
3933
814062c7
EZ
3934 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3935 string with `cursor' property comes from an `after-string'
3936 overlay. (Bug#5816)
3937
0dc2e11d
GM
39382010-04-01 Glenn Morris <rgm@gnu.org>
3939
3940 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3941 Define as Makefile variables.
3942 (LIBX): Use above variables rather than directly using autoconf.
3943
1d29df59
DN
39442010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3945
3946 Clean up BSD_SYSTEM use.
3947 * xterm.c:
3948 * process.c:
3949 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3950 for including <sys/ioctl.h>.
3951 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3952 code is only used for MSDOS.
3953
1546c559
JL
39542010-03-31 Juri Linkov <juri@jurta.org>
3955
3956 * image.c: Add `Qextension_data'.
3957 (syms_of_image): Initialize and staticpro `Qextension_data'.
3958 (Fimage_metadata): Rename from `Fimage_extension_data'.
3959 (gif_load): Put GIF extension data to the property
3960 `Qextension_data'.
3961
6521c534
CY
39622010-03-31 Chong Yidong <cyd@stupidchicken.com>
3963
3964 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3965 * nsterm.h: Fix prototype.
3966
52c30783
EZ
39672010-03-31 Eli Zaretskii <eliz@gnu.org>
3968
3969 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3970 trailing whitespace in right-to-left rows.
3971
855a0da7
SM
39722010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3973
3974 Get rid of the direct_output optimizations.
3975 * keyboard.c (nonundocount): Remove extern declaration.
3976 (command_loop_1): Remove brittle optimisation for cheap and
3977 common operations.
3978 * xdisp.c (redisplay_internal): Don't bother checking
3979 redisplay_performed_directly_p any more.
3980 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3981 any more.
3982 * dispnew.c (redisplay_performed_directly_p)
3983 (direct_output_for_insert, direct_output_forward_char):
3984 * dispextern.h (redisplay_performed_directly_p)
3985 (direct_output_for_insert, direct_output_forward_char): Remove.
3986 * cmds.c (nonundocount): Make it static.
3987
85738751 39882010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3989
3990 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3991
85738751 39922010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3993
3994 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3995 invisible (Bug#5766).
3996
85738751 39972010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3998
855a0da7
SM
3999 * xdisp.c (x_consider_frame_title, update_window_cursor):
4000 Remove HAVE_NS conditionals.
194d44e7 4001 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4002
4003 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4004 filename for the title.
4005 (ns_set_doc_edited): Do nothing if the selected window is a
4006 minibuffer window.
4007
4008 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4009 ns_set_doc_edited.
4010
4011 * nsterm.m: Remove unneeded prototype.
4012
85738751 40132010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4014
4015 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4016 in the DOC file. (Bug#5336)
4017
85738751 40182010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4019
4020 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4021
75d1428c
SM
40222010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4023
4024 * window.c (keys_of_window): Remove redundant/overridden bindings.
4025
82043cfb
EZ
40262010-03-30 Eli Zaretskii <eliz@gnu.org>
4027
4028 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4029 Restore original behavior when the iterator is not bidi_p.
4030
b5dd0ae7
DN
40312010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4032
4033 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4034
bd924a5d
EZ
40352010-03-30 Eli Zaretskii <eliz@gnu.org>
4036
4037 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4038 are outside the range of cached character positions.
4039
3580374b
JB
40402010-03-30 Juanma Barranquero <lekktu@gmail.com>
4041
4042 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4043
a7b02820
EZ
40442010-03-30 Eli Zaretskii <eliz@gnu.org>
4045
4046 Initial support for bidirectional editing.
4047
4048 * Makefile.in (obj): Include bidi.o.
4049 (bidi.o): New target.
4050
4051 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4052 ($(BLD)/bidi.$(O)): New target.
4053
4054 * bidi.c: New file.
4055
4056 * buffer.h (struct buffer): New members bidi_display_reordering
4057 and bidi_paragraph_direction.
4058
4059 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4060 and bidi_paragraph_direction.
4061 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4062 and bidi-paragraph-direction.
4063 (Fbuffer_swap_text): Swap the values of
4064 bidi_display_reordering and bidi_paragraph_direction.
4065
4066 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4067 (bidi_type_t, bidi_dir_t): New types.
4068 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4069 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4070 prev_stop, base_level_stop, and eol_pos.
4071 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4072 (IT_STACK_SIZE): Enlarge to 5.
4073 (struct glyph_row): New member reversed_p.
4074 <string_buffer_position>: Update prototype.
4075 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4076 glyph_row if bidi_it.paragraph_dir == R2L.
4077 (struct glyph): New members resolved_level and bidi_type.
4078
4079 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4080 processing or buffer's direction is right-to-left.
4081 (prepare_desired_row): Preserve the reversed_p flag.
4082 (row_equal_p): Compare the reversed_p attributes as well.
4083
4084 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4085 bidi_init_it and set it->paragraph_embedding from the current
4086 buffer's value of bidi_paragraph_direction.
4087 (reseat_1): Initialize bidi_it.first_elt.
4088 (set_iterator_to_next, next_element_from_buffer): Use the value of
4089 paragraph_embedding to determine the paragraph direction.
4090 (set_iterator_to_next): Under bidi reordering, call
4091 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4092 new_paragraph flag is set in the bidi iterator.
4093 (next_element_from_buffer): If bidi_it.first_elt is set,
4094 initialize paragraph direction and find the first character to
4095 display in the visual order. If reseated to a middle of a line,
4096 prime the bidi iterator starting at the line's beginning. Handle
4097 the situation where we overstepped stop_charpos due to
4098 non-linearity of the bidi iteration. Likewise for when we back up
4099 beyond the previous stop_charpos. When moving across stop_charpos,
4100 record it in prev_stop.
4101 (display_line): Set row->end and it->start for the next row to the
4102 next character in logical order. Always extend reversed_p rows to
4103 the end of line, even if they end at ZV. Copy the reversed_p flag
4104 to the next glyph row. Keep calling set_cursor_from_row for
4105 bidi-reordered rows even if we already have a possible candidate
4106 for cursor position. Set row_end after all the row's glyphs have
4107 been produced, by looping over the glyphs. Record the position
4108 after EOL in it->eol_pos, and use it to set end_pos of the last
4109 row produced for a continued line.
4110 <Qright_to_left, Qleft_to_right>: New variables.
4111 (syms_of_xdisp): Initialize and staticpro them.
4112 (string_buffer_position_lim): New function.
4113 (string_buffer_position): Most of code moved to
4114 string_buffer_position_lim. Last argument and return value are
4115 now EMACS_INT; all callers changed.
4116 (set_cursor_from_row): Rewritten to support bidirectional text and
4117 reversed glyph rows.
4118 (text_outside_line_unchanged_p, try_window_id): Disable
4119 optimizations if we are reordering bidirectional text and the
4120 paragraph direction can be affected by the change.
4121 (append_glyph, append_composite_glyph)
4122 (produce_image_glyph, append_stretch_glyph): Set the
4123 resolved_level and bidi_type members of each glyph.
4124 (append_glyph): If the glyph row is reversed, prepend the glyph
4125 rather than appending it.
4126 (handle_stop_backwards): New function.
4127 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4128 (reseat): call handle_stop_backwards to recompute prev_stop and
4129 base_level_stop for the new position.
4130 (handle_invisible_prop): Under bidi iteration, skip invisible text
4131 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4132 paragraph direction. Update IT->prev_stop after skipping
4133 invisible text.
4134 (move_it_in_display_line_to): New variables prev_method
4135 and prev_pos. Compare for strict equality in
4136 BUFFER_POS_REACHED_P.
4137 (try_cursor_movement): Examine all the candidate rows that occlude
4138 point, to return the best match. If rows are bidi-reordered
4139 and point moved backwards, back up to the row that is not a
4140 continuation line, and start looking for a suitable row from
4141 there.
4142
4143 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4144 rather than appending, if the glyph_row's reversed_p flag is set.
4145 Set the resolved_level and bidi_type members of each glyph.
4146
4147 * .gdbinit (pbiditype): New command.
4148 (pgx): Use it to display bidi level and type of the glyph.
4149 (pitx): Display some bidi information about the iterator.
4150 (prowlims, pmtxrows): New commands.
4151
32a8894e
DN
41522010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4153
4154 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4155 * s/usg5-4.h (LIBS_DEBUG):
4156 * s/irix6-5.h (C_DEBUG_SWITCH):
4157 * s/gnu-linux.h (LIBS_DEBUG):
4158 * s/darwin.h (LIBS_DEBUG):
4159 * s/bsd-common.h (LIBS_DEBUG):
4160 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4161 * m/iris4d.h (LIBS_DEBUG):
4162 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4163
4164 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4165 (LIBS_DEBUG): Remove definition.
4166
649dbf36
CY
41672010-03-27 Chong Yidong <cyd@stupidchicken.com>
4168
4169 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4170 Windows.
4171
cad4261f
YM
41722010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4173
4174 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4175 `connect' (Bug#5723).
4176
cd591dbc
HE
41772010-03-25 Helmut Eller <eller.helmut@gmail.com>
4178
4179 * process.c (Fmake_network_process): Call `select' for interrupted
4180 `connect' rather than creating new socket (Bug#5173).
4181
e867cb5d 41822010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4183
4184 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4185
4186 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4187
4188 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4189
e867cb5d 41902010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4191
4192 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4193 XLoadQueryFont.
4194
e867cb5d 41952010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4196
4197 * coding.c (decode_coding_ccl): Fix previous change for the
4198 multibyte case.
fb608df3
KH
4199 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4200 case that the output buffer is fullfilled.
4201 (encode_coding): Setup ccl program here.
fbdc1721 4202
5845f0ed
DN
42032010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4204
814fb708
DN
4205 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4206
5845f0ed
DN
4207 Simplify LIBS_MACHINE definitions.
4208 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4209 * m/iris4d.h (LIBS_MACHINE): Likewise.
4210 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4211 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4212 * s/netbsd.h: Remove commented out code.
5845f0ed 4213
b7064064
DN
42142010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4215
df7734b2
DN
4216 Remove dead code dealing with POSIX_SIGNALS.
4217 * atimer.c (set_alarm): Remove dead code, all USG systems define
4218 POSIX_SIGNALS.
4219 * data.c (arith_error): Likewise.
4220 * keyboard.c (input_available_signal, handle_user_signal)
4221 (interrupt_signal): Likewise.
4222 * process.c (sigchld_handler): Likewise.
4223 (create_process): Remove if 0 code. Remove HPUX conditional when
4224 !defined (POSIX_SIGNALS), it cannot be true.
4225 * syssignal.h: Remove USG5_4 and USG conditionals when
4226 !POSIX_SIGNALS, they cannot be true.
4227
b7064064
DN
4228 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4229 NO_SOCK_SIGIO, not used anymore.
4230
55da5ee3
DN
42312010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4232
0be96e3a
DN
4233 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4234 support vax on BSDs.
4235
55da5ee3
DN
4236 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4237 * s/aix4-2.h (ORDINARY_LINK): ... here.
4238
c0282183
AS
42392010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4240
82c3d67a
AS
4241 * Makefile.in (abs_builddir): Define.
4242 (bootstrap_exe): Use it.
4243 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4244
3613edce
SM
42452010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4246
4247 * Makefile.in (bootstrap_exe): Use an absolute name.
4248
7f110ddc
DN
42492010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4250
22e87574
DN
4251 Remove support for old GNU/Linux using libc version 5.
4252 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4253 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4254
05a670e6
DN
4255 Consolidate redundant definitions in s/bsd-common.h.
4256 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4257 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4258 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4259 doing it in all files that include this one.
4260 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4261 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4262 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4263 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4264 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4265 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4266 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4267 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4268 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4269
2968f561
DN
4270 Consolidate redundant definitions.
4271 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4272 it's undefined in all files that include this one.
4273 (POSIX_SIGNALS): Define here instead of doing it in all files that
4274 include this one.
4275 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4276 (POSIX_SIGNALS): Do not define.
4277 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4278 (POSIX_SIGNALS): Do not define.
4279 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4280 (POSIX_SIGNALS): Do not define.
4281
15d25dc0
DN
4282 Remove support for old UNIX System V systems.
4283 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4284 * s/usg-5-4-2.h: Remove.
4285
07e339e4
DN
4286 Remove support for Solaris on PPC and for old versions.
4287 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4288 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4289 that cancel each other.
4290 * s/sol2-3.h:
4291 * s/sol2-4.h:
4292 * s/sol2-5.h: Remove.
4293 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4294 (NO_REMAP): Remove, unused.
4295 (UNEXEC): Move definition ...
4296 * s/aix4-2.h (UNEXEC): ... here.
4297
7f110ddc
DN
4298 * s/openbsd.h: Remove support for non-ELF and for systems that do
4299 not support shared libraries.
4300 * s/netbsd.h:
4301 * s/freebsd.h: Likewise.
4302
605f35cd
DN
43032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4304
4305 Remove non-working support for lynxos 3.0.
4306 * s/lynxos.h: Remove file.
4307
4308 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4309 COFF_BSD_SYMBOLS, nothing defines it anymore.
4310
aed71cf4
DN
43112010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4312
4313 Remove obsolete uses of HAVE_SHM.
4314 * emacs.c (standard_args):
4315 (Fdump_emacs):
4316 (syms_of_emacs): Remove code depending on HAVE_SHM.
4317
4318 * alloc.c: Remove HAVE_SHM dependent definition.
4319
4320 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4321
aded53ff
GM
43222010-03-18 Glenn Morris <rgm@gnu.org>
4323
17284745
GM
4324 * emacs.c (USAGE4): Hard-code bug address.
4325 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4326 (bug_reporting_address): Remove.
4327 (main): Don't call bug_reporting_address.
4328
aded53ff
GM
4329 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4330 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4331
303500aa
CY
43322010-03-15 Chong Yidong <cyd@stupidchicken.com>
4333
4334 * xfns.c (Fx_create_frame):
4335 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4336 on left.
4337
cef3058f
CY
43382010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4339
4340 * editfns.c (Fformat): Account for string precision when computing
4341 field width (Bug#5710).
4342
a647d59d
CY
43432010-03-12 Chong Yidong <cyd@stupidchicken.com>
4344
4fa42018
CY
4345 * xfns.c (Fx_create_frame): Set default to Qright.
4346
a647d59d
CY
4347 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4348 all window systems.
4349
6da23aaa
EZ
43502010-03-12 Eli Zaretskii <eliz@gnu.org>
4351
a96f6398 4352 These changes remove termcap.c from the build on Posix platforms.
83d02def 4353 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4354 (MSDOS_OBJ): ...to here.
4355 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4356 now identical to when LIBS_TERMCAP is defined.
4357
4358 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4359
4360 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4361
a96f6398 4362 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4363
288f9fc0
CY
43642010-03-10 Chong Yidong <cyd@stupidchicken.com>
4365
4366 * Branch for 23.2.
4367
d48cd3f4
SM
43682010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4369
4370 Cleanup setup of gl_state in various parts of the code.
4371 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4372 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4373 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4374 (skip_chars):
4375 * regex.c (regex_compile): Use it.
4376 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4377 it's now set in regex_compile when/if we need it.
4378
618db430
SM
43792010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4380
c0335e02
SM
4381 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4382 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4383 (QUIT): Use it to consolidate code and remove redundancy.
4384 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4385
254c06a8
SM
4386 * regex.c (regex_compile): Setup gl_state as well.
4387
618db430
SM
4388 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4389 (in_classes): Use CONSP before XCAR/XCDR.
4390
233f0c9f
CY
43912010-03-03 Chong Yidong <cyd@stupidchicken.com>
4392
4393 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4394 definitions, so that keyboard macros are correctly handled
4395 (Bug#5481).
4396
75f80e63
EZ
43972010-03-02 Eli Zaretskii <eliz@gnu.org>
4398
4399 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4400 text that could be relocated inside the call to emacs_mule_char.
4401 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4402 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4403
dcfb9bc4
KH
44042010-03-02 Kenichi Handa <handa@m17n.org>
4405
fc9a17bc
KH
4406 * character.c (parse_str_as_multibyte): Fix handling of the
4407 multibyte form of raw-bytes.
4408 (str_as_multibyte): Likewise.
4409
dcfb9bc4
KH
4410 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4411 form of raw-bytes.
4412
412c01b6
CY
44132010-02-28 Chong Yidong <cyd@stupidchicken.com>
4414
4415 * charset.c (load_charset_map_from_file)
4416 (load_charset_map_from_vector): Zero out allocated
4417 charset_map_entries before using them.
4418
df7e1ea0
AS
44192010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4420
4421 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4422
fe69a722
CY
44232010-02-27 Chong Yidong <cyd@stupidchicken.com>
4424
4ed28cf4
CY
4425 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4426 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4427
7379cfce
KH
44282010-02-26 Kenichi Handa <handa@m17n.org>
4429
f88cc4d6
KH
4430 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4431
7379cfce
KH
4432 * xdisp.c (reseat_to_string): Fix previous change.
4433
cf2fdcfb
CY
44342010-02-26 David Reitter <david.reitter@gmail.com>
4435
4436 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4437 Lisp_Object (Bug#4736).
4438
cc6c7c75
KH
44392010-02-25 Kenichi Handa <handa@m17n.org>
4440
4441 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4442
32e737d7
JD
44432010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4444
4445 * xterm.c (XTflash): Move declarations before statements.
4446
4447 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4448 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4449 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4450 (xg_create_tool_bar): Remove unused variables.
4451 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4452 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4453
676cae9f
CY
44542010-02-21 Chong Yidong <cyd@stupidchicken.com>
4455
4456 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4457
886cc2b8
SM
44582010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4459
4460 * term.c (fatal): Add a final \n if needed (bug#5596).
4461
ddb2d8e2
CY
44622010-02-18 Chong Yidong <cyd@stupidchicken.com>
4463
4464 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4465
2a4f8d3d
GM
44662010-02-18 Glenn Morris <rgm@gnu.org>
4467
4468 * callint.c (Finteractive): Doc fix.
4469
ebaf11b6
KH
44702010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4471
886cc2b8
SM
4472 * coding.c (record_conversion_result):
4473 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4474 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4475 memory allocation error.
4476
d0396581
KH
44772010-02-17 Kenichi Handa <handa@m17n.org>
4478
886cc2b8
SM
4479 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4480 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4481 (decode_coding): Setup ccl program here. Keep looping when the
4482 decoder stopped because the output buffer is
4483 fullfilled (bug#5534).
4484
4485 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4486
98599f74
JD
44872010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4488
471e4f04 4489 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4490 bug #5571.
886cc2b8 4491 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4492 overdrawn.
98599f74 4493
182659ae
JD
44942010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4495
4496 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4497 doing_interact here.
4498 (ice_connection_closed): New function.
4499 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4500 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4501 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4502 returns I/O error.
4503 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4504 bug #5512.
4505
9be32c4e 45062010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4507
4508 * nsfont.m (nsfont_open): The system's value for the font descent
4509 is negative, so round it down to avoid clipping.
4510
a2f3eb19
CY
45112010-02-06 Chong Yidong <cyd@stupidchicken.com>
4512
4513 * charset.c (load_charset_map_from_file)
4514 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4515 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4516
3088147c
CY
45172010-02-05 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * charset.c (load_charset_map_from_file): Allocate large
4520 charset_map_entries structure on the heap rather than the stack.
4521 (Bug#5526).
4522
b57d9029
KH
45232010-01-31 Kenichi Handa <handa@m17n.org>
4524
4525 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4526 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4527
c67d885b
CY
45282010-01-31 Chong Yidong <cyd@stupidchicken.com>
4529
4530 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4531 <deactivated@gmail.com> (Bug#3605).
4532
8fab2362
CY
45332010-01-31 David De La Harpe Golden <david@harpegolden.net>
4534
4535 * fileio.c (Frename_file): Correctly rename symlinks to
4536 directories (Bug#5496).
4537
cb2a62f2
CY
45382010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4539
4540 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4541
944c7a26
AS
45422010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4543
4544 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4545
c024ac08
CY
45462010-01-29 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * frame.c (DEFAULT_ROWS): Change default to 35.
4549
4550 * xfns.c (x_default_font_parameter): Change default XFT font to
4551 monospace-10 (Bug#3643).
4552
af93af83
EZ
45532010-01-29 Eli Zaretskii <eliz@gnu.org>
4554
4555 * w32inevt.c (key_event): Remove unnecessary comparison of
4556 event->uChar.AsciiChar with 128.
4557
ca0eb708
CY
45582010-01-28 Chong Yidong <cyd@stupidchicken.com>
4559
b242dbfc
CY
4560 * fileio.c (Frename_file): Fix last change (Bug#5487).
4561
ca0eb708
CY
4562 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4563
4564 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4565
45d45af5
JD
45662010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4567
4568 * xfns.c (Fx_create_frame): Remove window size matching code from
4569 2010-01-15.
a73f9c9d 4570 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4571
7e233730
JR
45722010-01-27 Jason Rumney <jasonr@gnu.org>
4573
4574 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4575 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4576
86e893e3
KH
45772010-01-27 Kenichi Handa <handa@m17n.org>
4578
4579 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4580 pattern string (Bug#4209).
86e893e3 4581
8719abec
CY
45822010-01-27 David De La Harpe Golden <david@harpegolden.net>
4583
4584 * fileio.c (Frename_file): Call copy-directory and
4585 delete-directory for directories, in order to handle cross-device
4586 renaming (Bug#3353).
4587
844794c8
JD
45882010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4589
aa3e13b5 4590 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4591 sizes 24 and 10. Bug #3643.
844794c8 4592
bd4b5750
SM
45932010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4594
8dc1adf6 4595 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4596 * keymap.c (shadow_lookup): Add `remap' arg.
4597 (describe_map, describe_vector): Update calls to shadow_lookup.
4598 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4599 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4600 perform remapping during shadow_lookup check of remapped_sequences.
4601
285d07e2
CY
46022010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4603
4604 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4605 png_check_sig, which has been removed in libpng 1.4.
4606
c6d09b8d
CY
46072010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4608
4609 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4610 lacks this header file).
4611
3d782998
YM
46122010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4613
4614 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4615 as in Emacs 22.
4616
2aff7c53
YM
46172010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4618
4619 * lisp.h (make_pure_string): String pointer arg now points to const.
4620
4621 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4622 args now point to const.
4623
74327f7a
EZ
46242010-01-22 Eli Zaretskii <eliz@gnu.org>
4625
4626 * lread.c (Fload): Don't treat files without .elc extension as
4627 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4628 them. (bug#5303)
4629
4d1e6632
KH
46302010-01-20 Kenichi Handa <handa@m17n.org>
4631
4632 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4633 treat the source as actual byte sequence.
4634
1fdede8f
AM
46352010-01-19 Alan Mackenzie <acm@muc.de>
4636
4637 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4638 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4639 `signal_after_change_p' to `coherent_change_p', and make the
4640 invocation of `modify_region' conditional on it.
4641
67477f30
JD
46422010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4643
4644 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4645 for debug purpose.
4646 (syms_of_xsettings): Declare xft-settings.
4647
244b023e
CY
46482010-01-18 Chong Yidong <cyd@stupidchicken.com>
4649
4650 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4651
617364fe
CY
46522010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4653
4654 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4655
4fe22cdf
CY
46562010-01-16 Chong Yidong <cyd@stupidchicken.com>
4657
4658 * emacs.c (standard_args): Adjust arg priorities to reflect how
4659 they are processed in startup.el.
4660
e118d2be
AS
46612010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4662
4663 * Makefile.in (lisp, shortlisp): Update.
4664
523ae620
SM
46652010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4666
4667 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4668 code, link the new kboard into all_kboard before running Lisp code,
4669 and protect the new terminal with GCPRO (Bug#5365).
4670 (x_term_init): Remove unused var `atom'.
4671 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4672
f0d13888
JD
46732010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4674
4675 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4676 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4677 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4678 this. Bug #3643.
f0d13888 4679
cc320f07
KH
46802010-01-15 Kenichi Handa <handa@m17n.org>
4681
4682 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4683
7ffdf101
CY
46842010-01-15 Chong Yidong <cyd@stupidchicken.com>
4685
4686 * nsterm.m (Qnone): Define.
4687
4688 * nsfns.m (Qnone): Move definition to nsterm.m.
4689
d12bd917
KH
46902010-01-14 Kenichi Handa <handa@m17n.org>
4691
4692 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4693 systems.
4694
d9a7c140
KH
46952010-01-14 Kenichi Handa <handa@m17n.org>
4696
4697 Make auto-composition work on all buffers even if they are
4698 fundamental mode.
4699
4700 * composite.c (Vauto_composition_mode): New variable.
4701 (composition_compute_stop_pos): Check Vauto_composition_mode
4702 instead of Vauto_composition_function.
4703 (composition_adjust_point, Ffind_composition_internal): Likewise.
4704 (syms_of_composite): Declare Lisp variable
4705 "auto-composition-mode" here.
4706
63286bb2
CY
47072010-01-13 Chong Yidong <cyd@stupidchicken.com>
4708
4709 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4710 during call to vendor-specific-keysyms (Bug#5365).
4711
c2623ee7
YM
47122010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4713
4714 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4715 Call SIGNAL_THREAD_CHECK (Bug#5333).
4716
4717 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4718 Call SIGNAL_THREAD_CHECK.
4719
0b5397c2
SM
47202010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4721
4722 Try to fix bug#5314. This is probably not the final word, tho.
4723 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4724 recent-auto-save-p as a side-effect.
4725 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4726 * buffer.c (Fkill_buffer, reset_buffer):
4727 * editfns.c (Fsubst_char_in_region):
4728 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4729 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4730
dc954cb2
KH
47312010-01-13 Kenichi Handa <handa@m17n.org>
4732
4733 Display buffer name, etc. in mode line by composing correctly.
4734
4735 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4736 STRING is not nil.
0b5397c2 4737 (display_mode_element): Adjust for the change of
dc954cb2
KH
4738 decode_mode_spec and display_line.
4739 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4740 (display_string): Handle the case that STRING is non-null and
4741 LISP_STRING is not nil.
4742
0b5397c2
SM
4743 * xterm.c (x_draw_composite_glyph_string_foreground):
4744 Pay attention to s->face->overstrike.
dc954cb2
KH
4745
4746 * composite.c (composition_reseat_it): Don't check PT if STRING is
4747 non nil.
4748
4a00eaca
YM
47492010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4750
4751 * keyboard.c (read_char): Don't apply previous change when current
4752 buffer is unchanged by command execution.
4753
60abb287
JD
47542010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4755
4756 * keyboard.c (read_char): Return after executing from special map.
4757
893db5bc
GM
47582010-01-12 Glenn Morris <rgm@gnu.org>
4759
4760 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4761 bug-gnu-emacs rather than emacs-pretest-bug.
4762
4d03ece0
CY
47632010-01-11 Chong Yidong <cyd@stupidchicken.com>
4764
4765 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4766 initializing the Lisp variables that depend on them.
4767
1df47e38
YM
47682010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4769
4770 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4771 Clear areas that will not be updated after change of menu bar lines.
4772 Clear the menu bar window's current matrix when the window gets empty.
4773
2f1c6384
CY
47742010-01-09 Chong Yidong <cyd@stupidchicken.com>
4775
e398c61c
CY
4776 * intervals.h, textprop.c (extend_property_ranges): Return value
4777 and args changed. Discard properties that begin at or after the
4778 new end (Bug#5306).
4779
4780 * editfns.c (Fformat): Caller changed.
4781
e5a29a10
CY
4782 * nsterm.m (ns_set_default_prefs): Delete function.
4783 (syms_of_nsterm): Initialize ns_command_modifier,
4784 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4785 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4786
2f1c6384
CY
4787 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4788 position (Bug#4040).
4789
d427a9fa
EZ
47902010-01-09 Eli Zaretskii <eliz@gnu.org>
4791
4792 * editfns.c (Ffloat_time): Doc fix.
4793
21b9df2f
JD
47942010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4795
4796 * xfns.c (Fx_create_frame): Don't create frame larger than display
4797 by default bug#3643.
4798
4b00d3b1
YM
47992010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4800
4801 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4802 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4803 windows above internal border.
4804
4805 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4806 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4807 windows above internal border.
4808
4809 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4810 tool bar windows specially.
4811
4812 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4813
4814 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4815 specially.
4816 (XTflash): Take account of menu bar height.
4817
4818 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4819 specially.
4820
5075d853
JD
48212010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4822
ac146f82 4823 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4824 also be true before we can return early (bug #5339).
4825
474217c8
CY
48262010-01-06 David Reitter <david.reitter@gmail.com>
4827
4828 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4829 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4830 (Bug#3233).
4831
c0e6d47d
JD
48322010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4833
d0cf45b7
JD
4834 * font.c (font_open_entity): Enable chache and call cached_font_ok
4835 for the driver if defined.
4836 (QCuser_spec): New symbol.
4837 (font_spec_from_name): Save name as user-spec.
4838 (font_load_for_lface): Keep user-spec instead of name.
4839 (font_open_by_name): Save name as user-spec.
4840 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4841 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4842
4843 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4844 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4845 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4846
4847 * font.h (struct font_driver): Add cached_font_ok.
4848
c0e6d47d
JD
4849 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4850
7c583cd8
JD
48512010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4852
4853 * xterm.c (x_new_font): Move code for setting rows/cols before
4854 resizing ...
ac146f82 4855 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4856
4857 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4858 (xg_frame_resized, xg_frame_set_char_size):
4859 Call xg_clear_under_internal_border.
7c583cd8 4860 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4861
03f77f0a
CY
48622010-01-05 Chong Yidong <cyd@stupidchicken.com>
4863
4864 * keyboard.c (read_key_sequence): Catch keyboard switch after
4865 making a new tty frame (Bug#5095).
4866
2a1ef5be
KH
48672010-01-05 Kenichi Handa <handa@m17n.org>
4868
4869 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4870
e3eb1dae
SM
48712010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4872
4873 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4874 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4875 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4876
777013f2
MA
48772010-01-03 Michael Albinus <michael.albinus@gmx.de>
4878
4879 * dbusbind.c (xd_add_watch): Improve debug message.
4880 (xd_remove_watch): Improve debug message. If DATA is the session
4881 bus, unset D-Bus session environment.
4882 (Fdbus_init_bus): Pass the bus as argument to
4883 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4884
8932b1c2
CY
48852010-01-01 Chong Yidong <cyd@stupidchicken.com>
4886
87231e2c
CY
4887 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4888
4801c5fa
CY
4889 * lread.c (syms_of_lread): Make it clearer that these are the
4890 names of loaded files (Bug#5068).
4891
8932b1c2
CY
4892 * eval.c (run_hook_with_args): Handle the case where the global
4893 value has the obsolete single-function form (Bug#5026).
4894
11e3c684
CY
48952009-12-27 Chong Yidong <cyd@stupidchicken.com>
4896
4897 * minibuf.c (Fall_completions): Minor optimization.
4898
5b28ce35
EZ
48992009-12-26 Eli Zaretskii <eliz@gnu.org>
4900
5ce6e4f4
JB
4901 * .gdbinit (pgx): Fix display of composite glyphs.
4902 Display cmp.from and cmp.to as well.
4903 (pitx): Fix last change.
5b28ce35 4904
bcffff46
KH
49052009-12-25 Kenichi Handa <handa@m17n.org>
4906
4907 * composite.h (composition_adjust_point): Update prototype.
4908
4909 * composite.c (composition_reseat_it): Don't make a composition
4910 spanning over point.
4911 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4912 composable characters.
4913 (composition_adjust_point): New arg NEW_PT. Callers changed.
4914
4915 * keyboard.c (command_loop_1): Force redisplay if the last point
4916 was within a composition.
4917 (adjust_point_for_property): Don't adjust point for automatic
4918 composition when called after buffer modification.
4919
3f670e9a
EZ
49202009-12-19 Eli Zaretskii <eliz@gnu.org>
4921
5ce6e4f4
JB
4922 * .gdbinit (pitx): Don't use enum names, use their values.
4923 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4924 (pgx): Don't use enum names, use their values.
4925 (pitmethod): New helper command.
4926 (pitx): Use it to display iteration method.
4927 (pgrowit): New command.
4928
ad903955
EZ
4929 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4930
3f670e9a
EZ
4931 Update dependencies in Makefile.in.
4932
4933 * Makefile.in (alloc.o): Depend on termhooks.h.
4934 (atimer.o): Depend on blockinput.h.
4935 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4936 and frame.h.
4937 (callint.o): Depend on systime.h, coding.h, and composite.h.
4938 (callproc.o): Depend on buffer.h.
4939 (casefiddle.o): Don't depend on charset.h.
4940 (casetab.o): Depend on character.h.
4941 (ccl.o): Depend on composite.h.
4942 (chartab.o): Depend on ccl.h.
4943 (cm.o): Depend on dispextern.h.
4944 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4945 (coding.o): Don't depend on $(INTERVALS_H).
4946 (composite.o): Don't depend on dispextern.h explicitly (it's in
4947 $(INTERVALS_H)). Depend on ccl.h.
4948 (data.o): Depend on systime.h, coding.h, composite.h,
4949 dispextern.h, font.h, and ccl.h.
4950 (dired.o): Depend on composite.h.
4951 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4952 composite.h (it's in $(INTERVALS_H)).
4953 (doc.o): Depend on systime.h, coding.h, and composite.h.
4954 (editfns.o): Don't depend explicitly on dispextern.h.
4955 (emacs.o): Depend on frame.h and coding.h.
4956 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4957 (fileio.o): Depend on frame.h and commands.h. Don't depend
4958 explicitly on dispextern.h.
4959 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4960 composite.h.
4961 (fns.o): Don't depend on termhooks.h.
4962 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4963 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4964 coding.h, $(INTERVALS_H), window.h, xterm.h.
4965 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4966 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4967 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4968 fontset.h, ccl.h, and ftfont.h.
4969 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4970 (gtkutil.o): Depend on dispextern.h and composite.h.
4971 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4972 termhooks.h, and ccl.h.
4973 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4974 (intervals.o): Depend on systime.h and coding.h.
4975 (keyboard.o): Depend on composite.h and coding.h.
4976 (keymap.o): Depend on coding.h and frame.h.
4977 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4978 (macros.o): Depend on systime.h, coding.h, and composite.h.
4979 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4980 and atimer.h.
4981 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4982 dispextern.h explicitly.
0b5397c2
SM
4983 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4984 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4985 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4986 (regex.o): Don't depend on charset.h.
4987 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4988 (search.o): Don't depend explicitly on composite.h.
4989 (sound.o): Depend on atimer.h and systime.h.
4990 (syntax.o): Don't depend explicitly on composite.h.
4991 (sysdep.o): Depend on coding.h and composite.h.
4992 (term.o): Depend on xterm.h and buffer.h.
4993 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4994 (textprop.o): Don't depend on dispextern.h explicitly.
4995 (undo.o): Depend on dispextern.h.
4996 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4997 dispextern.h and composite.h explicitly.
4998 (xdisp.o): Depend on ccl.h.
4999 (xfaces.o): Depend on coding.h and ccl.h.
5000 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5001 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5002 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5003 ftfont.h.
5004 (xgselect.o): New dependency.
5005 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5006 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5007 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5008 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5009 (xsmfns.o): Depend on frame.h and dispextern.h.
5010 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5011 sysselect.h.
5012
7a6f7fea
AS
50132009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5014
5015 * font.c (Fclear_font_cache): Pass correct cache argument to
5016 font_clear_cache.
5017
f4c21026
AS
50182009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5019
5020 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5021 twice.
5022
f7ab0997
CY
50232009-12-15 Chong Yidong <cyd@stupidchicken.com>
5024
5025 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5026 calling file-remote-p. Reported by Jim Meyering.
5027
fa8e045a
MA
50282009-12-15 Michael Albinus <michael.albinus@gmx.de>
5029
5030 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5031 avoid compiler warnings. (Bug #5217)
fa8e045a 5032
a63dba42
KH
50332009-12-14 Kenichi Handa <handa@m17n.org>
5034
5035 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5036 in 8-bit encoding.
5037
5ce6e4f4 50382009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5039
5040 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5041 tooltip windows.
5042
223e5fc6
JD
50432009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5044
36acb2a7
JD
5045 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5046 Xatom_net_window_type.
5047
5048 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5049 Xatom_net_window_type.
5050
b8f00677
JD
5051 * xterm.c (my_log_handler): New function.
5052 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5053 so we can filter out buggy messages. (Bug #5120).
b8f00677 5054
e5f0bc9a
JD
5055 * xterm.c (xg_scroll_callback): Parameter list changed,
5056 use parameter GtkScrollType to determine scroll/line/page.
5057 Only allow dragging if a button < 4 is grabbed (bug #5177).
5058 (xg_end_scroll_callback): New function.
5059 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5060 xg_create_scroll_bar.
5061
5062 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5063 (scroll_end_callback): Remove.
5064 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5065 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5066 bug #5177.
e5f0bc9a
JD
5067 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5068 bug #5177.
5069
5070 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5071 (xg_create_scroll_bar): Add GCallback end_callback.
5072
223e5fc6
JD
5073 * xftfont.c (QClcdfilter): New variable.
5074 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5075 (syms_of_xftfont): Initialize QClcdfilter.
5076
3c055b77
JD
50772009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5078
5079 * xsettings.c (struct xsettings): Add member seen.
5080 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5081 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5082 (apply_xft_settings): Only update Xft settings with what member seen
5083 indicates as new.
5084
05fe33ff
EZ
50852009-12-12 Eli Zaretskii <eliz@gnu.org>
5086
c4cc8b9a 5087 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5088 (struct glyph): Use EMACS_INT for charpos.
5089 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5090 region_beg_charpos, region_end_charpos,
5091 redisplay_end_trigger_charpos, and also for
5092 iterator_stack_entry.end_charpos and
5093 iterator_stack_entry.stop_charpos.
5094
e8d7886a
JD
50952009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5096
5ce6e4f4 5097 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5098 (xg_create_scroll_bar): Call scroll_end_callback on button release
5099 event (bug #5177).
5100 (xg_event_is_for_scrollbar): != replaced with ==.
5101
d0db2ec8
KH
51022009-12-12 Kenichi Handa <handa@m17n.org>
5103
5104 * ftfont.c (struct ftfont_info): New member matrix.
5105 (ftfont_open): Setup xftfont_info->matrix.
5106 (MFLTFontFT): New member matrix.
5107 (FLOOR, CEIL, ROUND): New macros.
5108 (ftfont_get_metrics): Handle matrix transformation.
5109 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5110
5111 * xftfont.c (struct xftfont_info): New member matrix.
5112 (xftfont_open): Setup xftfont_info->matrix.
5113
51142009-12-10 Kenichi Handa <handa@m17n.org>
5115
5116 * xdisp.c (append_space_for_newline): Consider face-remapping.
5117
2cc7b62f
AS
51182009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5119
b87dd913
AS
5120 * xsettings.c: Include "keyboard.h".
5121
eba5eb94
AS
5122 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5123
2cc7b62f
AS
5124 Fix implicit function declarations.
5125 * cmds.c: Include "frame.h".
5126 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5127 * frame.h: Move declaration of delete_frame outside of
5128 HAVE_WINDOW_SYSTEM.
5129
a4ef73c8
CY
51302009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5131
5132 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5133
5134 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5135 GTK builds.
5136
944a300c
AS
51372009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5138
5139 * unexelf.c (unexec): Don't search for .data twice.
5140
022eef62
CY
51412009-12-05 Chong Yidong <cyd@stupidchicken.com>
5142
426ac949
CY
5143 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5144 if push failed.
5145 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5146 of push_display_prop (Bug#5000).
5147
022eef62
CY
5148 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5149 value of font_list_entities (Bug#5085).
5150
be95bee9
JB
51512009-12-04 Juanma Barranquero <lekktu@gmail.com>
5152
5153 Fix `string-to-number' to deal consistently with integers and floats.
5154 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5155 trailing characters, not just whitespace.
5156 (read1): Pass new arg 0 to keep old behavior.
5157 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5158 trailing chars, as it is already done for integers. Doc fixes.
5159 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5160
24c2d7ce
EZ
51612009-12-04 Eli Zaretskii <eliz@gnu.org>
5162
0b5397c2
SM
5163 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5164 Delete unused enumeration value.
24c2d7ce 5165
7e694795
EZ
51662009-12-03 Eli Zaretskii <eliz@gnu.org>
5167
5168 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5169
84b31826
SM
51702009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5171
5172 * process.c (Fmake_network_process): Fix up the tests for
5173 "connectionless socket", so they DTRT for seqpacket sockets as well.
5174
f00c449b
SM
51752009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5176
5177 * process.c (Qseqpacket): New symbol.
5178 (HAVE_SEQPACKET): New macro.
5179 (Fmake_network_process): Accept new :type `seqpacket'.
5180 (init_process): Add `seqpacket' feature when applicable.
5181 (syms_of_process): Initialize Qseqpacket.
5182
8096a0ff
YM
51832009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5184
5185 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5186 if entity is Qnil.
5187
3e0de07f
SM
51882009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5189
5190 * print.c (print_preprocess): Preprocess the key_and_value table of
5191 hashtables, even tho they're "hidden" (bug#5082).
5192
abeafb2a
JD
51932009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5194
5195 * frame.c (frame_make_pointer_invisible)
5196 (frame_make_pointer_visible): Declare f before statements.
5197
4bf47195
EZ
51982009-11-28 Eli Zaretskii <eliz@gnu.org>
5199
5200 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5201 omitted dependencies on lisp.h.
5202
c525b3f2
JD
52032009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5204
ece2d4ed
JD
5205 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5206 is NULL.
5207
5208 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5209
5210 * frame.c (frame_make_pointer_invisible)
3e0de07f 5211 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5212 frame.
5213
c525b3f2
JD
5214 * search.c (simple_search): Remove warning by making *p const.
5215
2f00e299
DN
52162009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5217
5218 * xdisp.c (power_letter): Remove duplicate const.
5219
084b049b
JD
52202009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5221
a1fadc6f
JD
5222 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5223
5ce6e4f4 5224 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5225 defaults (bug #5025).
5226
28259cac
SM
52272009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5228
5229 * insdel.c (adjust_markers_for_delete): Move it in the
5230 right direction! (bug#4803)
5231
e8e14166
YM
52322009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5233
5234 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5235
5236 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5237
86677b58
GM
52382009-11-24 Glenn Morris <rgm@gnu.org>
5239
5240 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5241
581e51e8
JD
52422009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5243
cfc86c7a
JD
5244 * Makefile.in: Must create deps for ecrt0.o in its rule.
5245
581e51e8
JD
5246 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5247 because that is what Gtk+ font dialog understands.
5248
5249 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5250 of Fcopy_sequence.
5251 (font_open_by_name): Put name given into QCname for font-object returned.
5252
5253 * frame.c (x_set_font): Save original font name as frame parameter
5254 font-parameter.
5255
5256 * xsettings.c (set_default_xft_settings): New function.
5257 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5258 is found.
5259
8b264ecb
AS
52602009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5261
5262 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5263 searching backwards through multibyte buffer.
5264
872870b2
JD
52652009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5266
5267 * xterm.c: #include xgselect.h.
5268 (x_initialize): Call xgselect_initialize.
5269
5270 * xsettings.c (something_changedCB): C++ comments => C comments.
5271 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5272 does that now.
5273
5274 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5275 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5276 (scroll_bar_button_cb): Remove.
5ce6e4f4 5277 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5278 event.
5279 (xg_create_scroll_bar): Don't bind button-press-event and
5280 button-release-event.
5281
5282 * process.c: Include xgselect.h if defined (USE_GTK) ||
5283 defined (HAVE_GCONF).
5284 (wait_reading_process_output): Call xg_select for the same condition.
5285
5286 * xgselect.c (xg_select): New function to better integrate with
5287 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5288
5289 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5290
5291 * Makefile.in (XOBJ): Add xgselect.o.
5292
62a6e103
AS
52932009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5294
0b5397c2
SM
5295 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5296 Remove ignored second argument. All callers changed.
62a6e103
AS
5297 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5298 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5299 * xdisp.c (string_char_and_length): Likewise.
5300
b0ca0f33
DN
53012009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5302
5303 * xterm.c (x_new_font):
5304 * print.c (print_object):
5305 * cmds.c (Fself_insert_command): Move declarations before statements.
5306
dd5a6279
CY
53072009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5308
5309 * s/cygwin.h: Remove unneeded linker flags.
5310
4a8e097d
JD
53112009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5312
0d1d0d26
JD
5313 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5314
5315 * xsettings.h: Declare xsettings_get_system_font.
5316
5317 * xsettings.c (xsettings_get_system_font): New function.
5318 (init_gconf): No use initiating gconf unless we have Xft also.
5319 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5320 HAVE_GCONF.
5321
4a8e097d
JD
5322 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5323 add a blank entry so it doesn't collapse into nothing.
5324
8ab1650e
SM
53252009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5326
5327 * lread.c (Funintern): Comment out last change.
5328
82c602f0
RS
53292009-11-19 Richard Stallman <rms@gnu.org>
5330
5331 * lread.c (Funintern): Error if symbol is t or nil.
5332
87e32266
SM
53332009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5334
5335 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5336 representation of Lisp integers.
5337 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5338
1b9ac145
AS
53392009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5340
5341 * lisp.h: Remove declaration of Ffont_get_system_font.
5342 * xfns.c: Move include of "xsettings.h".
5343 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5344
dfb3c4c6
JD
53452009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5346
87e32266
SM
5347 * xsettings.c (something_changedCB, Ffont_get_system_font):
5348 Check use_system_font.
dfb3c4c6
JD
5349 (syms_of_xsettings): DEFVAR font-use-system-font.
5350
9370c1d8
AS
53512009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5352
25fe851a
AS
5353 * xfns.c (x_default_font_parameter): Remove dead assignment.
5354
9370c1d8
AS
5355 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5356
637fa988
JD
53572009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5358
87e32266 5359 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5360 not have FC_LCD_*. #define them if not there.
a6eb20d8 5361
87e32266 5362 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5363
637fa988
JD
5364 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5365
5366 * xterm.c (handle_one_xevent): Call xft_settings_event for
5367 ClientMessage, PropertyNotify and DestroyNotify.
5368 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5369 Call xsettings_initialize.
5370
5371 * xftfont.c (xftfont_fix_match): New function.
5372 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5373 Call xftfont_fix_match after XftFontMatch.
5374
5375 * xfont.c (xfont_driver): Initialize all members.
5376
87e32266
SM
5377 * xfns.c (x_default_font_parameter):
5378 Try font from Ffont_get_system_font.
637fa988
JD
5379 Do not get font from x_default_parameter if we got one from
5380 Ffont_get_system_font.
87e32266 5381 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5382
5383 * w32font.c (w32font_driver): Initialize all members.
5384
5385 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5386
5387 * lisp.h: Declare syms_of_xsettings.
5388
87e32266
SM
5389 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5390 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5391
5392 * ftfont.c (ftfont_filter_properties): New function.
5393
5394 * frame.c (x_set_font): Remove unused variable lval.
5395
87e32266 5396 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5397
5398 * font.c (font_put_extra): Don't return if val is nil, it means
5399 boolean option is off.
5400 (font_parse_fcname): Collect all extra properties in extra_props
5401 and call filter_properties for all drivers with extra_props and
5402 font as parameter.
87e32266
SM
5403 (font_open_entity): Do not use cache, it does not pick up new
5404 fontconfig settings like hinting.
637fa988
JD
5405 (font_load_for_lface): If spec had a name in it, store it in entity.
5406
a73f9c9d 5407 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5408
5409 * config.in: HAVE_GCONF is new.
5410
5411 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5412 xsettings.o is new.
5413
5a942932
KH
54142009-11-17 Kenichi Handa <handa@m17n.org>
5415
5416 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5417 back to the default font in case that no suitable font is found.
5418
b7c7a4d1
SM
54192009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5420
5421 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5422 Suggested by Chad Brown <yandros@mit.edu>.
5423 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5424
072f1e39
JD
54252009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5426
5427 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5428
5d1e70a2
AS
54292009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5430
87e32266 5431 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5432
a53cfbe5
JD
54332009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5434
473a99b7
JD
5435 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5436 has a parent.
5437
a53cfbe5 5438 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5439 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5440
5441 * config.in: Generated (AUTO_DEPEND).
5442
f04bb9b2
MA
54432009-11-13 Michael Albinus <michael.albinus@gmx.de>
5444
b7c7a4d1 5445 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5446 Vdbus_registered_functions_table, because it contains also
5447 properties. Fix docstring.
b7c7a4d1 5448 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5449
8f11f7ec
SM
54502009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5451
5452 * alloc.c (mark_object): Don't reprocess marked strings.
5453 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5454 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5455
8a605fe8
KH
54562009-11-13 Kenichi Handa <handa@m17n.org>
5457
8f11f7ec 5458 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5459 semantics of Vword_combining_categories.
5460 (Vword_combining_categories): Describe the slight change of the
5461 semantics.
5462
241c4680
EZ
54632009-11-13 Eli Zaretskii <eliz@gnu.org>
5464
5465 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5466
5467 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5468
5d58e44c
SM
54692009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5470
5471 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5472
5e13f9d3
JB
54732009-11-12 Juanma Barranquero <lekktu@gmail.com>
5474
5475 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5476
cf54c754
DR
54772009-11-11 David Reitter <david.reitter@gmail.com>
5478
5479 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5480 variables to fix 2009-11-09 change.
5481
a4ada374
DN
54822009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5483
91433552
DN
5484 * process.c (ifflag_def): Make flag_sym constant.
5485 (Fnetwork_interface_info): Use a constant pointer.
5486 (ifflag_table):
5487 * xfns.c (cursor_bits):
5488 * xdisp.c (power_letter):
5489 * termcap.c (speeds, esctab):
5490 * sysdep.c (baud_convert):
5491 * keyboard.c (lispy_accent_codes, modifier_names):
5492 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5493 (jpeg_format, tiff_format, gif_format, svg_format)
5494 (interlace_start, interlace_increment, gs_format):
5495 * gtkutil.c (separator_names):
5496 * fringe.c (swap_nibble):
5497 * fns.c (base64_value_to_char, base64_char_to_value):
5498 * fileio.c (make_temp_name_tbl):
5499 * coding.c (suffixes): Make constant.
5500
f4265f6c
DN
5501 * frame.c (make_initial_frame):
5502 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5503 build_string.
5504 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5505
04420943
DN
5506 * s/freebsd.h:
5507 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5508
0a5d24ae
DN
5509 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5510 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5511
a4ada374
DN
5512 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5513 * xterm.c (syms_of_xterm):
5514 * xfaces.c (syms_of_xfaces):
5515 * xdisp.c (syms_of_xdisp):
5516 * lread.c (syms_of_lread):
5517 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5518 build_string.
91433552 5519
a4ada374
DN
5520 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5521
af98fc7f
SM
55222009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5523
8ab1650e 5524 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5525
e90292a9
JD
55262009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5527
5528 * keyboard.h: Declare timer_check.
5529
5530 * keyboard.c (timer_check_2): New function that does what the old
5531 timer_check did.
5532 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5533 returned, i.e. don't return -1 with timers pending.
5534
5535 * process.c: Remove extern declaration of timer_check.
5536
5537 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5538 even if timer_check returned -1.
5539
af98fc7f
SM
5540 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5541 xg_dialog_data.
e90292a9
JD
5542 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5543 the event loop.
5544 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5545 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5546 Destroy the dialog after xg_dialog_run.
5547
045b83c0
SM
55482009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5549
5550 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5551
1fb99a3a
JD
55522009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5553
5554 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5555
04e452cb
JB
55562009-11-09 Juanma Barranquero <lekktu@gmail.com>
5557
5558 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5559
ef7417fd
SM
55602009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5561
5562 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5563 w32menu.c, and nsmenu.m.
5564 Simplify the obsolete case where position is nil.
5565 (cleanup_popup_menu): New function, moved from nsmenu.m.
5566 (struct skp): Remove slot `notreal'.
5567 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5568 adjust callers.
5569 (single_menu_item): Adjust call to parse_menu_item.
5570 (syms_of_menu): Defsubr x-popup-menu.
5571 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5572 (keymap_panes): Don't export any more.
5573 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5574 (xmenu_show): Declare.
5575 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5576 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5577 * keyboard.h (parse_menu_item): Update declaration.
5578 * xmenu.c (Fx_popup_menu): Remove.
5579 (syms_of_xmenu): Don't defsubr x-popup-menu.
5580 * w32menu.c (Fx_popup_menu): Remove.
5581 (syms_of_w32menu): Don't defsubr x-popup-menu.
5582 * nsmenu.m (cleanup_popup_menu): Remove.
5583 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5584 moved to menu.c's Fx_popup_menu.
5585 (Fx_popup_menu): Remove.
5586 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5587 menu_items (it's done in menu.c already).
5588
424d6179
SM
55892009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5590
5591 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5592 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5593
c0df13a6 55942009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5595
5596 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5597 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5598 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5599 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5600
2de9f71c
SM
56012009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5602
5603 Let integers use up 2 tags to give them one extra bit and thus double
5604 their range.
5605 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5606 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5607 New macros.
5608 (enum Lisp_Type): Use them. Give explicit values.
5609 (Lisp_Type_Limit): Remove.
5610 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5611 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5612 Pay attention to USE_2_TAGS_FOR_INTS.
5613 (INTEGERP): Use LISP_INT_TAG_P.
5614 * fns.c (internal_equal): Simplify the default case.
5615 (sxhash): Use case_Lisp_Int.
5616 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5617 any more.
5618 (Ftype_of): Use case_Lisp_Int.
5619 (store_symval_forwarding): Take into account the fact that Ints can
5620 now have more than one tag.
5621 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5622 buffer_slot_type_mismatch):
5623 * xfaces.c (face_attr_equal_p):
5624 * print.c (print_object):
5625 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5626 Use case_Lisp_Int.
5627
323637a2
EZ
56282009-11-06 Eli Zaretskii <eliz@gnu.org>
5629
7ac65b38
EZ
5630 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5631
323637a2
EZ
5632 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5633 warning.
5634
e511451f
JD
56352009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5636
5637 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5638
5639 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5640
5641 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5642 ButtonPressRelease and MotionNotify (bug#4870).
5643
5e2327cf
DN
56442009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5645
5adc433e
DN
5646 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5647
d67b4f80
DN
5648 * xterm.c (syms_of_xterm):
5649 * xselect.c (syms_of_xselect):
5650 * xmenu.c (syms_of_xmenu):
5651 * xfns.c (syms_of_xfns):
5652 * xfaces.c (syms_of_xfaces):
5653 * xdisp.c (syms_of_xdisp):
5654 * window.c (syms_of_window):
5655 * w32fns.c (syms_of_w32fns):
5656 * undo.c (syms_of_undo):
5657 * textprop.c (syms_of_textprop):
5658 * terminal.c (syms_of_terminal):
5659 * syntax.c (syms_of_syntax):
5660 * sound.c (syms_of_sound):
5661 * search.c (syms_of_search):
5662 * print.c (syms_of_print):
5663 * minibuf.c (syms_of_minibuf):
5664 * macros.c (syms_of_macros):
5665 * keymap.c (syms_of_keymap, initial_define_key)
5666 (initial_define_lispy_key):
5667 * keyboard.c (syms_of_keyboard):
5668 * insdel.c (syms_of_insdel):
5669 * image.c (syms_of_image):
5670 * fringe.c (syms_of_fringe):
5671 * frame.c (syms_of_frame):
5672 * fontset.c (syms_of_fontset):
5673 * fns.c (syms_of_fns):
5674 * fns.c (syms_of_fns):
5675 * fileio.c (syms_of_fileio):
5676 * fileio.c (syms_of_fileio):
5677 * eval.c (syms_of_eval):
5678 * doc.c (syms_of_doc):
5679 * dispnew.c (syms_of_display):
5680 * dired.c (syms_of_dired):
5681 * dbusbind.c (syms_of_dbusbind):
5682 * data.c (syms_of_data):
5683 * composite.c (syms_of_composite):
5684 * coding.c (syms_of_coding):
5685 * cmds.c (syms_of_cmds):
5686 * charset.c (define_charset_internal, syms_of_character):
5687 * ccl.c (syms_of_ccl):
5688 * category.c (syms_of_category, init_category_once):
5689 * casetab.c (syms_of_casetab):
5690 * casefiddle.c (syms_of_casefiddle):
5691 * callint.c (syms_of_callint):
5692 * bytecode.c (syms_of_bytecode):
5693 * buffer.c (keys_of_buffer, syms_of_buffer):
5694 * alloc.c (syms_of_alloc):
5695 * process.c (syms_of_process, init_process):
5696 * lread.c (syms_of_lread, init_obarray):
5697 * font.c (build_style_table):
5698 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5699 intern_c_string, calls to make_pure_string with
5700 make_pure_c_string. Use pure_cons instead of Fcons.
5701
5e2327cf
DN
5702 * process.c (socket_options): Make it const.
5703 (set_socket_option, init_process): Use a const pointer.
5704
5705 * lread.c (intern_c_string): New function.
5706 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5707 (defvar_int): Uset it. Make the name const char*.
5708
5709 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5710 (defvar_int): Update prototypes.
5711 (DEFUN, EXFUN): Support for prototypes is now required.
5712 (intern_c_string): New prototype.
5713 (struct Lisp_Subr): Make symbol_name constant.
5714
5715 * font.c (struct table_entry): Remove unused member. Make NAMES
5716 constant.
5717 (weight_table, slant_table, width_table): Make constant.
5718
5719 * emacs.c (struct standard_args): Make name and longname constant.
5720
5721 * character.h (DEFSYM): Use intern_c_string.
5722
a56eaaef
DN
57232009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5724
5725 * alloc.c (make_pure_c_string): New function.
5726
5727 * eval.c (Fautoload): Purecopy all arguments.
5728
f6a07420
KH
57292009-11-05 Kenichi Handa <handa@m17n.org>
5730
5731 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5732 the buffer in case of replace.
5733
5d28d4b1
DN
57342009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5735
5736 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5737
b349d111
SM
57382009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5739
d528b1ce
SM
5740 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5741 when applicable (bug#4851).
5742
b349d111
SM
5743 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5744 (P_): Support for prototypes is now required.
5745
c38eb027
CY
57462009-10-31 Chong Yidong <cyd@stupidchicken.com>
5747
5748 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5749 (Bug#4827).
5750
0405f8d9
EZ
57512009-10-30 Eli Zaretskii <eliz@gnu.org>
5752
d528b1ce 5753 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5754
ca0a881a
DN
57552009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5756
5757 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5758
d528b1ce
SM
5759 * lread.c (Fload): Purecopy the file name when building
5760 Vpreloaded_file_list.
ca0a881a 5761
47e0e0e4
JR
57622009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5763
5764 * w32fns.c (syms_of_w32fns): Change default value of
5765 w32-scroll-lock-modifier to nil. (Bug#2827)
5766
057bce6f
JB
57672009-10-26 Juanma Barranquero <lekktu@gmail.com>
5768
782a943e 5769 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5770
242bc74c
AS
57712009-10-26 Andreas Schwab <schwab@redhat.com>
5772
5773 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5774
522d013a
JB
57752009-10-26 Juanma Barranquero <lekktu@gmail.com>
5776
5777 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5778 For delta < 0, skip check that only makes sense when the mini-window
5779 is going to be enlarged. (Bug#4534)
5780
18060980
CY
57812009-10-25 Chong Yidong <cyd@stupidchicken.com>
5782
5783 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5784 string in menu maps (Bug#4471).
5785
fec8f0fe
CY
57862009-10-24 Chong Yidong <cyd@stupidchicken.com>
5787
5788 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5789 FRAME_NS_VIEW on terminal frames (Bug#4765).
5790
10d66ec0
AS
57912009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5792
1cae01f7
AS
5793 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5794 DBUS_TYPE_UINTnn separately to get proper sign extension.
5795
58a12889
AS
5796 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5797 can properly handle unsigned types.
d528b1ce 5798 (make_uid, make_gid): Remove.
58a12889 5799
987c9327
AS
5800 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5801 types again.
5802
522d013a 5803 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5804 (system_process_attributes): Likewise.
5805
905a9ed3
DN
58062009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5807
5808 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5809
5810 * eval.c (Fautoload): Purecopy the filename. Simplify.
5811
5812 * category.c (Fdefine_category): Purecopy docstring.
5813
a599b3e8
AS
58142009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5815
7b792fc9
AS
5816 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5817
a599b3e8
AS
5818 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5819
b35ac83e
CY
58202009-10-23 Chong Yidong <cyd@stupidchicken.com>
5821
5822 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5823 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5824 (Bug#4775).
5825
e8903e00
SM
58262009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5827
5828 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5829 (init_fileio_once):
5830 * lisp.h (init_fileio_once): Remove.
5831 * emacs.c (main): Don't call init_fileio_once.
5832
8f43cbf3
DN
58332009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5834
5835 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5836
26898943
AS
58372009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5838
5839 * doprnt.c (doprnt): Fix overflow check.
5840
5c646d5a
JD
58412009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5842
3132a7ea
JD
5843 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5844
5c646d5a
JD
5845 * xterm.h (x_wait_for_event): Declare it.
5846
5847 * xterm.c (pending_event_wait): New variable.
5848 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5849 see pending_event_wait.eventtype.
5850 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5851 (x_new_font): Call change_frame_size with new rows/columns before we
5852 try to resize the frame.
5c646d5a 5853 (x_wait_for_event): New function.
d528b1ce
SM
5854 (x_set_window_size_1): Don't change gravity unless change_gravity
5855 is set.
5c646d5a
JD
5856 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5857 don't change frame size, instead wait for the ConfigureNotify.
5858 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5859 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5860 (x_initialize): Initialize pending_event_wait.
5861
5862 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5863 size.
5864
5865 * widget.c (EmacsFrameSetValues): Add comment.
5866 (EmacsFrameSetCharSize): Just call x_set_window_size.
5867
5868 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5869 x_wait_for_event.
d528b1ce 5870 (flush_and_sync): Remove again.
5c646d5a
JD
5871 (xg_get_font_name): Suggest monospace if no previous font is known.
5872
e9c1637d
SM
58732009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5874
5875 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5876 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5877
5a72cccb
YM
58782009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5879
5880 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5881 processing pending events when event is filtered for input method.
ab04798f 5882 (Bug#3681)
5a72cccb 5883
2629aa37
JB
58842009-10-20 Juanma Barranquero <lekktu@gmail.com>
5885
5886 * fns.c: Add #endif accidentally removed in previous change.
5887
c3417a74
DN
58882009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5889
5890 * fns.c: Remove code for unsupported system: MAC_OS.
5891 * image.c: Likewise. Include setjmp.h.
5892
9685cef2
JD
58932009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5894
5895 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5896 pixel -1 (bug #4742).
5897
d7306fe6
DN
58982009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5899
019d2c4c
DN
5900 * process.c (create_pty): Remove conditionals for no longer
5901 supported systems: UNIPLUS and RTU.
5902
ee6bacd4
DN
5903 * xterm.c:
5904 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5905
d7306fe6
DN
5906 * alloc.c: Do not define struct catchtag.
5907 * eval.c: Move struct catchtag definition ...
5908 * lisp.h: ... here.
5909
5910 * image.c: Move png.h #include earlier to avoid warnings.
5911
5912 * xterm.c:
5913 * xsmfns.c:
5914 * xselect.c:
5915 * xrdb.c:
5916 * xmenu.c:
5917 * xftfont.c:
5918 * xfont.c:
5919 * xfns.c:
5920 * xfaces.c:
5921 * xdisp.c:
5922 * window.c:
5923 * widget.c:
5924 * w32xfns.c:
5925 * w32uniscribe.c:
5926 * w32term.c:
5927 * w32select.c:
5928 * w32reg.c:
5929 * w32proc.c:
5930 * w32menu.c:
5931 * w32inevt.c:
5932 * w32heap.c:
5933 * w32font.c:
5934 * w32fns.c:
5935 * w32console.c:
5936 * w32.c:
5937 * w16select.c:
5938 * vm-limit.c:
5939 * unexsol.c:
5940 * unexec.c:
5941 * unexcw.c:
5942 * unexaix.c:
5943 * undo.c:
5944 * tparam.c:
5945 * textprop.c:
5946 * terminfo.c:
5947 * terminal.c:
5948 * termcap.c:
5949 * term.c:
5950 * syntax.c:
5951 * sound.c:
5952 * sheap.c:
5953 * search.c:
5954 * scroll.c:
5955 * region-cache.c:
5956 * regex.c:
5957 * ralloc.c:
5958 * process.c:
5959 * print.c:
b024548b
DN
5960 * nsterm.m:
5961 * nsselect.m:
5962 * nsmenu.m:
5963 * nsimage.m:
5964 * nsfont.m:
5965 * nsfns.m:
d7306fe6
DN
5966 * msdos.c:
5967 * minibuf.c:
5968 * menu.c:
5969 * marker.c:
5970 * macros.c:
5971 * keymap.c:
5972 * keyboard.c:
5973 * intervals.c:
5974 * insdel.c:
5975 * indent.c:
5976 * gtkutil.c:
5977 * ftxfont.c:
5978 * ftfont.c:
5979 * fringe.c:
5980 * frame.c:
5981 * fontset.c:
5982 * font.c:
5983 * fns.c:
5984 * floatfns.c:
5985 * filelock.c:
5986 * fileio.c:
5987 * emacs.c:
5988 * editfns.c:
5989 * dosfns.c:
5990 * doprnt.c:
5991 * doc.c:
5992 * dispnew.c:
5993 * dired.c:
5994 * dbusbind.c:
5995 * data.c:
5996 * composite.c:
5997 * coding.c:
5998 * cmds.c:
5999 * cm.c:
6000 * chartab.c:
6001 * charset.c:
6002 * character.c:
6003 * ccl.c:
6004 * category.c:
6005 * casetab.c:
6006 * casefiddle.c:
6007 * callproc.c:
6008 * callint.c:
6009 * bytecode.c:
6010 * buffer.c:
6011 * atimer.c: Include setjmp.h. (Bug#4643)
6012
fd5f21e6
SM
60132009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6014
4c0354d7
SM
6015 Remove leftover table unibyte_to_multibyte_table.
6016 * character.c (unibyte_to_multibyte_table): Remove.
6017 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6018 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6019 * character.h (UNIBYTE_TO_CHAR): New macro.
6020 (MAKE_CHAR_MULTIBYTE): Use it.
6021 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6022 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6023 (message_dolog, set_message_1):
6024 * search.c (Freplace_match):
6025 * editfns.c (Fcompare_buffer_substrings):
6026 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6027 (concat):
6028 * insdel.c (copy_text, count_size_as_multibyte):
6029 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6030 * term.c (produce_glyphs):
6031 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6032 * regex.c (RE_CHAR_TO_MULTIBYTE):
6033 * cmds.c (internal_self_insert):
6034 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6035
fd5f21e6
SM
6036 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6037
4418646e
DN
60382009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6039
6040 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6041
35f5c1d2
JB
60422009-10-16 Juanma Barranquero <lekktu@gmail.com>
6043
6044 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6045
a0cd8f6b
AR
60462009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6047
6048 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6049 still needed under Tiger.
6050
6051 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6052
6053 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6054 __Apple__.
6055
6056 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6057
01a8d3fa
KH
60582009-10-15 Kenichi Handa <handa@m17n.org>
6059
6060 * print.c (print_object): Escape a symbol like "2E10" too.
6061
bf6c75c9 60622009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6063
6064 Cleanups and changes for 64-bit compile under Snow Leopard.
6065 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6066
6067 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6068
c5959062 6069 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6070 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6071 cast argument.
6072 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6073 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6074
6075 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6076
6077 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6078 where appropriate.
6079
6080 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6081 where appropriate.
6e4780c5
JB
6082 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6083 Use stringWithUTF8String.
bf6c75c9
AR
6084 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6085
6e4780c5
JB
6086 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6087 Add formal protocol mention to inheritance.
bf6c75c9
AR
6088 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6089
6e4780c5
JB
6090 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6091 Fix printf format.
bf6c75c9
AR
6092 (ns_query_color): Use CGFloat where appropriate.
6093 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6094 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6095 argument.
6096
3d87f118
AR
6097 * config.in (NS_HAVE_NSINTEGER): Drop.
6098
a95c8102
AR
6099 * dbusbind.c (dbus-method-return-internal)
6100 (dbus-method-error-internal): Use long format in printf, and cast
6101 argument.
6102
6103 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6104 in printf, and cast argument.
6105
6873acca 6106 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6107 cast argument.
6108
9ec6f100
GM
61092009-10-11 Glenn Morris <rgm@gnu.org>
6110
6111 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6112
5be883cd
JD
61132009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6114
6115 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6116 menu bar with a small width so it doesn't enlarge the frame.
6117
d7a39b51
JB
61182009-10-08 Juanma Barranquero <lekktu@gmail.com>
6119
6120 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6121
0c2b6f8e
GM
61222009-10-06 Glenn Morris <rgm@gnu.org>
6123
6124 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6125 SOME_MACHINE_LISP (this enters indirectly via DOC).
6126
e02131a2
EZ
61272009-10-05 Eli Zaretskii <eliz@gnu.org>
6128
6129 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6130
b4744254
EZ
61312009-10-04 Eli Zaretskii <eliz@gnu.org>
6132
6133 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6134 Doc fix.
6135
dbf64827
JB
61362009-10-03 Martin Rudalics <rudalics@gmx.at>
6137
6138 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6139
e9a0aef8
MA
61402009-10-02 Michael Albinus <michael.albinus@gmx.de>
6141
d528b1ce 6142 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6143 used anymore outside fileio.c.
6144
6145 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6146
64eb2b56
JB
61472009-10-01 Juanma Barranquero <lekktu@gmail.com>
6148
6149 * lisp.h (Qdelete_directory_internal):
6150 Declare, instead of Qdelete_directory.
6151
6152 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6153
9d28c33e
SM
61542009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6155
6156 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6157
9d8f3bd9
MA
61582009-10-01 Michael Albinus <michael.albinus@gmx.de>
6159
9d28c33e 6160 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6161 Fdelete_directory. It is not a command anymore. It has no file
6162 name handler.
6163
9694740b
SM
61642009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6165
6166 * xdisp.c (get_next_display_element): Use an enum in last change.
6167
748e162f
KH
61682009-09-28 Kenichi Handa <handa@m17n.org>
6169
9694740b 6170 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6171 unibyte_display_via_language_environment in handling
6172 Vnobreak_char_display.
6173
17efd58d
AR
61742009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6175
6176 * nsterm.h (ns_app_name): New extern variable.
6177
6178 * nsterm.m (ns_app_name): New variable.
6179 (ns_term_init): Set and use it.
6180 (ns_term_shutdown): Use it.
6181
6182 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6183 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6184
6185 * nsfns.m (ns_set_name_iconic, ns_set_name)
6186 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6187 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6188
9694740b
SM
6189 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6190 Remove double-casting in client_data comparison.
31c2d412 6191
3208cb35
YM
61922009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6193
6194 * keyboard.c (make_lispy_event): Remember last wheel direction.
6195 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6196
b7d552d6
GM
61972009-09-26 Glenn Morris <rgm@gnu.org>
6198
6199 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6200 internal.elc. Add term/pc-win.elc.
6201 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6202 term/x-win.elc.
6203 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6204 term/w32-win.elc.
6205 (NS_SUPPORT): New.
6206 (lisp): Add NS_SUPPORT.
6207 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6208
4ff670a8
DR
62092009-09-25 David Reitter <david.reitter@gmail.com>
6210
6211 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6212 on Mac OS X 10.6+ (bug#4513).
6213
feabfb6c
JB
62142009-09-24 Juanma Barranquero <lekktu@gmail.com>
6215
6216 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6217 some parts of Emacs code (like font selection) don't grok them.
6218 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6219
de59072a
AS
62202009-09-24 Andreas Schwab <schwab@redhat.com>
6221
6222 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6223
a489517b
JB
62242009-09-24 Juanma Barranquero <lekktu@gmail.com>
6225
6226 * dired.c (Fdirectory_files): Fix typo in docstring.
6227
0592970c
AR
62282009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6229
6230 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6231 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6232 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6233 under GNUstep.
6234 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6235
6236 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6237 glyph advancement.
6238
48e8a88b
AR
62392009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6240
6241 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6242 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6243
6244 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6245 deleted (bug #4492).
6246
e14f0a78
AR
6247 * nsfont.m (Vns_reg_to_script): New lisp variable.
6248 (syms_of_nsfont): Declare it.
6249 (ns_registry_to_script): New function.
6250 (ns_get_req_script): Call it.
6251 (ns_findfonts): Don't give up on non-unicode registry.
6252
6253 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6254
5b650faa
SM
62552009-09-20 Tom Tromey <tromey@redhat.com>
6256
6257 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6258 batch mode (bug#4228).
6259
a489517b 62602009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6261
6262 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6263 carefully. (Bug #4339)
0bae4e09 6264
fcfe06f3
CY
62652009-09-18 Chong Yidong <cyd@stupidchicken.com>
6266
d798ba87 6267 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6268
31642728
AR
62692009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6270
6271 * emacs.c (inhibit_x_resources): Update doc string for NS.
6272 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6273 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6274
6275 * nsterm.h (ns_no_defaults): Remove.
6276
6277 * nsterm.m (ns_no_defaults): Remove.
6278 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6279 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6280 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6281 don't update the NSWindow itself.
6282 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6283 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6284
6285 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6286 ns_use_qd_smoothing.
6287
6288 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6289 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6290 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6291 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6292
8686ac71
JB
62932009-09-17 Juanma Barranquero <lekktu@gmail.com>
6294
6295 * emacs.c (inhibit_x_resources): New variable.
6296 (main) [HAVE_NS]: Don't process --quick command line option.
6297 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6298
6299 * lisp.h (inhibit_x_resources): Declare it extern.
6300
6301 * w32reg.c (x_get_string_resource):
6302 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6303
e227ba05
EZ
63042009-09-17 Eli Zaretskii <eliz@gnu.org>
6305
362654a6
JB
6306 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6307 Add lisp/term/internal.elc.
e227ba05 6308
742d40e8
SM
63092009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6310
6311 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6312 (bug#4461).
6313
005bd5a2
DN
63142009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6315
6316 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6317
6318 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6319 (OBJECTS_MACHINE): Remove, unused.
6320
f9af9719
SM
63212009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6322
6323 * frame.c (x_get_resource_string): Remove unused.
6324
0307c7d2
JD
63252009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6326
6327 * xterm.c (x_new_font): Call change_frame_size before calling
6328 x_set_window_size, in case frame size won't change.
6329
6330 * frame.c (x_set_font): Remove dead code.
6331
428b13d6
SM
63322009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6333
6334 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6335
5766c380
SM
63362009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6337
6338 * lread.c (Fload): Don't output a message after loading an obsolete
6339 package any more (done in Lisp now).
6340
2fd0161b
CY
63412009-09-12 Chong Yidong <cyd@stupidchicken.com>
6342
6343 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6344
bc5e75b6
SM
63452009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6346
6347 * keymap.c (Fwhere_is_internal): Use nconc2.
6348
c31c985e
AM
63492009-09-11 Alan Mackenzie <acm@muc.de>
6350
6351 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6352 batch mode.
6353
78012bd2
AS
63542009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6355
6356 * xdisp.c (display_mode_element): Detect cycles.
6357
9d889332
SM
63582009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6359
6360 * keymap.c (where_is_internal): Don't erroneously return nil right after
6361 filling the cache.
6362 (where_is_internal_1): Fix up typo.
6363
7ab5d780
GM
63642009-09-11 Glenn Morris <rgm@gnu.org>
6365
6366 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6367 share a common doc-string.
6368
5238a749
SM
63692009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6370
66d77eda
SM
6371 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6372 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6373
5238a749
SM
6374 * keymap.c (QCadvertised_binding): New constant.
6375 (syms_of_keymap): Initialize it.
6376 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6377 if applicable.
6378
19f48442
SM
63792009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6380
50d4ba39
SM
6381 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6382 (parse_menu_item): Streamline since bindings are recomputed all the
6383 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6384 more and don't support lmenu's menu-alias any more either.
6385
a88a5372
SM
6386 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6387 (where_is_internal): Strip it down to only traverse the keymaps.
6388 Move the cache handling from Fwhere_is_internal to here.
6389 (Fwhere_is_internal): Move the handling of remapping and the choice of
6390 the best binding from where_is_internal to here.
6391 Unify the cached/noncached paths, so remapping is also handled
6392 correctly when the cache is used, and so the cache can be used to
6393 speed up remap-handling when applicable.
6394 Give preference to non-remapped bindings.
6395 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6396 non-remapped bindings.
6397 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6398 command remapping.
6399
19f48442
SM
6400 * xdisp.c (display_mode_element): Move list length limit from 50 to
6401 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6402
599498c3 64032009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6404
6405 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6406
f9b7b5ac
SM
64072009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6408
a53af587
JB
6409 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6410 (Bug#4334)
6411
f9b7b5ac
SM
6412 * keymap.c (where_is_internal): Filter out shadowed remappings.
6413 Assume that where_is_internal returns unshadowed bindings to simplify
6414 the code and get rid of the gotos. Use ASIZE.
6415
04f4b72d
JD
64162009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6417
4da146f2
JD
6418 * xterm.c (x_focus_changed): If we get a focusout and pointer
6419 is invisible, make it visible.
6420
04f4b72d
JD
6421 * xterm.h: Remove condition for declaration of
6422 x_*_window_to_frame.
6423
7cef7ce3
SM
64242009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6425
6426 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6427 initial terminal as well.
6428
a54fa5b7
JD
64292009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6430
6431 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6432 x_menubar_window_to_frame.
a54fa5b7 6433
50426a04 6434 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6435 (XTmouse_position): Do not return valid positions
6436 for clicks in the menubar and the toolbar for Gtk+.
6437
6438 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6439 if the widget for the event has the same top level as a frame,
6440 return the frame.
6441 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6442 internal windows, bug #4122.
6443 (x_non_menubar_window_to_frame): Remove.
6444
5a021dd0
GM
64452009-09-02 Glenn Morris <rgm@gnu.org>
6446
6447 * buffer.c (default-major-mode): Move most of the doc from here...
6448 (major-mode): ... to here.
6449
548fe2f3
NR
64502009-08-30 Nick Roberts <nickrob@snap.net.nz>
6451
6452 * process.c (wait_reading_process_output): Keep the descriptor
6453 when pty is used by a non-child process, e.g., in I/O buffer of
6454 GDB this allows inferior to be restarted.
6455
e0840eef
EZ
64562009-08-29 Eli Zaretskii <eliz@gnu.org>
6457
6458 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6459 both branches into one.
6460
82e98df4
SM
64612009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6462
6463 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6464 (main): Use enable-multibyte-characters rather than
6465 default-enable-multibyte-characters. Output a warning message when
6466 running a unibyte session.
6467
890617cb
YM
64682009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6469
6470 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6471 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6472 (copy_data_segment): Also copy __program_vars section.
6473 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6474 (dump_it) [LC_DYLD_INFO]: Use it.
6475
6476 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6477
e7adeadc
EZ
64782009-08-28 Eli Zaretskii <eliz@gnu.org>
6479
6480 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6481 $(SRC)/buildobj.h.
6482 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6483 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6484 $(SRC)/buildobj.h.
6485 (clean): Add buildobj.h.
6486
3ed8bbdc
TZ
64872009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6488
6489 * print.c (print_object): Set escapeflag to 1 when printing
6490 hashtable keys and values.
6491
155a6764
SM
64922009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6493
6494 * lread.c (read_integer): Use doubles (and potentially return a float
6495 number) as we do in string-to-number.
6496 (read1): Use strtol to read integers, signal errors on strtol's
6497 overflow and use floats if strtol's output is too large for
6498 Elisp integers.
6499
877610de
EZ
65002009-08-27 Eli Zaretskii <eliz@gnu.org>
6501
6502 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6503 (make-buildobj-SH): Fix last change.
6504 (SRC): Move to before where it's first used.
6505
ef73e7be
KH
65062009-08-27 Kenichi Handa <handa@m17n.org>
6507
550c8289
KH
6508 * process.c (send_process): Use encode_coding_object instead of
6509 encode_coding_string to perform eol-conversion even if the string
6510 is unibyte.
6511
60afa08d
KH
6512 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6513 character.
6514
ef73e7be 6515 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6516 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6517
7b3a82d7
DN
65182009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6519
5654bf63
DN
6520 * callproc.c (Fcall_process): Remove always true #if.
6521
7b3a82d7
DN
6522 * lisp.h: Replace #if 0 code for checking with text pointing to
6523 the --enable-checking configure flag.
6524
6525 * emacs.c (main): Mention the --enable-profiling configure flag
6526 instead of using CFLAGS.
6527
878bde49
KR
65282009-08-26 Ken Raeburn <raeburn@raeburn.org>
6529
6530 * Makefile.in (buildobj.h): New target.
6531 (doc.o): Depend on it.
6532 (temacs${EXEEXT}): Don't generate buildobj.lst.
6533 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6534 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6535 ($(BLD)/doc.$(O)): Depend on it.
6536 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6537 provided by Eli Zaretskii.)
6538 ($(TEMACS)): Don't generate buildobj.lst.
6539 * doc.c: Include buildobj.h.
6540 (buildobj): New static variable.
6541 (Fsnarf_documentation): Use it, instead of opening and reading
6542 buildobj.lst.
6543
1574224c
MA
65442009-08-25 Michael Albinus <michael.albinus@gmx.de>
6545
6546 * dbusbind.c (Fdbus_call_method)
6547 (Fdbus_call_method_asynchronously): Use English numeric format for
6548 timeout values in doc string.
6549
d9da2f45
KH
65502009-08-25 Kenichi Handa <handa@m17n.org>
6551
ef73e7be
KH
6552 * alloc.c (mark_char_table): New function.
6553 (mark_object): Use mark_char_table for a char-table.
6554
d9da2f45
KH
6555 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6556 (CHAR_TABLE_REF): Use it.
6557
c8edcc01
KR
65582009-08-23 Ken Raeburn <raeburn@raeburn.org>
6559
6560 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6561 before invoking the newly build emacs to check for load-path
6562 shadowing.
6563
7763401b
GM
65642009-08-22 Glenn Morris <rgm@gnu.org>
6565
6566 * Makefile.in (bootstrap_exe): New variable.
6567 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6568 Use ${bootstrap_exe}.
6569
729eadda
EZ
65702009-08-22 Eli Zaretskii <eliz@gnu.org>
6571
6572 * coding.h (encode_coding_string): Don't encode unibyte strings.
6573 (Bug#4047)
6574
eb4c6ace
MA
65752009-08-22 Michael Albinus <michael.albinus@gmx.de>
6576
6577 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6578
6579 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6580 intended as hotfix only.
6581 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6582
36e34d1b
AR
65832009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6584
6585 * nsterm.m (ns_get_color): Update documentation properly for last
6586 change, and clean up loose ends in the code left by it. Fix
6587 longstanding bug with 16-bit hex parsing, and add support for
6588 yet another X11 format (rgb:r/g/b) for compatibility.
6589 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6590 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6591
f983eb8a
SM
65922009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6593
6594 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6595
3f56d3c6
MA
65962009-08-20 Michael Albinus <michael.albinus@gmx.de>
6597
6598 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6599 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6600 (xd_initialize, xd_pending_messages): Check, whether
6601 $DBUS_SESSION_BUS_ADDRESS is set.
6602
fb641d68
YM
66032009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6604
6605 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6606
6607 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6608
cf59a374
GM
66092009-08-20 Glenn Morris <rgm@gnu.org>
6610
6611 * emacs.c (system-type): Doc fix.
6612
1373f3be
SM
66132009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6614
6615 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6616 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6617
058ed861
MA
66182009-08-18 Michael Albinus <michael.albinus@gmx.de>
6619
1373f3be
SM
6620 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6621 New functions.
058ed861
MA
6622 (xd_initialize): Revert change from 2009-08-16.
6623
563a866e 66242009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6625
6626 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6627 font-group vector, return nil.
5fc05db0 6628
e42bdf01
CY
66292009-08-17 Chong Yidong <cyd@stupidchicken.com>
6630
6631 * process.c (status_notify): Don't perform redisplay.
6632 (Fdelete_process, list_processes_1, process_send_signal):
6633 Expliticly perform redisplay.
6634 (wait_reading_process_output): Always check process status, but
6635 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6636
4230ab74
KR
66372009-08-17 Ken Raeburn <raeburn@raeburn.org>
6638
1373f3be 6639 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6640 (XFLOAT_INIT): New macro for storing a float value.
6641 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6642 * fns.c (sxhash): Copy out the value of a float in order to
6643 examine its bytes.
6644 * dbusbind.c (xd_append_arg): Likewise.
6645
4230ab74
KR
6646 * emacs.c (main): Don't call syms_of_data twice.
6647
a0645cdd
MA
66482009-08-16 Michael Albinus <michael.albinus@gmx.de>
6649
6650 * dbusbind.c (xd_initialize): Add connection file descriptor to
6651 input_wait_mask, in order to let select() detect, whether a new
6652 message has been arrived.
ca4f31ea 6653 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6654
485db0ba
MA
66552009-08-15 Michael Albinus <michael.albinus@gmx.de>
6656
1373f3be
SM
6657 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6658 New functions.
485db0ba
MA
6659
6660 * lisp.h (xd_pending_messages): Declare.
6661
6662 * keyboard.c (readable_events): Call xd_pending_messages.
6663
b5b98ff4
CY
66642009-08-15 Chong Yidong <cyd@stupidchicken.com>
6665
1373f3be 6666 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6667
f8354c6e
CY
6668 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6669
b5b98ff4
CY
6670 * buffer.c (set_buffer_internal_1)
6671 (swap_out_buffer_local_variables): Check for unbound local
6672 variables (Bug#4138).
6673
8b9fc636
EZ
66742009-08-14 Eli Zaretskii <eliz@gnu.org>
6675
6676 * process.c (create_pty): Fix last change.
6677
ce959360
CY
66782009-08-13 Chong Yidong <cyd@stupidchicken.com>
6679
6680 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6681 (xbm_load_image): Caller changed.
64b807c9 6682 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6683
c7baf7e9
NR
66842009-08-13 Nick Roberts <nickrob@snap.net.nz>
6685
6686 * process.c (create_pty): New function.
6687 (Fstart_process): Use it to allow Emacs to just associate a pty
6688 with the buffer. See associated change in gdb-mi.el.
6689 (list_processes_1): Deal with no program name.
6690 (start_process_unwind): Use pid == -2 to mean no process.
6691
1ac9108a
SM
66922009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6693
6694 * cmds.c (nonundocount): New global variable.
6695 (keys_of_cmds): Initialize it.
6696 (Fself_insert_command): Use it to combine upto 20 sequential chars
6697 into a single undo entry, just like the Qself_insert_command code in
6698 keyboard.c does.
6699 Call frame_make_pointer_invisible, also like the Qself_insert_command
6700 code in keyboard.c does.
6701 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6702 than its own local replacement for it.
6703
e267324c
KR
67042009-08-10 Ken Raeburn <raeburn@raeburn.org>
6705
1ac9108a 6706 * fns.c (concat): Don't re-set string length to its current value.
77437343 6707
1ac9108a
SM
6708 * coding.h (decode_coding_string, encode_coding_string):
6709 Use SBYTES macro.
f0bed503 6710
1ac9108a 6711 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6712 (doprnt): Merge with doprnt1, discarding lispstrings code.
6713 * lisp.h (doprnt_lisp): Don't declare.
6714
416e006d
JL
67152009-08-07 Juri Linkov <juri@jurta.org>
6716
6717 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6718
6f7d5780
DN
67192009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6720
6721 * print.c (syms_of_print): Undo previous change.
6722
f19a0f5b
TZ
67232009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6724
6725 * lread.c (read1, syms_of_lread): Read hashtables back from the
6726 readable format.
6727
6728 * print.c (print_preprocess, print_object): Print hashtables fully
6729 and readably.
6730 (syms_of_print): Provide 'hashtable-print-readable.
6731
b9173dc2
AR
67322009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6733
6734 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6735 no family set.
6736 (nsfont_open): Handle case when entity has no family.
6737
1586503c
AR
67382009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6739
6740 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6741 element, not a list, for match case.
6742
087048cd
KH
67432009-07-28 Kenichi Handa <handa@m17n.org>
6744
6745 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6746 rigidly.
6747
6748 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6749 font_parse_xlfd. Check font properties more rigidly.
6750
780c2506
DN
67512009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6752
31fd7c5c
JB
6753 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6754 bsd-common.h.
780c2506 6755
a8c0cc18
KH
67562009-07-27 Kenichi Handa <handa@m17n.org>
6757
6758 * xfaces.c (face_with_height): Call font_clear_prop.
6759
4fbe2306
CY
67602009-07-26 Chong Yidong <cyd@stupidchicken.com>
6761
111d9af3
CY
6762 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6763
6764 * xterm.c (x_term_init): Use Qx.
6765
4fbe2306
CY
6766 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6767
1ac9108a 6768 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6769 (ns_get_color): Revert 2009-07-16 change.
6770
beb0b7f9
EZ
67712009-07-25 Eli Zaretskii <eliz@gnu.org>
6772
6773 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6774 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6775
2baf5e76
KR
67762009-07-25 Ken Raeburn <raeburn@raeburn.org>
6777
1ac9108a
SM
6778 * coding.h (decode_coding_string, encode_coding_string):
6779 Use SCHARS macro.
8890e5f5 6780
2baf5e76 6781 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6782 (load_depth): Delete.
2baf5e76
KR
6783 (Qload_in_progress): New variable.
6784 (load_unwind): Don't reference load_depth or load_in_progress.
6785 (Fload): Likewise; specbind Qload_in_progress instead.
6786 (init_lread): Don't initialize load_depth.
6787 (syms_of_lread): Initialize and protect Qload_in_progress.
6788
1395c6f5
AR
67892009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6790
6791 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6792
4e2f36cf
AR
67932009-07-23 Yavor Doganov <yavor@gnu.org>
6794
6795 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6796
5dd9a6f7
AR
67972009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6798
6799 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6800 Bugs 3792, 3720, 2402.
6801 (ns_lookup_indexed_color): Check for bad index.
6802 (ns_index_color): Init unused slot to 0.
6803 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6804 Bug 3714, possibly 3082.
5dd9a6f7 6805
c902b920
JR
68062009-07-22 Jason Rumney <jasonr@gnu.org>
6807
1ac9108a
SM
6808 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6809 Position IME window at cursor (Bug#2570).
c902b920
JR
6810 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6811 (globals_of_w32fns): Dynamically load functions required above.
6812
6813 * w32term.c (w32_draw_window_cursor): Send message to reposition
6814 any IME window.
6815
090101cf
CY
68162009-07-21 Chong Yidong <cyd@stupidchicken.com>
6817
6818 * fileio.c: Revert 2009-07-16 changes.
6819 (Vauto_save_include_big_deletions): New variable.
6820 (Fdo_auto_save): Disable auto-save only if
6821 auto-save-include-big-deletions is nil.
6822
e6583e3d
CY
68232009-07-21 Chong Yidong <cyd@stupidchicken.com>
6824
6825 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6826 the overflowed pixels into account (Bug#3879).
6827
ece435a5
KR
68282009-07-21 Ken Raeburn <raeburn@raeburn.org>
6829
6830 * lread.c (load_depth): New variable.
6831 (Fload, load_unwind, init_lread): Set it to the load recursion
6832 depth; set load_in_progress as a simple boolean based on the
6833 current load_depth. (Bug#3892)
6834
40b2d973
AR
68352009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6836
6837 * nsfont.m (ns_has_attribute): Remove.
6838 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6839
10be7e0d
JL
68402009-07-18 Juri Linkov <juri@jurta.org>
6841
6842 * process.c (Fset_process_query_on_exit_flag): Mention killing
6843 a buffer in docstring.
6844
fa055055
KH
68452009-07-17 Kenichi Handa <handa@m17n.org>
6846
6847 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6848
042f7b69
YM
68492009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6850
6851 * nsfns.m (Fns_set_alpha): Remove function.
6852 (syms_of_nsfns): Don't defsubr it.
6853
6854 * nsterm.m (ns_get_color): Remove incompatible color formats.
6855 (ns_color_to_lisp): Generate #rrggbb color format string.
6856
4be941e3
RS
68572009-07-16 Richard Stallman <rms@gnu.org>
6858
6859 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6860 (Fset_buffer_auto_saved): Handle save_length = -2.
6861
4e6b227d
CY
68622009-07-16 Chong Yidong <cyd@stupidchicken.com>
6863
6864 * xterm.c (Qx_gtk_map_stock): New var.
6865
6866 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6867 of calling intern each time.
6868
a1856973
YM
68692009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6870
6871 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6872 does tiling.
6873
6874 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6875
497e54d8
KH
68762009-07-14 Kenichi Handa <handa@m17n.org>
6877
72d36834
KH
6878 * font.c (font_vconcat_entity_vectors): New function.
6879 (struct font_sort_data): New member font_driver_preference.
6880 (font_compare): Check font_driver_preference.
6881 (font_sort_entities): The format of the first argument changed.
6882 (font_delete_unmatched): Likewise.
6883 (font_list_entities): The return type changed.
6884 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6885 (font_find_for_lface): Adjuste for the above changes.
6886 Don't suppress the checking of C even if the repertory supports it.
6887 (Flist_fonts): Adjust for the above changes.
72d36834 6888
1ac9108a
SM
6889 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6890 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6891 Reject a font who has adstyle property that is different from a
6892 langname derived from registry property.
1ac9108a 6893 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6894
b6046155
EZ
68952009-07-13 Eli Zaretskii <eliz@gnu.org>
6896
6897 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6898 local copy of dirfilename.
6899
fb6b6049
KH
69002009-07-13 Kenichi Handa <handa@m17n.org>
6901
e2402a5e
KH
6902 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6903 against max_char.
6904
fb6b6049
KH
6905 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6906 calling XSYMBOL (sym).
6907
65156807
EZ
69082009-07-11 Eli Zaretskii <eliz@gnu.org>
6909
1ac9108a
SM
6910 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6911 New function.
6912 (directory_files_internal) [WINDOWSNT]:
6913 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6914 the filesystem of the directory is fast or slow.
6915
6916 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6917 file name.
6918 (is_slow_fs): New function.
6919 (stat): Use it to determine whether to issue more system calls to
6920 get accurate file attributes, when w32-get-true-file-attributes is
6921 `local'.
6922
e0ab5fcf
JD
69232009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6924
6925 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6926 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6927 parameter font-parameter as default to the font dialog.
6928
784ceded
KH
69292009-07-10 Kenichi Handa <handa@m17n.org>
6930
6931 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6932
fb8edc0b
EZ
69332009-07-09 Eli Zaretskii <eliz@gnu.org>
6934
1ac9108a 6935 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6936
fb8edc0b
EZ
6937 * w32.c (stat): Treat UNC file names as residing on remote
6938 drives. (Bug#3542)
6939
635c75b1
KH
69402009-07-09 Kenichi Handa <handa@m17n.org>
6941
6942 * fontset.c (fontset_find_font): Fix previous change.
6943
c1d5ce94
MA
69442009-07-08 Michael Albinus <michael.albinus@gmx.de>
6945
6946 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6947 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6948 error flag.
6949
edb61b39
KH
69502009-07-08 Kenichi Handa <handa@m17n.org>
6951
374bf7e4
KH
6952 * fontset.c (fontset_find_font): Fix the logic of handling
6953 charset_matched.
6954 (font_for_char): Delete unused var.
6955 (generate_ascii_font_name): Delete it.
6956
edb61b39
KH
6957 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6958
6959 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6960 (encode_coding_sjis): Fix the code range check.
6961
0f3f018c
CY
69622009-07-07 Chong Yidong <cyd@stupidchicken.com>
6963
6964 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6965 (Fexpand_file_name): Copy string data properly (Bug#3772).
6966
fcaf6f3a
JD
69672009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6968
6969 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6970 first MapNotify.
6971
6809ca75
KH
69722009-07-07 Kenichi Handa <handa@m17n.org>
6973
6974 * character.h (unibyte_has_multibyte_table): Delete extern.
6975 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6976
6977 * charset.c (Fset_charset_priority): Update charset_unibyte.
6978 (syms_of_charset): Initialize charset_unibyte.
6979
6980 * character.c (unibyte_has_multibyte_table): Delete it.
6981 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6982 charset_unibyte.
6983 (multibyte_char_to_unibyte_safe): Likewise.
6984 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6985
1ac9108a 6986 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6987 (x_produce_glyphs): Likewise.
6988
6989 * .gdbinit (xcharset): Fix the treating $arg0.
6990
ad9e2d54
EZ
69912009-07-04 Eli Zaretskii <eliz@gnu.org>
6992
6993 Emulation of `getloadavg' on MS-Windows.
50426a04 6994 * w32.c: Include float.h.
ad9e2d54
EZ
6995 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6996 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6997 (get_native_system_info, get_system_times): New functions.
6998 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6999 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7000 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7001 g_b_init_get_system_times, and num_of_processors.
7002
0a3472c7
JR
70032009-07-03 Jason Rumney <jasonr@gnu.org>
7004
7005 * w32term.c (w32_initialize): Use standard types.
7006
80904120
EZ
70072009-07-03 Eli Zaretskii <eliz@gnu.org>
7008
7009 * dired.c (Ffile_attributes): Decode user and group names by the
7010 locale's encoding. (Bug#3443)
7011
6978862d
DN
70122009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7013
f8d23104
DN
7014 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7015 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7016
7017 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7018
7019 * term.c (init_tty): Remove spurious #ifdef.
7020
6978862d
DN
7021 * m/mips.h: Mention this file is also used for netbsd.
7022 * m/pmax.h: Remove file.
7023
e044e4fc
JD
70242009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7025
7026 * xterm.h (struct x_display_info): Add invisible_cursor.
7027 (struct x_output): Add current_cursor.
7028
7029 * xterm.c (XTtoggle_invisible_pointer): New function.
7030 (x_define_frame_cursor): Don't define cursor if invisible or the
7031 same as before. Set current_cursor.
7032 (x_create_terminal): Set toggle_invisible_pointer_hook.
7033
7034 * xfns.c (make_invisible_cursor): New function.
7035 (x_set_mouse_color): Call make_invisible_cursor.
7036 Set current_cursor.
7037 (x_window): Set current_cursor.
7038
7039 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7040
7041 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7042 inserting a character.
7043 (read_avail_input): Call frame_make_pointer_visible.
7044
7045 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7046 (frame_make_pointer_invisible, frame_make_pointer_visible):
7047 New functions.
e044e4fc
JD
7048 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7049
7050 * frame.h: Declare frame_make_pointer_invisible and
7051 frame_make_pointer_visible.
7052 (struct frame): Add pointer_invisible.
7053
574c8efa
JD
70542009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7055
7b507248
JD
7056 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7057 frame isn't visible.
7058 (xg_frame_resized): If width/height is -1, get size of window
7059 from X server.
7060
7061 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7062 for MapNotify.
7063
835bdaa7 7064 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7065 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7066 (flush_and_sync): Reintroduce.
574c8efa 7067
3f1c6666 70682009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7069
31fd7c5c 7070 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7071
7072 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7073 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7074
7075 * frame.h: Declare Qsticky.
7076
cad9ef74
JD
7077 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7078
7079 * nsfns.m (ns_frame_parm_handlers): Ditto.
7080
7081 * frame.c: Declare Qsticky.
7082 (frame_parms): Add sticky.
7083
7084 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7085
7086 * xterm.h: Declare x_set_sticky.
7087
7088 * xterm.c (x_set_sticky): New function.
7089
69b16610
JD
7090 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7091 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7092 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7093
7094 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7095
7096 * frame.c: Qmaximized is new.
7097 (x_set_frame_parameters): Do not handle fullscreen specially.
7098 Only set width and height if explicitly set.
7099 (x_set_fullscreen): Handle Qmaximized.
7100 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7101 (syms_of_frame): Initialize Qmaximized.
7102
1ac9108a
SM
7103 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7104 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7105
7106 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7107 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7108 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7109 set gravity to NorthWestGravity when USE_GTK.
7110 (set_wm_state): New function.
31fd7c5c 7111 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7112 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7113 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7114 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7115 to x_real_positions and x_fullscreen_adjust.
7116
7117 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7118 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7119 flush_and_sync.
7120 (xg_height_changed): New function.
7121 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7122 and gtk_window_set_policy. Set frame gravity after parsing the
7123 geometry string.
3f1c6666
JD
7124 (xg_update_frame_menubar, free_frame_menubar)
7125 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7126 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7127 Remove calls to xg_frame_set_char_size.
7128
fd503d99
KH
71292009-07-01 Kenichi Handa <handa@m17n.org>
7130
7131 * keyboard.c (decode_keyboard_code): New function.
7132 (tty_read_avail_input): Decode the input bytes if necessary.
7133
1ac9108a
SM
7134 * coding.c (setup_coding_system):
7135 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7136 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7137 use Qno_conversion.
7138
24ed93fb
YM
71392009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7140
7141 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7142
99061dfc
CY
71432009-06-30 Chong Yidong <cyd@stupidchicken.com>
7144
1ac9108a 7145 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7146
ff90fbde
JR
71472009-06-30 Jason Rumney <jasonr@gnu.org>
7148
7149 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7150 is already loaded.
7151 Set user model ID if supported (bug#1849).
7152
5f445726
JM
71532009-06-29 Jim Meyering <meyering@redhat.com>
7154
7155 Remove useless if-before-xfree test.
7156 * nsfont.m (nsfont_close): Remove useless test.
7157 * term.c (delete_tty): Likewise.
7158 * w32.c (system_process_attributes): Likewise.
7159 * w32font.c (w32font_close): Likewise.
7160 * xfaces.c (x_free_gc): Likewise.
7161 * xselect.c (buffer): Likewise.
7162
b9607587
AS
71632009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7164
7165 * process.c (send_process): Keep decoded string in a local
7166 variable and protect it from GC. (Bug#3521)
7167
89ba96f4
EZ
71682009-06-28 Eli Zaretskii <eliz@gnu.org>
7169
7170 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7171 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7172
098a1589
CY
71732009-06-28 Chong Yidong <cyd@stupidchicken.com>
7174
485422be
CY
7175 * xdisp.c (start_display, handle_face_prop)
7176 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7177 (redisplay_window, try_window_id, produce_image_glyph):
7178 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7179
098a1589
CY
7180 * xterm.c (x_update_window_begin, x_new_focus_frame)
7181 (x_scroll_bar_handle_click, handle_one_xevent)
7182 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7183 (x_make_frame_visible, x_make_frame_invisible)
7184 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7185 code chunks that are now obsolete.
7186
78c38319
MA
71872009-06-28 Michael Albinus <michael.albinus@gmx.de>
7188
7189 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7190 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7191 for hours, when optimzation is enabled.
7192 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7193 (xd_read_message): Make them static.
7194
4189ed40
CY
71952009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7196
7197 * term.c (turn_on_face): Allow simultaneously bold and dim
7198 terminal faces (Bug#3530).
7199
cd9b5e16
CY
72002009-06-27 Chong Yidong <cyd@stupidchicken.com>
7201
4e23bedb
CY
7202 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7203
cd9b5e16
CY
7204 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7205 truncation glyphs (Bug#3686).
7206
07cc3c35
GM
72072009-06-27 Glenn Morris <rgm@gnu.org>
7208
7209 * m/pmax.h: Restore file, with only netbsd portions.
7210
31fd7c5c 72112009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7212
cd9b5e16 7213 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7214
42d4a64f
KH
72152009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7216
7217 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7218 the arg FORCE_SYMBOL.
7219
930fe55b 72202009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7221
7222 * fontset.c (fontset_find_font): When a usable rfont_def is found
7223 in a fallback font-group, make it the first element of the group.
7224
57ebc3fd
CY
72252009-06-24 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7228
f084f942
KH
72292009-06-24 Kenichi Handa <handa@m17n.org>
7230
7231 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7232 set for C.
7233 (fontset_font): Record the availability of a font for C both in
7234 the realized fontsets of the current one and the default one.
7235
2f686c87
DN
72362009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7237
7238 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7239 conditional, it is always defined on AIX.
7240
666e158e
MB
72412009-06-23 Miles Bader <miles@gnu.org>
7242
7243 * window.c (Vrecenter_redisplay): New variable.
7244 (syms_of_window): Initialize it.
7245 (Qtty): New extern declaration.
7246 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7247
c6da7cd2
JM
72482009-06-23 Jim Meyering <meyering@redhat.com>
7249
1ac9108a
SM
7250 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7251 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7252 pointer dereferences are guaranteed to be valid.
c6da7cd2 7253
678dca3d
KH
72542009-06-23 Kenichi Handa <handa@m17n.org>
7255
74d75424
KH
7256 * emacs.c (main): Call init_font ().
7257
7258 * font.h (Vfont_log): Extern it.
7259 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7260
7261 * font.c (font_sort_entities, font_list_entities)
7262 (font_matching_entity, font_open_entity)
7263 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7264 (Vfont_log): Delete static.
7265 (font_log_env_checked): Delete this variable.
7266 (font_add_log): Don't check font_log_env_checked.
7267 (font_deferred_log): Check Vfont_log.
7268 (init_font): New function.
7269
678dca3d
KH
7270 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7271
7272 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7273
7274 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7275
7276 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7277
7278 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7279 (face_for_char): Don't call font_deferred_log here.
7280 (font_for_char): Likewise.
7281
8a668709
CY
72822009-06-22 Chong Yidong <cyd@stupidchicken.com>
7283
9a01ee33
CY
7284 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7285 rather than its background_width for drawing the overline and
7286 underline (Bug#489).
7287
7288 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7289 rather than its background_width for drawing the overline and
7290 underline (Bug#489).
ec7c9926
CY
7291 (xg_default_icon_file): New variable.
7292 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7293 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7294
8a668709
CY
7295 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7296 (load_overlay_strings): Remove externs.
7297 (fast_find_position): Function deleted.
7298 (mouse_face_from_buffer_pos): New function, based on
7299 fast_find_position. Correctly handle before-strings,
7300 display-strings, and after-strings (Bug#1220).
7301 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7302
4d4c02d8
CY
73032009-06-21 Chong Yidong <cyd@stupidchicken.com>
7304
1ac9108a 7305 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7306 (move_it_in_display_line_to, move_it_in_display_line_to)
7307 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7308
70243478
CY
73092009-06-21 Chong Yidong <cyd@stupidchicken.com>
7310
7311 * Branch for 23.1.
7312
13087e59
JR
73132009-06-21 Jason Rumney <jasonr@gnu.org>
7314
7315 * w32term.c (keyboard_codepage): New static variable.
7316 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7317 (w32_read_socket) [WM_CHAR]: Use it to decode character
7318 input (bug#3237).
7319 (w32_initialize): Initialize it.
7320 (codepage_for_locale): New function.
7321
4735b74e
KR
73222009-06-20 Ken Raeburn <raeburn@raeburn.org>
7323
7324 * process.c (status_message): Pass Faset index argument as a lisp
7325 object, so as to work with USE_LISP_UNION_TYPE.
7326
0e727afa
YM
73272009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7328
7329 * coding.c (Ffind_coding_systems_region_internal):
7330 Cache checked characters.
7331
cf299835
KH
73322009-06-18 Kenichi Handa <handa@m17n.org>
7333
1ac9108a 7334 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7335
90f20d94
AS
73362009-06-18 Andreas Schwab <aschwab@redhat.com>
7337
7338 * xdisp.c (redisplay_internal): Check that the frame is still
7339 live after redisplay of its windows.
7340 (redisplay_windows): Check that the window is still live.
7341
7f1faf1c
KH
73422009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7343
7344 * coding.c (detect_coding_utf_16): Fix previous change.
7345
cc13543e
KH
73462009-06-16 Kenichi Handa <handa@m17n.org>
7347
7348 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7349 UTF-16 by checking the dispersion of Eth and Oth bytes.
7350
977b85f4
AS
73512009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7352
7353 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7354
66bd43d1
KH
73552009-06-15 Kenichi Handa <handa@m17n.org>
7356
7357 * process.c (status_message): Fix previous change. Be sure to
7358 decode a localized string.
7359
cb5ca9c5
YM
73602009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7361
7362 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7363 add comment explaining why.
7364
ec7709ba 73652009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7366
ec7709ba 7367 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7368
4b7f335c
AR
73692009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7370
7371 * nsfont.m (ns_attribute_value): Remove.
7372 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7373 (ns_has_attribute): Shrink the normal range.
7374 (ns_findfonts): Don't worry about requested spec in determining
7375 need for synthItal.
e41820ee 7376 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7377
73b26103
SZ
73782009-06-14 Seiji Zenitani <zenitani@mac.com>
7379
7380 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7381
5753e4da
KH
73822009-06-11 Kenichi Handa <handa@m17n.org>
7383
7384 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7385 overhang for the static composition case.
7386
3561b671
KH
73872009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7388
5753e4da
KH
7389 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7390 overhang for the automatic composition case.
7391
3561b671
KH
7392 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7393 composition case.
7394
852bbd41
CY
73952009-06-10 Chong Yidong <cyd@stupidchicken.com>
7396
7397 * xdisp.c (get_next_display_element): When handling wrap-prefix
7398 and line-prefix, treat \n as a control character (bug#3502).
7399
9903d1e6
KH
74002009-06-10 Kenichi Handa <handa@m17n.org>
7401
7402 * font.c (font_parse_family_registry): Fix for one-char foundry.
7403 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7404
0bcbaaaa
CY
74052009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7406
7407 * process.c (status_message): Fix handling of multibyte signal
7408 string (Bug#3499).
7409
40aa3f13
JM
74102009-06-09 Jim Meyering <meyering@redhat.com>
7411
1f80c7e2
CY
7412 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7413 color name is missing.
40aa3f13 7414
72d51285
KH
74152009-06-09 Kenichi Handa <handa@m17n.org>
7416
7417 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7418 FROM-CODE and TO-CODE are codepoints of CHARSET.
7419
c1d04d84
AR
74202009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7421
7422 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7423
74242009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7425
7426 Changes to support :script/:lang/:otf in NS font driver.
7427 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7428 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7429 indicate not part of font driver interface, and change callers.
7430 (ns_get_family): Remove pointless null check.
7431 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7432 ns_spec_to_descriptor, ns_descriptor_to_entity.
7433 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7434 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7435 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7436 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7437 (ns_get_req_script, ns_accumulate_script_ranges)
7438 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7439 New functions.
7440 (nsfont_list, nsfont_match): Use ns_findfonts.
7441 (nsfont_open): Use font descriptor instead of traits.
7442 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7443 (dump_glyphstring): Rename to ns_dump_glyphstring.
7444
c7eb9816
AR
7445 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7446
c1d04d84
AR
7447 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7448
7449 * fontset.c (fontset_from_font): Remove NS-specific code.
7450
ec7709ba 74512009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7452
7453 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7454 nonactive windows.
7455
31fd7c5c 74562009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7457
1ac9108a 7458 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7459
68852c13 74602009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7461
7462 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7463
6756cd1d
CY
74642009-06-07 Chong Yidong <cyd@stupidchicken.com>
7465
7466 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7467 account for the overflowing of newlines into the last glyph on the
7468 display line (Bug#3482).
7469
28bf482a
DR
74702009-06-05 David Reitter <david.reitter@gmail.com>
7471
ec7709ba
JB
7472 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7473 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7474 Fns_selection_exists_p, Fns_selection_owner_p.
7475
fdb55376
JR
74762009-06-03 Jason Rumney <jasonr@gnu.org>
7477
7478 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7479 available. (Bug#3379)
7480
05129fbe
KH
74812009-05-29 Kenichi Handa <handa@m17n.org>
7482
1ac9108a
SM
7483 * coding.c (get_translation_table):
7484 Check Venable_character_translation.
05129fbe 7485
ec7709ba 74862009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7487
ec7709ba
JB
7488 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7489 (x_make_frame_visible): Move frame to front rather than calling
15891144 7490 ns_raise_frame().
ec7709ba 7491 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7492 isn't key window.
ec7709ba 7493 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7494 drawRect may be called by NSView even if the frame is hidden.
7495
ec7709ba
JB
7496 * nsfns.m (Fx_create_frame): Follow other ports in
7497 determining visibility; default to t. Ensure async_visible is set.
15891144 7498
21f73755
EZ
74992009-05-23 Eli Zaretskii <eliz@gnu.org>
7500
7501 * dired.c (Ffile_attributes): Doc fix.
7502
34001e41
CY
75032009-05-22 Chong Yidong <cyd@stupidchicken.com>
7504
7505 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7506
46306a17
SM
75072009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7508
7509 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7510 and xfont_scratch_props.
7511 (syms_of_xfont): Do it here instead.
7512 (xfont_find_ccl_program): Delete, unused.
7513 (xfont_open): Delete unused var `i'.
7514
ef6e0694
KH
75152009-05-21 Kenichi Handa <handa@m17n.org>
7516
7517 * fontset.c (Qlatin): Don't make it static.
7518
46306a17
SM
7519 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7520 New functions.
ef6e0694
KH
7521 (xfont_scripts_cache, xfont_scratch_props): New variables.
7522 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7523 (xfont_list_pattern): Argument changed. Callers changed.
7524 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7525 (xfont_list): Don't reject a font spec with :script property.
7526 (xfont_has_char): Fix setting of encoding.
7527 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7528 xfont_scratch_props.
7529
75302009-05-19 Kenichi Handa <handa@m17n.org>
7531
46306a17 7532 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7533 Callers changed.
7534
75352009-05-18 Kenichi Handa <handa@m17n.org>
7536
7537 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7538
ac71ced7
SM
75392009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7540
7541 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7542 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7543
1c6d1051
YM
75442009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7545
7546 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7547 (x_delete_terminal): Dissociate resource database from display and
7548 then call XrmDestroyDatabase before closing display.
7549
9b9b779c
AR
75502009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7551
7552 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7553 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7554 whether selected frame is viable before raising it (based on patch
7555 by David Reitter), and improve commentary.
7556 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7557
cccd42d5
KH
75582009-05-15 Kenichi Handa <handa@m17n.org>
7559
7560 * font.c (Ffont_spec): Check arguments.
7561
337fbd17
CY
75622009-05-14 Chong Yidong <cyd@stupidchicken.com>
7563
7564 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7565 weight when testing attributes (Bug#3282).
7566
47a6002f
JD
75672009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7568
7569 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7570 what we expect to get in the next ConfigureNotify event.
7571
9cb363db
YM
7572 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7573 before Xft one (Bug#1696).
7574
b9126609
CY
75752009-05-07 David Reitter <david.reitter@gmail.com>
7576
7577 * nsfns.m (Fx_display_planes): Compute bitplanes using
7578 NSBitsPerPixelFromDepth (Bug#3207).
7579
27a69fd9
CY
75802009-05-10 Chong Yidong <cyd@stupidchicken.com>
7581
7582 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7583
00f37552
TTN
75842009-05-10 Ulrich Mueller <ulm@gentoo.org>
7585
7586 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7587
2d82a920
DR
75882009-05-07 David Reitter <david.reitter@gmail.com>
7589
ec7709ba
JB
7590 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7591 Respect mouse face background.
2d82a920 7592
46b0d52d
DR
75932009-05-07 David Reitter <david.reitter@gmail.com>
7594
ec7709ba
JB
7595 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7596 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7597 in ns_update_begin and ns_update_end.
7598
ce1b23bb
SM
75992009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7600
5996e1b7
SM
7601 * nsfns.m (ns_get_screen): Rewrite.
7602 Don't presume selected-frame is of type `ns'.
7603
ba98e3a0
SM
7604 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7605 all drivers.
7606
ce1b23bb
SM
7607 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7608
bcda200f
YM
76092009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7610
7611 * keyboard.h (add_user_signal): Fix typo in extern.
7612
7613 * lisp.h (add_user_signal): Remove extern.
7614
7615 * unexelf.c (unexec): Consider a section to precede the .bss section
7616 if its addresses overlap that of .bss.
7617 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7618 instead of dumping process.
7619
864660a2
SM
76202009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7621
7622 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7623
50da4e56
SM
76242009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7625
7626 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7627
51520a1a
DN
76282009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7629
7630 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7631 any statements.
7632
409ea3a1
AS
76332009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7634
59c4c60f
AS
7635 * process.c (read_process_output): Make sure the current buffer is
7636 always restored.
7637
409ea3a1
AS
7638 * coding.c (record_conversion_result): Don't modify
7639 Vlast_code_conversion_error for successful result.
7640 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7641
56f00ed2
KH
76422009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7643
7644 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7645 (load_charset_map): Remove unnecessary code.
56f00ed2 7646
4491c9d2
DR
76472009-04-30 David Reitter <david.reitter@gmail.com>
7648
35f5b128 7649 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7650 through f24.
7651
6970f632
CY
76522009-04-30 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7655
7656 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7657 face_at_buffer_position.
7658 (face_before_or_after_it_pos, get_next_display_element)
7659 (note_mouse_highlight): Update face_at_buffer_position call.
7660
7661 * term.c (term_mouse_highlight):
7662 * msdos.c (IT_note_mouse_highlight):
7663 * fontset.c (Finternal_char_font):
35f5b128 7664 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7665
7666 * dispextern.h (face_at_buffer_position): Update prototype.
7667
0c616f63
KH
76682009-04-30 Kenichi Handa <handa@m17n.org>
7669
35f5b128 7670 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7671
ad3aaf33
AS
76722009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7673
7674 * callproc.c (Fcall_process): Fix GC protection. Make sure
7675 current buffer is always restored.
7676
c3c963a0
YM
76772009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7678
7679 * atimer.c (init_atimer): Also clear stopped_atimers.
7680
7681 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7682
7e3386cb
YM
7683 * process.c (create_process): Clean up merger residues of
7684 2008-07-17 change.
7685
91f68422
CY
76862009-04-29 Ulrich Mueller <ulm@gentoo.org>
7687
7688 * lread.c (Vread_circle): New variable.
7689 (read1): Disable recursive read if Vread_circle is nil.
7690
24b34550
KH
76912009-04-29 Kenichi Handa <handa@m17n.org>
7692
7693 * fontset.h (set_default_ascii_font): Delete extern.
7694
7695 * fontset.c (set_default_ascii_font): Delete this unused function.
7696
7697 * frame.c (x_set_font): When ARG is a font-object, check if the
7698 font-object matches with the ASCII font-spec of the frame's
9c358bda 7699 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7700
77bf07e1
AS
77012009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7702
7703 * fns.c (Flocale_info): Protect vector from GC during decoding.
7704
7705 * process.c (Fstart_process): Protect argv strings from GC during
7706 encoding.
7707
2c55aacf
AS
77082009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7709
7710 * sysdep.c: Include <ctype.h>.
7711
b892d3c9
DR
77122009-04-27 David Reitter <david.reitter@gmail.com>
7713
35f5b128 7714 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7715 Remove commented-out code.
7716
9d0644c4
JB
77172009-04-26 Johan Bockgård <bojohan@gnu.org>
7718
7719 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7720
b7053016
JR
77212009-04-25 Jason Rumney <jasonr@gnu.org>
7722
7723 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7724
4e8231f3
YM
77252009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7726
7727 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7728 Swap bytes in short integer if fringe bitmap width > 8.
7729
493dcf2c
KH
77302009-04-23 Kenichi Handa <handa@m17n.org>
7731
7732 * xfaces.c (Fx_list_fonts): If a font size is specified in
7733 PATTERN, set it in returned scalable fonts.
7734
401e9e57
CY
77352009-04-22 Chong Yidong <cyd@stupidchicken.com>
7736
708e05dc
CY
7737 * keyboard.c (Fset_input_meta_mode): Doc fix.
7738
7739 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7740
1ac9108a 7741 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7742
7743 * coding.c (Fterminal_coding_system): Doc fix.
7744
7745 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7746 (Fx_display_pixel_height, Fx_display_planes)
7747 (Fx_display_color_cells, Fx_server_max_request_size)
7748 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7749 (Fx_display_mm_height, Fx_display_mm_width)
7750 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7751 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7752 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7753 (check_x_display_info): Handle terminal objects instead of
7754 terminal ids.
7755
401e9e57
CY
7756 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7757 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7758 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7759 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7760
df80c7f0
KH
77612009-04-21 Kenichi Handa <handa@m17n.org>
7762
5a8f12af 7763 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7764 (font_score): Check AVGWIDTH too.
908567ef 7765
df80c7f0
KH
7766 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7767 worst case.
1ac9108a
SM
7768 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7769 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7770
705af33f
JR
77712009-04-19 Jason Rumney <jasonr@gnu.org>
7772
7773 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7774 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7775
7776 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7777 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7778 get_phys_cursor_geometry.
7779
b71ac3dd 7780 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7781 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7782 using get_phys_cursor_geometry.
7783
7784 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7785 correctly calculated.
7786
dc2933eb
JD
77872009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7788
1ac9108a
SM
7789 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7790 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7791 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7792 is deprecated.
7793
973e7849
AS
77942009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7795
7796 * font.c (font_put_frame_data): Use xfree instead of free.
7797
314d66f4
JB
77982009-04-17 Juanma Barranquero <lekktu@gmail.com>
7799
7800 * w32font.c (Qja, Qko): Remove declarations.
7801 (syms_of_w32font): Don't DEFSYM them.
7802
cf702558
CY
78032009-04-17 Chong Yidong <cyd@stupidchicken.com>
7804
7805 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7806
7807 * font.h (Qja, Qko): Extern them.
7808
7809 * ftfont.c (Qja, Qko): Remove declarations.
7810
7811 * xfont.c (Qja, Qko): Remove declarations.
7812
b50504f5
KH
78132009-04-17 Kenichi Handa <handa@m17n.org>
7814
bde25748
KH
7815 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7816 string from a vector to handle Latin-1 characters correctly.
7817
b50504f5
KH
7818 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7819 entity even if the cache hits.
7820
f4646fff
AS
78212009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7822
7823 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7824 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7825
e7deaab0
AS
7826 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7827 * lisp.h: Adjust prototypes.
7828
0a0e7d49
CY
78292009-04-16 Chong Yidong <cyd@stupidchicken.com>
7830
7831 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7832 change (Bug#3003).
7833
3c908a57
KH
78342009-04-16 Kenichi Handa <handa@m17n.org>
7835
1ac9108a 7836 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7837
7838 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7839 adstyle.
7840
7841 * ftfont.c (Qja, Qko): Don't make them static.
7842 (enum ftfont_cache_for): New enum.
7843 (fc_charset_table): Undo the previous change.
7844 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7845 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7846 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7847 non-scarable font, try to get AVERAGE_WIDTH.
7848 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7849 Change ft_face_cache from a list of a hash-table. Don't check
7850 `ja' and `ko' adstyle here.
7851 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7852 FTFONT_CACHE_FOR_CHARET.
7853 (ftfont_get_charset): Undo the previous change.
1ac9108a 7854 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7855 (ftfont_close): Likewise.
7856 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7857
7858 * font.c (font_sort_entites): Change the meaning of the arg
7859 BEST-ONLY. Don't optimize for VEC of lenght 1.
7860 (font_select_entity): Just return the value of font_sort_entites.
7861
7862 * xfaces.c (merge_face_vectors): Reflect font properties in
7863 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7864 font_clear_prop if a face attribute doesn't change.
7865
3c908a57
KH
7866 * charset.h (charset_ksc5601): Extern it.
7867
7868 * charset.c (charset_ksc5601): New variable.
7869 (Fdefine_charset_internal): Set charset_ksc5601.
7870 (init_charset_once): Initialize charset_ksc5601 to -1.
7871
d65859c3
DN
78722009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7873
7874 * fileio.c (history_delete_duplicates): Remove unused declaration.
7875
7876 * callint.c (history_delete_duplicates): New declaration.
7877 (Fcall_interactively): Remove command history duplicates when
7878 history_delete_duplicates is true.
7879
3ba010e5
EZ
78802009-04-14 Eli Zaretskii <eliz@gnu.org>
7881
7882 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7883
06f19b91
KH
78842009-04-14 Kenichi Handa <handa@m17n.org>
7885
7886 * font.c (Ffont_info): Fix docstring. Fix the second element of
7887 the returned value (bug#2949).
7888
2cce8bfc
CY
78892009-04-14 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7892
d156542d
KH
78932009-04-14 Kenichi Handa <handa@m17n.org>
7894
7895 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7896 encoding charset is ascii_compatible.
7897
7898 * charset.c (Fdefine_charset_internal): Make charset
7899 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7900 code_offset is 0, and covers all ASCII characters.
7901
86fa089e
SM
79022009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7903
7904 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7905 (ns_string_to_pasteboard_internal):
7906 * nsmenu.m (process_dialog):
7907 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7908 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7909 * lisp.h (Fx_load_color_file): Declare.
7910
a8a3728b
KH
79112009-04-13 Kenichi Handa <handa@m17n.org>
7912
1ac9108a 7913 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7914 (font_select_entity): Suppress the code to optimize for the same
7915 kind of fonts.
7916 (font_load_for_lface): Get a font that supports at least ASCII
7917 characters.
7918
7919 * ftfont.c (Qja, Qko): New variables.
7920 (fc_charset_table): Delete uniquifier data for iso8859-1.
7921 (ftfont_get_latin1_charset): New function.
7922 (get_adstyle_property): New function.
7923 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7924 bitmap fonts.
7925 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7926 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7927 `ko' or `ja'.
7928 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7929 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7930 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7931 property.
7932 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7933 (syms_of_ftfont): DEFSYM Qja and Qko.
7934
483670b5
KH
79352009-04-09 Kenichi Handa <handa@m17n.org>
7936
12b55765
KH
7937 * charset.c (map_charset_chars): For a charset of `superset'
7938 method, fix calculation of code range.
7939
483670b5
KH
7940 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7941 from the list of extra properties.
7942 (font_clear_prop): Be sure to delete `:name' font property.
7943
57d3b93b
KH
79442009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7945
b4b2c2ca
YM
7946 * dispnew.c (redraw_overlapping_rows): Fix detection of
7947 overlapping for topmost and bottommost rows.
7948
1ac9108a 7949 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7950
472c3609
JR
79512009-04-06 Jason Rumney <jasonr@gnu.org>
7952
7953 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7954
ab193662
KH
79552009-04-06 Kenichi Handa <handa@m17n.org>
7956
7957 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7958
7959 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7960
0c26f026
KH
79612009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7962
7963 * ftfont.c (ftfont_open): Fix checking of the return value of
7964 FT_Load_Char. Fix setting font->underline_thickness.
7965
e173bbce
CY
79662009-04-04 Chong Yidong <cyd@stupidchicken.com>
7967
7968 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7969 (Fterminal_parameters, Fterminal_parameter)
7970 (Fset_terminal_parameter): In doc string, refer to terminal
7971 objects rather than terminal ids.
7972
693a2698
EZ
79732009-04-04 Eli Zaretskii <eliz@gnu.org>
7974
7975 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7976 ret_lim_data. (Bug#2867)
7977
d5221487
CY
79782009-04-03 Chong Yidong <cyd@stupidchicken.com>
7979
7980 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7981 so they don't get wider than the window, matching 2006-01-23
7982 change to the partner function in xdisp.c (Bug#2800).
7983
223509a3
KH
79842009-04-03 Kenichi Handa <handa@m17n.org>
7985
7986 * print.c (print_object): Make each lowest sub_char_table start a
7987 new line (Bug#2866).
7988
74fcd0b1
KH
79892009-04-02 Kenichi Handa <handa@m17n.org>
7990
7991 * fontset.c (fontset_font): Record no-font when a fontset
7992 explicitly tells not to try another font-specs.
7993
c542407d
SM
79942009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7995
7996 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7997
e3869731
KH
79982009-03-30 Kenichi Handa <handa@m17n.org>
7999
d8d2f142
KH
8000 * fontset.c (fontset_from_font): Specify only registry in a
8001 font-spec for all characters supported by that registry.
8002
e3869731
KH
8003 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8004 even if HAVE_M17N_FLT is not defined.
8005
5da5f805
CY
80062009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8007
8008 * ftfont.c: Conditionalize prototyping and use of
8009 ftfont_variation_glyphs.
8010
ab226c50
SM
80112009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8012
9628fed7
SM
8013 * frame.c (delete_frame): Work around compiler bug.
8014
8015 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8016 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8017 Some more EMACS_INT.
8018 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8019
8020 * xdisp.c (dump_glyph): Fix typo.
8021
ae19ba7c
SM
8022 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8023 (adjust_markers_gap_motion, adjust_markers_for_delete)
8024 (adjust_markers_for_insert, adjust_point)
8025 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8026 (make_gap, copy_text, count_size_as_multibyte, insert)
8027 (insert_and_inherit, insert_before_markers)
8028 (insert_before_markers_and_inherit, insert_1)
8029 (count_combining_before, count_combining_after, insert_1_both)
8030 (insert_from_string, insert_from_string_before_markers)
8031 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8032 (insert_from_buffer_1, adjust_after_replace)
8033 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8034 (replace_range_2, del_range, del_range_1, del_range_byte)
8035 (del_range_both, del_range_2, modify_region)
8036 (prepare_to_modify_buffer, signal_before_change)
8037 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8038 for buffer positions and sizes.
8039 * lisp.h: Adjust prototypes accordingly.
8040
8041 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8042 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8043 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8044
ab226c50
SM
8045 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8046
46dfb8fb
JD
80472009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8048
8049 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8050 lines and columns so we keep the same pixel height and width.
8051
8052 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8053 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8054 (x_handle_net_wm_state): New function to update frame parameter
8055 fullscreen.
8056 (x_term_init): Initialize atoms for _NET_WM_STATE.
8057
8058 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8059
d347e494
SM
80602009-03-27 Kevin Ryde <user42@zip.com.au>
8061
8062 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8063 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8064 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8065 (Fgpm_mouse_stop): Pass that new parameter.
8066 * termhooks.h (close_gpm): Adjust prototype.
8067
84db11d6
SM
80682009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8069
c95a5008
SM
8070 * lisp.h (Fx_focus_frame): Declare.
8071
84db11d6
SM
8072 * callint.c (Fcall_interactively): For '^' just delegate the work to
8073 handle-shift-selection.
8074 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8075
0a1958d6
CY
80762009-03-24 Chong Yidong <cyd@stupidchicken.com>
8077
0bfdff23
CY
8078 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8079
0a1958d6
CY
8080 * data.c (Qinteractive_form): New variable.
8081 (Finteractive_form): Use it.
8082
8083 * eval.c (Fcommandp): Use Qinteractive_form.
8084
58aec0d6
JR
80852009-03-24 Jason Rumney <jasonr@gnu.org>
8086
8087 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8088 Calculate total size precisely. Decode environment variables
8089 before substituting. (Bug#38)
8090
553dd618
KH
80912009-03-24 Kenichi Handa <handa@m17n.org>
8092
8093 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8094 encoding (Bug#2722).
553dd618 8095
c39ea606
JD
80962009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8097
8098 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8099 that gdpy is set.
8100
bc9b2b5e
AM
81012009-03-22 Alan Mackenzie <acm@muc.de>
8102
8103 * callint.c (Finteractive): Clarify the doc string - even
8104 promptless elements need \n separators.
8105
9f995a76
JR
81062009-03-22 Jason Rumney <jasonr@gnu.org>
8107
8108 * w32term.c (syms_of_w32term): Doc fix for
8109 x-use-underline-position-properties.
8110
22749e9a
EZ
81112009-03-21 Eli Zaretskii <eliz@gnu.org>
8112
8113 * w32.c (getpwuid): Change argument type to unsigned.
8114 (struct w32_id): Change type of `rid' member to unsigned.
8115 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8116 argument ID to unsigned. All callers changed.
8117 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8118
e00553bf
EZ
81192009-03-20 Eli Zaretskii <eliz@gnu.org>
8120
8121 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8122 negative, produce a float value.
8123
8124 * dired.c (make_uid, make_gid): New functions.
8125 (Ffile_attributes): Use them to avoid negative UID and GID.
8126
f761d6b6
JB
81272009-03-20 Juanma Barranquero <lekktu@gmail.com>
8128
8129 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8130 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8131 Fix typos in docstrings.
8132
d507f8d7
KH
81332009-03-19 Kenichi Handa <handa@m17n.org>
8134
8135 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8136 changed, use font_load_for_lface to get a new font object.
8137 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8138
8139 * frame.c (x_set_font): Handle the case that ARG is a cons.
8140
c68845e0
GM
81412009-03-19 Glenn Morris <rgm@gnu.org>
8142
8143 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8144
bfa49dd1
CY
81452009-03-19 Chong Yidong <cyd@stupidchicken.com>
8146
8147 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8148
8458d4c1
KH
81492009-03-19 Kenichi Handa <handa@m17n.org>
8150
8151 * charset.c (load_charset_map_from_file): When a mapfile can't be
8152 loaded, signal an error.
8153
78e7d1fe
EZ
81542009-03-18 Eli Zaretskii <eliz@gnu.org>
8155
8156 * dired.c (Ffile_attributes): Make sure UID and GID are always
8157 positive, even if the value is too large for a positive EMACS_INT.
8158 Doc fix.
8159
8160 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8161
5da9fdfa
YM
81622009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8163
8164 * xmenu.c (xdialog_show): Move Fredisplay call ...
8165 (Fx_popup_dialog): ... here.
8166
7519c40d
SM
81672009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8168
8169 * dired.c (file_name_completion): Disable the first optimization just
8170 installed, since it is not implemented correctly.
8171
2cd298e2
SM
81722009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8173
8174 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8175 only if the entry can affect bestmatch.
2cd298e2
SM
8176 Stop the search early, as Ftry_completion already does.
8177
48d37adf
CY
81782009-03-17 Chong Yidong <cyd@stupidchicken.com>
8179
e10c9c93 8180 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8181
9286b16a
CY
81822009-03-15 Chong Yidong <cyd@stupidchicken.com>
8183
8184 * keyboard.c (parse_menu_item): Don't display remappings as menu
8185 equivalent bindings (Bug#788).
8186
f7b146dc
JR
81872009-03-15 Jason Rumney <jasonr@gnu.org>
8188
8189 * w32term.h (WM_EMACS_PAINT): New message.
8190 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8191 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8192 before passing to lisp thread. (Bug#950)
8193
f761d6b6 81942009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8195
d93f9575
CY
8196 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8197 variable as it was never reset.
8198 (ns_term_init): Remove initialization of Lisp-settable defaults
8199 and ns_expand_space.
8200 (-setPanelFromDefaultValues): Remove ns_expand_space.
8201 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8202 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8203 i.e. no additional spacing, similar to Carbon port.
8204
d93f9575
CY
8205 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8206 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8207
305018ec
JD
82082009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8209
8210 * sound.c (alsa_configure): Remove call to deprecated
8211 snd_pcm_sw_params_set_xfer_align.
8212
f761d6b6 82132009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8214
8215 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8216 after clicking in a detached tool bar.
8217 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8218
46e722a9
SM
82192009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8220
348db3dd
SM
8221 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8222 int/Lisp_Object mixup).
46e722a9 8223
a3d16f39
KH
82242009-03-13 Kenichi Handa <handa@m17n.org>
8225
8226 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8227 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8228 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8229 (set_fontset_font): Change ARG to a vector. Handle range_list in
8230 ARG correctly.
8231 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8232 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8233 the above change.
8234 (fontset_from_font): Fix previous change.
fe24f56a 8235 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8236 entry. If FONTSET is the default fontset, don't set the extra
8237 slot of the returning char-table.
8238
b066e6b6
JB
82392009-03-12 Juanma Barranquero <lekktu@gmail.com>
8240
8241 * nsfns.m (Fx_close_connection): Doc fix.
8242 (Fns_do_applescript): Reflow docstring.
8243 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8244 (Fx_display_pixel_width, Fx_display_pixel_height)
8245 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8246 Fix typos in docstrings.
8247 (Fns_set_alpha): Fix typos in error messages.
8248
d472514e 82492009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8250
d472514e 8251 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8252 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8253 were used for such events.
8254
d472514e
JB
8255 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8256 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8257
d472514e 8258 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8259 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8260
fb930676
KH
82612009-03-11 Kenichi Handa <handa@m17n.org>
8262
ff85581a
KH
8263 * font.h (font_open_by_spec): Extern it.
8264
c50b7e98
KH
8265 * font.c (font_open_by_spec): New function.
8266 (font_open_by_name): Use font_open_by_spec.
8267
fb930676
KH
8268 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8269 fontset of the frame.
8270
8271 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8272 modify the default font of frames that use this fontset.
8273 (num_auto_fontsets): New variable.
8274 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8275 name. Be sure to set FONTSET_ASCII to the correct font name.
8276 (update_auto_fontset_alist): New function.
8277
df4e8455
JB
82782009-03-11 Juanma Barranquero <lekktu@gmail.com>
8279
8280 * makefile.w32-in: Update dependencies.
8281
0a375797
AR
82822009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8283
8284 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8285
61313fa3
SM
82862009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8287
8288 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8289
b55103fb
CY
82902009-03-10 Chong Yidong <cyd@stupidchicken.com>
8291
8292 * lread.c (Feval_buffer): Doc fix.
8293
dde2559c
KH
82942009-03-09 Kenichi Handa <handa@m17n.org>
8295
8296 * charset.c (Qfile_name_handler_alist): Extern it.
8297 (load_charset_map_from_file): Temporarily bind
8298 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8299
df4e8455 83002009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8301
47f588bb
GM
8302 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8303 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8304
4ddf94bd
AR
83052009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8306
4c9bdfc2
AR
8307 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8308 (x_set_window_size): Change back to calculated method of setting
8309 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8310 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8311 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8312
fe41ae9e
AR
8313 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8314
4c9bdfc2
AR
8315 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8316 accelerator in parens under GNUstep.
8317
825d0875
KH
83182009-03-06 Kenichi Handa <handa@m17n.org>
8319
8320 These changes are to detect incorrect composition sequence without
f3b3be74 8321 looking ahead the source. (Bug#2370)
825d0875
KH
8322
8323 * coding.h: Include "composite.h".
8324 (enum compisition_state): New enum.
8325 (struct compisition_status): New struct.
8326 (struct iso_2022_spec): New member cmp_status.
8327 (struct emacs_mule_spec): New struct.
8328 (struct coding_system): New members ctext_extended_segment_len and
8329 embedded_utf_8. Change the union member
8330 spec.emacs_mule_full_support to spec.emacs_mule.
8331
8332 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8333 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8334 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8335 (ADD_COMPOSITION_DATA): New arg nbytes.
8336 (emacs_mule_char): New arg cmp_status.
8337 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8338 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8339 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8340 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8341 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8342 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8343 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8344 (EMACS_MULE_COMPOSITION_END): New macro.
8345 (emacs_mule_finish_composition): New function.
8346 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8347 (decode_coding_emacs_mule): Avoid long looking ahead while
8348 handling composition.
8349 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8350 (ENCODE_COMPOSITION_RULE): New macro.
8351 (finish_composition): New function.
8352 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8353 (DECODE_COMPOSITION_START): New implementation.
8354 (DECODE_COMPOSITION_END): Likewise.
8355 (STORE_COMPOSITION_RULE): New macro.
8356 (decode_coding_iso_2022): Avoid long looking ahead while handling
8357 composition, CTEXT extended segment, and embedded UTF-8.
8358 (setup_coding_system): For a coding of type iso-2022, reset
8359 CODING_ISO_EXTSEGMENT_LEN (coding) and
8360 CODING_ISO_EMBEDDED_UTF_8 (coding).
8361 (get_translation): Delete arguments last_block, from_nchars,
8362 to_nchars. Callers changed.
8363 (produce_chars): Don't modify charbuf. Adjusted for the change of
8364 get_translation.
98a326f7 8365 (produce_composition): Adjust for the new annotation sequence.
825d0875 8366 (handle_composition_annotation): Likewise.
98a326f7 8367 (consume_chars): Adjust for the change of get_translation.
825d0875 8368
ccbc4452
AR
83692009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8370
4ddf94bd 8371 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8372
988a7ddb
KH
83732009-03-05 Kenichi Handa <handa@m17n.org>
8374
8375 * font.c (font_select_entity): New function.
8376 (font_find_for_lface): Use font_select_entity to select a font.
8377
8378 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8379 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8380 font with C restriction.
8381
98a326f7 83822009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8383
be1bce46 8384 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8385
10ea2b82
JR
83862009-03-04 Jason Rumney <jasonr@gnu.org>
8387
2c93b248 8388 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8389 characters that have already been read. (Bug#2569)
2c93b248 8390
10ea2b82
JR
8391 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8392 Log an error message if check_image_size failed.
8393 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8394 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8395
71a0c011
EZ
83962009-03-02 Eli Zaretskii <eliz@gnu.org>
8397
8398 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8399 when decoding process output.
8400
2f63bba8
RS
84012009-03-01 Richard M Stallman <rms@gnu.org>
8402
8403 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8404
8405 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8406
0a9564cb
EZ
84072009-02-28 Eli Zaretskii <eliz@gnu.org>
8408
8409 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8410 (decode_coding_emacs_mule, decode_coding_iso_2022)
8411 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8412 (decode_coding_raw_text, decode_coding_charset)
8413 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8414 Honor inhibit-eol-conversion. (Bug #2186)
8415
449148b3
JR
84162009-02-28 Jason Rumney <jasonr@gnu.org>
8417
8418 * coding.c (detect_coding_charset): If not checking latin extra,
8419 fail on characters between 0x80 and 0xA0. (Bug#2354)
8420
a4aee864
EZ
84212009-02-28 Eli Zaretskii <eliz@gnu.org>
8422
8423 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8424 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8425
d88bee5a
GM
84262009-02-27 Glenn Morris <rgm@gnu.org>
8427
8428 * callint.c (Finteractive): Doc fix.
8429
a808f22d
KH
84302009-02-27 Kenichi Handa <handa@m17n.org>
8431
8432 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8433
caf8d60c
CY
84342009-02-27 Chong Yidong <cyd@stupidchicken.com>
8435
8436 * font.c (font_style_to_value): Set value for unknown symbols to
8437 100 instead of 255.
b61137ea
CY
8438 (weight_table, slant_table, width_table): Treat "unspecified" as
8439 the default value.
caf8d60c 8440
1a0de25c
JB
84412009-02-26 Juanma Barranquero <lekktu@gmail.com>
8442
8443 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8444
8fc45744
JB
84452009-02-25 Juanma Barranquero <lekktu@gmail.com>
8446
107bd7d1
JB
8447 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8448 error as soon as a recursive load is detected.
8fc45744 8449
f097e223
AR
84502009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8451
8452 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8453 before caching.
8454
8810a12f
KH
84552009-02-24 Kenichi Handa <handa@m17n.org>
8456
8457 * fontset.c (fontset_find_font): Fix the condition for checking
8458 unavailable font.
8459
2c7d1565
GM
84602009-02-24 Glenn Morris <rgm@gnu.org>
8461
8462 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8463 whitespace that confuses documentation.
8464
a20878b6
MB
84652009-02-23 Miles Bader <miles@gnu.org>
8466
8467 * process.c (Flist_system_processes, Fprocess_attributes)
8468 (syms_of_process): Rename `system-process-attributes' to
8469 `process-attributes'.
8470
b3b58c01
AS
84712009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8472
1b3b981b
AS
8473 * coding.h (struct coding_system): Make safe_charsets a pointer to
8474 unsigned char.
8475 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8476 being 255.
8477 (SAFE_CHARSET_P): Likewise.
8478 (setup_iso_safe_charsets): Properly setup safe_charsets.
8479 (Fdefine_coding_system_internal): Likewise.
8480 (setup_coding_system): Likewise. Remove unneeded casts.
8481 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8482 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8483 unneeded casts.
8484
b3b58c01
AS
8485 * insdel.c (del_range_2): Don't modify gap contents when called
8486 from decode_coding_object. (Bug#1809)
8487
0b6f228c
CY
84882009-02-21 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8491 Qfont_object.
8492 (Ftype_of): Recognize font objects.
8493
8494 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8495
8496 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8497 moved to data.c.
8498
52f8870b
AR
84992009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8500
8501 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8502 async_iconified. Based on a patch by Christian Lynbech
8503 <christian.lynbech@tieto.com>.
8504 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8505
7087d5e9
GM
85062009-02-20 Glenn Morris <rgm@gnu.org>
8507
8508 * syntax.c (Fskip_chars_forward): Fix doc typo.
8509
41d2ceef
CY
85102009-02-20 Chong Yidong <cyd@stupidchicken.com>
8511
8512 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8513
1a3b7ca6
CY
85142009-02-19 Chong Yidong <cyd@stupidchicken.com>
8515
8516 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8517
73cce38d
KH
85182009-02-19 Kenichi Handa <handa@m17n.org>
8519
8520 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8521 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8522
a51092ee
DN
85232009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8524
8525 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8526
c423ecca
KH
85272009-02-18 Kenichi Handa <handa@m17n.org>
8528
8529 * font.c (font_check_otf_features): Fix handling of `nil' element.
8530 (Ffont_spec): Describe :lang and :otf in the docstring.
8531
4c1958f4
AS
85322009-02-16 Andreas Schwab <schwab@suse.de>
8533
8534 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8535 string.
8536
5704f39a
KH
85372009-02-16 Kenichi Handa <handa@m17n.org>
8538
8539 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8540 (Bug#1723)
5704f39a 8541
8f0085aa
CY
85422009-02-14 Chong Yidong <cyd@stupidchicken.com>
8543
a057d86a 8544 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8545
8546 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8547 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8548
aff01dd9
EZ
85492009-02-14 Eli Zaretskii <eliz@gnu.org>
8550
8551 * msdos.c (MAX_SCREEN_BUF): New macro.
8552 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8553 Encode the entire run of glyphs sharing the same face, instead of
8554 doing that one glyph at a time (fixes a bug with displaying
8555 double-size characters).
8556
ba301db3
AR
85572009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8558
8559 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8560
8561 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8562 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8563 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8564
8565 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8566 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8567
51d861de
SM
85682009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8569
ac146f82 8570 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8571 invisible areas.
8572
7fed8996
JR
85732009-02-12 Jason Rumney <jasonr@gnu.org>
8574
631ea4fb
JR
8575 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8576 (add_font_entity_to_list): Call check_face_name even when family
8577 is unspecified.
8578
cb4a3e42
JR
8579 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8580 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8581 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8582
7fed8996 8583 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8584 raster fonts. (Bug#2219)
7fed8996 8585
895416e3
KH
85862009-02-12 Kenichi Handa <handa@m17n.org>
8587
8588 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8589 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8590 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8591 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8592 (find_automatic_composition): While looking forward and backward,
8593 check static composition. Fix where to stop looking forward.
8594 (composition_adjust_point): Fix checking of static composition.
8595 (Fcomposition_get_gstring): Pay attention to
1dacf998 8596 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8597
8598 * lisp.h (fast_looking_at): Extern it.
8599
8600 * search.c (fast_looking_at): New function.
8601
51d861de 8602 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8603 <struct glyph>.u.cmp.to.
8604 (append_composite_glyph): Likewise.
8605
51d861de 8606 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8607 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8608 composition.
51d861de 8609 (append_composite_glyph): Adjust for the change of
895416e3
KH
8610 <strcut glyph>.u.cmp.to.
8611
8510724d
JB
86122009-02-11 Juanma Barranquero <lekktu@gmail.com>
8613
8614 * casetab.c (init_casetab_once):
8615 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8616 * font.c (font_update_lface):
8617 * fontset.c (Fnew_fontset):
8618 * ftfont.c (ftfont_drive_otf):
8619 * xfont.c (xfont_open):
8620 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8621
294fa707
SM
86222009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8623
8624 * fileio.c (Fwrite_region): !NILP -> CONSP.
8625
b5bfebec
AS
86262009-02-10 Andreas Schwab <schwab@suse.de>
8627
8628 * process.c (send_process): Properly relocate pointer into data
adab88bd 8629 when using encoded data. (Bug#2272)
b5bfebec 8630
cb84a2be
KH
86312009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8632
8633 * coding.c (detect_coding_charset): Fix previous change.
8634
89e09428
JR
86352009-02-08 Jason Rumney <jasonr@gnu.org>
8636
8637 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8638 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8639
4470a277
AS
86402009-02-07 Andreas Schwab <schwab@suse.de>
8641
8642 * unexelf.c (unexec): Fix error message.
8643
3175b12a
AR
86442009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8645
8646 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8647 when modal window is active. (Bug #2152)
3175b12a
AR
8648 (applicationShouldTerminate:): Remove now-unneeded while loop
8649 around NSRunAlertPanel.
8650
8651 * nsmenu.m (popupSession): New file-global variable.
8652 (pop_down_menu): End the popupSession before closing dialog.
8653 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8654 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8655 don't query NSApp for events (just sleep instead).
8656
8434d0b8
EZ
86572009-02-07 Eli Zaretskii <eliz@gnu.org>
8658
51d861de
SM
8659 * coding.c (syms_of_coding) <translation-table-for-input>:
8660 Modify doc string to discourage use for character code unification.
8434d0b8 8661
aa82edfd
CY
86622009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8663
8664 * atimer.c (run_timers): Update pending_atimers.
8665
2d283c7c
CY
86662009-02-06 Chong Yidong <cyd@stupidchicken.com>
8667
eb306cab
CY
8668 * image.c (svg_load_image): Fix last change.
8669
2d283c7c
CY
8670 * xfns.c (Fx_create_frame): Signal an error if no font is
8671 found (Bug#2147).
8672
4d8e170e
JB
86732009-02-05 Juanma Barranquero <lekktu@gmail.com>
8674
8675 * character.c (syms_of_character) <script-representative-chars>:
8676 Fix typo in docstring.
8677
c96169a0
AR
86782009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8679
8680 * nsmenu.m (pop_down_menu): New function.
8681 (ns_popup_dialog): Call it on unwind.
8682 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8683 call timer_check() (Bug#2154).
8684 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8685 handling_signal is set.
8686 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8687
31fd7c5c 8688 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8689
8690 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8691
8692 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8693
51d861de
SM
8694 * keyboard.c (poll_for_input_1, handle_async_input):
8695 Set handling_signal under HAVE_NS.
c96169a0 8696
aacd8ba1
GM
86972009-02-04 Glenn Morris <rgm@gnu.org>
8698
8699 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8700
4cb75c4b
KH
87012009-02-04 Kenichi Handa <handa@m17n.org>
8702
8703 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8704
8705 * charset.c (Fchar_charset): New optional arg restriction.
8706
8707 * coding.h (coding_system_charset_list): Extern it.
8708
8709 * coding.c (coding_system_charset_list): New function.
8710
8711 * composite.c: Include coding.h and termhooks.h.
8712 (composition_gstring_p): Fix for the terminal case.
8713 (composition_gstring_width): Likewise.
8714 (fill_gstring_body): Likewise.
8715 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8716 the frame.
8717 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8718 is within a composition.
867d4bb3 8719 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8720
8721 * term.c (encode_terminal_code): Fix handling of composition.
8722 (produce_composite_glyph): For static composition, get pixel_width
8723 from struct composition.
8724
826ba17e
AS
87252009-02-02 Andreas Schwab <schwab@suse.de>
8726
8727 * unexelf.c (unexec): Handle unaligned bss offset.
8728
8ad093db
AR
87292009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8730
8731 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8732 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8733
8ad093db
AR
8734 * keyboard.c (handle_interrupt): Don't call
8735 quit_throw_to_read_char() under NS.
d0a76a6e 8736
8ad093db
AR
8737 * blockinput.h: Remove NS-specific code.
8738
4d18a7a2
DN
87392009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8740
db878925
DN
8741 * dispnew.c (window_change_signal): Don't try to get the size of a
8742 suspended tty frame.
8743 * term.c (Fresume_tty): Resize if the size has changed while the
8744 tty was suspended.
8745
4d18a7a2
DN
8746 * alloc.c (mark_stack): Properly conditionalize previous change.
8747
8984df7c
JB
87482009-01-30 Juanma Barranquero <lekktu@gmail.com>
8749
8750 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8751 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8752 Remove; this code is not used on Windows.
8753
75f4f1ac
EZ
87542009-01-30 Eli Zaretskii <eliz@gnu.org>
8755
8756 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8757 EOLs that also has stray ^M characters.
8758
07a1e794
JB
87592009-01-30 Juanma Barranquero <lekktu@gmail.com>
8760
8761 * atimer.c (run_timers, alarm_signal_handler):
8762 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8763 * w32inevt.c (w32_console_read_socket):
8764 * w32term.c (w32_read_socket):
8765 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8766
a8b11cc9
CY
87672009-01-30 Chong Yidong <cyd@stupidchicken.com>
8768
8769 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8770 Initialize it as a relative filename pattern.
8771 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8772 (Fcall_process_region): Simplify temp file creation using
8773 temporary-file-directory.
8774
c279587b
EZ
87752009-01-29 Eli Zaretskii <eliz@gnu.org>
8776
8777 * msdos.c: Rename pending_signals to msdos_pending_signals.
8778 (sig_suspender, sigprocmask): Adjust.
8779
a8fe3242
CY
87802009-01-29 Chong Yidong <cyd@stupidchicken.com>
8781
8782 * keyboard.c (pending_signals): New var.
8783 (poll_for_input, input_available_signal, init_keyboard): Set it.
8784 (process_pending_signals): New function.
8785
8786 * lisp.h (QUIT): Check pending_signals instead of
8787 interrupt_input_pending. Use process_pending_signals.
8788
51d861de 8789 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8790
51d861de 8791 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8792
8793 * sysdep.c (emacs_write): Use process_pending_signals.
8794
8795 * xterm.c (XTread_socket): Update pending_signals.
8796
8797 * w32term.c (w32_read_socket): Update pending_signals.
8798
8799 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8800
6570a1c4
KH
88012009-01-29 Kenichi Handa <handa@m17n.org>
8802
8803 * xftfont.c (xftfont_has_char): New function.
8804 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8805
d72a4afa
AR
88062009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8807
8808 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8809 under GNUstep.
8810 (ns_query_color): New declaration.
8811
8812 * nsterm.m (ns_confirm_quit): New variable.
8813 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8814 (EmacsApp-applicationShouldTerminate:): Use it.
8815 (EmacsPrefsController): Let user set it.
8816 (ns_query_color): New function.
8817 (ns_defined_color): Use it.
8818 (ns_initialize): Drop.
8819 (ns_term_init): Add two lines from ns_initialize(), and set
8820 input_interrupt_mode to nil.
8821
8822 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8823 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8824
9fe78804
KH
88252009-01-28 Kenichi Handa <handa@m17n.org>
8826
8827 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8828 (fontset_get_font_group): Remember that no font-group is specified
8829 for C.
9fe78804 8830
fa57de36
CY
88312009-01-27 Chong Yidong <cyd@stupidchicken.com>
8832
930600e9
CY
8833 * fns.c (concat): Check for string overflow (bug#1787).
8834
fa57de36
CY
8835 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8836 Quadruple undo limits (bug#1501).
8837
7179ce7b
KH
88382009-01-27 Kenichi Handa <handa@m17n.org>
8839
8840 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8841 directly use GT_Get_Char_index.
8842
8843 * xftfont.c (struct xftfont_info): New member `index'.
8844
8845 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8846 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8847
5be8fcc0
CY
88482009-01-26 Kenichi Handa <handa@m17n.org>
8849
8850 * fontset.c (fontset_find_font): Fix handling of non-cons return
8851 value of fontset_get_font_group.
8852 (fontset_font): Revert last change.
8853
19ae3e61
JR
88542009-01-26 Jason Rumney <jasonr@gnu.org>
8855
8856 * w32font.c (w32font_list_internal): Return quickly if registry is
8857 unknown. Simplify final return.
8858 (add_font_entity_to_list): Break complex logic down into more
8859 manageable chunks. Move unknown registry check to
8860 w32font_list_internal.
8861
8612b71a
AR
88622009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8863
8864 Changes to remove Feval calls from GUI under NS.
8865
d8038940
JB
8866 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8867 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8868 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8869
8870 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8871 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8872 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8873 instead of NON_ASCII_KEYSTROKE_EVENT.
8874 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8875 (EmacsApp-applicationShouldTerminate:): Query user.
8876 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8877 instead of Feval.
8878
8879 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8880
8881 * keyboard.c (kbd_buffer_get_event): Check for it.
8882 (keys_of_keyboard): Define lispy keys for
8883 ns-put/unput-working-text.
8884
8885 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8886 versions.
8887 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8888
6288ae55
CY
88892009-01-25 Chong Yidong <cyd@stupidchicken.com>
8890
8891 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8892 setting current_buffer directly. (Bug#2044)
6288ae55 8893
289e7f8f
CY
88942009-01-24 Chong Yidong <cyd@stupidchicken.com>
8895
5ce87308 8896 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8897 any work. (Bug#1952, bug#1990).
5ce87308 8898
64cc3cf6 8899 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8900
b3243e6f
AR
89012009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8902
8903 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8904 (ns_no_defaults): New declaration.
8905 (main): Use it.
e0d2e69a 8906
d900b2af 8907 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8908
d900b2af 8909 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8910
d900b2af
AR
8911 * nsterm.m (ns_no_defaults): New variable.
8912 (ns_initialize): Don't read defaults when ns_no_defaults.
8913 (EmacsView-readSelectionFromPasteboard:)
8914 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8915 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8916 (ns_dumpglyphs_stretch): New function.
8917 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8918 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8919
e0d2e69a
AR
8920 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8921
3ac71f5d
CY
89222009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8923
8924 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8925 call for Sparc64.
8926
3fe53a83
AR
89272009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8928
8929 * nsfns.m:
8930 * nsgui.h:
8931 * nsmenu.m:
8932 * nsselect.m:
8933 * nsterm.h:
8934 * nsterm.m: Remove '23' comments that indicated code added during
8935 update from emacs-20 -> emacs-23.
8936
10f87c6f 89372009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8938
8939 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8940 ns_alternate_modifier. (Bug#1217)
a3b53a85 8941
c7cef62d
AR
8942 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8943 Display all shortcuts, including those w/o super modifier.
8944
575fb8bd
AR
8945 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8946
918b848b
CY
89472009-01-22 Chong Yidong <cyd@stupidchicken.com>
8948
8949 * fileio.c (Vwrite_region_post_annotation_function)
8950 (Vwrite_region_annotation_buffers): New vars.
8951 (build_annotations_unwind): Just reset
8952 Vwrite_region_annotation_buffers.
8953 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8954 Call write-region-post-annotation-function.
8955 (build_annotations): Add to Vwrite_region_annotation_buffers if
8956 buffer changes.
8957
a39e2539
AR
89582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8959
8960 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8961 Tiger.
51d861de
SM
8962 * nsfns.m (ns_do_applescript):
8963 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8964
35ed44db
AR
89652009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8966
8967 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8968
cbe0b5bf
AR
89692009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8970
8971 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8972
6049d3a0
AR
8973 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8974
8975 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8976 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8977 handle Ctrl-tab. (Bug#1841)
8978 (ns_get_color): Use unsigned long long for scanned hex string value.
8979 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8980 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8981 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8982 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8983 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8984 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8985 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8986
d3810c21 8987 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8988 DPI. (Bug#1316)
d3810c21
AR
8989 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8990 values in onTiger section.
4c7077c3 8991
e301e634
CY
89922009-01-19 Chong Yidong <cyd@stupidchicken.com>
8993
7f82490b
CY
8994 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8995 Check return value of font_spec_from_name.
64cc3cf6 8996 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8997
8998 * font.c (font_spec_from_name): Return Qnil if font name could not
8999 be parsed.
9000 (font_parse_name): Treat a `?' character as part of an XLFD.
9001
e301e634
CY
9002 * fns.c (Fsubstring): Doc fix.
9003
1c0db158
KH
90042009-01-19 Kenichi Handa <handa@m17n.org>
9005
51d861de 9006 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9007 (ftfont_list): Likewise.
9008
acf20901
JB
90092009-01-18 Juanma Barranquero <lekktu@gmail.com>
9010
fff4e459
JB
9011 * dbusbind.c (Fdbus_register_signal):
9012 * process.c (conv_sockaddr_to_lisp):
9013 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9014
acf20901
JB
9015 * callproc.c (Fgetenv_internal): Doc fix.
9016
e7abcdfb
CY
90172009-01-16 Chong Yidong <cyd@stupidchicken.com>
9018
9019 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9020 it is not even used.
9021
b60861e6
GM
90222009-01-16 Glenn Morris <rgm@gnu.org>
9023
9024 * font.c (Ffont_variation_glyphs): Silence compiler.
9025
8db52afe
JB
90262009-01-15 Juanma Barranquero <lekktu@gmail.com>
9027
9028 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9029 Reported by David Robinow <drobinow@gmail.com>.
9030
4cddb209
KH
90312009-01-15 Kenichi Handa <handa@m17n.org>
9032
51d861de 9033 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9034
f247f67b
JR
90352009-01-14 Jason Rumney <jasonr@gnu.org>
9036
9037 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9038 never a fontset. (Bug#1562)
f247f67b 9039
f56a4450
KH
90402009-01-14 Kenichi Handa <handa@m17n.org>
9041
9042 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9043 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9044
4e99855e
CY
90452009-01-13 Chong Yidong <cyd@stupidchicken.com>
9046
9047 * font.c (font_clear_prop): If clearing the family, clear the font
9048 width index too.
9049
fff4e459 9050 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9051
24f01470
JB
90522009-01-12 Juanma Barranquero <lekktu@gmail.com>
9053
9054 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9055 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9056 functions, use sizeof.
9057
a41240a3
MR
90582009-01-12 Martin Rudalics <rudalics@gmx.at>
9059
9060 * keyboard.c (read_char): Fix case where last_nonmenu_event
9061 returned a bad value with submenus. (Bug#447)
9062
944636b8
CY
90632009-01-12 Chong Yidong <cyd@stupidchicken.com>
9064
9065 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9066 family, clear the font width index too.
9067
0dad7c6f
JR
90682009-01-11 Jason Rumney <jasonr@gnu.org>
9069
9070 * keyboard.c (cmd_error_internal): Exit when errors occur before
9071 frame creation and not in daemon mode. (Bug#1836)
9072
7c2363af
CY
90732009-01-10 Chong Yidong <cyd@stupidchicken.com>
9074
9075 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9076 of a display vector, backtrack.
9077 (try_window_reusing_current_matrix): Check glyph type before
9078 referencing charpos member.
9079
97b1b294
EZ
90802009-01-10 Eli Zaretskii <eliz@gnu.org>
9081
9082 Fix Bug #876:
9083
9084 * coding.c (inhibit_null_byte_detection): New variable.
9085 (detect_coding, detect_coding_system): Don't pay attention to null
9086 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9087 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9088 <inhibit-iso-escape-detection>: Doc fix.
9089
4624b6e3
JR
90902009-01-09 Jason Rumney <jasonr@gnu.org>
9091
9092 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9093 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9094 Only report Unicode Plane 2 fonts as unicode-sip.
9095
323b840c
CY
90962009-01-09 Chong Yidong <cyd@stupidchicken.com>
9097
51d861de
SM
9098 * xfaces.c (Fx_font_family_list): Delete function.
9099 Move compatibility version to faces.el.
323b840c 9100
51d861de 9101 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9102
eba7400d
MR
91032009-01-09 Martin Rudalics <rudalics@gmx.at>
9104
9105 * frame.c (x_set_frame_parameters): Remember requested value for
9106 fullscreen before it's reset by the parameter handler.
9107
4b09796d
GM
91082009-01-09 Glenn Morris <rgm@gnu.org>
9109
9110 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9111 (last_command_event): ... and update all users.
4b09796d
GM
9112 (last_input_char): For clarity, rename to...
9113 (last_input_event): ... and update all users.
9114 (last-command-char, last-input-char): Move to subr.el as aliases.
9115 * cmds.c, commands.h: Update for last_command_char rename.
9116
14ccea62
CY
91172009-01-08 Chong Yidong <cyd@stupidchicken.com>
9118
51d861de 9119 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9120
5f004711
JR
91212009-01-08 Jason Rumney <jasonr@gnu.org>
9122
9123 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9124 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9125 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9126 Don't declare.
fff4e459 9127 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9128 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9129
b71f6f73
KH
91302009-01-07 Kenichi Handa <handa@m17n.org>
9131
50b06221 9132 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9133 remember the coding system used for decoding in
50b06221
KH
9134 coding_system (Bug#1039).
9135
b71f6f73 9136 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9137 breaking the loop. (Bug#870)
b71f6f73
KH
9138 (decode_coding_utf_16, decode_coding_emacs_mule)
9139 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9140 (decode_coding_charset): Likewise.
9141
56f668f7
MR
91422009-01-05 Martin Rudalics <rudalics@gmx.at>
9143
9144 * frame.c (x_set_frame_parameters): Make sure height (width) get
9145 applied when fullwidth (fullheight) is set. (Bug#1522)
9146
5da9424d
JB
91472009-01-04 Juanma Barranquero <lekktu@gmail.com>
9148
9149 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9150 (utc_base): Declare as ULONGLONG, not long double.
9151 (convert_time_raw): Delete.
9152 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9153 (initialize_utc_base): New function.
9154 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9155 (convert_from_time_t): Use initialize_utc_base; compute result with
9156 64-bit arithmetic.
9157 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9158
c4605e09
EZ
91592009-01-03 Eli Zaretskii <eliz@gnu.org>
9160
9acef61c 9161 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9162 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9163 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9164 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9165 [!subprocesses]: Define.
9166 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9167 (Flist_system_processes, Fsystem_process_attributes)
9168 [!subprocesses]: Call list_system_processes and
9169 system_process_attributes instead of returning Qnil.
9170
9acef61c
JB
9171 * dosfns.c (system_process_attributes, list_system_processes):
9172 New functions.
c4605e09
EZ
9173
9174 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9175
9176 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9177 Don't use the default (no-op) implementation.
9178
8b7d0a16
JR
91792009-01-03 Jason Rumney <jasonr@gnu.org>
9180
a6d46bc1
JR
9181 * keyboard.c (parse_modifiers_uncached): Wheel events are
9182 clicks (bug#687).
9183
8b7d0a16
JR
9184 * w32term.c (x_query_colors, x_query_color): New functions.
9185
9186 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9187 (svg_load_image): Cast returned pointers from dynamically loaded
9188 functions. Eliminate W32 specific code.
9189
bfe11752
DN
91902009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9191
89e2438a
DN
9192 * nsfns.m (x_set_foreground_color, x_set_background_color)
9193 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9194 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9195 x_ prefix instead of ns_. Update references.
9196 (syms_of_nsfns): Add a FIXME comment.
9197
9198 * nsterm.m (x_set_cursor_type): New prototype.
9199 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9200
bfe11752
DN
9201 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9202 for Solaris instead of incorrectly providing Qutime and Qcutime.
9203
031da700
EZ
92042009-01-02 Eli Zaretskii <eliz@gnu.org>
9205
9206 * w32.c (process_times): Compute sum of utime and stime.
9207 (system_process_attributes): Add Qtime to the alist.
9208
9209 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9210 and add them to the alist.
9211
9212 * process.c (top level) <Qtime, Qctime>: New variables.
9213 (syms_of_process): staticpro them.
9214 (Fsystem_process_attributes): Add their documentation to the doc
9215 string.
9216
9217 * process.h: Declare Qtime and Qctime.
9218
df23bf08
JR
92192009-01-02 Jason Rumney <jasonr@gnu.org>
9220
9acef61c 9221 * image.c (Qgobject): New symbol.
df23bf08
JR
9222 (syms_of_image): Initialize it.
9223 (init_svg_functions): Load some functions from gobject library.
9224
5bbdf7aa
DN
92252009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9226
9227 * frame.c (make_terminal_frame): Remove redundant code and useless
9228 block.
9229
63136da6
AS
92302009-01-01 Andreas Schwab <schwab@suse.de>
9231
9232 * process.c (conv_sockaddr_to_lisp): Add workaround for
9233 getsockname bug on BSD.
9234
9ef69046
CY
92352009-01-01 Chong Yidong <cyd@stupidchicken.com>
9236
d6fafbe0
CY
9237 * xfns.c (x_create_tip_frame): Set border width of the X window.
9238
51d861de 9239 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9240
f9c34147
JR
92412009-01-01 Jason Rumney <jasonr@gnu.org>
9242
9acef61c 9243 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9244 Don't block input, as per earlier xterm.c changes.
9245
f5497e45
AR
92462008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9247
9248 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9249 (ns_appkit_version_int): New function.
9250 (x-server-version): Use ns_appkit_version_int and follow 21+
9251 convention of returning 3 integers.
9252
c19cab20
KH
92532008-12-30 Kenichi Handa <handa@m17n.org>
9254
9255 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9256 (CHAR_SURROGATE_PAIR_P): New macro.
9257
9258 * font.h (struct font_driver): New member get_variation_glyphs.
9259
9acef61c 9260 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9261 (Ffont_variation_glyphs): New function.
9262 (syms_of_font): Defsubr it.
9263
9264 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9265 ftfont_variation_glyphs.
9266 (setup_otf_gstring): New function.
9267 (ftfont_drive_otf): Use it.
9268 (ftfont_shape_by_flt): Handle variation selector.
9269 (ftfont_variation_glyphs): New function.
9270
28cd591f
MR
92712008-12-30 Martin Rudalics <rudalics@gmx.at>
9272
9273 * frame.c (Vemacs_iconified): Remove.
9274
7f714baf
JR
92752008-12-30 Jason Rumney <jasonr@gnu.org>
9276
9277 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9278 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9279
9d2d22ab
CY
92802008-12-30 Chong Yidong <cyd@stupidchicken.com>
9281
9282 * indent.c (Fvertical_motion): Don't advance iterator if we have
9283 reseated to the desired position.
9284
9285 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9286 checking for pos match.
9287
545312c2
KH
92882008-12-30 Kenichi Handa <handa@m17n.org>
9289
1ede3eb6
KH
9290 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9291 just get the low 8-bit of the code.
9292
545312c2
KH
9293 * font.c (font_intern_prop): Validate str as multibyte.
9294
bd7bbf29
DN
92952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9296
31e0750e
DN
9297 * dispextern.h (struct face): Move lface and hash from the middle
9298 of bitfields.
9299
bd7bbf29
DN
9300 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9301
b5672e7c
DN
93022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9303
9304 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9305 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9306 instead of intervals.h.
9307
d704470f
AS
93082008-12-26 Andreas Schwab <schwab@suse.de>
9309
9310 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9311 cons.
9312
54b33868
MR
93132008-12-26 Martin Rudalics <rudalics@gmx.at>
9314
9315 * textprop.c (Qminibuffer_prompt): New variable.
9316 (syms_of_textprop): Initialize it.
9317 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9318 in minibuffer-prompt face. (Bug#1662)
9319
40b615d6
JR
93202008-12-25 Jason Rumney <jasonr@gnu.org>
9321
9322 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9323
baae5c2d
JR
93242008-12-24 Jason Rumney <jasonr@gnu.org>
9325
9326 * ralloc.c (r_alloc_reset_variable): New function.
9327
9328 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9329 record of what points where. (Bug#716)
baae5c2d 9330
a9051c88
DN
93312008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9332
9333 * minibuf.c (read_minibuf): Follow the non-interactive case when
9334 running as a daemon, before detaching.
9335
8b146312
AS
93362008-12-22 Andreas Schwab <schwab@suse.de>
9337
9338 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9339 * gtkutil.c (free_widget_value): Use xfree instead of free.
9340
56f2de10
MR
93412008-12-22 Martin Rudalics <rudalics@gmx.at>
9342
9343 * frame.c (delete_frame): New function derived from
9344 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9345 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9346 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9347 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9348 * frame.h: Extern delete_frame.
9349 * window.c (window_loop):
9350 * terminal.c (delete_terminal):
9351 * xterm.c (x_connection_closed):
9352 * xfns.c (Fx_hide_tip):
9acef61c 9353 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9354
1fc200d6
JR
93552008-12-21 Jason Rumney <jasonr@gnu.org>
9356
9357 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9358 when character maps to .notdef character.
9359
5e252df2
SM
93602008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9361
9362 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9363
99b72cc4
JR
93642008-12-20 Jason Rumney <jasonr@gnu.org>
9365
9366 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9367 a graphical frame on Windows. (Bug#1325)
99b72cc4 9368
acc49a52
JD
93692008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9370
9371 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9372
6ea15123
CY
93732008-12-20 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * minibuf.c (Fread_buffer): Doc fix.
9376
b2dab6c8
JR
93772008-12-20 Jason Rumney <jasonr@gnu.org>
9378
54ea0c87 9379 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9380 server name in UNC paths. (Bug#719)
54ea0c87 9381
b2dab6c8 9382 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9383 charbuf. (Bug#1035)
b2dab6c8 9384
6d1921be
DN
93852008-12-19 Daniel Engeler <engeler@gmail.com>
9386
9387 * sysdep.c (serial_configure): Fix typo.
9388
53934c98
DN
93892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9390
9391 * sysdep.c: Include alloca.h.
f4f634e8
DN
9392 (system_process_attributes): Add implementation for Solaris.
9393
9394 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9395
06e111a6
DN
93962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9397
9398 Reorganize implementation of Flist_system_processes and
9399 Fsystem_process_attributes. No functional changes.
9400 * process.c: Don't #include pwd.h, grp.h and limits.h.
9401 (Flist_system_processes): Just call list_system_processes.
9402 (Fsystem_process_attributes): Just call system_process_attributes.
9403 (procfs_list_system_processes, time_from_jiffies)
9404 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9405 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9406
9407 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9408 (list_system_processes): Rename from
9409 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9410 Provide a do nothing implementation.
9411 (system_process_attributes): Rename from
9412 procfs_list_system_processes.
9413 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9414 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9415
9416 * w32.c (list_system_processes): Rename from
9417 w32_list_system_processes.
9418 (system_process_attributes): Rename from
9419 w32_system_process_attributes.
9420
9421 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9422
9423 * process.h (w32_list_system_processes)
9424 (w32_system_process_attributes): Remove.
362654a6
JB
9425 (list_system_processes, system_process_attributes):
9426 New prototypes.
06e111a6 9427
6a705b23
KH
94282008-12-19 Kenichi Handa <handa@m17n.org>
9429
9430 * xfont.c (xfont_decode_coding_xlfd): New function.
9431 (xfont_encode_coding_xlfd): New function.
9432 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9433 (xfont_list): Decode and encode XLFD by iso-8859-1.
9434 (xfont_match): Likewise.
9435 (xfont_list_family): Likewise.
9436 (xfont_open): Likewise.
9437
d66c0241 9438 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9439 names are utf-8.
9440
d66c0241 9441 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9442 names are utf-8.
9443
5a130941
JD
94442008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9445
9446 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9447 changed.
bfd20325
JD
9448 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9449 clicked on a detached tool bar button.
5a130941 9450
fd95644b
DN
94512008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9452
9453 * emacs.c (main): Print and error and exit when no data is read
9454 from the pipe.
9455
e6eee6ae
JR
94562008-12-17 Jason Rumney <jasonr@gnu.org>
9457
9458 * w32font.c (w32font_has_char): Always return -1.
9459
a35dd56b
KH
94602008-12-16 Kenichi Handa <handa@m17n.org>
9461
9462 * font.c (font_open_entity): Fix previous change.
9463
0e3635c2
DN
94642008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9465
9466 * process.c: Include <limits.h>.
9467
d4835507 94682008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9469
9470 * font.c (font_update_drivers): Fix mistake in reconstructing the
9471 driver list.
9472
94732008-12-16 Chong Yidong <cyd@stupidchicken.com>
9474
9475 * font.c (font_clear_cache): Fix format of font cache data.
9476
e2cbc401
CY
94772008-12-15 Chong Yidong <cyd@stupidchicken.com>
9478
9479 * xftfont.c (xftfont_open): Free Xft font pattern if
9480 XftFontOpenPattern fails.
9481
9482 * xterm.c (x_free_frame_resources): Remove extraneous call to
9483 free_frame_faces.
9484
b131d535
CY
94852008-12-13 Chong Yidong <cyd@stupidchicken.com>
9486
9487 * xterm.c (x_delete_display): Move xim_close_dpy call to
9488 x_delete_terminal.
9489 (x_delete_terminal): Call xim_close_dpy.
9490
e6df5336
JR
94912008-12-13 Jason Rumney <jasonr@gnu.org>
9492
9493 * w32font.c (intern_font_name): New function.
9494 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9495 (w32font_open_internal, Fx_select_font): Decode font name.
9496 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9497
9498 * w32font.h (intern_font_name): Declare new function.
9499
9500 * w32uniscribe.c (add_opentype_font_name_to_list):
9501 Use intern_font_name.
9502
20d68145
CY
95032008-12-13 Chong Yidong <cyd@stupidchicken.com>
9504
9f2554de
CY
9505 * frame.c (Fdelete_frame): Call free_font_driver_list.
9506
3d9bec9a
CY
9507 * font.c (free_font_driver_list): Implement missing function.
9508
20d68145
CY
9509 * w32term.c (w32_term_init): Don't initialize the image cache
9510 here; it will be done in init_frame_faces.
9511
9512 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9513 (struct x_display_info): Remove unused member null_pixel. New
9514 member xim_callback_data.
9515
9516 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9517 (xim_initialize): Save pointer to callback function data.
9518 (xim_close_dpy): Free callback function data. Call XCloseIM,
9519 reverting 2008-11-04 change by David Smith.
9520 (x_term_init): Don't initialize the image cache here; it will be
9521 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9522 (x_delete_display): Free x_dnd_atoms member.
9523
96f9306b
KH
95242008-12-13 Kenichi Handa <handa@m17n.org>
9525
6dec9044
JB
9526 * font.c (font_rescale_ratio): Moved from xfaces.c.
9527 Argument type changed. Handle a font-spec too.
96f9306b 9528 (font_score): Check Vface_font_rescale_alist.
6dec9044 9529 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9530
9531 * xfaces.c (font_rescale_ratio): Moved to font.c.
9532
8d5b4964
CY
95332008-12-13 Chong Yidong <cyd@stupidchicken.com>
9534
9535 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9536
e6df5336
JR
95372008-12-12 Jason Rumney <jasonr@gnu.org>
9538
9539 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9540 Vwindow_system_version to the real w32 major version.
9541
97c6058a
DN
95422008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9543
9544 * term.c (init_tty): Move setting the terminal name before the
9545 potential user: maybe_fatal.
9546
ec4e88d7
CY
95472008-12-11 Chong Yidong <cyd@stupidchicken.com>
9548
d4835507
JB
9549 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9550 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9551
b4233ec9
JR
95522008-12-11 Jason Rumney <jasonr@gnu.org>
9553
8ec71e23 9554 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9555 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9556
b4233ec9 9557 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9558 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9559
011a0143
JB
95602008-12-11 Juanma Barranquero <lekktu@gmail.com>
9561
9562 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9563
3c309f34
JB
95642008-12-11 Juanma Barranquero <lekktu@gmail.com>
9565
9566 * process.c (Fsystem_process_attributes, syms_of_process):
9567 Fix typo in name of Ssystem_process_attributes.
9568 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9569
fedc6ab5
JB
95702008-12-11 Juanma Barranquero <lekktu@gmail.com>
9571
9572 * syntax.c (Fmodify_syntax_entry): Doc fix.
9573
ba3de0e8
JB
95742008-12-10 Juanma Barranquero <lekktu@gmail.com>
9575
9576 * font.c (Ffont_spec): Move usage to end of docstring.
9577
174f1c74
JR
95782008-12-10 Jason Rumney <jasonr@gnu.org>
9579
9580 * w32font.c (Qcham): New symbol.
9581 (font_supported_scripts): Add cham, and comments for other new
9582 scripts in bitfield from OpenType spec.
9d32f818
JR
9583 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9584 contain characters beyond the bmp.
174f1c74 9585
7b649478
KH
95862008-12-10 Kenichi Handa <handa@m17n.org>
9587
9588 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9589 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9590 Qunicode_sip.
9591
2133e2d1
JB
95922008-12-10 Juanma Barranquero <lekktu@gmail.com>
9593
9594 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9595 (Fcoding_system_put): Use QCdefault_char.
9596 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9597
9af886ee
CY
95982008-12-09 Chong Yidong <cyd@stupidchicken.com>
9599
74d819eb
CY
9600 * xftfont.c (syms_of_xftfont): Fix typo.
9601
4ccfa1c0 9602 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9603
7c19d3ae
DN
96042008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9605
9606 * emacs.c (main): Close daemon_pipe on exec.
9607
567826bb
CY
96082008-12-08 Chong Yidong <cyd@stupidchicken.com>
9609
9610 * termchar.h (struct tty): New members termcap_term_buffer and
9611 termcap_strings_buffer.
9612
9613 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9614 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9615 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9616 All callers changed.
9617 (init_tty): Store termcap data and string buffers in new struct
9618 tty members termcap_term_buffer and termcap_strings_buffer.
9619 (delete_tty): Free them.
4ccfa1c0 9620 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9621
aa96c42b
SZ
96222008-12-07 Seiji Zenitani <zenitani@mac.com>
9623
9624 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9625 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9626
b7e1d896
CY
96272008-12-06 Chong Yidong <cyd@stupidchicken.com>
9628
9629 * coding.c (make_conversion_work_buffer): Disable buffer
9630 modification hooks in the work buffer.
9631
b5ec91a5
EZ
96322008-12-05 Eli Zaretskii <eliz@gnu.org>
9633
9634 * process.c (procfs_system_process_attributes): If `nread' has a
9635 negative value, assign zero to it.
9636
a5d2a52b
CY
96372008-12-05 Chong Yidong <cyd@stupidchicken.com>
9638
68c5540b 9639 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9640
7bf1bb21
KH
96412008-12-05 Kenichi Handa <handa@m17n.org>
9642
9643 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9644 second character is a combining character.
9645
2fdc7d00
EZ
96462008-12-05 Eli Zaretskii <eliz@gnu.org>
9647
9648 * process.c (procfs_system_process_attributes): Don't use cmd,
9649 cmdsize, and q without initializing them first.
9650
bf6bfba8
JR
96512008-12-04 Jason Rumney <jasonr@gnu.org>
9652
9653 * w32font.c (w32font_draw): Initialize orig_clip before getting
9654 it, and delete it when finished.
9655
a3b1a468
DN
96562008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9657
9658 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9659 case when running as a daemon before detaching.
9660
8b8be8eb
JB
96612008-12-03 Juanma Barranquero <lekktu@gmail.com>
9662
805f2638 9663 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9664
b1bde622
KH
96652008-12-03 Kenichi Handa <handa@m17n.org>
9666
e500c47d
KH
9667 * font.c (font_at): Set `multibyte' at first.
9668
ca516334
KH
9669 * coding.c (decode_coding_charset): Check type of an element of
9670 vector VALIDS.
7bf1bb21 9671 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9672
4ccfa1c0 9673 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9674 (font_for_char): Likewise.
9675
1e5ecd37
CY
96762008-12-03 Chong Yidong <cyd@stupidchicken.com>
9677
d5b01609 9678 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9679 (font_update_lface): Handle fonts with corrupted size specs,
9680 i.e. non-int and non-float.
d5b01609 9681
11e3a6e4 9682 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9683 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9684 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9685
ab06788b
CY
9686 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9687
1e5ecd37 9688 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9689 underline_minimum_offset for underline position.
1e5ecd37 9690
63c125ab
DN
96912008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9692
9693 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9694
9695 * character.c (c_string_width): Specify the type for LEN.
9696
3a8406e1
KH
96972008-12-03 Kenichi Handa <handa@m17n.org>
9698
4ccfa1c0 9699 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9700 (decode_coding_utf_8): Likewise.
4ccfa1c0 9701 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9702 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9703
651df7d9
CY
97042008-12-02 Chong Yidong <cyd@stupidchicken.com>
9705
9706 * keyboard.c (make_lispy_position): Only use PT if the selected
9707 window is current.
9708
1f625c6c
AS
97092008-12-02 Andreas Schwab <schwab@suse.de>
9710
f7741ce9
AS
9711 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9712
1f625c6c
AS
9713 * doprnt.c (doprnt1): Fix size of charbuf.
9714
92bc2678
CY
97152008-12-02 Chong Yidong <cyd@stupidchicken.com>
9716
9717 * keyboard.c (timer_check): Revert last change.
9718
93b9e8cc
JB
97192008-12-02 Juanma Barranquero <lekktu@gmail.com>
9720
9721 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9722
fd7a37d5
JB
97232008-12-01 Juanma Barranquero <lekktu@gmail.com>
9724
9725 * makefile.w32-in: Update dependencies.
9726 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9727
c115043b
AS
97282008-12-01 Andreas Schwab <schwab@suse.de>
9729
9730 * font.c (register_font_driver): Use xmalloc.
9731 (font_put_frame_data): Likewise.
9732
f5668d2a
CY
97332008-12-01 Chong Yidong <cyd@stupidchicken.com>
9734
860d96be
CY
9735 * xfaces.c (realize_x_face): Make abort condition clearer.
9736
f5668d2a
CY
9737 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9738
379c17e7
CY
97392008-11-30 Chong Yidong <cyd@stupidchicken.com>
9740
9741 * keyboard.c (timer_check): After a timer runs, ensure that the
9742 selected window's buffer is current.
9743
35f36d65
JB
97442008-11-30 Juanma Barranquero <lekktu@gmail.com>
9745
f952c61c
JB
9746 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9747 It was accidentally restored by the Unicode merge.
9748
35f36d65
JB
9749 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9750
b23077df
JB
97512008-11-29 Juanma Barranquero <lekktu@gmail.com>
9752
9753 * w32proc.c: Include "coding.h".
9754 (Fw32_short_file_name): Encode filename passed to Windows API.
9755 (Fw32_long_file_name): Encode filename passed to Windows API and
9756 decode back the result. (Bug#1433)
9757
b8ebe9dd
KH
97582008-11-29 Kenichi Handa <handa@m17n.org>
9759
8cc53f96
KH
9760 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9761 not before accessing it.
9762
b8ebe9dd
KH
9763 * charset.c (Fdefine_charset_internal): After calculating
9764 min_char, max_char, and fastmap, copy the charset structure again.
9765 (encode_char): Fix the previous change.
9766
59bc82c0
SZ
97672008-11-28 Seiji Zenitani <zenitani@mac.com>
9768
9769 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9770
9771 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9772
9773 * nsterm.m (x_set_frame_alpha): New function.
9774
32247e3d
EZ
97752008-11-27 Eli Zaretskii <eliz@gnu.org>
9776
9777 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9778
b003e5ff
JB
97792008-11-27 Juanma Barranquero <lekktu@gmail.com>
9780
9781 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9782 pointer to check_face_name.
9783
708550f5
KH
97842008-11-27 Kenichi Handa <handa@m17n.org>
9785
9786 * category.h (SET_CATEGORY_SET): Call set_category_set.
9787 (set_category_set): Extern it.
9788
9789 * category.c (hash_get_category_set): New function.
9790 (Fmodify_category_entry): Adjusted for the change of
9791 char_table_ref_and_range. Call hash_get_category_set to get a
9792 category set to store in the table.
9793
9794 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9795 Funify_charset.
9796
2ae37cf0 9797 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9798 (DECODE_CHAR): Check if the decoder vector is ready.
9799 (ENCODE_CHAR): Check if the encoder char-table is ready.
9800 (maybe_unify_char): Extern it.
9801
9802 * charset.c (Vchar_unified_charset_table): Delete it.
9803 (inhibit_load_charset_map): New variable.
9804 (temp_charset_work): New variable.
9805 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9806 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9807 New macros.
9808 (load_charset_map): Meaning of control_flag changed. If
9809 inhibit_load_charset_map is nonzero, setup a table in
9810 temp_charset_work.
9811 (load_charset): New argument control_flag.
9812 (map_charset_for_dump): New function.
9813 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9814 map_charset_for_dump.
9815 (Fdefine_charset_internal): If the charset method is MAP, load
9816 mapping tables by calling load_charset.
9817 (Funify_charset): Don't load a mapping table but directly set
9818 Vchar_unify_table.
9819 (maybe_unify_char): New function.
9820 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9821 Handle the case of inhibit_load_charset_map being nonzero.
9822 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9823 Handle the case of inhibit_load_charset_map being nonzero.
9824 (Fclear_charset_maps): Just free temp_charset_work.
9825 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9826 variable.
9827
9828 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9829 change of char_table_ref_and_range.
9830 (char_table_ref_and_range): Change the meaning of argument FROM
9831 and TO. Now the caller must provide initial values for *FROM
9832 and *TO.
9833
9834 * fontset.c (fontset_add): Adjusted for the change of
9835 char_table_ref_and_range.
9836 (fontset_get_font_group): Likewise.
9837 (Ffontset_info): Likewise.
9838
9839 * keymap.c (describe_vector): Adjusted for the change of
9840 char_table_ref_and_range. For char-table, put boundary between
9841 non-ASCII and 8-bit characters.
9842
9843 * print.c (print_object): For bool-vector, delete unnecessary
9844 check of ASCII_BYTE_P.
9845
9196133b
JR
98462008-11-26 Jason Rumney <jasonr@gnu.org>
9847
9848 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9849 leading in font height. (Bug#879)
9196133b 9850
9f688acf
GM
98512008-11-26 Glenn Morris <rgm@gnu.org>
9852
9853 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9854 redefinition with ifdef. (Bug#1383)
9855
90d19aff
AR
98562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9857
9858 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9859
4ccfa1c0 98602008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9861
9862 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9863 New EmacsView methods.
9864 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9865 Fixes bug #1048,1357,1414.
9866
98672008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9868
9869 Fix bug #1362.
9870 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9871 is not an indexed color.
9872 * nsterm.m (free_indexed_color): Add argument checking.
9873 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9874
e7d5ecb3
CY
98752008-11-24 Chong Yidong <cyd@stupidchicken.com>
9876
9877 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9878 Document confirm-after-completion value for
9879 minibuffer-completion-confirm.
9880
c285743c
JR
98812008-11-24 Jason Rumney <jasonr@gnu.org>
9882
9883 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9884 warning.
9885
b0857706
JR
98862008-11-23 Jason Rumney <jasonr@gnu.org>
9887
9888 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9889 restored before returning.
9890
9891 * w32font.c (check_face_name): New function.
9892 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9893 fonts. (Bug#642)
b0857706 9894
ee50ff07
MR
98952008-11-22 Martin Rudalics <rudalics@gmx.at>
9896
9897 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9898 confirm-nonexistent-file-or-buffer in doc-string.
9899
b8ff72fa
SM
99002008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9901
9902 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9903 Fix copy/paste typo. Add checks.
9904
cee53ed4
KH
99052008-11-21 Kenichi Handa <handa@m17n.org>
9906
9907 * coding.c (detect_coding_iso_2022): Reject invalid composition
9908 sequence.
9909 (DECODE_COMPOSITION_START): If the current source is the last
9910 block, and the current composition doesn't end, regard this
9911 sequence as invalid.
9912 (decode_coding_iso_2022): Handle invalid composition sequence.
9913
f6ef1e65
MR
99142008-11-20 Martin Rudalics <rudalics@gmx.at>
9915
9916 * window.c (coordinates_in_window): Don't return
9917 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9918 line when the window is not the rightmost one. (Bug#1372)
9919
e08b1705
MR
99202008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9921
9922 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9923
ad98e89f
EZ
99242008-11-15 Eli Zaretskii <eliz@gnu.org>
9925
9926 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9927 and bright_bg if noninteractive is non-zero.
9928
fb098a4b
CY
99292008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9930
9931 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9932 x_draw_glyph_string_background.
9933
9934 * w32term.c (x_draw_glyph_string): Likewise.
9935
ce952b6e
CY
99362008-11-15 Chong Yidong <cyd@stupidchicken.com>
9937
9938 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9939 the next glyph string once past the overhang width.
9940
9941 * nsterm.m (ns_draw_glyph_string): Likewise.
9942
9943 * w32term.c (x_draw_glyph_string): Likewise.
9944
26ea7079
CY
99452008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9946
9947 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9948 double file close.
9949
1c33c906
MR
99502008-11-14 Martin Rudalics <rudalics@gmx.at>
9951
9952 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9953 dedicated status of window before attempting to display another
9954 buffer in it.
9955
8fc29035
JB
99562008-11-14 Juanma Barranquero <lekktu@gmail.com>
9957
9958 * msdos.c (Fmsdos_long_file_names):
9959 (syms_of_msdos) <dos-unsupported-char-glyph>:
9960 * dosfns.c (Fint86): Fix typos in docstrings.
9961
55fb4286
EZ
99622008-11-14 Eli Zaretskii <eliz@gnu.org>
9963
9964 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9965
3fda0315
KY
99662008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9967
9968 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9969
7e849c17
CY
99702008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9971
9972 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9973
9974 * frame.h: Negative alpha means "don't touch".
9975
9976 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9977
9978 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9979
b9fd67bd
DN
99802008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9981
9982 * hftctl.c:
9983 * chpdef.h:
9984 * acldef.h: Remove files used only for systems no longer supported.
9985
9986 * Makefile.in: Fix .o alphabetical ordering.
9987 (hftctl.o): Remove dependency, file removed.
9988 (keymap.o, print.o): Depend on charset.h.
9989
d5998e03
KH
99902008-11-10 Kenichi Handa <handa@m17n.org>
9991
2ae37cf0 9992 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9993
be70e183
CY
99942008-11-08 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * dired.c (file_name_completion): If completion_ignore_case is
9997 enabled, ignore case when checking completion-regexp-list.
9998
7cf94eac
EZ
99992008-11-08 Eli Zaretskii <eliz@gnu.org>
10000
10001 * vm-limit.c (get_lim_data): Fix last change.
10002
ee107a89
KH
100032008-11-08 Kenichi Handa <handa@m17n.org>
10004
10005 * character.c (Fget_byte): New function.
10006 (syms_of_character): Defsubr Fget_byte.
10007
5fd15622
CY
100082008-11-07 Chong Yidong <cyd@stupidchicken.com>
10009
10010 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10011 cursor position is valid after scrolling.
10012
13d62fad
JB
100132008-11-06 Juanma Barranquero <lekktu@gmail.com>
10014
10015 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10016
a1dd2936
GM
100172008-11-06 Glenn Morris <rgm@gnu.org>
10018
10019 * xterm.c (handle_one_xevent): Don't let popup menus cause
10020 mouse-autoselect-window related window switching. (Bug#1261)
10021
860cd236
CY
100222008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10023
10024 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10025
653a3150
AS
100262008-11-04 Andreas Schwab <schwab@suse.de>
10027
10028 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10029
870f5cac
CY
100302008-11-03 Chong Yidong <cyd@stupidchicken.com>
10031
10032 * xfns.c (Fx_wm_set_size_hint): New function.
10033
1e02f3cb
MR
100342008-11-03 Martin Rudalics <rudalics@gmx.at>
10035
10036 * textprop.c (Fprevious_single_char_property_change): Return 0
10037 when there's no change in a string. (Bug#1301)
10038
e630dfc6
MR
100392008-11-02 Martin Rudalics <rudalics@gmx.at>
10040
10041 * frame.c (do_switch_frame): New argument NORECORD passed to
10042 Fselect_window.
10043 (Fselect_frame): New argument NORECORD passed to
10044 do_switch_frame.
10045 (Fset_frame_selected_window): New argument NORECORD passed to
10046 Fselect_frame.
10047 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10048 in call of do_switch_frame.
10049 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10050 Handle NORECORD argument in call of Fselect_frame.
10051 * lisp.h (do_switch_frame, Fselect_frame)
10052 (Fset_frame_selected_window): Adjust declarations.
10053 * window.c (select_frame_norecord): New function.
10054 (run_window_configuration_change_hook): Use it and call
10055 Fselect_frame with NORECORD set.
10056 (Fselect_window): Pass NORECORD to Fselect_frame.
10057 (Fset_window_configuration): Handle NORECORD argument in call of
10058 do_switch_frame.
10059 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10060 Fset_frame_selected_window.
10061 * keyboard.c (command_loop_1): Handle NORECORD in call of
10062 Fselect_frame (currently ifdefd).
10063
9020b223
GM
100642008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10065
10066 * emacs.c (USAGE2): Untabify.
10067
793ffee8
SM
100682008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10069
10070 * composite.c (fill_gstring_header): Fix copy/paste typo.
10071
ab6d1131
MR
100722008-10-31 Martin Rudalics <rudalics@gmx.at>
10073
10074 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10075 (Fother_window): Rename argument and rewrite doc-string.
10076 (select_window_norecord): Fix return value. (Bug#1276)
10077
601a9cf1
JB
100782008-10-30 Juanma Barranquero <lekktu@gmail.com>
10079
10080 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10081 new frames overriding foreground for tooltips. Based on similar patch
10082 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10083
813b0652
CY
100842008-10-29 Chong Yidong <cyd@stupidchicken.com>
10085
10086 * emacs.c (Fdaemon_initialized): Initialize nfd.
10087
4414f58f
MR
100882008-10-29 Martin Rudalics <rudalics@gmx.at>
10089
10090 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10091 (Fwindow_text_height): Clarify doc-strings.
10092 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10093 doc-string of window-scroll-functions.
10094
ecdcaa09
RS
100952008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10096
10097 * category.c (syms_of_category): Fix typo in docstring.
10098
23fe745a
JB
100992008-10-28 Juanma Barranquero <lekktu@gmail.com>
10100
10101 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10102 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10103 Fix typos in docstrings.
10104
ff808935
DN
101052008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10106
10107 * emacs.c (daemon_pipe): Make non-static.
10108 (IS_DAEMON): Move definition ...
10109 * lisp.h (IS_DAEMON): ... here.
10110 (daemon_pipe): Declare.
10111 (is_daemon): Remove.
10112 * dispnew.c (init_display): Use IS_DAEMON.
10113
fc012771
SM
101142008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10115
10116 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10117 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10118
10119 * emacs.c (is_daemon): Remove.
10120 (main): Don't set is_daemon.
10121 (IS_DAEMON): New macro.
10122 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10123 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10124 parent exits.
10125 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10126
d8bdbe6f
CY
101272008-10-27 Chong Yidong <cyd@stupidchicken.com>
10128
d1a072bf
CY
10129 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10130 over-sized glyph, draw it with the default glyph width.
10131
e2e325aa
CY
10132 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10133 glyph, draw it with the default glyph width.
10134
10135 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10136 glyph, draw it with the default glyph width.
10137
d8bdbe6f
CY
10138 * xdisp.c (try_scrolling): When computing the distance from the
10139 scroll margin to PT, try moving some distance past the window
10140 bottom before giving up.
10141
7bfac547
MR
101422008-10-27 Martin Rudalics <rudalics@gmx.at>
10143
10144 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10145 (Fset_window_buffer): Explain in doc-string that a window can be
10146 "strongly" dedicated to its buffer.
10147
4ff029f6
DN
101482008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10149
10150 * emacs.c (daemon_name): New variable.
10151 (main): Deal with --daemon=SERVER_NAME.
10152 (Fdaemonp): Return a name if one was passed to --daemon.
10153
5790ef40
DN
101542008-10-26 Romain Francoise <romain@orebokech.com>
10155
f9bd0df9 10156 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10157 (main): Create a pipe before forking, make the parent exit only after
10158 the child has closed its end of the pipe. Move closing the
10159 descriptors ...
10160 (Fdaemon_initialized): ... here. New function.
10161
f5385255
SM
101622008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10163
4d632321
SM
10164 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10165 the previous unoptimized table.
10166
f5385255
SM
10167 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10168 the distinction between non-nil and non-t value of `dedicated'.
10169
6c56a0f3
CY
101702008-10-25 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10173 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10174
fec89261
MR
101752008-10-25 Martin Rudalics <rudalics@gmx.at>
10176
10177 * window.c (Fget_buffer_window, Fdelete_windows_on)
10178 (Freplace_buffer_in_windows): Make buffer argument optional and
10179 rename to buffer_or_name.
10180
34fcddd0
CY
101812008-10-24 Chong Yidong <cyd@stupidchicken.com>
10182
f5385255
SM
10183 * xdisp.c (handle_single_display_spec, handle_display_prop):
10184 Undo 2005-05-16 change.
34fcddd0
CY
10185 (handle_stop): Pop iterator if it's loaded with an empty string.
10186 (get_overlay_strings_1): Don't save iterator if it's loaded with
10187 an empty string (bug#1201).
10188
064766f2
KH
101892008-10-24 Kenichi Handa <handa@m17n.org>
10190
10191 * ftfont.c (ftfont_otf_features): Fix previous change.
10192 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10193 calling ftfont_otf_features.
10194
f9bd0df9 101952008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10196
10197 * font.c (font_match_p): Fix for the case that a vector of
10198 characters is in script-representative-chars.
10199
1dae9197
MA
102002008-10-24 Michael Albinus <michael.albinus@gmx.de>
10201
10202 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10203 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10204 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10205 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10206 macro. (Bug#1186)
1dae9197 10207
f9bd0df9 102082008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10209
10210 * s/sol2-10.h: New file.
10211
878a4584
JB
102122008-10-23 Juanma Barranquero <lekktu@gmail.com>
10213
10214 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10215 poor beast has survived 9+ years and the jump from xterm.c!).
10216
cd265ca6
MR
102172008-10-23 Martin Rudalics <rudalics@gmx.at>
10218
10219 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10220 Reword doc-string.
f5385255 10221 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10222
472a4dc9
JB
102232008-10-23 Juanma Barranquero <lekktu@gmail.com>
10224
10225 * character.c (syms_of_character) <script-representative-chars>:
10226 <unicode-category-table>: Doc fixes.
10227
159bd5a2
NF
102282008-10-23 Noah Friedman <friedman@splode.com>
10229
10230 * coding.c (make_conversion_work_buffer): Check that
10231 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10232 Fget_buffer_create.
10233
49f9c344
KH
102342008-10-23 Kenichi Handa <handa@m17n.org>
10235
10236 * font.c (font_add_log): Check the values of extra properties.
10237
12bb3111
MR
102382008-10-22 Martin Rudalics <rudalics@gmx.at>
10239
10240 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10241 Reword doc-string.
10242 (Fset_window_parameter): Use NILP.
10243 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10244 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10245
bbeb4e99
JB
102462008-10-22 Juanma Barranquero <lekktu@gmail.com>
10247
10248 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10249
102502008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10251
10252 * nsfns.m (ns_appkit_version): New function.
10253 (x-server-version): Use it.
10254 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10255 (x-server-vendor): Don't check_ns().
10256
10257 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10258
a9b555d3
JB
102592008-10-22 Juanma Barranquero <lekktu@gmail.com>
10260
10261 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10262 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10263
4626499f
KH
102642008-10-22 Kenichi Handa <handa@m17n.org>
10265
e3681952
KH
10266 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10267 scripts.
10268
4626499f
KH
10269 * category.c (word_boundary_p): Check scripts instead of charset.
10270 Handle nil value in word-separating-categories and
10271 word-combining-categories.
10272 (syms_of_category): Fix docstrings of word-separating-categories
10273 and word-combining-categories.
10274
1560f91a
EZ
102752008-10-21 Eli Zaretskii <eliz@gnu.org>
10276
10277 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10278 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10279
f4668441
MR
102802008-10-21 Martin Rudalics <rudalics@gmx.at>
10281
10282 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10283 Rename arg "buffer" to "buffer_or_name".
10284 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10285 it optional.
10286 (no_switch_window): Remove since the return value is not used.
a9b555d3 10287 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10288 Consider window as dedicated when Fwindow_dedicated_p returns a
10289 non-nil value.
10290 * lisp.h: Remove prototype for no_switch_window.
10291
fd75ddb2
JD
102922008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10293
10294 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10295 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10296
07295713
KH
102972008-10-21 Kenichi Handa <handa@m17n.org>
10298
10299 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10300 check Vlatin_extra_code_table.
10301
712adc82
EZ
103022008-10-20 Eli Zaretskii <eliz@gnu.org>
10303
10304 * fileio.c (Fset_file_modes): Doc fix.
10305
f549eb0b
MA
103062008-10-19 Michael Albinus <michael.albinus@gmx.de>
10307
10308 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10309 in arrays.
10310
aac0c6e3
MR
103112008-10-19 Martin Rudalics <rudalics@gmx.at>
10312
10313 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10314 Mention kill-buffer in doc-string.
10315 (Fset_window_buffer): Reinsert tem check removed in last commit.
10316 (Fenlarge_window, Fshrink_window): Have argument names and
10317 doc-string follow Elisp manual more closely.
10318
103192008-10-18 Eli Zaretskii <eliz@gnu.org>
10320
10321 * fileio.c (Fset_file_modes): Doc fix.
10322
103232008-10-18 Martin Rudalics <rudalics@gmx.at>
10324
10325 * window.c (Fwindow_width, Fset_window_start)
10326 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10327 (Fdelete_windows_on, Freplace_buffer_in_windows):
10328 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10329 (Fwindow_dedicated_p): Make window argument optional.
10330 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10331 (Fset_window_buffer): Respect any non-nil dedicated value for
10332 window. Rename "buffer" argument to "buffer_or_name".
10333
103342008-10-18 Ulrich Mueller <ulm@gentoo.org>
10335
10336 * m/sh3.h: New file, machine description for SuperH.
10337
103382008-10-17 Martin Rudalics <rudalics@gmx.at>
10339
10340 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10341
103422008-10-17 Kenichi Handa <handa@m17n.org>
10343
10344 * ftfont.c (ftfont_otf_features): Fix indexing
10345 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10346
103472008-10-16 Magnus Henoch <mange@freemail.hu>
10348
10349 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10350 (Fdbus_call_method_asynchronously): Ditto.
10351 This change makes C-h f display the argument list.
10352
103532008-10-16 Chong Yidong <cyd@stupidchicken.com>
10354
10355 * fileio.c (Fexpand_file_name): Doc fix.
10356
10357 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10358 of :foreground and :background equivalent to unspecified (20.x
10359 compatibility).
10360
103612008-10-15 Eli Zaretskii <eliz@gnu.org>
10362
10363 * buffer.c (syms_of_buffer): Doc fix.
10364
103652008-10-14 Kenichi Handa <handa@m17n.org>
10366
10367 * font.c (font_clear_prop): When clearing font width, clear the
10368 average width field too.
10369
103702008-10-12 Andreas Schwab <schwab@suse.de>
10371
10372 * ftfont.c (ftfont_shape_by_flt): Make static.
10373 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10374
10375 * font.c: Don't include <m17n-flt.h>.
10376
103772008-10-10 Eli Zaretskii <eliz@gnu.org>
10378
10379 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10380
103812008-10-09 Eli Zaretskii <eliz@gnu.org>
10382
10383 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10384 away code.
10385
103862008-10-09 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * dispnew.c (update_text_area): Avoid looping due to large glyph
10389 overhangs (bug#1070).
10390
103912008-10-09 Kenichi Handa <handa@m17n.org>
10392
10393 * fontset.c (face_for_char): If face->fontset is negative, just
10394 return ascii_face.
10395
f5385255
SM
10396 * font.c (font_delete_unmatched): Fix previous change.
10397 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10398
103992008-10-09 Martin Rudalics <rudalics@gmx.at>
10400
10401 * frame.c (Fraise_frame): On text-only terminals select frame in
10402 order to make it visible. (Bug#1061)
10403
104042008-10-08 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * fontset.c (fontset_find_font): Check frame validity.
10407
104082008-10-07 Chong Yidong <cyd@stupidchicken.com>
10409
a9b555d3 10410 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10411 (xg_display_close): Allow Emacs to close all displays (bug#985).
10412
104132008-10-06 Andreas Schwab <schwab@suse.de>
10414
f5385255 10415 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10416
104172008-10-06 Chong Yidong <cyd@stupidchicken.com>
10418
f5385255 10419 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10420
a9b555d3 10421 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10422
10423 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10424 during initialization.
10425
104262008-10-04 Eli Zaretskii <eliz@gnu.org>
10427
10428 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10429 whole thing on MSDOS frames as well as on a TTY.
10430
10431 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10432 well as for TTY.
10433 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10434 well as on a TTY.
10435
10436 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10437 as well as for TTY.
10438
10439 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10440
10441 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10442 MSDOS frames as well.
10443
104442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10445
10446 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10447 correct arguments.
b71ac3dd 10448 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10449
104502008-10-03 Glenn Morris <rgm@gnu.org>
10451
10452 * emacs.c (USAGE1): Add --daemon.
10453
104542008-10-02 Eli Zaretskii <eliz@gnu.org>
10455
10456 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10457 100, so it's in percents as advertised.
10458
104592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10460
10461 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10462 (ns_output.current_cursor, ns_output.desired_cursor)
10463 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10464 (FRAME_NEW_CURSOR_COLOR): Remove.
10465
10466 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10467 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10468 enumeration (HOLLOW_BOX_CURSOR, etc.).
10469
10470 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10471 (draw_window_cursor): Simplify code.
f5385255
SM
10472 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10473 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10474 updates manually.
a9b555d3
JB
10475 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10476 Use core Emacs cursor types.
aac0c6e3 10477
b8ff72fa 10478 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10479
104802008-10-02 Martin Rudalics <rudalics@gmx.at>
10481
10482 * process.c (Faccept_process_output): Fix doc-string.
10483
104842008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10485
10486 * gmalloc.c (__sbrk): Also define for uClibc.
10487
10488 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10489 for uClibc.
10490
104912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10492
10493 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10494 styles.
10495 (nsfont_open): Reenable the cache.
10496
104972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10498
10499 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10500 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10501
105022008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10503
10504 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10505 a suspended terminal.
10506
105072008-09-30 Michael Albinus <michael.albinus@gmx.de>
10508
10509 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10510
105112008-09-30 Eli Zaretskii <eliz@gnu.org>
10512
10513 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10514
105152008-09-30 Chong Yidong <cyd@stupidchicken.com>
10516
10517 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10518 in a continued line coincides with a line beginning.
10519
105202008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10521
10522 * nsfont.m (nsfont_trait_distance): Fix bug.
10523 (nsfont_list): Return a list rather than a vector (syncs with Handa
10524 changes of 2008-05-14).
10525 (nsfont_open): Improve logging.
10526
105272008-09-29 Andreas Schwab <schwab@suse.de>
10528
10529 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10530
105312008-09-28 Martin Rudalics <rudalics@gmx.at>
10532
10533 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10534 name as char-resolve-modifiers.
10535 Reported by: Markus Triska <markus.triska@gmx.at>
10536
105372008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10538
10539 * dispnew.c (init_display): Return earlier when running as a daemon.
10540
105412008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10542
10543 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10544
105452008-09-27 Eli Zaretskii <eliz@gnu.org>
10546
10547 * composite.c (Fcomposition_get_gstring)
10548 (Fcompose_region_internal, Fcompose_string_internal)
10549 (Ffind_composition_internal): Doc fix.
10550 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10551 (syms_of_composite) <auto-composition-function>: Doc fix.
10552 (syms_of_composite) <composition-function-table>: Doc fix.
10553
105542008-09-25 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * search.c (wordify): New argument for lax word-ends.
10557 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10558
105592008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10560
10561 * lisp.h (is_daemon): Declare.
10562 * dispnew.c (init_display): Do not try to initialize the terminal
10563 when running as a daemon.
10564
105652008-09-22 Chong Yidong <cyd@stupidchicken.com>
10566
10567 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10568 x_display_pixel_height.
10569
105702008-09-22 Martin Rudalics <rudalics@gmx.at>
10571
10572 * undo.c (record_point): Don't call Fundo_boundary for first
10573 change. (Bug#731)
10574
105752008-09-22 Juanma Barranquero <lekktu@gmail.com>
10576
10577 * emacs.c (Fdaemonp): Doc fix.
10578
105792008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10580
10581 * emacs.c (main): Place #ifdef in the proper place.
10582
105832008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10584
10585 * emacs.c (standard_args): Add --daemon.
10586 (main): Disconnect from the terminal when --daemon is passed.
10587 (is_daemon): New variable.
10588 (Fdaemonp): New function.
10589 (syms_of_emacs): Defsubr it.
10590
105912008-09-20 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * xdisp.c (get_next_display_element): Handle string display
10594 correctly when checking for the end of a box run.
10595
105962008-09-20 Glenn Morris <rgm@gnu.org>
10597
10598 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10599 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10600 (Frename_file): Avoid copying to trash if a rename involves
10601 a delete. (Bug#964).
10602
106032008-09-20 Eli Zaretskii <eliz@gnu.org>
10604
10605 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10606 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10607 frames as well as termcap frames.
10608 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10609 get_named_tty.
10610
106112008-09-19 Eli Zaretskii <eliz@gnu.org>
10612
10613 * process.c (procfs_system_process_attributes): Fix cmdline in
10614 case /proc/PID/cmdline is empty.
10615
10616 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10617 x_display_pixel_height.
10618
106192008-09-19 Juanma Barranquero <lekktu@gmail.com>
10620
10621 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10622
10623 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10624 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10625
106262008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10627
10628 * dispextern.h (struct it): Move line_wrap away from the middle of
10629 bitfields. Move voffset in struct iterator_stack_entry after the
10630 bitfields. Move tab_width near after another short.
10631
106322008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10633
10634 * frame.h (struct frame): Move alpha from the middle of bitfields.
10635
10636 * window.h (struct window): Move frozen_window_start_p after the
10637 rest of the bitfields to reduce padding.
10638
106392008-09-18 Chong Yidong <cyd@stupidchicken.com>
10640
10641 * xterm.h (x_display_info): Remove `height' and `width' members.
10642
10643 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10644
10645 * w32term.h (w32_display_info): Remove `height', `width',
10646 `height_in', and `width_in' members.
10647
b8ff72fa
SM
10648 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10649 New functions.
aac0c6e3
MR
10650 (x_calc_absolute_position): Use them.
10651 (x_term_init): Omit removed `height' and `width' members.
10652
b8ff72fa
SM
10653 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10654 New functions.
aac0c6e3
MR
10655 (w32_read_socket, x_calc_absolute_position): Use them.
10656 (w32_initialize_display_info, w32_term_init): Omit removed members
10657 of w32_display_info.
10658
b8ff72fa
SM
10659 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10660 New functions.
10661 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10662
b8ff72fa
SM
10663 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10664 New functions.
aac0c6e3
MR
10665 (x_calc_absolute_position): Use them.
10666 (x_term_init): Omit removed `height' and `width' members.
10667
10668 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10669 (compute_tip_xy):
10670 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10671 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10672 x_display_pixel_width.
10673
106742008-09-18 Kenichi Handa <handa@m17n.org>
10675
10676 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10677 (composition_compute_stop_pos): Fix handling of static composition.
10678 (Fcomposition_get_gstring): Check FROM and TO at first.
10679
106802008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10681
46e722a9 10682 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10683 mixup (YAILOM).
10684
106852008-09-17 Chong Yidong <cyd@stupidchicken.com>
10686
10687 * indent.c (Fvertical_motion): Use position reported by iterator
10688 instead of PT for determining screen motion (bug#943).
10689
106902008-09-17 Romain Francoise <romain@orebokech.com>
10691
10692 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10693
106942008-09-17 Kenichi Handa <handa@m17n.org>
10695
10696 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10697
10698 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10699 if necessary.
10700
107012008-09-16 Kenichi Handa <handa@m17n.org>
10702
10703 * coding.c (make_conversion_work_buffer): Avoid calling
10704 Fget_buffer_create if it is not necessary.
10705
107062008-09-15 Martin Rudalics <rudalics@gmx.at>
10707
10708 * window.c (Fselect_window): Don't update window_select_count and
10709 use_time when norecord is not nil.
10710
107112008-09-14 Kenichi Handa <handa@m17n.org>
10712
10713 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10714 specpdl_ptr.
10715
107162008-09-12 Kenichi Handa <handa@m17n.org>
10717
10718 * indent.c (scan_for_column): Don't handle automatic composition
10719 if the current buffer is not associated with a window.
10720
10721 * composite.c (composition_reseat_it): If the current buffer is
10722 not associated with a window, ignore the automatic composition.
10723 (find_automatic_composition): Likewise.
10724
107252008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10726
10727 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10728 (Fgpm_mouse_stop): Use it.
10729 * termhooks.h (close_gpm): Declare.
10730 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10731 connection if Gpm_GetEvent fails.
10732
10733 * window.c (set_window_buffer): Always preserve current-buffer.
10734
107352008-09-12 Glenn Morris <rgm@gnu.org>
10736
10737 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10738
107392008-09-11 Glenn Morris <rgm@gnu.org>
10740
10741 * charset.c (charset-map-path): Doc fix.
10742
107432008-09-10 Kenichi Handa <handa@m17n.org>
10744
10745 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10746
10747 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10748 compose a grapheme cluster with the preceding base glyph.
10749
10750 * composite.c (composition_compute_stop_pos): Fix previous change.
10751 Reset cmp_it->id to -1 at first.
10752
107532008-09-10 Glenn Morris <rgm@gnu.org>
10754
10755 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10756
107572008-09-09 Chong Yidong <cyd@stupidchicken.com>
10758
10759 * keyboard.c (read_key_sequence): Reapply translation maps when
10760 switching keyboards.
10761
107622008-09-09 Kenichi Handa <handa@m17n.org>
10763
10764 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10765 characters.
10766
10767 * composite.c (FORWARD_CHAR): Fix calculation
10768 of (POSITION).pos_byte.
10769 (composition_compute_stop_pos): Limit the search of composition to
10770 at most 500 characters ahead. If we reach the limit or find a
10771 newline, set cmp_it->ch to -2 and return 0.
10772 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10773
107742008-09-08 Kenichi Handa <handa@m17n.org>
10775
10776 * indent.c (Fvertical_motion): Be sure to set
10777 it_overshoot_expected if it.cmp_it.id is non-negative.
10778
107792008-09-07 Andreas Schwab <schwab@suse.de>
10780
10781 * callproc.c (Fcall_process): Don't hold references to string data
10782 across garbage collection. Move initialisation of new_argv down
10783 to avoid compiler bug.
10784
107852008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10786
10787 * process.c (Fsystem_process_attributes): Doc fix.
10788
107892008-09-07 Chong Yidong <cyd@stupidchicken.com>
10790
10791 * callproc.c (Fcall_process): Canonicalize current directory name.
10792
10793 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10794 iterator advances to the next line if the current line ends in a
10795 continued tab.
10796
107972008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10798
10799 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10800 member to point to cmp_from.
10801
10802 * xdisp.c: Doc fix for references to gidx data member.
10803
108042008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10807
108082008-09-07 Kenichi Handa <handa@m17n.org>
10809
10810 * composite.c (FORWARD_CHAR): Check STOP after
10811 incrementing (POSITION).pos.
10812
108132008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10814
10815 * process.c (Fsystem_process_attributes): Doc fix.
10816
108172008-09-06 Chong Yidong <cyd@stupidchicken.com>
10818
10819 * keyboard.c (Ftop_level): Doc fix.
10820
108212008-09-06 Eli Zaretskii <eliz@gnu.org>
10822
10823 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10824 minibuffer, don't let lower part of menu invade the echo area.
10825
10826 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10827 "char *q" to access menu text and advance through it. Revert the
10828 change that displayed ">" instead of ASCII character 0x10.
10829
108302008-09-05 Eli Zaretskii <eliz@gnu.org>
10831
10832 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10833 toggle boxes and radio buttons on MS-DOS as well.
10834
108352008-09-05 Kenichi Handa <handa@m17n.org>
10836
10837 * composite.c (autocmp_chars): Check lookback count.
10838 (composition_compute_stop_pos): Set cmp_it->lookback.
10839 (composition_reseat_it): Check lookback count.
10840 (struct position_record): New struct.
10841 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10842 (find_automatic_composition): New function.
10843 (composition_adjust_point): Use find_automatic_composition.
10844
10845 * dispextern.h (struct composition_it): New member lookback.
10846
108472008-09-02 Chong Yidong <cyd@stupidchicken.com>
10848
10849 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10850 if moving by a single line.
10851
108522008-09-02 Andreas Schwab <schwab@suse.de>
10853
10854 * xterm.c (x_delete_display): Fix merge error.
10855
10856 * fileio.c (Fexpand_file_name): Remove unused variables.
10857
108582008-09-02 Eli Zaretskii <eliz@gnu.org>
10859
10860 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10861 storage on all platforms, not just on DOS_NT.
10862
108632008-09-02 Jason Rumney <jasonr@gnu.org>
10864
b8ff72fa
SM
10865 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10866 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10867
108682008-09-01 Chong Yidong <cyd@stupidchicken.com>
10869
10870 * xfaces.c (Finternal_set_alternative_font_family_alist)
10871 (Finternal_set_alternative_font_registry_alist): Properly copy
10872 entire alist structure.
10873
108742008-09-01 Kenichi Handa <handa@m17n.org>
10875
d66c0241 10876 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10877 representative chars of the script is a vector.
d66c0241
JB
10878 (ftfont_list): Handle the case where the representative chars of
10879 the script is a vector.
aac0c6e3
MR
10880
10881 * character.c (syms_of_character): Docstring of
10882 script-representative-chars fixed.
10883
108842008-08-31 Eli Zaretskii <eliz@gnu.org>
10885
10886 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10887 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10888 the menu. Allocate larger buffer for `text', to account for
10889 possible ^C characters.
10890
108912008-08-31 Martin Rudalics <rudalics@gmx.at>
10892
10893 * xdisp.c (prepare_menu_bars): Don't call
10894 Vwindow_size_change_functions with arg Qt.
10895
108962008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10897
10898 * font.h (font_range):
10899 * fileio.c (report_file_error):
46e722a9
SM
10900 * composite.c (composition_update_it): Yet another int/Lisp_Object
10901 mixup (YAILOM).
aac0c6e3
MR
10902
109032008-08-30 Glenn Morris <rgm@gnu.org>
10904
10905 * data.c (Fmake_variable_frame_local): Doc fix.
10906
10907 * frame.c (Fmodify_frame_parameters): Doc fix.
10908
109092008-08-30 Eli Zaretskii <eliz@gnu.org>
10910
10911 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10912 needed by GetTokenInformation.
10913 (w32_system_process_attributes): Check return values of all system
10914 APIs.
10915
10916 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10917 only when the state changes.
10918 (IT_update_begin, IT_update_end): Add termscript trace.
10919
10920 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10921 clipboard is unavailable. Set dst to NULL if it doesn't point to
10922 malloc'ed data.
10923 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10924 passing random values to xfree.
10925
10926 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10927 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10928
109292008-08-29 Jason Rumney <jasonr@gnu.org>
10930
10931 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10932
109332008-08-29 Eli Zaretskii <eliz@gnu.org>
10934
10935 * composite.c (fill_gstring_body): Avoid compiler warnings.
10936
10937 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10938 LGLYPH_SET_CODE to avoid compiler warnings.
10939
2ae37cf0 10940 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10941
10942 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10943
10944 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10945 LGLYPH_SET_CODE.
10946
109472008-08-29 Kenichi Handa <handa@m17n.org>
10948
10949 * fileio.c (report_file_error): Don't downcase the first character
10950 of errstring if it is still unibyte.
10951
109522008-08-29 Kenichi Handa <handa@m17n.org>
10953
10954 These changes are to re-implement the automatic composition so
10955 that it doesn't use text properties.
10956
10957 * Makefile.in (ftfont.o): Depend on composite.h.
10958 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10959
10960 * character.h (Vunicode_category_table): Extern it.
10961
10962 * character.c (Vunicode_category_table): New variable.
10963 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10964
10965 * chartab.c (optimize_sub_char_table): Perform more greedy
10966 optimization.
10967
b8ff72fa
SM
10968 * composite.h (enum composition_method):
10969 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10970 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10971 (Vcomposition_function_table): Extern it.
10972 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10973 (composition_gstring_put_cache, composition_gstring_from_id)
10974 (composition_gstring_p, composition_gstring_width)
10975 (composition_compute_stop_pos, composition_reseat_it)
10976 (composition_update_it, composition_adjust_point): Extern them.
10977 (Fcomposition_get_gstring): EXFUN it.
10978
d66c0241 10979 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10980 (Vcomposition_function_table)
10981 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10982 (gstring_hash_table, gstring_work, gstring_work_headers):
10983 New variables.
aac0c6e3
MR
10984 (gstring_lookup_cache, composition_gstring_put_cache)
10985 (composition_gstring_from_id, composition_gstring_p)
10986 (composition_gstring_width, fill_gstring_header)
10987 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10988 (composition_reseat_it, composition_update_it)
b8ff72fa 10989 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10990 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10991 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10992 Defsubr composition_get_gstring.
aac0c6e3
MR
10993
10994 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10995 cmp_id.
10996 (struct glyph_string): Delete the member gidx. New members
10997 cmp_id, cmp_from, and cmp_to.
10998 (enum it_method): Delete GET_FROM_COMPOSITION.
10999 (struct composition_it): New struct.
11000 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11001 Delete c, len, cmp_id, cmp_len in u.comp.
11002
11003 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11004 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11005 (enum lglyph_indices): Likewise.
b8ff72fa 11006 (font_range): Adjust extern.
aac0c6e3
MR
11007 (font_fill_lglyph_metrics): Extern it.
11008
11009 * font.c (QCf): New variable.
11010 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11011 (font_prepare_composition): Delete this function.
11012 (font_range): Type and arguments changed.
11013 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11014 (font_fill_lglyph_metrics): New function.
b8ff72fa 11015 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11016 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11017 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11018 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11019
11020 * fontset.h (font_for_char): Extern it.
11021
11022 * fontset.c (font_for_char): New function.
11023
11024 * ftfont.c: Include composite.h.
11025 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11026 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11027
11028 * indent.c: Include composite.h and dispextern.h.
11029 (check_composition): Delete this function.
11030 (scan_for_column): Handle composition by
11031 composition_compute_stop_pos, composition_reseat_it, and
11032 composition_update_it.
11033 (compute_motion): Likewise.
11034 (Fvertical_motion): Fix checking of composition.
11035
11036 * keyboard.c (adjust_point_for_property): Check composition by
11037 composition_adjust_point.
11038
b8ff72fa 11039 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11040 struct glyph_string.
11041
b8ff72fa
SM
11042 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11043 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11044 struct glyph.
11045 (produce_composite_glyph): Likewise.
11046
b8ff72fa
SM
11047 * w32term.c (x_draw_composite_glyph_string_foreground):
11048 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11049 (x_draw_glyph_string): Likewise.
11050
11051 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11052 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11053
11054 * xdisp.c: Include font.h.
11055 (it_props): Delete the entry for Qauto_composed.
11056 (init_iterator): Initialize it->cmp_it.id to -1.
11057 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11058 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11059 (handle_auto_composed_prop): Delete it.
11060 (handle_composition_prop): Handle only static composition.
11061 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11062 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11063 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11064 (pop_it): Likewise.
11065 (get_next_element): Delete next_element_from_composition.
11066 (CHAR_COMPOSED_P): New macro.
11067 (get_next_display_element): For automatic composition, get a face
11068 from the font in the glyph-string.
11069 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11070 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11071 (next_element_from_string): Check if the character at the current
11072 position is composed by CHAR_COMPOSED_P.
11073 (next_element_from_buffer): Likewise.
d66c0241
JB
11074 (next_element_from_composition): Adjust for the change of struct it.
11075 Update it->cmp_it.
b8ff72fa
SM
11076 (dump_glyph): Adjust for the change of struct glyph.
11077 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11078 it and struct glyph. Don't handle automatic composition here.
11079 (fill_gstring_glyph_string): New function.
11080 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11081 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11082 (BUILD_GSTRING_GLYPH_STRING): New macro.
11083 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11084 automatic composition.
b8ff72fa 11085 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11086 struct glyph.
b8ff72fa 11087 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11088
b8ff72fa 11089 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11090 the change of struct glyph_string.
11091 (x_draw_glyph_string): Likewise.
11092
110932008-08-29 Glenn Morris <rgm@gnu.org>
11094
11095 * buffer.c (word-wrap): Doc fix.
11096 * xdisp.c (truncate-partial-width-windows): Doc fix.
11097 Increase default to 50.
11098
110992008-08-29 Chong Yidong <cyd@stupidchicken.com>
11100
11101 * xdisp.c (update_tool_bar_unwind): New function.
11102 (update_tool_bar): Temporarily set selected frame before building
11103 tool-bar items.
11104
111052008-08-28 Michael Albinus <michael.albinus@gmx.de>
11106
11107 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11108 snprintf, respectively.
11109 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11110
111112008-08-28 Chong Yidong <cyd@stupidchicken.com>
11112
11113 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11114 LDFLAGS to GNUstep CC invocation.
11115
111162008-08-27 Chong Yidong <cyd@stupidchicken.com>
11117
11118 * indent.c (Fvertical_motion): Revert last change. Handle the
11119 general case where we are moving forward, and PT spans multiple
11120 screen lines.
11121
11122 * eval.c (find_handler_clause): Temporarily increase
11123 max-lisp-eval-depth while printing the backtrace buffer, to
11124 guarantee that help-mode code can run.
11125
111262008-08-27 Eli Zaretskii <eliz@gnu.org>
11127
11128 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11129 colors under -rv.
11130 (IT_set_frame_parameters): Don't swap foreground and background
11131 colors if `(reverse . t)' is present in the frame properties.
11132 (internal_terminal_init): Call init_frame_faces only for the
11133 initial frame.
11134
111352008-08-27 Andreas Schwab <schwab@suse.de>
11136
11137 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11138
111392008-08-27 Andreas Schwab <schwab@suse.de>
11140
11141 * search.c (search_buffer): Set char_base to zero only at the end.
11142
111432008-08-27 Kenichi Handa <handa@m17n.org>
11144
b8ff72fa 11145 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11146
111472008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11148
11149 * xterm.c (x_term_init): Temporarily hide the partially
11150 initialized terminal while calling vendor-specific-keysyms.
11151
111522008-08-26 Eli Zaretskii <eliz@gnu.org>
11153
11154 * msdos.c (internal_terminal_init): Most initializations done only
11155 once, especially initial_screen_colors[] and termscript open.
11156
111572008-08-26 Chong Yidong <cyd@stupidchicken.com>
11158
11159 * eval.c (Fcondition_case): Doc fix.
11160
11161 * widgetprv.h (EmacsFramePart): Change font member to the new font
11162 struct.
11163
11164 * widget.c: Include character.h and font.h for XSETFONT.
11165 (setup_frame_gcs): Compute X font id from font struct, just once.
11166
111672008-08-26 Eli Zaretskii <eliz@gnu.org>
11168
11169 * term.c (get_named_tty): Fix last change.
11170
111712008-08-26 Chong Yidong <cyd@stupidchicken.com>
11172
11173 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11174 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11175
111762008-08-25 Eli Zaretskii <eliz@gnu.org>
11177
11178 * frame.c (do_switch_frame): Mark previously displayed frame as
11179 obscured for FRAME_MSDOS_P frames as well.
11180
111812008-08-24 Eli Zaretskii <eliz@gnu.org>
11182
11183 * frame.c (make_terminal_frame): Initialize f->terminal,
11184 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11185 Set the top frame to newly created frame.
11186 (Fmake_terminal_frame): Reuse the_only_display_info.
11187
11188 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11189 estimating available memory.
11190
b97439ce 111912008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11192
11193 * nsterm.m (ns_draw_window_cursor): Don't call
11194 NSDisableScreenUpdates and NSEnableScreenUpdates on
11195 non-NS_IMPL_COCOA systems.
11196
111972008-08-23 Andreas Schwab <schwab@suse.de>
11198
11199 * process.c (procfs_system_process_attributes): Fix use of
11200 uninitialized variables.
11201
112022008-08-23 Eli Zaretskii <eliz@gnu.org>
11203
11204 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11205
11206 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11207 calling tty-set-up-initial-frame-faces.
11208
b8ff72fa
SM
11209 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11210 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11211
11212 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11213 addition to output_termcap.
11214
11215 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11216
11217 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11218 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11219 highlight.
11220
11221 * process.c [!subprocesses]: Define QCname.
11222 (syms_of_process): Intern and staticpro it.
11223
11224 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11225 Adjust for changes in encoding/decoding routines.
11226 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11227 encode_coding and decode_coding.
11228
b8ff72fa 11229 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11230
11231 * dosfns.c: Include frame.h before termhooks.h.
11232 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11233 variable termscript.
11234
11235 * s/msdos.h (USER_FULL_NAME): Define.
11236 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11237
11238 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11239 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11240 pw->pw_gecos.
11241
11242 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11243 SELECTED_FRAME as additional (1st) argument.
11244 (tty_read_avail_input): Handle output_msdos_raw in
11245 addition to output_termcap.
11246
11247 * msdos.c: Include frame.h before termhooks.h.
11248 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11249 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11250 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11251 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11252 (IT_set_terminal_modes, IT_reset_terminal_modes)
11253 (IT_set_frame_parameters): Use tty->termscript instead of a global
11254 variable termscript.
11255 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11256 global variable terminal_coding. Don't refer to
11257 Vnonascii_translation_table.
11258 (internal_terminal_init): Set Vwindow_system in current_kboard.
11259 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11260 Announce date and time of session start, if termscript is open.
11261 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11262 term.c:init_tty). Open termscript only of not already open.
11263 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11264 here instead of dos_ttraw. Don't initialize display if this is an
11265 initial tty. Don't set FRAME_FONT.
11266 (Vwindow_system_version): Bump to 23.
11267 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11268 is available, set up mouse_position_hook.
11269 (dos_ttraw, IT_set_terminal_modes): If called with initial
11270 terminal, do nothing.
11271 (IT_set_frame_parameters): Handle the Qtty_type frame
11272 parameter by calling internal_terminal_init.
11273 (dos_set_window_size, show_mouse_face)
11274 (clear_mouse_face, IT_note_mode_line_highlight)
11275 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11276 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11277 (initialize_msdos_display): New function.
11278 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11279 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11280 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11281 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11282 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11283 (request_sigio, unrequest_sigio): Don't define, now defined on
11284 sysdep.c.
11285 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11286
11287 * term.c [MSDOS]: Include msdos.h.
11288 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11289 conditional to DOS_NT. Allow only one call to this function in a
11290 session. Don't allocate a new struct tty_display_info; instead,
11291 reuse the_only_display_info. Call get_tty_size to get screen
11292 dimensions. Call init_baud_rate to set bad_rate.
11293 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11294 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11295 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11296 (get_tty_terminal, get_named_tty, Ftty_type)
11297 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11298 output_termcap.
b8ff72fa
SM
11299 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11300 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11301 only when subprocesses are supported.
aac0c6e3
MR
11302
11303 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11304 f->output_data.x.
11305 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11306 terminal devices.
11307
5582fbc7 11308 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11309 x_output.
11310 (FRAME_FONT): Use output_data.tty.
11311 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11312 (struct x_display_info): Rename from display_info. Update all users in
11313 msdos.c.
aac0c6e3 11314 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11315 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11316 (dos_ttraw): Update prototype.
11317
11318 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11319 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11320
113212008-08-23 Jason Rumney <jasonr@gnu.org>
11322
11323 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11324 (fn_TIFFSetDirectory): New library function used.
11325 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11326 (tiff_load): Use :index to select among multiple images. Set count
11327 property when multiple images exist.
11328 (gif_format): Use :index, not :image.
11329
113302008-08-23 Chong Yidong <cyd@stupidchicken.com>
11331
11332 * xdisp.c (try_scrolling): Check INT_MAX instead of
11333 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11334 to obtain INT_MAX.
11335
113362008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11337
11338 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11339
113402008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11341
11342 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11343 GNUstep library location.
11344
113452008-08-21 Chong Yidong <cyd@stupidchicken.com>
11346
11347 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11348 before using it.
11349
11350 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11351
113522008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11353
11354 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11355 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11356 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11357 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11358 (EmacsApp-cursor_blink_handler): Remove declaration.
11359 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11360 match 01 Feb 2008 changes in xterm.c.
11361 (ns_read_socket): Add cast to avoid warning.
11362 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11363 GNUstep.
11364
113652008-08-20 Chong Yidong <cyd@stupidchicken.com>
11366
11367 * xselect.c (x_get_foreign_selection): Return nil if desired
11368 selection could not be obtained, instead of signalling an error.
11369
113702008-08-20 David Reitter <david.reitter@gmail.com>
11371
11372 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11373 * nsterm.m: Remove ns-specific code for cursor blinking.
11374 (ns_draw_window_cursor): Clear cursor properly rather than
11375 redrawing the area. Respect width of bar cursors.
11376 These changes enable the use of generic blink-cursor-mode and
11377 generic cursor types in NS and support smooth cursor movements (do
11378 not blink off after command).
11379 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11380 Nextstep, too.
11381
113822008-08-19 Kenichi Handa <handa@m17n.org>
11383
11384 * font.c (Vfont_log_deferred): New variable.
11385 (font_add_log): Check Vfont_log_deferred.
11386 (font_deferred_log): New function.
11387
11388 * font.h (font_deferred_log): Extern it.
11389
11390 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11391 for sorting.
11392 (face_for_char): Use deferred log.
11393
113942008-08-18 Kenichi Handa <handa@m17n.org>
11395
11396 * fontset.c (face_for_char): Add font log.
11397
11398 * font.c (font_add_log): Add the font properties :script, :lang,
11399 and :otf in the log.
11400
114012008-08-17 Chong Yidong <cyd@stupidchicken.com>
11402
11403 * xdisp.c: Remove dead code.
11404 (handle_invisible_prop, next_overlay_string): Defer call to
11405 setup_for_ellipsis.
11406 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11407
114082008-08-15 Chong Yidong <cyd@stupidchicken.com>
11409
11410 * xfaces.c (lookup_derived_face): Properly handle possible zero
11411 return value of get_lface_attributes.
11412 (merge_faces): Don't tell lookup_derived_face to signal an error
11413 if face is not found.
11414
11415 * dired.c (Fdirectory_files): Doc fix.
11416
11417 * process.c (make_process): Initialize kill_without_query struct
11418 member.
11419
114202008-08-15 Eli Zaretskii <eliz@gnu.org>
11421
11422 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11423 Alternative calculation of totphys for Visual Studio 6.
11424
11425 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11426
11427 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11428 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11429 All users changed.
11430 (stat): Only root directory passed to GetDriveType. Allow RAM
11431 disk as well as local fixed disk when w32-get-true-file-attributes
11432 is set to `local'.
11433 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11434 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11435 (w32_cached_id, w32_add_to_cache): New functions.
11436 (get_name_and_id): Look account names in the cache before calling
11437 lookup_account_sid.
11438 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11439 New initialization flags.
11440 (globals_of_w32): Initialize them to zero.
11441 (w32_system_process_attributes): Use w32_cached_id and
11442 w32_add_to_cache.
11443
114442008-08-14 Lawrence Mitchell <wence@gmx.li>
11445
11446 * lread.c (Fread_char, Fread_char_exclusive): If no character
11447 event is read before timeout is reached, return nil, rather than
11448 converting to a number.
11449
114502008-08-14 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * fns.c (use_dialog_box): Doc fix.
11453
11454 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11455 on OS X.
11456
114572008-08-13 Chong Yidong <cyd@stupidchicken.com>
11458
11459 * frame.c (Qns_parse_geometry): New var.
11460 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11461
114622008-08-11 Chong Yidong <cyd@stupidchicken.com>
11463
11464 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11465 space character in calculating tabs.
11466
114672008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11468
11469 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11470
114712008-08-10 Glenn Morris <rgm@gnu.org>
11472
11473 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11474 silence gcc "limited range of data type" warnings in some
11475 make_fixnum_or_float calls.
11476
114772008-08-09 Eli Zaretskii <eliz@gnu.org>
11478
11479 * w32.c (w32_system_process_attributes): If the process does not
11480 exist, return nil.
11481
11482 * w32.c: Include thelp32.h, psapi.h and coding.h.
11483 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11484 declarations.
11485 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11486 (Process32Next_Proc): New typedefs.
11487 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11488 (g_b_init_process32_next, g_b_init_open_thread_token)
11489 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11490 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11491 (g_b_init_get_process_working_set_size)
11492 (g_b_init_global_memory_status_ex): New static variables.
11493 (globals_of_w32): Initialize them.
11494 (create_toolhelp32_snapshot, process32_first, process32_next)
11495 (open_thread_token, impersonate_self, revert_to_self)
11496 (get_process_memory_info, get_process_working_set_size)
11497 (global_memory_status, global_memory_status_ex): New wrapper
11498 functions.
11499 (w32_list_system_processes, w32_system_process_attributes)
11500 (enable_privilege, restore_privilege, ltime, process_times):
11501 New functions.
11502 (convert_time_raw): New function.
11503 (convert_time): Remove conversion of FILETIME into time in 100
11504 nsec units, call convert_time_raw instead.
11505
11506 * process.h (w32_list_system_processes, w32_system_process_attributes):
11507 Add prototypes.
11508 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11509 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11510 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11511 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11512
11513 * process.c (Fsystem_process_attributes): Doc fix.
11514
115152008-08-08 Chong Yidong <cyd@stupidchicken.com>
11516
11517 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11518 a continued multi-char glyph; if so, advance to the actual glyph.
11519
115202008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11521
11522 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11523
11524 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11525 (.m.o): Use it.
11526 * config.in: Regenerate.
11527
115282008-08-07 Chong Yidong <cyd@stupidchicken.com>
11529
11530 * xdisp.c (redisplay_window): Revert last change.
11531 (try_window): Check bottom scroll margin too.
11532
115332008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11534
11535 * config.in: Regenerate.
11536
11537 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11538 -list-load-path-shadows'.
11539 (nsgui.h): Reduce number of things depending on it.
11540
115412008-08-06 Chong Yidong <cyd@stupidchicken.com>
11542
11543 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11544 instead of window-end which does the wrong thing at eob.
11545 (try_cursor_movement): Minor optimization.
11546 (redisplay_window): If scroll margin is defined, don't assume
11547 window doesn't need scrolling.
11548
115492008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11550
11551 * config.in: Regenerate.
11552
11553 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11554 (mostlyclean): Don't delete *.d under NS.
11555
11556 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11557
115582008-08-06 Kenichi Handa <handa@m17n.org>
11559
11560 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11561
115622008-08-06 Andreas Schwab <schwab@suse.de>
11563
11564 * config.in: Regenerate.
11565
115662008-08-05 Chong Yidong <cyd@stupidchicken.com>
11567
11568 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11569 forcing a window start.
11570
11571 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11572 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11573
115742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11575
11576 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11577 argument.
11578
115792008-08-05 Juanma Barranquero <lekktu@gmail.com>
11580
11581 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11582 <scroll-down-aggressively, before-change-functions>:
11583 <after-change-functions>: Reflow docstrings.
11584
115852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11586 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11587
11588 Dock menu customization, based on a patch by Ken Raeburn, plus some
11589 other fixes.
11590 * nsmenu.m (dockMenu): New variable.
11591 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11592
11593 * nsterm.h (dockMenu): Declare.
11594
11595 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11596 (ns_term_init): Initialize dockMenu.
11597 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11598 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11599 left.
11600
11601 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11602
116032008-08-04 Chong Yidong <cyd@stupidchicken.com>
11604
11605 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11606
11607 * config.in: Regenerate.
11608
116092008-08-04 Seiji Zenitani <zenitani@mac.com>
11610
11611 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11612
116132008-08-04 Chong Yidong <cyd@stupidchicken.com>
11614
11615 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11616
116172008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11618
11619 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11620
11621 * keyboard.h: Comment an #endif.
11622
11623 * lisp.h (have_menus_p): Adjust comment.
11624
11625 * menu.c (find_and_return_menu_selection): Fix comparison with
11626 client_data.
11627
11628 * nsmenu.m (popup_activated_flag): New variable.
11629 (popup_activated): New function.
11630 (menu-or-popup-active-p): New exported lisp definition.
11631 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11632 when popup done.
11633 (ns_popup_dialog): Set popup_activated_flag.
11634
11635 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11636 version for GNUstep (handled by conditional typedef in nsterm.m).
11637 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11638 in rgb.txt).
11639
11640 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11641
11642 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11643
11644 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11645
11646 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11647 shortcircuit if popup_activated like GTK and X toolkit.
11648
11649 * m/inter386.h: Change DARWIN to DARWIN_OS.
11650
11651 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11652 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11653 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11654 comment on NO_SOCK_SIGIO.
11655
116562008-08-03 Chong Yidong <cyd@stupidchicken.com>
11657
11658 * nsterm.m (windowDidResize): Remove stopModal call.
11659
116602008-08-03 Andreas Schwab <schwab@suse.de>
11661
11662 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11663 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11664
116652008-08-02 Chong Yidong <cyd@stupidchicken.com>
11666
11667 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11668 Don't use uninitialized pointer variable when using getrlimit.
11669
116702008-08-02 Jason Rumney <jasonr@gnu.org>
11671
11672 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11673
116742008-08-02 Eli Zaretskii <eliz@gnu.org>
11675
11676 * alloc.c (NSTATICS): Bump to 0x640.
11677
11678 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11679
11680 * lisp.h: Add prototype for directory_files_internal.
11681
11682 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11683 New functions.
11684 (syms_of_process): Defsubr them. Add initializations for various
11685 Q* symbols used in procfs_system_process_attributes.
11686 (procfs_list_system_processes, procfs_system_process_attributes)
11687 [HAVE_PROCFS]: New functions.
11688 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11689 (procfs_get_total_memory): New functions.
11690
116912008-08-01 Juanma Barranquero <lekktu@gmail.com>
11692
11693 * xfaces.c (Fx_load_color_file): Fix previous change;
11694 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11695
116962008-08-01 Michael Albinus <michael.albinus@gmx.de>
11697
11698 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11699
117002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11701
11702 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11703
117042008-08-01 Chong Yidong <cyd@stupidchicken.com>
11705
11706 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11707
11708 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11709 define NSApplicationDelegateReplySuccess.
11710 (EmacsView -converstationIdentifier): Use long instead of
11711 NSInteger for GNUstep, since it doesn't have NSInteger.
11712
11713 * xmenu.c: Revert last change.
11714
11715 * keyboard.h: Fix last change.
11716
117172008-08-01 Juanma Barranquero <lekktu@gmail.com>
11718
11719 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11720 on Windows.
11721
117222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11723
11724 Warning clearing and clean-up in NS port.
11725 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11726 Add prototypes.
11727 * nsgui.h (FACE_DEFAULT): Remove, unused.
11728 (XGCValues): Change colors to unsigned long.
11729 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11730 nsterm.m.
11731 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11732 (ns_list_fonts): Remove, unused.
11733 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11734 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11735 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11736 (nsfont_draw): Compare face colors to 0, not nil.
11737 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11738 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11739 (-addSubmenuWithTitle:): Use NSMenuItem class.
11740 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11741 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11742 (ns_clip_to_row): Make gc arg a BOOL.
11743 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11744 ns_clip_to_row() call.
11745 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11746 used). Cast FRAME_FONT assignments.
11747 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11748 (ns_string_to_lispmod): Change arg to const char.
11749 (ns_term_init): Use NSMenuItem class.
11750 (EmacsApp -openFile:): Move to different section of file.
11751 (EmacsApp -application:openFiles:): Don't return a value, call
11752 -replyToOpenOrPrint:.
11753 (EmacsView -keyDown:): Fix up cast.
11754 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11755 (EmacsView -menuDown:): Cast tag in call to
11756 find_and_call_menu_selection().
11757 (ns_list_fonts): Remove, unused.
11758 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11759 (ns_fontname_to_xlfd): Make static.
11760 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11761 Remove prototypes (now in keyboard.h).
11762 (next_menubar_widget_id): Remove, unused.
11763 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11764 Remove prototypes (now in keyboard.h).
11765 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11766
117672008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11768
11769 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11770 (floatfns.o): Depend on syssignal.h.
11771 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11772
11773 * systty.h: Fix previous change that removed BSD_TERMIOS.
11774 Add comments to #ifdefs.
11775
117762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11777
11778 * w32fns.c (w32-load-color-file): Remove.
11779 (x-open-connection): Use renamed Fx_load_color_file.
11780 * xfaces.c (x-load-color-file): Add.
11781 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11782 Emacs.clr.
11783 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11784
117852008-07-31 Michael Albinus <michael.albinus@gmx.de>
11786
11787 * dbusbind.c (Fdbus_call_method_asynchronously)
11788 (Fdbus_method_error_internal): New defuns.
11789 (xd_read_message): Handle also reply messages.
11790 (Vdbus_registered_functions_table): Extend docstring.
11791
117922008-07-31 Juanma Barranquero <lekktu@gmail.com>
11793
11794 * keyboard.c (gobble_input): Fix previous change.
11795
117962008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11797
11798 * bitmaps/README:
11799 * xfns.c:
11800 * termcap.c:
11801 * term.c:
11802 * syswait.h:
11803 * systty.h:
11804 * systime.h:
11805 * syssignal.h:
11806 * sysdep.c:
11807 * process.h:
11808 * process.c:
11809 * print.c:
11810 * ndir.h:
11811 * lread.c:
11812 * keyboard.c:
11813 * getpagesize.h:
11814 * floatfns.c:
11815 * fileio.c:
11816 * emacs.c:
11817 * doc.c:
11818 * dispnew.c:
11819 * dired.c:
11820 * data.c:
11821 * callproc.c:
11822 * buffer.c:
11823 * README:
11824 * Makefile.in:
11825 * s/template.h:
11826 * s/msdos.h:
11827 * m/vax.h: Remove VMS support.
11828 * s/vms.h:
11829 * vlimit.h:
11830 * uaf.h:
11831 * temacs.opt:
11832 * param.h:
11833 * ioctl.h: Remove file.
11834
118352008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11836
11837 * s/ms-w32.h (MULTI_KBOARD): Remove.
11838 * xterm.c:
11839 * xselect.c:
11840 * xfns.c:
11841 * window.c:
11842 * w32term.c:
11843 * w32fns.c:
11844 * terminal.c:
11845 * termhooks.h:
11846 * term.c:
11847 * sysdep.c:
11848 * keyboard.h:
11849 * keyboard.c:
11850 * frame.h:
11851 * frame.c:
11852 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11853 * config.in: Regenerate.
11854
118552008-07-30 Jason Rumney <jasonr@gnu.org>
11856
11857 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11858
11859 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11860 (w32font_open_internal): Get unicode version of textmetrics.
11861 Don't enable or disable glyph indices here.
11862 (w32font_open): Disable use of glyph indices.
11863
11864 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11865
118662008-07-30 Chong Yidong <cyd@stupidchicken.com>
11867
11868 * minibuf.c (Vread_buffer_function): Doc fix.
11869
118702008-07-30 John Paul Wallington <jpw@pobox.com>
11871
11872 * minibuf.c (read_buffer_completion_ignore_case): New var.
11873 (Fread_buffer): Use it.
11874
118752008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11876
11877 * systty.h (sensemode): Remove empty #if. Remove reference to
11878 BSD_TERMIOS, unused.
11879
11880 * sysdep.c: Remove reference to DGUX.
11881 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11882
11883 * config.in: Regenerate.
11884
118852008-07-30 Jason Rumney <jasonr@gnu.org>
11886
11887 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11888
118892008-07-29 Jason Rumney <jasonr@gnu.org>
11890
11891 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11892 is populated.
11893 (uniscribe_encode_char): Always use uniscribe.
11894 Avoid using context if cache is populated.
11895
118962008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11897
11898 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11899 open menu.
11900
11901 * gtkutil.c (menu_nav_ended): Remove.
11902 (create_menus): Remove signal connect for menu_nav_ended.
11903
119042008-07-28 Chong Yidong <cyd@stupidchicken.com>
11905
11906 * xdisp.c (redisplay_window): Check return value of
11907 compute_window_start_on_continuation_line before forcing a window
11908 start.
11909
119102008-07-28 Jason Rumney <jasonr@gnu.org>
11911
11912 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11913
11914 * w32term.c (w32_enable_unicode_output, cleartype_active):
11915 Remove obsolete display options.
11916 (x_draw_glyph_string_background): Don't use old cleartype_active
11917 workaround.
11918 (w32_initialize): Remove cleartype_active initialization.
11919 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11920
119212008-07-28 Andreas Schwab <schwab@suse.de>
11922
11923 * lisp.h (init_weak_hash_tables, syms_of_font)
11924 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11925 (remove_hash_entry): Don't declare.
11926 * eval.c (maybe_call_debugger): Make static and move before use.
11927 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11928 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11929 * xterm.h (x_set_frame_alpha): Declare.
11930
119312008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11932
11933 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11934 (create_menus): Connect selection-done to menu_nav_ended.
11935
119362008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11937
11938 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11939 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11940 parameter with read of 'alpha' one.
11941 (Qns_frame_parameter): Remove.
5582fbc7 11942 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11943 (next-selection-coding-system, Vselection_coding_system)
11944 (Vnext_selection_coding_system): Drop.
11945
119462008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11947
11948 * nsfns.m (do-applescript, do_applescript): Rename to
11949 ns-do-applescript, ns_do_applescript, and move within file.
11950
119512008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11952
11953 Remove support for Mac Carbon.
11954 * mactoolbox.c:
11955 * macterm.h:
11956 * macterm.c:
11957 * macselect.c:
11958 * macmenu.c:
11959 * macgui.h:
11960 * macfns.c:
11961 * mac.c: Remove file.
11962 * s/darwin.h:
11963 * m/intel386.h:
11964 * xfaces.c:
11965 * xdisp.c:
11966 * window.c:
11967 * tparam.c:
11968 * termhooks.h:
11969 * termcap.c:
11970 * term.c:
11971 * syssignal.h:
11972 * sysselect.h:
11973 * sysdep.c:
11974 * process.c:
11975 * lread.c:
11976 * lisp.h:
11977 * keyboard.c:
11978 * image.c:
11979 * fringe.c:
11980 * frame.h:
11981 * frame.c:
11982 * fontset.c:
11983 * font.h:
11984 * font.c:
11985 * fns.c:
11986 * fileio.c:
11987 * emacs.c:
11988 * dispnew.c:
11989 * dispextern.h:
11990 * config.in:
11991 * atimer.c:
2ae37cf0 11992 * Makefile.in: Remove code for Carbon.
aac0c6e3 11993
f0131492 119942008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11995
11996 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11997
119982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11999
12000 * macterm.h (kCGBitmapByteOrder32Host): New define for
12001 non-universal SDKs.
12002
12003 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12004 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12005
12006 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12007 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12008
120092008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12010
12011 * w32inevt.c: Include dispextern.h.
12012
120132008-07-26 Andreas Schwab <schwab@suse.de>
12014
12015 * print.c (print_object): Fix off-by-one in last change.
12016
120172008-07-25 Juanma Barranquero <lekktu@gmail.com>
12018
12019 * term.c (syms_of_term): Don't initialize default_orig_pair,
12020 default_set_foreground and default_set_background on Windows.
12021
120222008-07-25 Jason Rumney <jasonr@gnu.org>
12023
12024 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12025 ScriptItemize. Clean up return value checking. Remove unused
12026 variables.
12027 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12028 shaping engine.
12029
12030 * w32font.c (w32font_has_char): Handle the case where we can't
12031 determine the script for a character.
12032
120332008-07-25 Chong Yidong <cyd@stupidchicken.com>
12034
12035 * term.c (syms_of_term): Initialize default_orig_pair,
12036 default_set_foreground, and default_set_background.
12037
12038 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12039 clash (bug#86).
12040 (getloadavg): Callers changed.
12041
12042 * image.c (svg_load_image): Fix last change.
12043 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12044 image size is valid. Use g_object_unref instead of deprecated
12045 rsvg_handle_free to free rsvg handle.
12046 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12047
120482008-07-25 Jason Rumney <jasonr@gnu.org>
12049
12050 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12051 surrogates before looking up glyph index.
12052 (w32font_text_extents): Encode as surrogates if falling back to
12053 functions that need UTF-16 wide chars.
12054
12055 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12056 BMP as surrogates before looking up glyph index.
12057
120582008-07-25 Chong Yidong <cyd@stupidchicken.com>
12059
12060 * image.c (svg_load_image): Check for failure in return value of
12061 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12062
120632008-07-25 Jason Rumney <jasonr@gnu.org>
12064
12065 * w32font.c (Fx_select_font): Reverse sense of second arg.
12066
120672008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12068
12069 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12070 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12071
12072 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12073 (PURESIZE): Use it.
12074
120752008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12076
12077 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12078 * m/alpha.h (TEXT_END):
12079 * m/ibmrs6000.h (TEXT_END):
12080 * m/macppc.h (TEXT_END):
12081 * s/darwin.h (TEXT_END):
12082 * s/msdos.h (TEXT_END): Remove, unused.
12083 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12084 * s/cygwin.h: Remove comment.
12085
12086 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12087 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12088 * m/intel386.h (DOT_GLOBAL_START):
12089 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12090 (USG): Remove, file not used on USG platforms.
12091
12092 * Makefile.in (HAVE_X11): Remove empty #else.
12093
120942008-07-24 Andreas Schwab <schwab@suse.de>
12095
12096 * fileio.c (Finsert_file_contents): Properly adjust undo list
12097 after format conversion.
12098
120992008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12100
12101 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12102 (menu_nav_ended): Remove.
12103 (create_menus): Remove signal connect for menu_nav_ended.
12104 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12105 create_menus.
12106 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12107
121082008-07-23 Jason Rumney <jasonr@gnu.org>
12109
12110 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12111 with opened font.
12112 (w32font_open): Set font type to gdi.
12113
12114 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12115
121162008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12117
12118 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12119 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12120 defines it.
12121 * unexec.c (ADDR_CORRECT): Define unconditionally.
12122
12123 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12124
12125 * unexec.c: Remove code depending on !COFF and USG, the file is
12126 not used for such systems.
12127
12128 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12129 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12130 (LD_SWITCH_SYSTEM_1): Remove, update users.
12131
12132 * s/darwin.h (DATA_END):
12133 * m/intel386.h (DATA_END):
12134 * m/ibmrs6000.h (DATA_END):
12135 * m/alpha.h (DATA_END): Remove, unused.
12136
12137 * config.in: Regenerate.
12138 * s/ms-w32.h (subprocesses): Define unconditionally.
12139 * s/template.h (subprocesses): Update comment.
12140 * s/vms.h (subprocesses):
12141 * s/usg5-4.h (subprocesses):
12142 * s/hpux10-20.h (subprocesses):
12143 * s/gnu-linux.h (subprocesses):
12144 * s/cygwin.h (subprocesses):
12145 * s/bsd-common.h (subprocesses):
12146 * s/aix4-2.h (subprocesses):
12147 * s/darwin.h (subprocesses): Do not define, defined by default now.
12148
12149 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12150 Remove all references.
12151 (temacs): Add GNUstep specific ld flags.
12152
12153 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12154 similarly to what X does.
12155
121562008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12157
12158 * nsfns.m (x-list-fonts): Remove.
12159 (syms_of_nsfns): Drop the x-list-fonts declaration.
12160 * nsterm.m: Get rid of remaining "//" comments.
12161
121622008-07-22 Chong Yidong <cyd@stupidchicken.com>
12163
12164 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12165
12166 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12167 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12168 (Fns_own_selection_internal, Fx_disown_selection_internal)
12169 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12170
12171 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12172 ... */' style of docstrings. Doc fixes.
12173
121742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12175
12176 * terminfo.c (UP, BC, PC): Undo previous change.
12177
12178 * nsfns.m: Rename ns prefixed functions/variables to the
12179 corresponding x versions. Update references.
12180
121812008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12184
121852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12186
12187 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12188 Remove forwarding functions.
12189 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12190 non-static.
12191 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12192 non-static.
12193 (ns_frame_parm_handlers): Use the new names.
12194 (syms_of_nsfns): Move to the end of file.
12195
12196 * nsterm.m (syms_of_nsterm): Move to the end of file.
12197
12198 * dispnew.c (init_display): Remove code for X10.
12199
122002008-07-22 Jason Rumney <jasonr@gnu.org>
12201
12202 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12203 bare drive.
12204
122052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12206
12207 * nsterm.m (syms_of_nsterm): Remove debugging println.
12208
122092008-07-22 David Reitter <david.reitter@gmail.com>
12210
12211 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12212 Carbon implementation of the same functionality: execute arbitrary
12213 AppleScript code.
12214
122152008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12216
12217 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12218 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12219 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12220 (Fx_display_mm_height, Fx_display_mm_width)
12221 (Fx_display_backing_store, Fx_display_visual_class)
12222 (Fx_display_save_under, Fx_open_connection)
12223 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12224 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12225 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12226 (Fx_display_pixel_width, Fx_display_pixel_height)
12227 (Fx_display_usable_bounds, Fx_display_planes)
12228 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12229 ... */' style of docstrings.
12230
122312008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12232
12233 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12234 on this platform.
12235 (mips):
12236 * m/iris4d.h (mips): Do not define.
12237 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12238
12239 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12240
12241 * image.c:
12242 * nsfns.m:
12243 * nsselect.m:
12244 * nsterm.h:
12245 * nsterm.m: Rename ns prefixed functions/variables to the
12246 corresponding x versions. Update references.
12247
12248 * m/ibms390x.h (NO_REMAP): Do not undefine.
12249
12250 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12251
122522008-07-21 Chong Yidong <cyd@stupidchicken.com>
12253
12254 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12255 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12256 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12257 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12258 (Fns_display_mm_height, Fns_display_mm_width)
12259 (Fns_display_backing_store, Fns_display_visual_class)
12260 (Fns_display_save_under, Fns_open_connection)
12261 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12262 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12263 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12264 (Fns_display_pixel_width, Fns_display_pixel_height)
12265 (Fns_display_usable_bounds, Fx_display_planes)
12266 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12267
122682008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12269
12270 * print.c (print_object): Check print_depth before searching for
12271 circularities.
12272
122732008-07-21 Michael Albinus <michael.albinus@gmx.de>
12274
12275 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12276 only sprintf.
12277
122782008-07-21 Kenichi Handa <handa@m17n.org>
12279
12280 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12281
122822008-07-20 Andreas Schwab <schwab@suse.de>
12283
12284 * syntax.c (find_start_pos, find_start_value)
12285 (find_start_value_byte, find_start_begv, find_defun_start)
12286 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12287
122882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12289
12290 * s/sol2-3.h: Insert contents of s/sol2.h.
12291 (LD_SWITCH_SYSTEM): Remove redundant definition.
12292 * s/sol2.h: Remove, unused.
12293
122942008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12295
12296 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12297
122982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12299
12300 * Makefile.in (ns_appdir): Fix typo in find command.
12301
123022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12303
12304 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12305
12306 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12307 added not supported anymore.
12308
12309 * s/usg5-4-2.h (LIBS_SYSTEM):
12310 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12311
12312 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12313 * s/lynxos.h (GETPGRP_NO_ARG):
12314 * s/hpux10-20.h (NO_SIOCTL_H):
12315 * s/gnu.h (GETPGRP_NO_ARG):
12316 * s/gnu-linux.h (NO_SIOCTL_H):
12317 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12318 * s/cygwin.h (GETPGRP_NO_ARG):
12319 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12320 (C_DEBUG_SWITCH): Remove duplicate definition.
12321
12322 * m/ibms390.h: Remove boilerplate comments.
12323
12324 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12325
12326 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12327 (wait_reading_process_output): Remove code for SunOS, platform not
12328 supported anymore. Use SOLARIS2 instead of sun.
12329
123302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12331
12332 * font.c (font_open_by_name): Under NS, default lface height to zero.
12333 (font_open_for_lface): Under NS, set size based on frame fontsize.
12334 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12335 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12336
123372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12338
12339 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12340 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12341 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12342 YES/NO.
12343 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12344 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12345 * Makefile.in (clean): Clear out build destination dir.
12346
123472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12348
12349 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12350 xterm, xselect.
12351 * lisp.h: Remove declaration of hash_remove.
12352 * nsgui.h: Remove redefinitions of hash_remove.
12353 * fns.c (hash_remove): Rename to hash_remove_from_table.
12354
123552008-07-19 Seiji Zenitani <zenitani@mac.com>
12356
12357 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12358 strdup() the family UTF8String before modifying it.
12359
123602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12361
12362 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12363 NS_FACE_BACKGROUND with 0 instead of nil.
12364 * nsfont.m (nsfont_draw): Same.
12365
123662008-07-19 Chong Yidong <cyd@stupidchicken.com>
12367
12368 * nsfns.m (ns_set_background_color): Fix crash.
12369
123702008-07-18 Chong Yidong <cyd@stupidchicken.com>
12371
12372 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12373
123742008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12375
12376 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12377
123782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12379
12380 * gtkutil.c: Include <config.h> instead of "config.h".
12381
12382 * lisp.h (Foverlay_buffer): Add EXFUN.
12383
12384 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12385 child process to complete child_setup. Undo 2005-09-21 change.
12386
12387 * s/darwin.h: Mention setsid after vfork.
12388
123892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12390
12391 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12392 Depend on macgui.h.
12393
12394 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12395 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12396
12397 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12398 and f19.
12399 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12400
12401 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12402 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12403 Remove enumerators.
12404
12405 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12406 Check if FACE_FROM_ID returns NULL.
12407
124082008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12409
12410 * w32inevt.c (change_frame_size): Remove extern declaration.
12411 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12412 change_frame_size.
12413
124142008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12415
12416 * getloadavg.c: Revert last change (2008-07-15).
12417
124182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12419
12420 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12421 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12422 from configure.
12423
124242008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12425
12426 * s/sol2.h:
12427 * s/sol2-4.h: Reorganize conditionals.
12428
12429 * ecrt0.c: Remove code depending on m68000, not used anymore.
12430
12431 * fns.c (hash_remove): Make static.
12432 * lisp.h (hash_remove): Don't prototype.
12433
12434 * m/ibmrs6000.h:
12435 * m/ibms390x.h:
12436 * m/macppc.h: Remove boilerplate comments.
12437
12438 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12439 Solaris, which does not need them.
12440
12441 * m/vax.h: Remove comments about unsupported systems.
12442
12443 * s/darwin.h: Reorganize ifdefs.
12444
124452008-07-17 Andreas Schwab <schwab@suse.de>
12446
12447 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12448
124492008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 Use SDATA. Follow coding convention of placing operators at
12452 beginning of next line rather than end of previous line, and placing
12453 spaces around infix operators.
12454
12455 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12456 in case it was defined already.
12457 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12458 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12459 ns_default.
12460 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12461 Lisp_Objects.
12462 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12463 (ns_defined_color, ns_color_to_lisp): Declare.
12464 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12465 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12466 it's accepted even with USE_LISP_UNION_TYPE.
12467 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12468 (update_frame_tool_bar): Remove apparently obsolete tests for
12469 non-integerness of f->tool_bar_lines.
12470 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12471 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12472 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12473 (nsfont_open): Don't confuse NULL for Qnil.
12474 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12475 * menu.h (find_and_call_menu_selection):
12476 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12477 (find_and_return_menu_selection): Always return something.
12478 * frame.h: Include dispextern.h for Display_Info.
12479 (display_x_get_resource): Declare.
12480
124812008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12482
12483 * syntax.c: Remove stdio.h include accidentally introduced in
12484 Emacs.app commit.
12485 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12486 NS_IMPL_COCOA.
12487 * keyboard.c (handle_async_input, input_available_signal): Remove
12488 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12489
124902008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12491
12492 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12493 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12494 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12495 Use SDATA.
12496
12497 * keymap.c: Remove all NS-specific code.
12498 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12499 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12500 where_is_preferred_modifier, return a different value depending on how
12501 preferred is the binding.
12502 (where_is_internal): Adjust accordingly.
12503 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12504 Adjust to new preferred_sequence_p.
12505 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12506 * keyboard.c (parse_solitary_modifier): Not static any more.
12507 * keyboard.h (parse_solitary_modifier): Declare.
12508
125092008-07-16 Andreas Schwab <schwab@suse.de>
12510
12511 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12512 of easymenu.
12513
125142008-07-16 Chong Yidong <cyd@stupidchicken.com>
12515
12516 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12517 that we don't move off the line.
12518
125192008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12520
12521 * keyboard.c (Qsuper): Remove.
12522 (parse_menu_item): Don't call where_is_internal specially for NS.
12523
125242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12525
12526 * s/gnu-linux.h: Remove boilerplate comments.
12527
12528 * m/alpha.h (__ELF__): Consolidate conditions.
12529
12530 * m/m68k.h (linux): Use GNU_LINUX instead.
12531 Remove boilerplate comments.
12532
12533 * m/intel386.h: Undo refactoring from previous change.
12534 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12535 too, remove dead code.
12536 (linux): Use GNU_LINUX instead.
12537
125382008-07-16 Jason Rumney <jasonr@gnu.org>
12539
12540 * w32gui.h: Repeat 26 June changes lost by last change.
12541
125422008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12543
12544 * systty.h: Remove code for Aix on 386, unsupported platform.
12545
12546 * s/ms-w32.h: Remove boilerplate comments.
12547 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12548
12549 * s/gnu-linux.h (TERM): Remove support.
12550 (HAVE_SYSVIPC): Remove, unused.
12551 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12552 for this system.
12553
12554 * process.c: Remove support for IRIS, unused.
12555 Remove support for TERM, not relevant anymore.
12556
12557 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12558 used with the definition.
12559
12560 * s/aix4-2.h (static): Do not undef.
12561
12562 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12563 only used on Aix.
12564 (HAVE_SYSVIPC): Remove, unused.
12565
12566 * m/hp800.h (CANNOT_DUMP): Do not undef.
12567
12568 * m/alpha.h: Fix comment.
12569
12570 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12571 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12572 used by this configuration.
12573 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12574 * unexec.c: Remove code depending on HPUX and
12575 USG_SHARED_LIBRARIES, not used with this file. Remove code
12576 depending on IRIS, unused. Remove if 0-ed code.
12577
12578 * s/template.h: Remove comments about static.
12579
12580 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12581 Remove if 0-ed code.
12582 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12583 were the same as the default.
12584 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12585 Remove boilerplate comments.
12586 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12587 (HAVE_SYSVIPC): Remove, unused.
12588 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12589
12590 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12591 Remove boilerplate comments.
12592 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12593 Remove boilerplate comments.
12594 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12595 Remove boilerplate comments.
12596 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12597
12598 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12599 USG systems which do not use DATA_SEG_BITS.
12600 Refactor code. Remove boilerplate comments.
12601
12602 * m/ibms390.h:
12603 * m/m68k.h:
12604 * s/bsd-common.h:
12605 * s/cygwin.h:
12606 * s/darwin.h:
12607 * s/freebsd.h:
12608 * s/gnu.h:
12609 * s/msdos.h: Remove boilerplate comments.
12610
12611 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12612 do not use this file.
aac0c6e3
MR
12613 (IRIS_4D): Remove, unused.
12614
12615 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12616 do not use this file.
aac0c6e3
MR
12617 (SIGN_EXTEND_CHAR):
12618 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12619 * unexmips.c: Remove file, unused.
12620
12621 * editfns.c (Fuser_full_name): Replace the only use of
12622 USER_FULL_NAME with its value.
12623 * config.in: Regenerate.
12624
126252008-07-16 David Reitter <david.reitter@gmail.com>
12626
12627 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12628 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12629
126302008-07-16 Glenn Morris <rgm@gnu.org>
12631
12632 * emacs.c (system-type): Doc fix.
12633
126342008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12637 If the cache doesn't work, let's fix it, rather than work around it.
12638
126392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12640
12641 * Makefile.in: Correct additions for nsfont.o in last commit.
12642 * nsfont.m: New file (forgot last commit).
12643
126442008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12645
12646 * callproc.c (set_initial_environment): Initialize
12647 Vprocess_environment under CANNOT_DUMP (fixes crash when
12648 batch-compiling for bootstrap).
12649
126502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12651 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12652
c4cc8b9a
JB
12653 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12654 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12655
126562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12657
12658 Changes and additions for NeXTstep windowing system (Cocoa and
12659 GNUstep) support.
12660
12661 * Makefile.in:
12662 * config.in: Support defines and build commands for NS port.
12663 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12664 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12665 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12666 windowing.
12667 (struct face): Add synth_ital field.
12668 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12669 (init_display): Initialize Vinitial_window_system to "ns" when so
12670 compiled.
12671 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12672 (display_arg): Use under NS.
12673 (main): Under NS, allocate autorelease pool and handle command line
12674 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12675 (standard_args): Add NS-specific args.
12676 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12677 * font.c (DEFAULT_ENCODING): New variable.
12678 (font_find_for_lface): Use it.
12679 (syms_of_font): Load syms_of_nsfont under NS.
12680 * font.h: Declare nsfont_driver when compiled under NS.
12681 * fontset.c: When compiling under NS, include nsterm.h.
12682 (fontset_from_font): Autoconstruct fontset under NS.
12683 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12684 symbol, document and use it.
12685 (do_switch_frame): When for_deletion under Cocoa, add
12686 Fraise_frame(Qnil).
12687 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12688 (x_get_arg): Allow "yes" and "no" as boolean values.
12689 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12690 Qright under Cocoa.
12691 (focus-follows-mouse): Default to 0 under NS.
12692 * frame.h (enum output_method): Add output_ns.
12693 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12694 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12695 (FRAME_WINDOW_P): NS-specific definition.
12696 * fringe.c (max_used_fringe_bitmap): Make public.
12697 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12698 (getloadavg): Use NeXT code under descendant OS's.
12699 * image.c (includes and header section, x_create_bitmap_from_data)
12700 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12701 (image_background_transparent, x_clear_image_1)
12702 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12703 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12704 (x_to_xcolors, x_from_xcolors, x_disable_image)
12705 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12706 other GUIs, including XPM support using code originally written for
12707 Carbon GUI.
12708 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12709 using NS API.
12710 (image_ascent): Use font metrics macros instead of direct struct field
12711 access.
12712 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12713 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12714 Also, handle NS as GTK for menu bar purposes.
12715 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12716 toolkit where they differ.
12717 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12718 use cachelist, still needed under NS.
12719 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12720 (struct widget_value): Define it here for menu.c.
12721 * keymap.c (includes): Include modifier internals.
12722 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12723 NS.
12724 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12725 support for preferring sequences using certain modifiers, specified by
12726 the FIRSTONLY argument.
12727 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12728 under NS GNUstep implementation.
12729 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12730 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12731 * menu.c: Include nsterm.h under NS.
12732 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12733 (free_menubar_widget_tree_value, update_submenu_strings)
12734 (find_and_call_menu_selection): Treat NS as X and NT.
12735 (find_and_return_menu_selection): New function, used for popup menus.
12736 * nsgui.h:
12737 * nsterm.h:
12738 * nsfns.m:
12739 * nsimage.m:
12740 * nsmenu.m:
12741 * nsselect.m:
12742 * nsterm.m: New files.
12743 * process.c (wait_reading_process_output): Under NS, call ns_select()
12744 instead of plain select().
12745 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12746 beginning of buffer.
12747 * sysselect.h (init_process): Rename when compiling under Cocoa to
12748 avoid name conflict.
12749 * termhooks.h (display_info): Add ns_display_info to union.
12750 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12751 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12752 COCOA environment.
12753 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12754 unexec() signature. (Note, this will dump, but the resulting file
12755 crashes; unexosx is used instead; keeping around for reference and
12756 possible aid in getting dump working under GNUstep.)
12757 * w32gui.h (button_type, widget_value): Remove definitions (now in
12758 keyboard.h).
12759 * window.c: Include nsterm.h when compiling under NS.
12760 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12761 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12762 other GUI windowing systems.
12763 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12764 GTK.
12765 (x_consider_frame_title): Under NS, set icon type and frame
12766 modified-state indicator; use ns_set_name_as_filename() when using
12767 formatted title.
12768 (update_window_cursor): Make public when compiling under NS.
12769 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12770 (hourglass_atimer, Vhourglass_delay
12771 * xfaces.c (header section, init_frame_faces, clear_font_table)
12772 (defined_color, unload_color, x_face_list_fonts)
12773 (prepare_face_for_display): Add NS support parallel to other GUIs.
12774 Emulate GCs like other non-X GUIs.
12775 (split_font_name): Don't lowercase font name under NS.
12776 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12777 under NS.
12778 * s/darwin.h: Add support for compilation under NS.
12779
127802008-07-15 Jason Rumney <jasonr@gnu.org>
12781
12782 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12783 (w32_show_hourglass): Rename from show_hourglass.
12784 (w32_hide_hourglass): Rename from hide_hourglass.
12785 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12786 (Vhourglass_delay): Declare extern.
12787 (hourglass_started): Remove.
12788
12789 * xdisp.c (Vhourglass_delay): Remove static.
12790 (hourglass_started, start_hourglass, cancel_hourglass):
12791 Don't include these versions on WINDOWSNT.
12792
127932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12794
12795 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12796 variables (formerly in xfns.c).
12797 (show_hourglass, hide_hourglass): New prototypes (same).
12798 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12799 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12800 in xfns.c).
12801 (syms_of_xdisp): Declare/initialize display-hourglass,
12802 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12803 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12804 formerly in xfns.c.
12805 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12806 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12807 (start_hourglass, cancel_hourglass): Remove.
12808 (show_hourglass, hide_hourglass): Remove prototypes and static
12809 modifiers.
12810 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12811 hourglass_atimer, hourglass_shown_p declaration/initialization.
12812 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12813 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12814 (start_hourglass, cancel_hourglass): Remove.
12815 (show_hourglass, hide_hourglass): Remove prototypes and static
12816 modifiers.
12817 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12818 hourglass_atimer, hourglass_shown_p declaration/initialization.
12819 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12820 (DEFAULT_HOURGLASS_DELAY): Remove.
12821 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12822 hourglass_shown_p declaration/initialization.
12823
128242008-07-14 Jason Rumney <jasonr@gnu.org>
12825
12826 * w32fns.c (w32_get_arg): Remove wrapper function.
12827 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12828 directly.
12829 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12830
128312008-07-14 Kenichi Handa <handa@m17n.org>
12832
12833 * xfont.c (xfont_open): Add workaround for X's bug.
12834
128352008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12836
12837 * fontset.c: Include <stdio.h> unconditionally.
12838
128392008-07-13 Michael Albinus <michael.albinus@gmx.de>
12840
12841 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12842 for filtering.
12843
128442008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12845
12846 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12847
12848 * m/macppc.h:
12849 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12850
c4cc8b9a 12851 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12852 (SPECIAL_EMACS_INT):
12853 * m/ia64.h (SPECIAL_EMACS_INT):
12854 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12855 * s/gnu.h (NLIST_STRUCT):
12856 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12857 * s/gnu-linux.h (LINUX):
12858 * s/msdos.h (HAVE_FACES):
12859 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12860
12861 * systty.h:
12862 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12863 anymore.
12864
128652008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12866
12867 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12868 always defined as int.
12869
12870 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12871 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12872 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12873 * s/freebsd.h (HAVE_WAIT_HEADER):
12874 * s/bsd-common.h (HAVE_UNION_WAIT):
12875 * s/aix4-2.h (HAVE_WAIT_HEADER):
12876 * m/mips.h (HAVE_UNION_WAIT):
12877 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12878 (COFF, static): Do not define, they are undefined later in the file.
12879
12880 * process.c (update_status): Don't use a union.
12881 (status_convert):
12882 (sigchld_handler): Use int instead of WAITTYPE.
12883
128842008-07-12 Chong Yidong <cyd@stupidchicken.com>
12885
12886 * indent.c (Fvertical_motion): Restore hscroll before moving to
12887 goal column.
12888
128892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12890
12891 * lisp.h: Remove left over code.
12892
128932008-07-11 Andreas Schwab <schwab@suse.de>
12894
12895 * lisp.h: Fix logic in last change.
12896
12897 * menu.h: New file.
12898 * menu.c: Include it.
12899 * xmenu.c: Likewise.
12900 * Makefile.in: Update dependencies.
12901
129022008-07-11 Kenichi Handa <handa@m17n.org>
12903
12904 * fontset.c (fontset_from_font): Cancel the previous change.
12905
129062008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12907
12908 * lisp.h:
12909 * w32heap.c:
12910 * emacs.c:
12911 * alloc.c: Replace all references of NO_UNION_TYPE with
12912 USE_LISP_UNION_TYPE.
12913
12914 * m/xtensa.h (NO_UNION_TYPE):
12915 * m/vax.h (NO_UNION_TYPE):
12916 * m/template.h (NO_UNION_TYPE):
12917 * m/sparc.h (NO_UNION_TYPE):
12918 * m/mips.h (NO_UNION_TYPE):
12919 * m/macppc.h (NO_UNION_TYPE):
12920 * m/m68k.h (NO_UNION_TYPE):
12921 * m/iris4d.h (NO_UNION_TYPE):
12922 * m/intel386.h (NO_UNION_TYPE):
12923 * m/ibms390x.h (NO_UNION_TYPE):
12924 * m/ibms390.h (NO_UNION_TYPE):
12925 * m/ibmrs6000.h (NO_UNION_TYPE):
12926 * m/ia64.h (NO_UNION_TYPE):
12927 * m/hp800.h (NO_UNION_TYPE):
12928 * m/arm.h (NO_UNION_TYPE):
12929 * m/amdx86-64.h (NO_UNION_TYPE):
12930 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12931 defining it the same.
12932
129332008-07-10 Chong Yidong <cyd@stupidchicken.com>
12934
12935 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12936
129372008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12938
12939 * fileio.c:
50426a04 12940 * sysdep.c:
aac0c6e3
MR
12941 * systty.h:
12942 * m/ibmrs6000.h:
12943 * m/iris4d.h:
12944 * s/aix4-2.h:
12945 * s/freebsd.h:
12946 * s/gnu-linux.h:
12947 * s/hpux10-20.h:
12948 * s/hpux11.h:
12949 * s/netbsd.h:
12950 * s/sol2-3.h:
12951 * s/sol2-4.h:
12952 * s/sol2.h:
12953 * s/usg5-4.h:
12954 * s/vms.h: Remove references to unused variables.
12955
129562008-07-10 Andreas Schwab <schwab@suse.de>
12957
12958 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12959 pattern before matching the generic family.
12960
129612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12962
12963 * unexec.c:
12964 * s/vms.h:
12965 * s/usg5-4-2.h:
12966 * s/sol2-5.h:
12967 * s/freebsd.h:
12968 * s/darwin.h: Remove dead code.
12969
12970 * m/template.h:
12971 * m/sparc.h:
12972 * m/mips.h:
12973 * m/m68k.h:
12974 * m/iris4d.h:
12975 * m/intel386.h:
12976 * m/ibms390x.h:
12977 * m/ibms390.h:
12978 * m/ia64.h:
12979 * m/hp800.h:
12980 * m/arm.h:
12981 * m/amdx86-64.h: Remove dead code and references to unused
12982 and compiler defined symbols.
12983
12984 * unexmips.c:
12985 * unexelf.c: Remove references to desupported systems.
12986
12987 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12988
12989 * m/powermac.h: Remove boilerplate comments.
12990 (NO_REMAP): Remove unused definition.
12991
12992 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12993 define them.
12994
129952008-07-10 Kenichi Handa <handa@m17n.org>
12996
12997 * xfont.c (xfont_open): Log the reason of failure.
12998
129992008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13000
13001 * fontset.c (fontset_get_font_group):
13002 * font.c (font_check_otf): Specify argument types.
13003
130042008-07-09 Kenichi Handa <handa@m17n.org>
13005
13006 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13007 non-ASCII char is found.
13008
13009 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13010 (reorder_font_vector): Change the arg preferred_family to font.
13011 Prefer the spec matching with font.
13012 (fontset_get_font_group): New function.
13013 (fontset_find_font): Change the format of an element of a realized
13014 fontset. Use fontset_get_font_group.
13015 (fontset_font): Try the current fontset, the default fontset, the
13016 fallbacks of the current fontset, and the fallbacks of the default
13017 fontset in this order.
13018 (face_for_char): Delete the shortcut to use the current font.
13019 (fontset_from_font): Don't set fonts for Latin in the fontset.
13020
13021 * font.h (font_make_object, font_match_p): Adjust prototypes.
13022
13023 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13024
13025 * font.c (font_make_object): New arg entity and pixelsize.
13026 (font_check_otf_features, font_check_otf): New functions.
13027 (font_match_p): Check :lang, :script, and :otf properties.
13028
13029 * xfont.c (xfont_open): Adjust it for the change of
13030 font_make_object.
13031 (xfont_text_extents): Fix initial setting of metrics.
13032
13033 * ftfont.c (struct ftfont_info): New member index, delete member
13034 fc_charset_idx. Make the member order compatible with struct
13035 xftfont_info.
13036 (fc_charset_table): Change charset names to registry names.
13037 (ftfont_pattern_entity): Delete the args registry and
13038 fc_charset_idx. Change the value of :font-entity property
13039 to (FONTNAME . INDEX). Always set :registry property to
13040 `iso10646-1'.
13041 (struct ftfont_cache_data): New struct.
13042 (ftfont_lookup_cache): New arg for_face.
13043 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13044 (ftfont_driver): Set the member otf_capability.
13045 (ftfont_get_charset): Adjust it for the change of
13046 fc_charset_table.
13047 (OTF_TAG_SYM): New macro.
13048 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13049 for the change of fc_charset_table.
13050 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13051 ftfont_pattern_entity. Add FC_INDEX to objset.
13052 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13053 and ftfont_pattern_entity.
13054 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13055 font_make_object, struct ftfont_info.
13056 (ftfont_has_char): Use ftfont_get_fc_charset.
13057 (ftfont_otf_features, ftfont_otf_capability): New functions.
13058 (ftfont_shape): Use ftfont_get_otf.
13059 (ftfont_text_extents): Fix initial setting of metrics.
13060
13061 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13062 member order compatible with struct ftfont_info.
13063 (xftfont_open): Add FC_CHARSET to the pattern. Set
13064 xftfont_info->ft_size. Don't unlock the face. Check BDF
13065 properties if appropriate.
13066 (xftfont_close): Unlock the face.
13067 (xftfont_anchor_point, xftfont_shape): Deleted.
13068 (syms_of_xftfont): Don't set members anchor_point and shape of
13069 xftfont_driver.
13070
13071 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13072 font_make_object.
13073
13074 * w32font.c (w32font_open): Adjust it for the change of
13075 font_make_object.
13076 (w32font_open_internal): Don't set properties of font_object here.
13077
130782008-07-08 Chong Yidong <cyd@stupidchicken.com>
13079
13080 * macfns.c (x_create_tip_frame):
13081 * w32fns.c (x_create_tip_frame):
13082 * xfns.c (x_create_tip_frame): Pass parameter argument to
13083 face-set-after-frame-default.
13084
13085 * xfaces.c (Finternal_merge_in_global_face): Save merged
13086 attributes for the default face back into the face vector.
13087
130882008-07-08 Andreas Schwab <schwab@suse.de>
13089
13090 * fontset.h: Declare fontset_from_font. Don't declare
13091 new_fontset_from_font and fontset_from_font_name.
13092 * xterm.c: Include "fontset.h".
13093 * Makefile.in (xterm.o): Update dependencies.
13094
130952008-07-08 Glenn Morris <rgm@gnu.org>
13096
13097 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13098 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13099
131002008-07-07 Chong Yidong <cyd@stupidchicken.com>
13101
13102 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13103 (x_set_frame_parameters): Don't bind it.
13104
131052008-07-07 Juanma Barranquero <lekktu@gmail.com>
13106
13107 * w32fns.c (map_w32_filename): Declare extern.
13108
131092008-07-07 Jason Rumney <jasonr@gnu.org>
13110
13111 * w32term.c (WS_EX_LAYERED): Define if not already.
13112
131132008-07-06 Chong Yidong <cyd@stupidchicken.com>
13114
13115 * xfaces.c (set_font_frame_param): Don't try to set the font
13116 parameter if it is still unspecified in the lface.
13117
131182008-07-05 Chong Yidong <cyd@stupidchicken.com>
13119
13120 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13121 face if it didn't already exist.
13122
13123 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13124
131252008-07-05 Andreas Schwab <schwab@suse.de>
13126
13127 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13128
131292008-07-05 Chong Yidong <cyd@stupidchicken.com>
13130
13131 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13132 word-wrapping.
13133 (IT_DISPLAYING_WHITESPACE): New macro.
13134 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13135 when word-wrapping. Simplify word-wrapping logic. Use correct
13136 pixel positions when saving copies of the iterator.
13137 (display_line): Use proper wrap point if the last character on a
13138 line was preceded by whitespace.
13139
131402008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13141
13142 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13143
131442008-07-04 Kenichi Handa <handa@m17n.org>
13145
13146 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13147
13148 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13149
131502008-07-02 Jason Rumney <jasonr@gnu.org>
13151
13152 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13153 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13154
13155 * xdisp.c (next_element_from_display_vector): Move assignment out
13156 of if statement.
13157
131582008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13159
13160 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13161
13162 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13163 (syms_of_fileio): Initialize and export them.
13164 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13165
13166 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13167 (Fsystem_move_file_to_trash): New function.
13168 (syms_of_w32fns): Export it to lisp.
13169
131702008-07-01 Jason Rumney <jasonr@gnu.org>
13171
13172 * w32font.c (w32font_text_extents): Don't count overhang as part
13173 of width.
13174
131752008-06-30 Miles Bader <miles@gnu.org>
13176
13177 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13178 Add `avoid_cursor_p' field.
13179
13180 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13181 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13182 (append_glyph, append_composite_glyph, produce_image_glyph)
13183 (append_stretch_glyph): Initialize avoid_cursor_p.
13184 (get_it_property): Rename from `get_line_height_property'.
13185 (x_produce_glyphs): Use get_it_property.
13186 (handle_line_prefix, push_display_prop): New functions.
13187 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13188 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13189 New variables.
13190 (syms_of_xdisp): Initialize them.
13191
131922008-06-30 Kenichi Handa <handa@m17n.org>
13193
13194 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13195 XftDefaultSubstitute (they are called in XftFontMatch).
13196 (xftfont_open): Fix args to ftfont_font_format.
13197
13198 * ftfont.c (fc_charset_table): New member lang.
13199 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13200 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13201 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13202 (ftfont_open): Fix args to ftfont_font_format.
13203 (ftfont_font_format): New arg filename.
13204
132052008-06-30 Chong Yidong <cyd@stupidchicken.com>
13206
13207 * xfaces.c (Finternal_merge_in_global_face): If default face was
13208 modified, realize it again. Update the font face attribute.
13209
132102008-06-29 Jason Rumney <jasonr@gnu.org>
13211
13212 * w32term.c (x_set_frame_alpha): Fix logic.
13213
132142008-06-29 Kenichi Handa <handa@m17n.org>
13215
13216 * fontset.c (Finternal_char_font): Return font-object instead of
13217 font-name.
13218
13219 * composite.c (get_composition_id): Fix the width calculation for TAB.
13220
132212008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13222
13223 * indent.c (Fvertical_motion): Properly handle float column arg.
13224
132252008-06-28 Jason Rumney <jasonr@gnu.org>
13226
13227 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13228 (pfnSetLayeredWindowAttributes): New function pointer.
13229 (w32_initialize): Initialize it when supported.
13230 (x_set_frame_alpha): New function.
13231
13232 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13233 (w32_frame_parm_handlers): Set alpha handler.
13234
13235 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13236
132372008-06-27 Jason Rumney <jasonr@gnu.org>
13238
13239 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13240 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13241 (w32_to_x_charset, x_to_w32_charset)
13242 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13243 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13244 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13245 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13246 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13247 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13248 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13249 (Qw32_charset_unicode): Remove.
13250 (syms_of_w32fns): Update for above changes.
13251
13252 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13253 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13254 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13255 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13256 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13257 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13258 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13259 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13260 (syms_of_w32font): Update for above changes.
13261
132622008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13263
13264 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13265 removed #if.
13266 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13267
132682008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13269 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13270
13271 * makefile.w32-in (LOCAL_FLAGS):
13272 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13273
13274 * sysdep.c (_spawnlp, _getpid):
13275 Declare with explicit _cdecl instead of _CRTAPI1.
13276
13277 * editfns.c (Fget_internal_run_time):
13278 Check for WINDOWSNT with #ifdef, not #if.
13279
132802008-06-26 Jason Rumney <jasonr@gnu.org>
13281
13282 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13283
13284 * w32term.c (x_draw_glyph_string_foreground)
13285 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13286 Use FONT_HANDLE macro.
13287 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13288
13289 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13290 (uniscribe_encode_char): Use FONT_HANDLE macro.
13291
13292 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13293 (w32font_text_extents): Use precast w32_font.
13294 (w32font_close): Free cached metrics.
13295 (w32font_open_internal): Allocate space for name on stack.
13296
132972008-06-26 Chong Yidong <cyd@stupidchicken.com>
13298
13299 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13300
133012008-06-26 Jason Rumney <jasonr@gnu.org>
13302
13303 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13304 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13305
133062008-06-26 Juanma Barranquero <lekktu@gmail.com>
13307
13308 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13309
133102008-06-26 Jason Rumney <jasonr@gnu.org>
13311
13312 * w32bdf.c, w32bdf.h: Remove obsolete files.
13313
13314 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13315
13316 * w32gui.h: Don't include w32bdf.h.
13317 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13318 Remove obsolete font support.
13319
13320 * w32font.h (struct w32font_info): Remove compat_w32_font.
13321 Add hfont member.
13322 (FONT_COMPAT): Remove obsolete macro.
13323
13324 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13325 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13326 (w32font_open_internal): Remove compat code. Set new hfont member.
13327 (Fx_select_font): Use new hfont member.
13328
13329 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13330 (uniscribe_encode_char): Use new hfont member.
13331
13332 * w32term.c (x_draw_glyph_string_foreground)
13333 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13334 (x_draw_glyph_string): Use metrics in w32font_info.
13335
133362008-06-26 Kenichi Handa <handa@m17n.org>
13337
13338 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13339
133402008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13341
13342 * unexnext.c:
13343 * m/ews4800.h:
13344 * m/hp9000s300.h:
13345 * m/ibm370aix.h:
13346 * m/mips-siemens.h:
13347 * m/ncr386.h:
13348 * m/next.h:
13349 * m/pmax.h:
13350 * m/powerpcle.h:
13351 * m/tandem-s2.h:
13352 * s/386bsd.h:
13353 * s/bsd386.h:
13354 * s/bsd4-1.h:
13355 * s/bsd4-2.h:
13356 * s/bsdos2-1.h:
13357 * s/bsdos2.h:
13358 * s/bsdos3.h:
13359 * s/bsdos4.h:
13360 * s/nextstep.h:
13361 * s/ultrix4-3.h:
13362 * s/usg5-0.h:
13363 * s/usg5-2-2.h:
13364 * s/usg5-2.h:
13365 * s/usg5-4-3.h:
13366 * s/ux4800.h:
13367 * s/uxpds.h:
13368 * s/uxpv.h: Remove support for obsolete systems.
13369 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13370 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13371 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13372 Remove, insert contents in s/aix4-2.h.
13373 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13374 * s/bsd4-3.h: Rename to ...
13375 * s/bsd-common.h: ... this.
13376 * data.c:
13377 * doc.c:
13378 * ecrt0.c:
13379 * emacs.c:
13380 * fileio.c:
13381 * floatfns.c:
13382 * keyboard.c:
13383 * mem-limits.h:
13384 * print.c:
13385 * process.c:
13386 * sysdep.c:
13387 * syssignal.h:
13388 * systty.h:
13389 * syswait.h:
13390 * term.c:
13391 * unexec.c:
13392 * unexelf.c:
13393 * unexhp9k800.c:
13394 * m/hp800.h:
13395 * m/ibmrs6000.h:
13396 * m/mips.h:
13397 * m/vax.h:
13398 * s/darwin.h:
13399 * s/freebsd.h:
13400 * s/gnu.h:
13401 * s/ms-w32.h:
13402 * s/msdos.h:
13403 * s/netbsd.h:
13404 * s/template.h: Remove references to obsolete variables.
13405
13406 * Makefile.in: Add dependencies for all unexec files.
13407 (admindir): Remove unused variable.
13408 (UNEXEC_SRC): Remove references.
13409
134102008-06-25 Chong Yidong <cyd@stupidchicken.com>
13411
13412 * xfns.c (x_default_font_parameter): If Xft is available, first
13413 try Monospace-12 for the default font.
13414
134152008-06-25 Jason Rumney <jasonr@gnu.org>
13416
13417 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13418
134192008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13420
13421 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13422
13423 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13424
134252008-06-25 Juanma Barranquero <lekktu@gmail.com>
13426
13427 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13428 <scroll-conservatively>: Fix typo in docstring.
13429
13430 * xselect.c (Fx_send_client_event): Doc fix.
13431
134322008-06-25 Kenichi Handa <handa@m17n.org>
13433
13434 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13435
13436 * font.c (font_parse_fcname): Remove unused variables.
13437 (font_sort_entites): Delete the arg SPEC. Caller changed.
13438 Fix for the case of ! best_only.
13439 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13440
13441 * lisp.h (Fstring_to_unibyte): EXFUN it.
13442
13443 * character.h (str_to_unibyte): Extern it.
13444
13445 * character.c (str_to_unibyte): New function.
13446
13447 * fns.c (Fstring_to_unibyte): New function.
13448 (syms_of_fns): Defsubr it.
13449
134502008-06-24 Kenichi Handa <handa@m17n.org>
13451
13452 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13453 DPI too.
13454 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13455
134562008-06-24 Andreas Schwab <schwab@suse.de>
13457
13458 * Makefile.in (${lispsource}loaddefs.el): Rename from
13459 ../lisp/loaddefs.el.
13460 (bootstrap-clean): Do what distclean does but don't remove
13461 Makefile.
13462 (distclean): Depend on bootstrap-clean and remove Makefile.
13463
134642008-06-24 Chong Yidong <cyd@stupidchicken.com>
13465
13466 * buffer.h (struct buffer): New member word_wrap.
13467
13468 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13469 word-wrap.
13470 (init_buffer_once): Initialize them.
13471
13472 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13473 line_wrap enum possessing three possible values.
13474
13475 * termopts.h: Replace truncate_partial_width_windows with
13476 Vtruncate_partial_width_windows.
13477
13478 * dispnew.c (direct_output_for_insert): Avoid direct output when
13479 inserting a space with word wrap on.
13480
13481 * indent.c (compute_motion): Obey integer values of
13482 truncate-partial-width-windows.
13483
13484 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13485 replacing truncate_partial_width_windows.
13486 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13487 truncate only if the window width is below that integer.
13488 (start_display, resize_mini_window, produce_stretch_glyph)
13489 (display_string, move_it_in_display_line_to): Use line_wrap.
13490 (back_to_previous_visible_line_start, reseat_1): Reset
13491 string_from_display_prop_p.
13492 (display_line): Extend default face to end of line when wrapping.
13493
134942008-06-24 Kim F. Storm <storm@cua.dk>
13495
13496 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13497 to wrap continued lines at word boundaries.
13498
134992008-06-24 Jason Rumney <jasonr@gnu.org>
13500
13501 * font.c (Ffont_face_attributes): Multiply pixel size before point
13502 conversion to avoid multiplying rounding error.
13503
135042008-06-23 Jason Rumney <jasonr@gnu.org>
13505
13506 * w32term.c (x_draw_glyph_string_background)
13507 (x_draw_glyph_string): Remove old bdf font code.
13508
13509 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13510
135112008-06-22 Kenichi Handa <handa@m17n.org>
13512
13513 * font.c (font_find_for_lface): Try the adstyle specified in
13514 the property of LFACE_FONT of LFACE (if any).
13515
135162008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13517 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13518
13519 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13520
135212008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13522
13523 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13524 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13525 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13526 (witness-emacs): Remove.
13527 (lisp, shortlisp): Move loaddefs.el earlier.
13528 (mostlyclean): Forget about witness-emacs.
13529
135302008-06-22 Glenn Morris <rgm@gnu.org>
13531
13532 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13533 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13534
135352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13536
13537 * Makefile.in (PRECOMP): Remove.
13538 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13539 (witness-emacs): Run `compile-first'.
13540 (.el.elc): Use the new compile-onefile target.
13541
135422008-06-21 Kenichi Handa <handa@m17n.org>
13543
13544 * xftfont.c (xftfont_open): Handle QCembolden only when
13545 FC_EMBOLDEN is defined.
13546
135472008-06-21 Andreas Schwab <schwab@suse.de>
13548
13549 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13550 (.el.elc): Likewise.
13551
135522008-06-21 Miles Bader <miles@gnu.org>
13553
13554 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13555 build dir, not the lisp source dir.
13556
135572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13558
13559 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13560 (bootstrapclean): Remove.
13561 (.el.elc): New rule.
13562 (PRECOMP): New var.
13563 (../lisp/subdirs.el): Remove.
13564 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13565 (witness-emacs): New target.
13566 (mostlyclean): Remove witness-emacs as well.
13567 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13568 Add witness-emacs dependency.
13569
135702008-06-20 Chong Yidong <cyd@stupidchicken.com>
13571
13572 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13573 defined by the font.
13574
135752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13576
13577 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13578 (bootstrap-clean): New target that keeps TAGS around.
13579 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13580 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13581
135822008-06-20 Jason Rumney <jasonr@gnu.org>
13583
13584 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13585 Remove obsolete font code.
13586
13587 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13588 to determine language support.
13589
135902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13591
13592 * sysdep.c (cfsetspeed): New fun extracted from the code.
13593 (cfmakeraw): Move before first use.
13594
135952008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13596
13597 * sysdep.c (cfmakeraw): Provide fallback implementation.
13598 (serial_configure): Provide fallback implementation of cfsetspeed.
13599
136002008-06-20 Kenichi Handa <handa@m17n.org>
13601
13602 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13603 the pattern.
13604
13605 * fontset.c (fontset_from_font): Copy font_spec before changing
13606 the elements.
13607
13608 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13609
136102008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13613 for explicit `font' parameters.
13614
13615 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13616
136172008-06-19 Kenichi Handa <handa@m17n.org>
13618
13619 * frame.c: Include <ctype.h>.
13620 (x_set_font_backend): Allow spacing characters in the X resource
13621 for FontBackend.
13622
136232008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13624
13625 * w32fns.c, xfns.c (Qfont_param): New var.
13626 (syms_of_w32fns): Initialize it.
13627 (x_default_font_parameter): Record explicit `font' into
13628 `font-parameter'.
13629
136302008-06-18 Kenichi Handa <handa@m17n.org>
13631
13632 * font.c (font_parse_xlfd): Fix previous change.
13633 (font_parse_fcname): Don't use :fc-unknown-spec.
13634 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13635 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13636 (font_add_log): Prepend the driver name to the resulting fonts.
13637
13638 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13639 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13640 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13641
13642 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13643 (QCembolden): New variables.
13644 (syms_of_xftfont): DEFSYM them.
13645 (xftfont_open): Call XftFontMatch. Don't trust the result of
13646 XftTextExtents8 if the pixel_size is less than 5.
13647
136482008-06-18 Andreas Schwab <schwab@suse.de>
13649
13650 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13651 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13652
136532008-06-18 Jason Rumney <jasonr@gnu.org>
13654
13655 * w32font.c (w32font_list, w32font_match): Add logging.
13656
13657 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13658
136592008-06-17 Chong Yidong <cyd@stupidchicken.com>
13660
13661 * font.c (font_parse_fcname): Store divider characters for
13662 unknown-spec list. For known key symbols, intern using correct
13663 symbol name.
13664
136652008-06-17 Kenichi Handa <handa@m17n.org>
13666
13667 * xfaces.c (realize_default_face): If the frame is not on window
13668 system, set the fontset of face to nil.
13669
136702008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13671
13672 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13673
136742008-06-16 Juanma Barranquero <lekktu@gmail.com>
13675
13676 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13677 (build_font_name_from_vector): Delete externs.
13678
13679 * xfaces.c (struct font_name): Don't declare.
13680
136812008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13682
13683 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13684
136852008-06-16 Chong Yidong <cyd@stupidchicken.com>
13686
13687 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13688
136892008-06-16 Juanma Barranquero <lekktu@gmail.com>
13690
13691 * font.c (Ffont_spec): Fix usage in docstring.
13692 (Ffont_face_attributes): Doc fix.
13693
136942008-06-16 Andreas Schwab <schwab@suse.de>
13695
13696 * font.c (Ffont_face_attributes): Fix definition.
13697
136982008-06-16 Jason Rumney <jasonr@gnu.org>
13699
13700 * font.h (font_style_symbolic_from_value): Remove.
13701
13702 * font.c (font_style_symbolic_from_value): Remove.
13703 (font_style_symbolic): Revert to pre 2008-06-13 version.
13704
13705 * w32font.c (w32_to_fc_weight): New function.
13706 (w32font_full_name, logfont_to_fcname): Use it.
13707
137082008-06-16 Kenichi Handa <handa@m17n.org>
13709
13710 * font.c (font_check_object): Delete it.
13711 (font_clear_cache): Check if a font-object is alive.
13712 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13713 font-object to nil.
13714 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13715 (font_at): Don't call font_check_object.
13716 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13717
137182008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13719
13720 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13721
137222008-06-16 Chong Yidong <cyd@stupidchicken.com>
13723
13724 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13725
137262008-06-15 Chong Yidong <cyd@stupidchicken.com>
13727
13728 * font.c (font_parse_fcname): Only one decimal point.
13729 (font_unparse_fcname): Handle data in family and foundry indices
13730 as symbols, not strings.
13731 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13732
13733 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13734
13735 * font.h (font_unparse_gtkname): Add prototype.
13736
137372008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13738
13739 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13740
137412008-06-15 Andreas Schwab <schwab@suse.de>
13742
13743 * font.c (font_update_drivers): Fix crash when no drivers match.
13744
137452008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13746
13747 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13748 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13749
137502008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13751
13752 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13753
137542008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13755
13756 * process.c (Fserial_process_configure, Fprocess_send_eof):
13757 Use EQ to compare Lisp_Objects.
13758
137592008-06-13 Jason Rumney <jasonr@gnu.org>
13760
13761 * w32fns.c (Fw32_select_font): Remove old font API function.
13762
13763 * w32font.c (logfont_to_fcname): New function.
13764 (Fx_select_font): New font dialog function compatible with
13765 GTK/fontconfig version.
13766
13767 * font.c (font_style_symbolic_from_value): New function.
13768 (font_style_symbolic): Use it.
13769
13770 * font.h (font_style_symbolic_from_value): Declare new function.
13771
137722008-06-13 Juanma Barranquero <lekktu@gmail.com>
13773
13774 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13775 <font-width-table>: Fix typos in docstrings.
13776
137772008-06-13 Daniel Engeler <engeler@gmail.com>
13778
13779 These changes add serial port access.
13780 * process.c: Add HAVE_SERIAL.
13781 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13782 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13783 (list_processes_1, select_wrapper, Fstop_process)
13784 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13785 (status_notify): Modify to handle serial processes.
13786 [HAVE_SERIAL] (Fserial_process_configure)
13787 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13788 New functions.
13789 * process.h (struct Lisp_Process): Add `type'.
13790 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13791 New functions.
13792 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13793 serial ports.
b71ac3dd 13794 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13795 * w32.h: Add FILE_SERIAL.
13796 (struct _child_process): Add ovl_read, ovl_write.
13797
137982008-06-13 Kenichi Handa <handa@m17n.org>
13799
13800 * dispextern.h (enum lface_attribute_index): New member
13801 LFACE_FOUNDRY_INDEX.
13802
13803 * font.c (font_score): Delete arg alternate_families. Check only
13804 weight, slant, width, and size. Ignore the difference of alias
13805 style symbols.
13806 (font_sort_entites): Adjust for the above change. Reflect the
13807 order of font-driver to scores.
13808 (font_list_entities): Don't check alternate_familes here.
13809 (font_clear_prop): Handle foundry.
13810 (font_update_lface): Don't parse "foundry-family" form here.
13811 Handle FONT_FOUNDRY_INDEX.
13812 (font_find_for_lface): Likewise. Handle alternate families here.
13813 If registry is nil, try iso8859-1 and ascii-0.
13814 (font_open_for_lface): Pay attention to size in ENTITY.
13815 (font_open_by_name): Simplify by calling font_load_for_lface.
13816 (free_font_driver_list): Delete it.
13817 (font_update_drivers): Preserve the order of backends.
13818 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13819 of font_score and font_sort_entites.
13820 (font_update_sort_order): Likewise.
13821
13822 * xfaces.c (LFACE_FOUNDRY): New macro.
13823 (check_lface_attrs): Check foundry.
13824 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13825 (merge_face_vectors): Check foundry.
13826 (merge_face_ref): Likewise.
13827 (Finternal_set_lisp_face_attribute): Likewise.
13828 (x_update_menu_appearance): Likewise.
13829 (Finternal_get_lisp_face_attribute): Likewise.
13830 (lface_hash): Likewise.
13831 (lface_same_font_attributes_p): Likewise.
13832 (x_supports_face_attributes_p): Likewise.
13833 (tty_supports_face_attributes_p): Likewise.
13834 (Finternal_set_alternative_font_family_alist): Intern strings.
13835 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13836 (realize_default_face): Set LFACE_FOUNDRY (lface).
13837
13838 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13839 font-driver at first.
13840
13841 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13842
138432008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13844
13845 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13846
138472008-06-12 Jim Meyering <meyering@redhat.com>
13848
13849 Make unexec_free handle NULL the same way free does.
13850 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13851
138522008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13853
13854 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13855 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13856 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13857 (WEAK_ALIAS): Simplify.
13858 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13859 when searching a unibyte buffer.
13860
138612008-06-12 Chong Yidong <cyd@stupidchicken.com>
13862
13863 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13864
138652008-06-12 Juanma Barranquero <lekktu@gmail.com>
13866
13867 * w32font.c: Include ctype.h.
13868
138692008-06-11 Jason Rumney <jasonr@gnu.org>
13870
13871 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13872 misreported as space.
13873 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13874 as aliases for registry iso10646-1.
13875
138762008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13877
13878 * buffer.c (clone_per_buffer_values): Skip `name'.
13879
138802008-06-11 Chong Yidong <cyd@stupidchicken.com>
13881
13882 * font.c (font_parse_fcname): Fix last change; accept decimal
13883 points in font size.
13884
138852008-06-10 Jason Rumney <jasonr@gnu.org>
13886
13887 * w32uniscribe.c (add_opentype_font_name_to_list):
13888 Skip non unicode fonts.
13889
138902008-06-10 Chong Yidong <cyd@stupidchicken.com>
13891
13892 * xfns.c (Fx_font_dialog): New function.
13893
13894 * gtkutil.c (xg_dialog_response_cb): Rename from
13895 xg_file_response_callback.
13896 (pop_down_dialog): Rename from pop_down_file_dialog.
13897 (xg_get_file_name): Callers changed.
13898 (xg_get_font_name): New function.
13899
13900 * gtkutil.h (xg_get_font_name): Insert prototype.
13901
139022008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13903
13904 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13905 x_underline_minimum_display_offset.
13906 (syms_of_xdisp): Declare it here rather than in xterm.c.
13907 * dispextern.h (underline_minimum_offset): Declare it.
13908 * w32term.c (x_draw_glyph_string): Use it.
13909 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13910 (syms_of_xterm): Don't declare it any more.
13911 (x_draw_glyph_string): Adjust to the new name.
13912
8719abec 139132008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13914
13915 * xterm.c (x_underline_minimum_display_offset): New var.
13916 (x_draw_glyph_string): Use it.
13917 (syms_of_xterm): Declare it.
13918
139192008-06-10 Chong Yidong <cyd@stupidchicken.com>
13920
13921 * font.c (font_parse_fcname): Accept GTK-style font names too.
13922
139232008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13924
13925 * dired.c (file_name_completion): Don't return t if the match is exact
13926 but with different capitalization.
13927 * minibuf.c (Ftry_completion): Simplify.
13928
13929 * window.c (Vwindow_point_insertion_type): New var.
13930 (set_window_buffer): Use it.
13931 (syms_of_window): Init and export it to Lisp.
13932
139332008-06-10 Kenichi Handa <handa@m17n.org>
13934
13935 * font.h (font_intern_prop): Prototype adjusted.
13936
13937 * font.c (font_intern_prop): New arg force_symbol.
13938 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13939 Adjust for the change of font_intern_prop.
13940
13941 * ftfont.c (ftfont_pattern_entity):
13942 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13943 (w32_registry):
13944 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13945 the change of font_intern_prop.
13946
139472008-06-09 Juanma Barranquero <lekktu@gmail.com>
13948
13949 * w32menu.c (digest_single_submenu): Declare extern.
13950
139512008-06-09 Jason Rumney <jasonr@gnu.org>
13952
13953 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13954
13955 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13956 (parse_single_submenu): Remove.
13957 (digest_single_submenu): Remove.
13958 (syms_of_w32menu): Don't initialise variables that have moved
13959 to menu.c.
13960 (set_frame_menubar): Sync with version in xmenu.c.
13961 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13962
13963 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13964 Make static again.
13965
139662008-06-09 Jason Rumney <jasonr@gnu.org>
13967
13968 Changes to w32 files related to the move of common menu code
13969 to menu.c on 2008-06-08 by Chong Yidong.
13970
13971 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13972 defs to w32gui.h.
13973 (single_keymap_panes, push_menu_item, push_menu_pane):
13974 Make globally visible.
13975
13976 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13977 (local_free, malloc_widget_value, free_widget_value)
13978 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13979 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13980 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13981 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13982 (menu_items, menu_items_allocated, menu_items_used)
13983 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13984 (init_menu_items, finish_menu_items, discard_menu_items)
13985 (grow_menu_items, push_submenu_start, push_submenu_end)
13986 (push_left_right_boundary, push_menu_pane, push_menu_item)
13987 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13988 (free_menubar_widget_tree_value, parse_single_submenu)
13989 (update_submenu_strings): Remove functions.
13990 (xmalloc_widget_value): Remove and declare extern.
13991
13992 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13993 (OBJ1): Build it.
13994
13995 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13996 (local_heap, local_alloc, local_free, malloc_widget_value)
13997 (free_widget_value): Define here.
13998
139992008-06-09 Kenichi Handa <handa@m17n.org>
14000
14001 * font.h (Qascii_0): Extern it.
14002
14003 * font.c (Qascii_0): New variable.
14004 (syms_of_font): DEFSYM it.
14005 (font_open_by_name): If the registry "iso8859-1" fails, try also
14006 "ascii-0".
14007
14008 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14009
140102008-06-08 Kenichi Handa <handa@m17n.org>
14011
14012 * .gdbinit (xfont): New command.
14013
140142008-06-08 Andreas Schwab <schwab@suse.de>
14015
14016 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14017 * Makefile.in (menu.o): Update dependencies.
14018
14019 * Makefile.in (obj): Always add menu.o.
14020 * emacs.c (main): Always call syms_of_menu.
14021 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14022
140232008-06-08 Chong Yidong <cyd@stupidchicken.com>
14024
14025 * Makefile.in: Compile menu.c.
14026
14027 * lisp.h: Declare syms_of_menu.
14028
14029 * emacs.c (main): Call syms_of_menu.
14030
14031 * keyboard.h: Relocate platform-independent menu definitions from
14032 xmenu.c.
14033
14034 * menu.c: New file. Relocate platform-independent menu
14035 definitions from xmenu.c. Suggested by Adrian Robert.
14036
14037 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14038 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14039 (menu_items_used, menu_items_n_panes)
14040 (menu_items_submenu_depth): Move to keyboard.h.
14041 (init_menu_items, finish_menu_items, unuse_menu_items)
14042 (discard_menu_items, restore_menu_items, save_menu_items)
14043 (grow_menu_items, push_submenu_start, push_submenu_end)
14044 (push_left_right_boundary, push_menu_pane, push_menu_item)
14045 (keymap_panes, single_keymap_panes, single_menu_item)
14046 (list_of_panes, list_of_items, find_and_call_menu_selection)
14047 (xmalloc_widget_value, free_menubar_widget_value_tree)
14048 (parse_single_submenu, digest_single_submenu)
14049 (update_submenu_strings): Move to menu.c.
14050
140512008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14052
14053 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14054
140552008-06-06 Miles Bader <miles@gnu.org>
14056
14057 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14058 face, not frame default.
14059
140602008-06-05 Martin Rudalics <rudalics@gmx.at>
14061
14062 * window.c (pop_up_windows, pop_up_frames)
14063 (display_buffer_reuse_frames, Vpop_up_frame_function)
14064 (Vdisplay_buffer_function, Veven_window_heights)
14065 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14066 (Vspecial_display_function, Vsame_window_buffer_names)
14067 (Vsame_window_regexps, split_height_threshold)
14068 (Vsplit_window_preferred_function): Move those vars to window.el.
14069 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14070 (Fdisplay_buffer): Move those functions to window.el.
14071 (syms_of_window): Remove corresponding declarations.
14072 (display_buffer): New function.
14073 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14074 * dispnew.c (Flast_nonminibuf_frame): New function.
14075 * buffer.c (Fpop_to_buffer): Move to window.el.
14076
140772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14078
14079 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14080
140812008-06-05 Kenichi Handa <handa@m17n.org>
14082
14083 * coding.c (detect_coding): Fix previous change.
14084 (detect_coding_system): Likewise.
14085
140862008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14087
14088 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14089
14090 * keymap.c (Vminibuffer_local_filename_must_match_map):
14091 Rename from Vminibuffer_local_must_match_filename_map.
14092 (syms_of_keymap):
14093 * minibuf.c (Fcompleting_read): Adjust accordingly.
14094 * commands.h: Rename declaration as well.
14095
140962008-06-05 Kenichi Handa <handa@m17n.org>
14097
14098 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14099 family name.
14100 (Ffont_put): Likewise.
14101
14102 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14103 current font-spec.
14104
14105 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14106 is unspecified.
14107
14108 * xfaces.c (realize_x_face): If the font-related face attributes
14109 are the same as those of default face, realize a new fontset from
14110 default->fontset.
14111 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14112
141132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14114
14115 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14116 (move_it_in_display_line): New wrapper.
14117
14118 * window.c (window_scroll_pixel_based_preserve_x)
14119 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14120 (window_scroll_pixel_based, window_scroll_line_based):
14121 Use them to preserve column positions.
14122 (syms_of_window): Initialize them.
14123
14124 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14125 (HPOS . VPOS) pair.
14126
14127 * dispextern.h (move_it_in_display_line): Declare.
14128
141292008-06-05 Juanma Barranquero <lekktu@gmail.com>
14130
14131 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14132 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14133 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14134
141352008-06-04 Juanma Barranquero <lekktu@gmail.com>
14136
14137 * window.c (Fset_window_parameter): Doc fix.
14138 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14139
141402008-06-04 Joakim Verona <joakim@verona.se>
14141
14142 * window.h (struct window): Add new member window_parameters.
14143
14144 * window.c (Fwindow_parameters, Fwindow_parameter)
14145 (Fset_window_parameter): New defuns.
14146 (syms_of_window): Defsubr the new defuns.
14147 (make_window): Initialize window_parameters to nil.
14148
141492008-06-04 John Paul Wallington <jpw@pobox.com>
14150
14151 * eval.c (Fdefmacro): Doc fix.
14152
141532008-06-04 Kenichi Handa <handa@m17n.org>
14154
14155 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14156 Be sure to call setup_coding_system when we find a proper coding system.
14157 (detect_coding_system): Fix handling of coding->head_ascii.
14158
141592008-06-03 Andreas Schwab <schwab@suse.de>
14160
14161 * font.c (font_prop_validate_spacing): Fix last change.
14162
141632008-06-03 Kenichi Handa <handa@m17n.org>
14164
14165 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14166 (font_parse_fcname): Fix handling of unknown key.
14167
14168 * xfont.c (xfont_list): Try an alias.
14169
14170 * charset.c (char_charset): Return NULL if the arg charset_list is
14171 specified and C doesn't belong to any of them.
14172
141732008-06-02 Chip Coldwell <coldwell@redhat.com>
14174
14175 * font.c (font_pixel_size): Don't take cdr of an integer.
14176
141772008-06-02 Jim Meyering <meyering@redhat.com>
14178
14179 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14180 * alloc.c (xfree): Return right away for a NULL arg.
14181 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14182 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14183 * mac.c (create_apple_event_from_event_ref): Likewise.
14184 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14185 Likewise.
14186 * doprnt.c (doprnt1): Likewise.
14187 * frame.c (frame): Likewise.
14188 * keyboard.c (wipe_kboard): Likewise.
14189 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14190 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14191 * term.c (tty_default_color_capabilities, maybe_fatal)
14192 (delete_tty): Likewise.
14193 * w16select.c (string): Likewise.
14194 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14195 * w32bdf.c (w32_free_bdf_font): Likewise.
14196 * w32fns.c (w32_unload_font): Likewise.
14197 * w32font.c (w32font_close): Likewise.
14198 * window.c (size_window): Likewise.
14199 * xselect.c (receive_incremental_selection): Likewise.
14200 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14201 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14202 * w32.c (stat): Likewise.
14203
14204 Remove useless if-before-free tests.
14205 * editfns.c (Fset_time_zone_rule): Likewise.
14206 * lread.c (nosuffix): Likewise.
14207 * ralloc.c (get_bloc): Likewise.
14208 * regex.c (reg_free): Likewise.
14209 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14210 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14211 * xsmfns.c (smc_save_yourself_CB): Likewise.
14212
142132008-06-02 Kenichi Handa <handa@m17n.org>
14214
14215 * font.c (font_find_for_lface): Handle float font size.
14216 (font_open_for_lface): Likewise.
14217
14218 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14219 comparing the properties.
14220
142212008-06-01 Jason Rumney <jasonr@gnu.org>
14222
14223 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14224 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14225 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14226 Don't add empty script list.
14227 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14228
142292008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14230
14231 * Makefile.in (dot, dotdot): Remove, update users.
14232 ".." has been used elsewhere in the file for a long time.
14233 (LIBXT_STATIC): Remove conditional based on unused variable.
14234
142352008-06-01 Miles Bader <miles@gnu.org>
14236
14237 * xfaces.c (Vface_remapping_alist): New variable.
14238 (syms_of_xfaces): Initialize it.
14239 (enum named_merge_point_kind): New type.
14240 (struct named_merge_point): Add `named_merge_point_kind' field.
14241 (push_named_merge_point): Make cycle detection respect different
14242 named-merge-point kinds.
14243 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14244 Remove face-name alias resolution.
14245 (lface_from_face_name): New definition using
14246 `lface_from_face_name_no_resolve'.
14247 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14248 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14249 (get_lface_attributes): New definition that layers face-remapping on
14250 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14251 (lookup_basic_face): New function.
14252 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14253 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14254 `get_lface_attributes'.
14255 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14256 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14257 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14258
14259 * xdisp.c (init_iterator): Pass base_face_id through
14260 `lookup_basic_face' when we actually use it as a face-id.
14261 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14262 DEFAULT_FACE_ID.
14263
14264 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14265 lookup the initial face-id.
14266
14267 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14268
142692008-06-01 Juanma Barranquero <lekktu@gmail.com>
14270
14271 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14272 (Fremove_text_properties): Fix typos in docstrings.
14273
142742008-05-31 Kenichi Handa <handa@m17n.org>
14275
14276 * font.c (font_list_entities): Fix the car part of data to be
14277 stored in the cache.
14278
14279 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14280
142812008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14282
14283 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14284 Add a `test' argument so another predicate than `equal' can be used.
14285 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14286 (map_char_table): Remove unused vars `c' and `i'.
14287 * lisp.h (Foptimize_char_table): Adjust declaration.
14288 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14289
142902008-05-30 Kenichi Handa <handa@m17n.org>
14291
14292 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14293 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14294 defined.
14295
142962008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14297
14298 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14299 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14300 frame-local settings for the same variable.
14301
143022008-05-30 Kenichi Handa <handa@m17n.org>
14303
14304 * fontset.c (Ffont_info): Move to font.c.
14305 (syms_of_fontset): Delete defsubr of Sfont_info.
14306
14307 * font.c (font_style_to_value, font_score): Delete casting of the
14308 args to xstcasecmp.
14309 (register_font_driver): Increment num_font_drivers only when
14310 registering the driver globally.
14311 (Ffont_info): Move from fontset.c. Handle a font object too.
14312 (syms_of_font): Defsubr Sfont_info.
14313
143142008-05-29 Kenichi Handa <handa@m17n.org>
14315
14316 * coding.h (enum define_coding_utf8_arg_index): New enum.
14317 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14318 coding_attr_utf_bom.
14319 (enum utf_bom_type): Rename from utf_16_bom_type.
14320 (struct utf_16_spec): Adjust for the above change.
14321 (struct coding_system): Add utf_8_bom in `spec' union.
14322
14323 * coding.c (CODING_UTF_8_BOM): New macro.
14324 (enum coding_category): Delete coding_category_utf_8, add
14325 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14326 coding_category_utf_8_sig.
14327 (CATEGORY_MASK_UTF_8): Delete it.
14328 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14329 (CATEGORY_MASK_UTF_8_SIG): New macros.
14330 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14331 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14332 CATEGORY_MASK_UTF_8_SIG.
14333 (CATEGORY_MASK_UTF_8): New macro.
14334 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14335 (detect_coding_utf_8): Check BOM.
14336 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14337 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14338 (encode_coding_utf_16): Likewise.
14339 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14340 (detect_coding, detect_coding_system): Handle utf-8-auto.
14341 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14342 (syms_of_coding): Fix setting up of Vcoding_category_table.
14343
143442008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14345
14346 * process.c (Faccept_process_output): If `millisec' is non-nil,
14347 `seconds' default to 0.
14348 (wait_reading_process_output): Also return non-nil if we read output
14349 from a non-running process.
14350
143512008-05-29 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14354 `raster' specified.
14355 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14356 in the uniscribe backend, but disallow any font that has no
14357 unicode subrange support.
14358
143592008-05-29 Juanma Barranquero <lekktu@gmail.com>
14360
14361 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14362 Fix typos in docstrings.
14363
143642008-05-29 Kenichi Handa <handa@m17n.org>
14365
14366 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14367 (Fx_family_fonts): Set frame correctly.
14368
143692008-05-28 Jason Rumney <jasonr@gnu.org>
14370
14371 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14372
143732008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14374
14375 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14376 calling build_annotations.
14377
143782008-05-28 Juanma Barranquero <lekktu@gmail.com>
14379
14380 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14381 (Fencode_coding_string):
14382 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14383 <latin-extra-code-table>: Fix typos in docstrings.
14384 (syms_of_coding) <coding-system-alist>: Doc fix.
14385 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14386
143872008-05-28 Kenichi Handa <handa@m17n.org>
14388
14389 * fontset.c (Ffont_info): Don't call font_close_object.
14390
14391 * font.c (font_parse_family_registry): Use Ffont_put to validate
14392 foundry and family.
14393 (font_delete_unmatched): Don't check spacing.
14394 (font_list_entities): Add spacing to the spec to list fonts.
14395
14396 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14397 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14398
14399 * coding.c (encode_coding_raw_text): Fix previous change.
14400 (encode_coding_object): When the dst_object is a buffer and is
14401 different from src_object, move gap to PT.
14402
144032008-05-27 Chong Yidong <cyd@stupidchicken.com>
14404
14405 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14406
144072008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14408
14409 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14410 all branches. Compute it differently.
14411
14412 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14413
144142008-05-27 Juanma Barranquero <lekktu@gmail.com>
14415
14416 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14417 into "else if () ... else ...".
14418
144192008-05-27 Jason Rumney <jasonr@gnu.org>
14420
14421 * w32font.c (w32font_open_internal): Determine if glyph indices
14422 are likely to work here.
14423
144242008-05-27 Chong Yidong <cyd@stupidchicken.com>
14425
14426 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14427 draw overlap glyphs with appropriate highlighting.
14428
144292008-05-27 Kenichi Handa <handa@m17n.org>
14430
14431 * xfont.c (xfont_open): Fix calculation of font->average_width.
14432
144332008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14434
14435 * casefiddle.c (casify_object): Try to guess better whether the
14436 argument is a byte or a char.
14437
144382008-05-26 Andreas Schwab <schwab@suse.de>
14439
14440 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14441 Always send multiples of format size.
14442
14443 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14444
144452008-05-26 Jason Rumney <jasonr@gnu.org>
14446
14447 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14448 (compute_metrics): Don't set failure if we just cleared the cache.
14449 (w32_weight_table): Remove unused variable.
14450 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14451 backwards compatibility.
14452
144532008-05-25 Kenichi Handa <handa@m17n.org>
14454
14455 * w32term.c (x_draw_glyph_string):
14456 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14457
14458 * xfaces.c: Delete unused function prototypes.
14459 (xstrlwr, font_frame): Delete them.
14460 (clear_face_cache): Delete unused variable.
14461
14462 * xftfont.c (xftfont_open): Delete unused variable.
14463 If underline_thickness is not 1, adjust underline_position.
14464
14465 * ftxfont.c (ftxfont_open): Delete unused variable.
14466
14467 * fontset.c (face_for_char): Optimize for the case of no charset
14468 property.
14469
14470 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14471 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14472 (otf_open, font_otf_capability, generate_otf_features)
14473 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14474 Comment out by surrounding "#if 0" and "#endif" for the moment.
14475 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14476 (syms_of_font): Codes for accessing above commented out.
14477
144782008-05-24 Eli Zaretskii <eliz@gnu.org>
14479
14480 * w32proc.c: Include dispextern.h.
14481
14482 * w32.c: Include dispextern.h.
14483
144842008-05-23 Juanma Barranquero <lekktu@gmail.com>
14485
14486 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14487 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14488 Fix typos in docstrings.
14489
144902008-05-23 Jason Rumney <jasonr@gnu.org>
14491
14492 * xsmfns.c: Remove includes that are already included by config.h.
14493
144942008-05-23 Kenichi Handa <handa@m17n.org>
14495
14496 * charset.c (Qemacs, charset_emacs): New variables.
14497 (char_charset): Fix for non-Unicode characters.
14498 (syms_of_charset): Define charset_emacs.
14499
14500 * w32term.c (x_draw_glyph_string): Be sure to update
14501 s->underline_thickness and s->underline_position. Be sure to draw
14502 underline within the current line area.
14503
14504 * xterm.c (x_draw_glyph_string): Be sure to update
14505 s->underline_thickness and s->underline_position. Be sure to draw
14506 underline within the current line area.
14507
14508 * fontset.c: Delete unused variables and add casting for char *
14509 throughout the file.
14510 (fontset_font): Try the fallback fonts of the current fontset
14511 before consulting the default fontset.
14512
14513 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14514
14515 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14516
145172008-05-22 Jason Rumney <jasonr@gnu.org>
14518
14519 * font.c: Don't include strings.h.
14520
14521 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14522
14523 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14524 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14525 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14526 to call xstrcasecmp.
14527
14528 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14529
14530 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14531
14532 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14533
14534 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14535
145362008-05-22 Kenichi Handa <handa@m17n.org>
14537
14538 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14539
14540 * font.c (font_prop_validate_style): Adjust for the format
14541 change of font_style_table.
14542
14543 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14544 two args.
14545
14546 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14547 two args.
14548
145492008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 * minibuf.c (keys_of_minibuf): Delete.
14552 * lisp.h (keys_of_minibuf): Delete.
14553 * emacs.c (main): Don't call keys_of_minibuf.
14554
145552008-05-22 Kenichi Handa <handa@m17n.org>
14556
14557 * ftfont.c (ftfont_resolve_generic_family): Rename from
14558 ftfont_list_generic_family. Return a single family for each
14559 generic family.
14560 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14561 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14562 Call font_add_log.
14563 (ftfont_match): Call font_add_log.
14564
14565 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14566 (FONT_DEBUG): Define it.
14567 (font_add_log): Extern it.
14568 (font_assert): Rename from xassert.
14569
14570 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14571 (xfont_list_family): Call font_add_log.
14572 (xfont_match): Likewise.
14573 (memq_no_quit): Delete.
14574
14575 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14576 call of Ffont_xlfd_name.
14577
14578 * xfaces.c (struct table_entry, slant_table, weight_table)
14579 (swidth_table): Move to font.c.
14580
14581 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14582 xassert are changed to font_assert. Delete many unused variables.
14583 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14584 New variables.
14585 (struct table_entry): Move from xfaces.c and modified.
14586 (weight_table, slant_table, width_table): Move from xfaces.c and
14587 contents adjusted for the change of struct table_entry.
14588 (font_style_to_value, font_style_symbolic): Adjust for the
14589 format change of font_style_table.
14590 (font_parse_family_registry): Don't overwrite existing foundry and
14591 family of font_spec.
14592 (font_score): Fix calculation of diff for sizes.
14593 (font_sort_entites): Call font_add_log.
14594 (font_delete_unmatched): Return a newly created list.
14595 (font_list_entities): Fix previous change. Call font_add_log.
14596 (font_matching_entity, font_open_entity, font_close_entity):
14597 Call font_add_log.
14598 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14599 (Finternal_set_font_style_table): Delete.
14600 (BUILD_STYLE_TABLE): New macro.
14601 (build_style_table): New function.
14602 (Vfont_log, font_log_env_checked): New variables.
14603 (font_add_log): New function.
14604 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14605 Declare Lisp variables "font-weight-table", "font-slant-table",
14606 "font-width-table", and "font-log". Initialize font_style_table.
14607
146082008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14609
14610 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14611
146122008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14613 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14614
14615 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14616 (Vframe_alpha_lower_limit): New variable.
14617 (x_set_alpha): New function.
14618
14619 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14620
14621 * xfns.c (x-create-frame, Qalpha):
14622 Initialize the frame parameter `alpha'.
14623 * xterm.c (OPAQUE, OPACITY): New.
14624 (x_set_frame_alpha): New function.
14625 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14626
14627 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14628 * w32fns.c (w32_frame_parm_handlers): Likewise.
14629
146302008-05-20 Jason Rumney <jasonr@gnu.org>
14631
14632 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14633 truetype fonts to opentype list.
14634
146352008-05-20 Juanma Barranquero <lekktu@gmail.com>
14636
14637 * fontset.c (Ffontset_info): Doc fix.
14638 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14639 <ignore-relative-composition>: Fix typos in docstrings.
14640
14641 * font.c (syms-of-font) <font-encoding-alist>:
14642 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14643 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14644 (Ffont_otf_alternates): Doc fixes.
14645
146462008-05-20 Kenichi Handa <handa@m17n.org>
14647
14648 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14649 font.h through out the file.
14650 (FONT_DRIVERS): Rename from FONTOBJ.
14651 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14652 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14653
14654 * emacs.c (main): Call syms_of_font unconditionally.
14655
14656 * font.h (find_font_encoding): Extern it.
14657
14658 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14659 fontset.c.
194d44e7 14660 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14661 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14662 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14663 only when HAVE_WINDOW_SYSTEM is defined.
14664 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14665 when HAVE_WINDOW_SYSTEM is defined.
14666
14667 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14668 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14669
14670 * xfaces.c: Include font.h unconditionally.
14671 (merge_face_ref, merge_face_vectors)
14672 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14673
146742008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14675
14676 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14677 indirect_variable.
14678 * eval.c (lisp_indirect_variable): New fun.
14679 (Fuser_variable_p): Use it.
14680
146812008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14682
14683 * lisp.h (indirect_variable):
14684 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14685 Use Lisp_Symbol pointers rather than Lisp_Object.
14686 Adjust callers.
14687 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14688 To this end, change calling-convention.
14689
14690 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14691 if some non-hidden buffers are selected by string&pred.
14692
146932008-05-19 Chong Yidong <cyd@stupidchicken.com>
14694
14695 * process.c (wait_reading_process_output): Always check status
14696 when in batch mode.
14697
146982008-05-19 Kenichi Handa <handa@m17n.org>
14699
14700 * font.c (font_list_entities): Fix handling of cache.
14701 (font_matching_entity): Likewise.
14702
14703 * ftfont.c (cs_iso8859_1): Delete.
14704 (ft_face_cache): New variable.
14705 (struct ftfont_info): New member fc_charset_idx.
14706 (ftfont_build_basic_charsets): Delete.
14707 (fc_charset_table): New variable.
14708 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14709 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14710 Callers changed.
14711 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14712 (ftfont_spec_pattern): New argument fc_charset_idx.
14713 Check registry more rigidly. Change callers.
14714 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14715 change of :font-entity property of the font.
14716
14717 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14718 property of the font.
14719
147202008-05-18 Juanma Barranquero <lekktu@gmail.com>
14721
14722 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14723 (Funencodable_char_position, Fcheck_coding_systems_region)
14724 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14725 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14726 (Ffind_operation_coding_system, Fset_coding_system_priority)
14727 (Fcoding_system_eol_type): Doc fixes.
14728
147292008-05-17 Glenn Morris <rgm@gnu.org>
14730
14731 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14732
147332008-05-16 Eli Zaretskii <eliz@gnu.org>
14734
14735 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14736 and st_gid.
14737
14738 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14739 HAVE_WINDOW_SYSTEM is not defined.
14740
14741 * xfaces.c (merge_face_ref, merge_face_vectors)
14742 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14743 HAVE_WINDOW_SYSTEM is defined.
14744 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14745
147462008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14747
14748 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14749
147502008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14751
14752 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14753
147542008-05-15 Kenichi Handa <handa@m17n.org>
14755
14756 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14757 preference.
14758
147592008-05-15 Glenn Morris <rgm@gnu.org>
14760
14761 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14762
147632008-05-15 Chong Yidong <cyd@stupidchicken.com>
14764
14765 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14766 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14767
14768 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14769
147702008-05-15 Kenichi Handa <handa@m17n.org>
14771
14772 * ftfont.c (ftfont_list): Downcase family name to check generic
14773 families.
14774
14775 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14776 font-spec for QCfont value.
14777
14778 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14779 buffer. Check the return value of it.
14780
147812008-05-14 Jason Rumney <jasonr@gnu.org>
14782
14783 * w32term.c (w32_get_glyph_overhangs): Remove.
14784 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14785
147862008-05-14 Kenichi Handa <handa@m17n.org>
14787
14788 * font.c (font_prop_validate): Make nil a valid value.
14789 (font_clear_cache): Check if the cached vector of entities is nil
14790 or not.
14791
147922008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14793
14794 * emacs.c (main_thread): Conditionalize on
14795 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14796 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14797
14798 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14799 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14800 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14801
148022008-05-14 Kenichi Handa <handa@m17n.org>
14803
14804 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14805 has no corresponding coding system.
14806
148072008-05-14 Jason Rumney <jasonr@gnu.org>
14808
14809 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14810
14811 * w32font.h (w32font_open_internal): Update declaration.
14812
14813 * w32font.c (w32font_open_internal): Change last argument from
14814 w32font_info struct to font object. Fill in font object from
14815 font_entity. Get Outline metrics if possible. Use them to
14816 calculate underline position and thickness. Use xlfd name as name
14817 property. Don't set codepage.
14818 (w32font_open): Pass font_object to w32font_open_internal. Don't
14819 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14820 (w32font_draw): Use s->font.
14821 (clear_cached_metrics): Don't clear non-existent blocks.
14822
14823 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14824 font was not found.
14825 (x_draw_glyph_string): Use underline position and thickness from font.
14826
14827 * w32uniscribe.c (uniscribe_open): Pass font_object to
14828 w32font_open_internal.
14829
148302008-05-14 Kenichi Handa <handa@m17n.org>
14831
14832 These changes are to delete all legacy font-handling codes, and
14833 make Emacs use only font-backends.
14834
14835 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14836 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14837
14838 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14839
14840 * charset.h (Vcharset_non_preferred_head)
14841 (Vcurrent_iso639_language): Extern them.
14842
14843 * charset.c (Vcharset_non_preferred_head): New variable.
14844 (Vcurrent_iso639_language): New variable.
14845 (syms_of_charset): Declare it as a Lisp variable.
14846 (char_charset): Don't check non preferred charsets. As a last
14847 resort, return charset_unicode.
14848 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14849
14850 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14851 conditionals. Don't check enable_font_backend. Delete all codes
14852 used only when USE_FONT_BACKEND is not defined.
14853
14854 * dispextern.h (struct glyph_string): Change type of `font' to
14855 `struct font *'.
14856 (struct glyph_string): New member underline_position and
14857 underline_thickness.
14858 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14859 (struct face): Change type of `font' to `struct font *'. Remove
14860 members `font_name', `font_info_id'.
14861 (per_char_metric, encode_char): Delete externs.
14862 (calc_pixel_width_or_height): Adjust the prototype.
14863
14864 * emacs.c (enable_font_backend): Delete extern.
14865 (main): Don't set enable_font_backend. Don't check the command
14866 line argument "-disable-font-backend".
14867
14868 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14869 (enum font_property_index): New members FONT_DPI_INDEX,
14870 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14871 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14872 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14873 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14874 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14875 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14876 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14877 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14878 (struct font_spec, struct font_entity): New structs.
14879 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14880 (struct font): Many members from old "struct font_info" moved to
14881 here. Members font and entity deleted.
14882 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14883 the new font-related objects.
14884 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14885 (CHECK_FONT_GET_OBJECT): Likewise.
14886 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14887 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14888 (struct font_driver): New members case_sensitive anc check. Type
14889 of the member list and open changed.
14890 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14891 (font_symbolic_width, font_find_object, font_get_spec)
14892 (font_set_lface_from_name): Delete extern.
14893 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14894
14895 * font.c: Include <strings.h>.
14896 (enable_font_backend): Delete it.
14897 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14898 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14899 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14900 (null_string): Delete it.
14901 (null_vector): Make it static.
14902 (font_family_alist): Delete it.
14903 (Qnormal): Extern it.
14904 (QCextra, QClanguage): Delete it.
14905 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14906 (font_make_spec, font_make_entity, font_make_object)
14907 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14908 the string. Callers changed.
14909 (font_pixel_size): Adjusted for the format change of font-related
14910 objects.
14911 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14912 (font_style_to_value, font_style_symbolic): New function.
14913 (build_font_family_alist): Delete it.
14914 (font_registry_charsets): Use Fassoc_string instead of
14915 assq_no_quit.
14916 (font_prop_validate_symbol): Don't return null_string.
14917 (font_prop_validate_style): Adjusted for the change of
14918 style-related values in a font vector.
14919 (font_property_table): Delete entries for QClanguage and
14920 QCantialias, add entries for QCavgwidth.
14921 (get_font_prop_index): Delete the 2nd argument FROM.
14922 (font_prop_validate): Arguments changed.
14923 (font_put_extra): Adjusted for the change of font-related objects.
14924 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14925 (font_parse_fcname, font_unparse_fcname)
14926 (font_prepare_composition): Likewise.
14927 (font_parse_family_registry): Renamed from font_merge_old_spec.
14928 (otf_open): Delete the 1st arg entity.
14929 (font_otf_capability): Adjusted for the above change.
14930 (font_score): New arg alternate_families. Adjusted for the change
14931 of font-related objects.
14932 (font_sort_entites): New arg best_only.
14933 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14934 Delete them.
14935 (font_match_p): Check alternate families.
14936 (font_find_object): Delete it.
14937 (font_check_object): New function.
14938 (font_clear_cache): Adjusted for the change of font-related objects.
14939 (font_delete_unmatched): New arg.
14940 (font_list_entities): Call font_driver->list with a spec that
14941 doesn't specify style-related properties.
14942 (font_matching_entity): Arguments changed. Caller changed.
14943 (font_open_entity): Adjusted for the change of font-related objects.
14944 (font_close_object, font_has_char, font_encode_char)
14945 (font_get_name, font_get_spec): Likewise.
14946 (font_spec_from_name, font_clear_prop, font_update_lface):
14947 New functions.
14948 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14949 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14950 (font_at): Adjusted for the change of font-related objects.
14951 (font_range): New function.
14952 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14953 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14954 (Fcopy_font_spec, Fmerge_font_spec): New function.
14955 (Ffont_family_list): Renamed from list-families.
14956 (Finternal_set_font_style_table): Arguments changed.
14957 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14958 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14959 change of font-related objects.
14960 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14961
14962 * fontset.h (struct font_info): Delete it. Most members go to
14963 struct font.
14964 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14965 (enum FONT_SPEC_INDEX): Delete it.
14966 (font_info, list_fonts_func, load_font_func, query_font_func)
14967 (set_frame_fontset_func, find_ccl_program_func)
14968 (get_font_repertory_func, new_fontset_from_font_name): Delete
14969 externs.
14970 (fontset_from_font_name): Extern it.
14971 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14972 (FONT_INFO_FROM_FACE): Deleted.
14973 (face_for_font): Adjust prototype.
14974
14975 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14976 conditionals. Don't check enable_font_backend. Delete all codes
14977 used only when USE_FONT_BACKEND is not defined.
14978 (get_font_info_func, list_font_func, load_font_func)
14979 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14980 (get_font_repertory_func): Delete them.
14981 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14982 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14983 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14984 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14985 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14986 (fontset_compare_rfontdef): New function.
14987 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14988 rfont-defs by qsort. Adjusted for the change of font-group vector.
14989 (load_font_get_repertory): Deleted.
14990 (fontset_find_font): Use new macros to ref/set elements of
14991 font-def and rfont-def.
14992 (fontset_font): Fix the timing of remembering that no font for C.
14993 (free_face_fontset): Do nothing if the face has no fontset.
14994 (face_suitable_for_char_p): Use new macros to ref/set elements of
14995 rfont-def.
14996 (face_for_char): Likewise. Call face_for_char with font_object.
14997 (fs_load_font): Delete. Delete #pragma surrounding it.
14998 (fs_query_fontset): Use strcasecmp instead of strcmp.
14999 (generate_ascii_font_name): Adjusted for the format change of
15000 font-spec.
15001 (Fset_fontset_font): Likewise. Use new macros to set elements of
15002 font-def.
15003 (Fnew_fontset): Use font_unparse_xlfd to generate
15004 FONTSET_ASCII (fontset).
15005 (new_fontset_from_font_name): Deleted.
15006 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15007 a fontset is already created for the font. FIx updating of
15008 Vfontset_alias_alist.
15009 (fontset_ascii_font): Deleted.
15010 (Ffont_info): Adjusted for the format change of font-spec.
15011 (Finternal_char_font): Likewise.
15012 (Ffontset_info): Likewise.
15013 (syms_of_fontset): Don't check load_font_func.
15014
15015 * fns.c (internal_equal): Handle PREV_FONT.
15016
15017 * frame.h: Delete USE_FONT_BACKEND conditional.
15018
15019 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15020 conditionals. Don't check enable_font_backend. Delete all codes
15021 used only when USE_FONT_BACKEND is not defined.
15022 (x_set_font): Call x_new_font, not x_new_fontset2.
15023 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15024 already set for the frame.
15025
15026 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15027 a font-entity by font_make_entity. Use font_intern_prop instead
15028 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15029 font property. If a font is scalable, set avgwidth property to 0.
15030 Set font-entity property by font_put_extra.
15031 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15032 (ffont_driver): Adjusted for the change of struct font_driver.
15033 (ftfont_spec_pattern): New function.
15034 (ftfont_list): Return a list, not vector.
15035 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15036 (ftfont_list_family): Don't downcase names.
15037 (ftfont_free_entity): Deleted.
15038 (ftfont_open): Return a font-object. Adjusted for the change of
15039 struct font. Get underline_thickness and underline_position from
15040 font property. Don't update dpyinfo->smallest_font_height and
15041 dpyinfo->smallest_char_width.
15042 (ftfont_close): Don't free `struct font'.
15043 (ftfont_has_char): Adjusted for the format change of font-entity.
15044 (ftfont_encode_char, ftfont_text_extents): Likewise.
15045
15046 * ftxfont.c (ftxfont_list): Return a list, not vector.
15047 (ftxfont_open): Return a font-object. Adjusted for the change of
15048 struct font. Get underline_thickness and underline_position from
15049 font property. Don't update dpyinfo->smallest_font_height and
15050 dpyinfo->smallest_char_width.
15051 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15052 (ftxfont_draw): Adjusted for the change of struct font.
15053
15054 * image.c (image_ascent): Don't include "charset.h". Include
15055 "character.h" and "font.h".
15056
15057 * lisp.h (enum pvec_type): New member PREV_FONT.
15058 (Fassoc_string): EXFUN it.
15059
15060 * print.c: Include font.h.
15061 (print_object): Handle font-related objects.
15062
15063 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15064 conditionals. Don't check enable_font_backend. Delete all codes
15065 used only when USE_FONT_BACKEND is not defined.
15066 (handle_auto_composed_prop): Do nothing if it->f is not on a
15067 window system. Check how many following characters can be
15068 displayed by the same font.
15069 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15070 'struct font *'.
15071 (get_char_face_and_encoding): Assign the whole encoding task to
15072 the `encode-char' method of a font driver.
15073 (fill_composite_glyph_string): Adjusted for the change of `struct
15074 face' and `struct glyph_string'.
15075 (fill_glyph_string): Likewise.
15076 (get_per_char_metric): Arguments changed.
15077 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15078 and `struct glyph_string'.
15079 (produce_stretch_glyph, calc_line_height_property)
15080 (x_produce_glyphs): Likewise.
15081
15082 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15083 conditionals. Don't check enable_font_backend. Delete all codes
15084 used only when USE_FONT_BACKEND is not defined. Use
15085 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15086 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15087 (Qp): Extern them.
15088 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15089 Deleted.
15090 (struct font_name): Deleted.
15091 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15092 (compare_fonts_by_sort_order): New function.
15093 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15094 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15095 Deleted.
15096 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15097 compare_fonts_by_sort_order.
15098 (Fx_font_family_list): Call Ffont_family_list.
15099 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15100 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15101 (face_symbolic_slant, face_symbolic_swidth)
15102 (split_font_name_into_vector, build_font_name_from_vector)
15103 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15104 (font_rescale_ratio, split_font_name, build_font_name)
15105 (free_font_names, sort_fonts, x_face_list_fonts)
15106 (face_font_available_p, sorted_font_list, cmp_font_names)
15107 (font_list_1, concat_font_list, font_list, remove_duplicates):
15108 Deleted.
15109 (Fx_list_fonts): Use Ffont_list.
15110 (LFACE_AVGWIDTH): Deleted.
15111 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15112 by FONTP.
15113 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15114 (set_lface_from_font_name): Delete it.
15115 (set_lface_from_font): Renamed from
15116 set_lface_from_font_and_fontset. Caller changed. Don't set
15117 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15118 for face.
15119 (merge_face_vectors): Copy font-spec if necessary.
15120 Clear properties of the font-spec if necessary.
15121 (merge_face_ref): Clear properties of the font-spec if necessary.
15122 (Finternal_set_lisp_face_attribute): Likewise.
15123 (set_font_frame_param): Use font_load_for_lface to load a
15124 font-object, and call Fmodify_frame_parameters with it.
15125 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15126 font name by Ffont_xlfd_name.
15127 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15128 QCslant, and QCwidth.
15129 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15130 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15131 Compare fonts by EQ.
15132 (lookup_non_ascii_face): Deleted.
15133 (face_for_font): The 2nd argument changed.
15134 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15135 Check atomic font properties by case insensitive.
15136 (realize_non_ascii_face): Set face->overstrike correctly.
15137 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15138 (dump_realized_face): Get font name from
15139 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15140
15141 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15142 conditionals. Don't check enable_font_backend. Delete all codes
15143 used only when USE_FONT_BACKEND is not defined.
15144 (xic_create_xfontset): Original code deleted and renamed from
15145 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15146 (x_make_gc): Don't set GCFont in GCs.
15147 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15148 opened by "fixed".
15149 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15150 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15151 get_font_repertory_func.
15152
15153 * xfont.c: Include <stdlib.h> and "ccl.h".
15154 (struct xfont_info): New structure.
15155 (xfont_query_font): Deleted.
15156 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15157 moved from xterm.c.
15158 (xfont_driver): Adjusted for the change of struct font_driver.
15159 (compare_font_names): New function.
15160 (xfont_list_pattern): Sort font names case insensitively. Make
15161 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15162 (xfont_list): Return a list, not vector.
15163 (xfont_match): If the font doesn't have QCname property, generate
15164 a name from the other font properties.
15165 (xfont_open): Return a font-object. Adjusted for the change of
15166 struct font. Get underline_thickness and underline_position from
15167 font property. Don't update dpyinfo->smallest_font_height and
15168 dpyinfo->smallest_char_width.
15169 (xfont_close): Don't free struct font.
15170 (xfont_prepare_face): Adjusted for the change of struct font.
15171 (xfont_done_face): Deleted.
15172 (xfont_has_char): Adjusted for the change of struct font.
15173 (xfont_encode_char, xfont_draw): Likewise.
15174 (xfont_check): New function.
15175
15176 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15177 callback function.
15178 (xftfont_match): Adjusted for the format change of font-entity.
15179 (xftfont_open): Adjusted for the format change of font-entity and
15180 font-object. Adjusted for the change of struct font. Return a
15181 font-object. Don't update dpyinfo->smallest_font_height and
15182 dpyinfo->smallest_char_width.
15183 (xftfont_close): Block input while calling XftFontClose.
15184 (xftfont_prepare_face): Don't block input while calling
15185 xftfont_get_colors. Adjusted for the change of struct font.
15186 (xftfont_shape): Return value of error case fixed.
15187
15188 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15189
15190 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15191 conditionals.
15192 (FONT_WIDTH): Return (f)->max_width.
15193 (struct x_display_info): Delete member `font'.
15194 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15195 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15196 (struct x_output): Change type of `font' to `struct font *'.
15197
15198 * xterm.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. Don't include ccl.h.
15201 (x_per_char_metric, x_encode_char): Deleted.
15202 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15203 (x_compute_glyph_string_overhangs): Adjusted for the change of
15204 `struct face'.
15205 (x_draw_glyph_string_foreground)
15206 (x_draw_composite_glyph_string_foreground): Likewise.
15207 (x_draw_glyph_string): Likewise. Use font->underline_position and
15208 font->underline_thickness.
15209 (x_new_font): Renamed from x_new_fontset2.
15210 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15211 (x_check_font): Call `check' method of a font driver.
15212 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15213 (x_query_font, x_get_font_repertory): Deleted.
15214 (x_find_ccl_program): Renamed and moved to xfont.c.
15215 (x_redisplay_interface): Adjusted for the change of `struct
15216 redisplay_interface'.
15217
15218 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15219 conditionals. Don't check enable_font_backend. Delete all codes
15220 used only when USE_FONT_BACKEND is not defined. Surround non-used
15221 code by "#ifdef OLD_FONT" and "endif".
15222 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15223
15224 * w32font.h (struct w32font_info): New member.
15225 (FONT_COMPAT): New macro.
15226 (w32font_open_internal): Prototype adjusted.
15227
15228 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15229 OLD_FONT" and "endif".
15230
15231 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15232 conditionals. Don't check enable_font_backend. Delete all codes
15233 used only when USE_FONT_BACKEND is not defined.
15234 (w32font_open): Return a font-object. Make a font-object by
15235 font_make_object. Adjusted for the change of struct w32font_info.
15236 (w32font_close): Don't free struct font. Adjusted for the change
15237 of struct w32font_info.
15238 (w32font_encode_char, w32font_text_extents, w32font_draw):
15239 Adjusted for the change of struct w32font_info.
15240 (w32font_draw): Likewise.
15241 (w32font_list_internal): Return a list, not vector.
15242 (w32font_open_internal): Change the 4th arg to font-object.
15243 Adjusted for the change of struct w32font_info and font-object format.
15244 (add_font_name_to_list): Don't downcase names.
15245 (w32_enumfont_pattern_entity): Make a font-entity by
15246 font_make_entity. Adjusted for the format change of font-entity.
15247 Use FONT_SET_STYLE to set a style-related font property. If a
15248 font is scalable, set avgwidth property to 0. Set font-entity
15249 property by font_put_extra.
15250 (font_matches_spec): Adjusted for the format change of font-entity.
15251 (w32_weight_table, w32_decode_weight): New variables.
15252 (w32_encode_weight): New function.
15253 (fill_in_logfont): Adjusted for the format change of font-spec.
15254 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15255 weight value.
15256 (w32font_driver): Adjusted for the change of struct font_driver.
15257
15258 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15259 conditionals. Don't check enable_font_backend. Surround non-used
15260 code by "#ifdef OLD_FONT" and "endif".
15261 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15262 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15263
15264 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15265 conditionals. Don't check enable_font_backend. Delete all codes
15266 used only when USE_FONT_BACKEND is not defined. Surround non-used
15267 code by "#ifdef OLD_FONT" and "endif".
15268
15269 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15270 (uniscribe_open): Return value changed to font-object.
15271 Adjusted for the format change of font-object.
15272 (uniscribe_otf_capability): Adjusted for the change of struct font.
15273 (add_opentype_font_name_to_list): Don't downcase names.
15274 (uniscribe_font_driver): Adjusted for the change of struct
15275 font_driver.
15276
152772008-05-13 Chong Yidong <cyd@stupidchicken.com>
15278
15279 * dispnew.c (update_frame_1): Check if tty output is still valid
15280 before flushing it.
15281
152822008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15283
15284 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15285 to Gtk+ menus.
15286
152872008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15288
15289 * dired.c (file_name_completion): Tweak the code so as to always do it
15290 in a single pass. Tighten the scope of some variables.
15291
15292 * dired.c (Qdefault_directory): New var.
15293 (file_name_completion): Use it instead of Fexpand_file_name.
15294 (syms_of_dired): Initialize it.
15295
152962008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15297
15298 * fileio.c (double_dollars): Remove dead code.
15299
153002008-05-10 Eli Zaretskii <eliz@gnu.org>
15301
15302 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15303 Mention w32-get-true-file-attributes in doc string.
15304
15305 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15306
153072008-05-09 Glenn Morris <rgm@gnu.org>
15308
15309 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15310 2008-04-23.
15311
153122008-05-09 Eli Zaretskii <eliz@gnu.org>
15313
15314 Support for reporting owner and group of each file on MS-Windows:
15315 * dired.c (stat_uname, stat_gname): New functions, with special
15316 implementation for w32.
15317 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15318
15319 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15320 (dflt_group_name): New static variable.
15321 (dflt_group): Rename from the_group.
15322 (init_user_info): Init dflt_group fields. Get user's group name
15323 from LookupAccountSid.
15324 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15325 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15326 New initialization states.
15327 (globals_of_w32): Initialize them to zero. Initialize the default
15328 group name to "None".
15329 (GetFileSecurity_Name): New global var, the name of the function
15330 to call for GetFileSecurity.
15331 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15332 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15333 (get_file_security, get_security_descriptor_owner)
15334 (get_security_descriptor_group, is_valid_sid)
15335 (get_file_security_desc, get_rid, get_name_and_id)
15336 (get_file_owner_and_group): New functions.
15337 (stat): Use get_file_security_desc and get_file_owner_and_group to
15338 report the owner and primary group of each file. Don't ignore the
15339 high 32 bits of file's size, now that st_size is 64-bit wide.
15340 Fix test when to get true file attributes.
15341 (init_user_info): Use get_rid instead of equivalent inline code.
15342 (fstat): Don't ignore the high 32 bits of file's size.
15343
153442008-05-09 Chong Yidong <cyd@stupidchicken.com>
15345
15346 * image.c (png_load): Use correct bit-depth for setting background
15347 color.
15348
153492008-05-08 Eli Zaretskii <eliz@gnu.org>
15350
15351 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15352 epa-hook.elc.
15353
153542008-05-08 Juanma Barranquero <lekktu@gmail.com>
15355
15356 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15357
153582008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15359
15360 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15361 because the original parameters are in pure storage now.
15362 (mac_window): Remove unused params. Update callers.
15363
153642008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15365
15366 * lread.c (substitute_object_recurse): Use lower-level primitives.
15367 Don't signal errors when traversing sub-char-tables.
15368 Don't loop over all the possible characters when traversing char-tables.
15369
15370 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15371 just like we do in print.c.
15372
153732008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15374
15375 * minibuf.c (Ftry_completion): Remove code left over from when we used
15376 scmp instead of Fcompare_strings.
15377
153782008-05-04 Juanma Barranquero <lekktu@gmail.com>
15379
15380 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15381
153822008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15383
15384 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15385 Create bitmap context in native byte order.
15386
15387 * macterm.c (XDrawLine)
15388 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15389 context in native byte order.
15390
153912008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15392
15393 * config.in: Regenerate.
15394
15395 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15396 New definitions for Image I/O support.
15397 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15398 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15399 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15400 (mac_data_provider_release_data, image_load_image_io)
15401 [USE_MAC_IMAGE_IO]: New functions.
15402 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15403 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15404 (init_image_func_pointer) [MAC_OSX]: Remove function.
15405 (image_load_quartz2d) [MAC_OSX]: Check availability of
15406 CGImageCreateWithPNGDataProvider at compile time.
15407 Use lowercase `false' for boolean constant.
15408 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15409 Use image_load_image_io.
15410 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15411 Don't check MyCGImageCreateWithPNGDataProvider.
15412 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15413 Don't call init_image_func_pointer.
15414
15415 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15416
15417 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15418 Make variable non-static.
15419 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15420 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15421
15422 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15423 (RED_FROM_ULONG): Mask off higher bits.
15424 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15425
15426 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15427 Include AvailabilityMacros.h.
15428 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15429 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15430
154312008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15432
15433 * chartab.c (Fset_char_table_range): If range is t, really set all
15434 chars to that value.
15435
154362008-05-03 Eli Zaretskii <eliz@gnu.org>
15437
15438 * dired.c (Ffile_attributes): Don't allow the device number become
15439 negative.
15440
154412008-05-02 Daiki Ueno <ueno@unixuser.org>
15442
15443 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15444
154452008-05-02 Juri Linkov <juri@jurta.org>
15446
15447 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15448 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15449 DEFAULT argument as a list of default values in docstrings.
15450
154512008-05-01 Chong Yidong <cyd@stupidchicken.com>
15452
15453 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15454
154552008-05-01 Martin Rudalics <rudalics@gmx.at>
15456
15457 * dispnew.c (change_frame_size_1): Preserve small windows when
15458 shrinking frames by calling set_window_height|width with third
15459 arg 2.
15460
15461 * window.h (struct window): Replace field too_small_ok by field
15462 resize_proportionally.
15463
15464 * window.c (make_window): Initialize resize_proportionally.
15465 (enlarge_window): Temporarily set resize_proportionally to make
15466 sure that shrink_windows does scale the window proportionally.
15467 (shrink_windows): When window has resize_proportionally set try
15468 to shrink it proportionally by stealing from other windows.
15469 (struct saved_window, Fset_window_configuration)
15470 (compare_window_configurations): Handle resize_proportionally.
15471 (WINDOW_TOTAL_SIZE): New macro.
15472 (window_min_size, shrink_windows, size_window): Use it.
15473 (check_min_window_sizes): Remove. Invalid values of
15474 window-min-height|width are handled by window_min_size_2 now.
15475 (size_window, Fsplit_window, enlarge_window)
15476 (adjust_window_trailing_edge, grow_mini_window): Don't call
15477 check_min_window_sizes.
15478 (window_min_size_2, window_min_size_1, window_min_size):
15479 New argument safe_p for retrieving "safe" minimum sizes.
15480 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15481 (adjust_window_trailing_edge, grow_mini_window):
15482 Adjust arguments of window_min_size... functions.
15483 (shrink_windows): Argument min_size removed. New argument
15484 safe_p allows shrinking windows to their safe minimum sizes.
15485 Calculate minimum size and decide whether a window shall be
15486 deleted for each window individually.
15487 (size_window): When nodelete_p equals 2, tell shrink_windows to
15488 delete windows only if their new minimum size is no more safe.
15489 (shrink_window_lowest_first): Call window_min_size_1 to make
15490 sure to preserve modeline of bottom-most window when resizing
15491 the minibuffer.
15492 (Fset_window_configuration, Fcurrent_window_configuration)
15493 (compare_window_configurations): Do not handle
15494 window-min-height|width any more.
15495 (syms_of_window): Clarify window-min-height|width doc-strings.
15496
154972008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15498
15499 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15500 some more. Copy some of the code from Ftry_completions.
15501 Remove special case code that dates back to initial revision when the
15502 slash was only added when necessary and that can't trigger nowadays.
15503
155042008-04-27 Kenichi Handa <handa@m17n.org>
15505
15506 * font.c (font_prop_validate): Signal `error' instead of `font'.
15507
155082008-04-29 Jason Rumney <jasonr@gnu.org>
15509
15510 * w32fns.c (Fw32_battery_status): New defun.
15511 (syms_of_w32fns): Defsubr it.
15512
155132008-04-28 Andreas Schwab <schwab@suse.de>
15514
15515 * dired.c (file_name_completion): Fix another mixing of encoded
15516 and decoded names.
15517
155182008-04-28 Juanma Barranquero <lekktu@gmail.com>
15519
15520 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15521
155222008-04-27 Juanma Barranquero <lekktu@gmail.com>
15523
15524 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15525
155262008-04-27 Andreas Schwab <schwab@suse.de>
15527
15528 * dired.c (file_name_completion): Fix inappropriate mixing of
15529 encoded and decoded names.
15530
15531 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15532
15533 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15534
155352008-04-26 Eli Zaretskii <eliz@gnu.org>
15536
15537 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15538 2008-03-31, it's not needed anymore with `struct stat' definition
15539 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15540 for the same reasons.
15541
155422008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15543
15544 * m/sparc.h: Additional redefinitions for GNU/Linux.
15545
155462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15547
15548 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15549 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15550 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15551 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15552 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15553 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15554 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15555 Likewise.
15556
15557 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15558 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15559 (mac_ax_number_of_characters): Add externs.
15560 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15561 [USE_MAC_TSM]: Likewise.
15562 (mac_handle_text_input_event) [MAC_OSX]:
15563 Handle kEventTextInputOffsetToPos for no active input area case.
15564 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15565 (mac_handle_document_access_event)
15566 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15567 (install_application_handler) [MAC_OSX]: Register handlers for
15568 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15569 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15570 Register mac_handle_document_access_event.
15571
15572 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15573 Make functions non-static.
15574
155752008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15576
15577 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15578 (read_file_name_completion_ignore_case, insert_default_directory)
15579 (Qdefault_directory): Move to minibuffer.el.
15580 (Fread_file_name): Call the new `read-file-name' instead.
15581
155822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15583
15584 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15585 Make function non-static.
15586 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15587 Remove function.
15588 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15589 Move to mactoolbox.c.
15590 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15591
15592 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15593 (mac_rect_make): New macro.
15594
15595 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15596 instead of float.
15597 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15598 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15599 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15600 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15601 CGRectMake.
15602 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15603 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15604 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15605 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15606 instead of WindowRef in argument type.
15607 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15608 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15609 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15610 instead of DISPLAY. All uses changed.
15611 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15612 (x_calc_absolute_position): Simplify so as not to use
15613 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15614
15615 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15616 instead of WindowRef in argument type.
15617 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15618 [TARGET_API_MAC_CARBON]: Remove externs.
15619 (create_apple_event, mac_event_parameters_to_lisp)
15620 [TARGET_API_MAC_CARBON]: Add externs.
15621
15622 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15623 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15624 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15625 is clicked.
15626 (x_activate_menubar): Remove extern for saved_menu_event_location.
15627 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15628 Move from mac.c.
15629
156302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15631
15632 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15633 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15634
156352008-04-23 Jason Rumney <jasonr@gnu.org>
15636
15637 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15638 attributes only for local files.
15639
15640 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15641 default to Qlocal.
15642
156432008-04-22 Juri Linkov <juri@jurta.org>
15644
15645 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15646 read-buffer-to-switch instead of using the letter "B".
15647
156482008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15649
15650 * fileio.c (Qdefault_directory): New variable.
15651 (Fread_file_name): Use it to pass `dir' to the completion functions.
15652
156532008-04-20 Chong Yidong <cyd@stupidchicken.com>
15654
15655 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15656
156572008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * keyboard.c (Vpre_help_message): Remove.
15660 (show_help_echo): Remove default C code.
15661
15662 * dired.c (directory_files_internal, file_name_completion):
15663 Only call ENCODE_FILE if the string is indeed decoded.
15664
156652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15666
15667 * Makefile.in (TOOLKIT_DEFINES): Remove.
15668 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15669
156702008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15671
15672 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15673 (mactoolbox.o): New target.
15674
15675 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15676 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15677
15678 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15679 Use mac_set_frame_window_background instead of XSetWindowBackground.
15680 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15681 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15682 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15683 instead of SetWindowTitleWithCFString.
15684 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15685 Move function to mactoolbox.c.
15686 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15687 Use mac_set_window_modified instead of SetWindowModified.
15688 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15689 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15690 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15691 FrontNonFloatingWindow. Use mac_activate_window instead of
15692 ActivateWindow. Use mac_active_non_floating_window instead of
15693 ActiveNonFloatingWindow.
15694 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15695 Use mac_show_hourglass and mac_hide_hourglass.
15696 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15697 instead of GetGlobalMouse.
15698 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15699 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15700 Use mac_bring_window_to_front instead of BringToFront.
15701 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15702 mactoolbox.c.
15703 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15704 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15705 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15706 mactoolbox.c.
15707
15708 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15709 (XtPointer): Move typedef from macmenu.c.
15710 (enum button_type): Move enum from macmenu.c.
15711 (widget_value): Move typedef from macmenu.c.
15712 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15713 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15714 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15715 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15716 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15717 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15718 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15719 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15720 (Selection): Move typedef from macselect.c.
15721 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15722 macterm.c.
15723 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15724 (mac_is_window_collapsed, mac_bring_window_to_front)
15725 (mac_send_window_behind, mac_hide_window, mac_show_window)
15726 (mac_collapse_window, mac_front_non_floating_window)
15727 (mac_active_non_floating_window, mac_activate_window)
15728 (mac_move_window_structure, mac_move_window, mac_size_window)
15729 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15730
15731 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15732 (enum mac_menu_kind): Move enum to mactoolbox.c.
15733 (min_menu_id): Move variable to mactoolbox.c.
15734 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15735 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15736 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15737 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15738 [TARGET_API_MAC_CARBON]: Likewise.
15739 (XtPointer): Move typedef to macgui.h.
15740 (enum button_type): Move enum to macgui.h.
15741 (widget_value): Move typedef to macgui.h.
15742 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15743 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15744 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15745 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15746 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15747 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15748 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15749 (popup_activated_flag): Make variable non-static.
15750 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15751 (add_menu_item, fill_menu, dispose_menus):
15752 Move functions to mactoolbox.c.
15753 (restore_show_help_function, menu_target_item_handler)
15754 (install_menu_target_item_handler, mac_handle_dialog_event)
15755 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15756 [TARGET_API_MAC_CARBON]: Likewise.
15757 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15758 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15759 (find_and_call_menu_selection, name_is_separator): Make function
15760 non-static.
15761 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15762 to mactoolbox.c.
15763 (set_frame_menubar): Don't call install_menu_quit_handler.
15764 (menu_item_selection): New variable.
15765 (mac_menu_show): Use create_and_show_popup_menu.
15766 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15767 selection but set variable menu_item_selection. All uses changed.
15768 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15769 Call install_menu_quit_handler. Move to mactoolbox.c.
15770
15771 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15772 (Selection): Move typedef to macgui.h.
15773 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15774 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15775 Make variables non-static.
15776 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15777 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15778 Make functions non-static.
15779 (Vmac_service_selection) [MAC_OSX]: Likewise.
15780 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15781 (mac_valid_selection_target_p, mac_clear_selection)
15782 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15783 (mac_put_selection_value, mac_selection_has_target_p)
15784 (mac_get_selection_value, mac_get_selection_target_list)
15785 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15786 Move functions to mactoolbox.c.
15787 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15788 Likewise.
15789 (copy_scrap_flavor_data, mac_handle_service_event)
15790 (install_service_handler) [MAC_OSX]: Likewise.
15791 (syms_of_macselect) <Vmac_dnd_known_types>:
15792 Use mac_dnd_default_known_types.
15793
15794 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15795 Move to mactoolbox.c.
15796 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15797 (Fx_selection_owner_p): Add EXFUN.
15798 (install_window_handler, remove_window_handler, XSetWindowBackground):
15799 Remove externs.
15800 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15801 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15802 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15803 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15804 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15805 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15806 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15807 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15808 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15809 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15810 (mac_valid_selection_target_p, mac_clear_selection)
15811 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15812 (mac_put_selection_value, mac_selection_has_target_p)
15813 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15814 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15815 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15816 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15817 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15818 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15819 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15820 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15821 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15822
15823 * mactoolbox.c: New file.
15824
158252008-04-18 Jason Rumney <jasonr@gnu.org>
15826
15827 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15828
158292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15830
15831 * character.c (Fmultibyte_char_to_unibyte):
15832 Return latin1 chars unchanged.
15833
15834 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15835 relocated if it points to `name'.
15836
158372008-04-17 Kenichi Handa <handa@m17n.org>
15838
15839 * data.c (Faset): Allow setting a multibyte character in an
15840 ASCII-only unibyte string.
15841
15842 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15843
158442008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15845
15846 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15847 done in config.h.
15848
158492008-04-16 Juanma Barranquero <lekktu@gmail.com>
15850
15851 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15852 (Fchar_direction): Add usage in the docstring.
15853
158542008-04-15 Chong Yidong <cyd@stupidchicken.com>
15855
15856 * keyboard.c (read_key_sequence): Remove always-true checks.
15857
158582008-04-14 Jason Rumney <jasonr@gnu.org>
15859
15860 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15861 compatibility struct, for better underline positioning.
15862
158632008-04-13 David Hansen <david.hansen@gmx.net>
15864
15865 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15866 string.
15867
158682008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15869
15870 * m/hp800.h (XUINT, XSET): Remove.
15871
158722008-04-12 Juanma Barranquero <lekktu@gmail.com>
15873
15874 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15875 previous change.
15876
158772008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15878
15879 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15880 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15881
158822008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15883
15884 * keymap.h (map_keymap_canonical): Declare.
15885 * xmenu.c (single_keymap_panes): Use it.
15886
158872008-04-11 Glenn Morris <rgm@gnu.org>
15888
15889 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15890 set the target's value to that of the alias.
15891
158922008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15893
15894 * term.c (set_tty_color_mode): Left over typo.
15895
158962008-04-10 Michael Albinus <michael.albinus@gmx.de>
15897
15898 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15899 only after check for file name handler functions. Signal, when
15900 native functionality is not supported.
15901 (syms_of_fileio): Declare it unconditionally.
15902
159032008-04-10 Jason Rumney <jasonr@gnu.org>
15904
15905 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15906 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15907
15908 * w32.c (logon_network_drive): Also logon to remote drives that
15909 are mapped to drive letters.
15910
159112008-04-10 Glenn Morris <rgm@gnu.org>
15912
15913 * xdisp.c (truncate-partial-width-windows): Doc fix.
15914
159152008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15916
15917 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15918 Move functions to minibuffer.el.
15919 (syms_of_fileio): Don't declare them.
15920
159212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15922
15923 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15924 (syms_of_minibuf): Remove its initialization.
15925
15926 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15927
159282008-04-09 Juanma Barranquero <lekktu@gmail.com>
15929
15930 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15931
159322008-04-09 Jason Rumney <jasonr@gnu.org>
15933
15934 * makefile.w32-in (distclean): Delete makefile too.
15935 (maintainer-clean): New target.
15936
15937 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15938
15939 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15940 for new font backend and composite cases.
15941
159422008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15943
15944 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15945 Most of the code moved to run_timers.
15946 (do_pending_atimers): Call run_timers.
15947 (run_timers): New function.
15948
15949 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15950 run atimers.
15951
15952 * process.c (wait_reading_process_output): The same as above.
15953
159542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15955
15956 * minibuf.c (last_exact_completion): Remove variable.
15957 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15958 (complete_and_exit_1, complete_and_exit_2)
15959 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15960 (Fdisplay_completion_list, display_completion_list_1)
15961 (Fminibuffer_completion_help, Fself_insert_and_exit)
15962 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15963 minibuffer.el.
15964 (syms_of_minibuf): Remove corresponding initializations.
15965
15966 * keyboard.c (Qdeactivate_mark): New var.
15967 (command_loop_1): Use it to call `deactivate-mark'.
15968 (syms_of_keyboard): Initialize it.
15969
15970 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15971 to another frame.
15972 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15973 Don't call set_tty_color_mode.
15974 (store_frame_param): Reset previous_frame rather than call
15975 set_tty_color_mode.
15976 * term.c (set_tty_color_mode): Rewrite.
15977 * dispextern.h (set_tty_color_mode): New type.
15978 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15979
159802008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15981
15982 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15983 for generic chars, which do not exist any more in emacs-unicode.
15984
159852008-04-08 Michael Albinus <michael.albinus@gmx.de>
15986
15987 * coding.c (detect_coding_emacs_mule)
15988 (Ffind_operation_coding_system): Fix typo.
15989
159902008-04-08 Jason Rumney <jasonr@gnu.org>
15991
15992 * w32uniscribe.c (SNAME): Extract only symbol name.
15993
15994 * w32font.h (struct w32_metric_cache): New struct.
15995 (w32font_info): Use it.
15996 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15997 (CACHE_BLOCKSIZE): New constants.
15998
15999 * w32font.c (Qja, Qko, Qzh): New symbols.
16000 (syms_of_w32font): Initialise them.
16001 (font_matches_spec): Use them to filter by language.
16002 (recompute_cached_metrics): Remove function.
16003 (compute_metrics, clear_cached_metrics): New functions.
16004 (w32font_encode_char): Use them to manage metric cache.
16005 (w32font_text_extents): Cache metrics for all glyphs on demand.
16006 Delay converting glyph indices to WORD until needed.
16007 (w32font_open_internal): Initialize metric cache to empty.
16008 (registry_to_w32_charset): Charset should always be a symbol.
16009 (fill_in_logfont, list_all_matching_fonts): Family should
16010 always be a symbol.
16011
160122008-04-06 Jason Rumney <jasonr@gnu.org>
16013
16014 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16015 Give up if glyph indices not supported. Use uniscribe obtained
16016 ABC widths for individual metrics. Map glyph clusters back to
16017 characters using fClusterStart flag. Return number of glyphs
16018 produced, not chars processed.
16019 (uniscribe_shape): Map char at FROM to current glyph.
16020
160212008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16022
16023 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16024 Use SetMenuItemHierarchicalMenu.
16025
160262008-04-05 Jason Rumney <jasonr@gnu.org>
16027
16028 * image.c (pbm_load): Allow color values up to 65535.
16029 Throw an error if max_color_idx is outside the supported range.
16030 Report an error when image size is invalid.
16031 Read two bytes at a time when raw images have max_color_idx above 255.
16032
aac0c6e3
MR
160332008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16034
16035 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16036 append "CCL: Quitted" when the CCL program is quitted.
16037 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16038
16039 * ccl.h (struct ccl_program): New member quit_silently.
16040
160412008-04-05 Chong Yidong <cyd@stupidchicken.com>
16042
16043 * search.c (compile_pattern_1): Treat non-nil and non-string of
16044 search-spaces-regexp as nil.
16045
16046 * minibuf.c (Fassoc_string): Tweak docstring.
16047
160482008-04-05 Eli Zaretskii <eliz@gnu.org>
16049
16050 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16051 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16052 2008-03-14 to force inode be positive.
16053
16054 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16055 _S_* ones, since we now use our own sys/stat.h.
16056 (stat, fstat): Don't mangle the inode number.
16057 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16058
160592008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16060
16061 * frame.h (struct frame): Give one more bit to `visible' since we use
16062 values larger than 1 to indicate obscured frames on ttys.
16063
16064 * keymap.c (Qkeymap_canonicalize): New var.
16065 (Fmap_keymap_internal): New fun.
16066 (describe_map): Use keymap-canonicalize.
16067
16068 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16069 (Fundo_boundary): Set them.
16070 (syms_of_undo): Initialize them.
16071 (record_point): Use them instead of last_point_position*.
16072 (last_undo_buffer): Change type.
16073
160742008-04-04 Jason Rumney <jasonr@gnu.org>
16075
16076 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16077 (recompute_cached_metrics): Don't set ascent and descent per char.
16078
16079 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16080 (uniscribe_check_otf): Add GC protection before consing.
16081 Rearrange loop for counting features.
16082
160832008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16084
16085 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16086 buffer with byte-size of source buffer.
16087
160882008-04-03 Chong Yidong <cyd@stupidchicken.com>
16089
16090 * callint.c (Fcall_interactively): Handle temporary region even
16091 when shift-select-mode is off.
16092
160932008-04-03 Jason Rumney <jasonr@gnu.org>
16094
16095 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16096
160972008-04-03 Kenichi Handa <handa@m17n.org>
16098
16099 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16100 (CATEGORY_MASK_UTF_16): Likewise.
16101 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16102 binary file.
16103 (detect_coding): Add null-byte detection for a binary file.
16104 (detect_coding_system): Likewise.
16105
161062008-04-03 Jason Rumney <jasonr@gnu.org>
16107
16108 * w32uniscribe.c: New file.
16109
16110 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16111
16112 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16113
16114 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16115 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16116 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16117 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16118 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16119 (Qphonetic): New symbols.
16120 (syms_of_w32font): Initialize them.
16121 (font_supported_scripts): Use them.
16122 (w32font_list_family): List all charsets.
16123 (w32font_text_extents, recompute_cached_metrics): Fix metric
16124 calculations.
16125 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16126 Give opentype fonts their own format.
16127 (font_matches_spec): New arguments backend and logfont.
16128 Handle :otf spec for uniscribe backend.
16129 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16130 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16131
16132 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16133 font backend.
16134 (globals_of_w32fns): Initialize uniscribe font backend.
16135
16136 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16137 dependencies.
16138 (w32uniscribe.$(O)): New file to build.
16139 (FONT_OBJ): Include w32uniscribe.$(O).
16140 (LIBS): Add uniscribe libraries.
16141
16142 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16143
161442008-04-02 Chong Yidong <cyd@stupidchicken.com>
16145
16146 * callint.c (Vshift_select_mode): New var.
16147 (Finteractive): Document new ^ spec.
16148 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16149 is present.
16150
16151 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16152 (command_loop_1): Avoid running the direct display versions of
16153 forward-char and backward-char if shift-selection may occur.
16154 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16155 shift-translation takes place.
16156
16157 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16158 avoid clobbering by define-minor-mode.
16159
16160 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16161 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16162
16163 * syntax.c (Fforward_word): Add ^ interactive spec.
16164
16165 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16166 (Fscroll_right): Add ^ interactive spec.
16167
161682008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16169
16170 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16171
16172 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16173
16174 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16175
161762008-03-31 Juri Linkov <juri@jurta.org>
16177
16178 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16179
161802008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16181
16182 * gtkutil.c (xg_set_geometry): Fix indentation.
16183 (xg_resize_outer_widget): Remove.
16184 (x_wm_size_hint_off): Fix indentation.
16185 (xg_frame_set_char_size): Call flush_and_sync after
16186 gtk_window_resize.
16187 (x_wm_set_size_hint): Pass NULL as geometry window to
16188 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16189 Add menu bar and tool bar height to base height.
16190 (xg_update_frame_menubar, free_frame_menubar)
16191 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16192 (update_frame_tool_bar, free_frame_tool_bar):
16193 Change xg_resize_outer_widget to xg_frame_set_char_size.
16194
161952008-03-30 Michael Albinus <michael.albinus@gmx.de>
16196
16197 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16198 (Fdbus_call_method): New parameter TIMEOUT.
16199 (dbus-send-signal): Optimize UNGCPRO call.
16200
162012008-03-29 Juri Linkov <juri@jurta.org>
16202
16203 * window.c (Fdisplay_buffer): Move call to
16204 Vsplit_window_preferred_function out of conditions that check
16205 if window is eligible for vertical splitting.
16206 When Vsplit_window_preferred_function is non-nil, call it and use
16207 its non-nil return value as window. Otherwise, continue doing
16208 vertical splitting using Fsplit_window with arg horflag=nil.
16209 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16210 default value from `split-window' to nil.
16211
162122008-03-29 Juri Linkov <juri@jurta.org>
16213
16214 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16215 for interactive code letters 'b' and 'B'.
16216
162172008-03-29 Eli Zaretskii <eliz@gnu.org>
16218
16219 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16220 multibyte string.
16221
162222008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16223
16224 * keyboard.c (pending_funcalls): New var.
16225 (timer_check): Run it.
16226 (syms_of_keyboard): Initialize it.
16227 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16228 (Vdelete_terminal_functions): New vars.
16229 (syms_of_terminal): Initialize them.
16230 (Fdelete_terminal): Run delete-terminal-functions.
16231 * xdisp.c (safe_eval): Rewrite.
16232 (safe_call2): New fun.
16233 * frame.c (Qdelete_frame_functions): New var.
16234 (syms_of_frame): Initialize it.
16235 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16236 * lisp.h (safe_call2, pending_funcalls): Declare.
16237
162382008-03-28 Andreas Schwab <schwab@suse.de>
16239
16240 * indent.c (Fmove_to_column): Move declaration before statements.
16241
162422008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16243
16244 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16245 (struct frame): Use bit fields for boolean vars.
16246
16247 * process.c (server_accept_connection): Simplify naming.
16248 (emacs_get_tty_pgrp): Use SDATA.
16249
16250 * coding.c (decode_coding_object): Fix last change.
16251
162522008-03-27 Jason Rumney <jasonr@gnu.org>
16253
16254 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16255
162562008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16257
16258 * charset.c (Fdefine_charset_internal): Change the way of
16259 registering charsets in Vcharset_order_list.
16260 (syms_of_charset): Make the charset `eight-bit' supplementary.
16261
162622008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16263
16264 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16265 operations, to avoid having the difference between pointers
16266 overflow.
16267
162682008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16269
16270 * indent.c (check_display_width): New fun.
16271 (scan_for_column): Use it.
16272
16273 * data.c (syms_of_data): Mark most-positive-fixnum and
16274 most-negative-fixnum as constants.
16275
16276 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16277
16278 * indent.c (scan_for_column): Extract from current_column_1.
16279 Merge with the same code from Fmove_to_column.
16280 (current_column_1, Fmove_to_column): Use it.
16281
162822008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16283
16284 * keymap.c (map_keymap_internal): New fun.
16285 (map_keymap): Use it.
16286 (Fmap_keymap_internal): New fun.
16287 (Fmap_keymap): Remove left-out test from before make_save_value.
16288
16289 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16290
16291 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16292 Use XCAR/XCDR.
16293
16294 * process.h (struct Lisp_Process): Remove filter_multibyte.
16295 * process.c (QCfilter_multibyte): Remove.
16296 (setup_process_coding_systems): Don't use filter_multibyte.
16297 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16298 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16299 (Fset_process_filter_multibyte): Change the coding-system to
16300 approximate the previous behavior.
16301 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16302 coding-system.
16303
16304 * coding.c (decode_coding_object): When not decoding into a buffer,
16305 obey the coding system's preference of (uni|multi)byte.
16306
163072008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16308
16309 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16310 every char is changed and has a different byte-length.
16311 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16312 Fix int -> EMACS_INT.
16313
163142008-03-23 David Hansen <david.hansen@gmx.net>
16315
16316 * dbusbind.c (xd_read_message): Remove extra copying of message
16317 strings. Check for NULL `interface' or `member'.
16318
163192008-03-22 Eli Zaretskii <eliz@gnu.org>
16320
16321 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16322 cFileName a file name that includes `?' characters, use the 8+3
16323 alias in cAlternateFileName instead.
16324
163252008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16326
16327 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16328
163292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16330
16331 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16332 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16333 work on current_buffer only instead (that was already the case
16334 for some of the code anyway).
16335 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16336 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16337 (SET_PT, SET_PT_BOTH): Adjust.
16338 * intervals.h (set_point, temp_set_point, set_point_both)
16339 (temp_set_point_both): Remove redundant declarations.
16340
163412008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16342
16343 * fileio.c (Finsert_file_contents):
16344 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16345 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16346 when buffer != current_buffer anyway.
16347
163482008-03-20 Andreas Schwab <schwab@suse.de>
16349
16350 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16351 as default.
16352
163532008-03-19 Jason Rumney <jasonr@gnu.org>
16354
16355 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16356 (syms_of_w32fns): Initialize them.
16357 (HOURGLASS_ID): New constant.
16358 (x_window_to_frame): Don't check hourglass_window.
16359 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16360 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16361 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16362 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16363 Only change the cursor if hourglass is not active.
16364 (Fx_create_frame): Initialize frame's current_cursor.
16365 (hourglass_atimer): Remove.
16366 (hourglass_started): New function.
16367 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16368 (show_hourglass): Adapt to w32, changing argument to frame.
16369
16370 * w32term.h (struct w32_output): Remove hourglass_window.
16371 Add current_cursor.
16372
16373 * eval.c (call_debugger, Fsignal):
16374 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16375 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16376 (Fexecute_extended_command, cancel_hourglass_unwind):
16377 * minibuf.c (read_minibuf):
16378 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16379
163802008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16381
16382 * window.c (run_funs): New fun.
16383 (run_window_configuration_change_hook): Use it to run the buffer-local
16384 and the global part of the hook.
16385
16386 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16387 (unwind_format_mode_line): Restore selected window.
16388 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16389
163902008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16391
16392 * editfns.c (Fchar_equal): Check they are valid characters.
16393
16394 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16395
163962008-03-17 Andreas Schwab <schwab@suse.de>
16397
16398 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16399 against a charset.
16400
16401 * lisp.h (Fbuffer_list): Declare.
16402
164032008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16404
aac0c6e3
MR
16405 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16406 handlebox_widget is != 0.
16407
164082008-03-16 Juri Linkov <juri@jurta.org>
16409
16410 * callint.c (Fcall_interactively): For interactive code letters
16411 'b' and 'B' put the buffer list into the list of default "future"
16412 values of the minibuffer.
16413
164142008-03-16 Andreas Schwab <schwab@suse.de>
16415
16416 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16417 modifiers.
16418
16419 * regex.c (re_match_2_internal): Correct matching of a charset
16420 against latin-1 characters.
16421
164222008-03-16 Kenichi Handa <handa@m17n.org>
16423
16424 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16425 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16426 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16427 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16428 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16429 CHAR_STRING_ADVANCE.
16430 (produce_chars): Fix for the case that the source and the
16431 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16432 instead of CHAR_STRING_ADVANCE.
16433 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16434 STRING_CHAR_ADVANCE.
16435
164362008-03-15 Andreas Schwab <schwab@suse.de>
16437
16438 * regex.c (re_match_2_internal): Correct matching of eight bit
16439 characters in unibyte strings.
16440
164412008-03-15 Martin Rudalics <rudalics@gmx.at>
16442
16443 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16444 at end of range when it coincides with the end of the buffer.
16445
164462008-03-14 Eli Zaretskii <eliz@gnu.org>
16447
16448 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16449
16450 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16451
164522008-03-14 Jason Rumney <jasonr@gnu.org>
16453
16454 * editfns.c (initial_tz): New variable.
16455 (syms_of_editfns): Initialize it.
16456 (Fset_time_zone_rule): Set it when first called.
16457 Use it when TZSTRING is nil.
16458
16459 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16460 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16461 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16462 (globals_of_w32fns): Initialize them.
16463 (compute_tip_xy): Use them to position tooltips.
16464
164652008-03-14 Glenn Morris <rgm@gnu.org>
16466
16467 * emacs.c (main): Revert previous change.
16468 (standard_args): Revert -internal-script back to -scriptload,
16469 and remove the long-option form.
16470
164712008-03-13 Glenn Morris <rgm@gnu.org>
16472
16473 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16474 Remove option -enable-font-backend.
16475
164762008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16477
16478 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16479
164802008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16481
16482 * xterm.c (x_connection_closed): For GTK: If this is the last
16483 terminal just exit without closing the display.
16484
164852008-03-11 Jason Rumney <jasonr@gnu.org>
16486
16487 * w32font.c (w32font_full_name): Use floor to round.
16488
f0131492 164892008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16490
16491 * sound.c (alsa_configure): Declare vol at beginning of block.
16492
16493 * fontset.c (Ffontset_info): Remove extra semicolon.
16494
164952008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16496
16497 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16498 size of resulting string.
16499
165002008-03-10 Jason Rumney <jasonr@gnu.org>
16501
16502 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16503
165042008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16505
16506 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16507 Don't pretend as if characters with display property haven't been
16508 consumed for string-replacing-string case.
16509
165102008-03-08 Kim F. Storm <storm@cua.dk>
16511
16512 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16513 (get_next_display_element, next_element_from_string)
16514 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16515
165162008-03-08 Andreas Schwab <schwab@suse.de>
16517
16518 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16519
165202008-03-06 Jason Rumney <jasonr@gnu.org>
16521
16522 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16523 when charset not specified. Only translate ANSI to unicode when
16524 font_type is truetype.
16525 (w32font_coverage_ok): New function.
16526 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16527
165282008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16529
16530 * lread.c (Fread_char): Resolve modifiers.
16531 (Fread_char_exclusive): Likewise.
16532
16533 * character.c (char_resolve_modifier_mask): New function.
16534 (char_string): Use char_resolve_modifier_mask.
16535 (Fchar_resolve_modifiers): New function.
16536 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16537 function.
16538
165392008-03-04 Jason Rumney <jasonr@gnu.org>
16540
16541 * makefile.w32-in: Always include w32font.c in the build.
16542 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16543
165442008-03-04 Andreas Schwab <schwab@suse.de>
16545
16546 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16547 (versionclean): Likewise.
16548
165492008-03-04 Juanma Barranquero <lekktu@gmail.com>
16550
16551 * .cvsignore: Add oo.
16552
165532008-03-03 Andreas Schwab <schwab@suse.de>
16554
16555 * coding.c (decode_coding_object): Inhibit gap shrinking while
16556 decoding in place.
16557
165582008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16559
16560 * w32term.c: Remove unused include "gnu.h".
16561 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16562
16563 * gnu.h: Rename to ...
16564 * emacs-icon.h: ... this.
16565 * xterm.c: Use emacs-icon.h instead of gnu.h.
16566 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16567
165682008-03-03 Juanma Barranquero <lekktu@gmail.com>
16569
16570 * w32font.c: Include math.h.
16571
165722008-03-03 Jason Rumney <jasonr@gnu.org>
16573
16574 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16575 Compute options separately.
16576 (w32font_open_internal): Set glyph_idx before caching metrics.
16577
16578 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16579 Define if system headers don't.
16580 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16581 (w32font_encode_char): Don't declare here.
16582
16583 * w32font.c (Quniscribe, QCformat): New symbols.
16584 (syms_of_w32font): Define them.
16585 (w32font_has_char): Indicate uncertainty.
16586 (w32font_encode_char): Encode as glyph point. Make static.
16587 (recompute_cached_metrics): New function.
16588 (w32font_open_internal): Use it. Set font to use glyph points
16589 initially. Set format based on type of font.
16590 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16591 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16592 on it. Set format based on information available here.
16593 (add_font_entity_to_list): Identify backend based on opentype_only.
16594
165952008-03-02 Andreas Schwab <schwab@suse.de>
16596
16597 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16598
16599 * coding.c (decode_coding_big5, produce_chars):
16600 Fix typos in last change.
16601
166022008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16603
16604 * gnu.h: New icon.
16605
166062008-03-02 Kenichi Handa <handa@m17n.org>
16607
16608 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16609 `dos', don't decode '\r' if that is the last in the source.
16610 (decode_coding_utf_16, decode_coding_emacs_mule)
16611 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16612 (decode_coding_raw_text, decode_coding_charset): Likewise.
16613 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16614
166152008-03-01 Jason Rumney <jasonr@gnu.org>
16616
16617 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16618
166192008-03-01 Kim F. Storm <storm@cua.dk>
16620
16621 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16622
166232008-03-01 Jason Rumney <jasonr@gnu.org>
16624
16625 * w32font.c (w32font_full_name): New function.
16626 (w32font_open_internal): Use it.
16627
166282008-03-01 Kim F. Storm <storm@cua.dk>
16629
16630 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16631
166322008-03-01 Jason Rumney <jasonr@gnu.org>
16633
16634 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16635
166362008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16637
16638 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16639 xg_frame_resized when the event is for the edit widget.
16640
16641 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16642
16643 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16644 set_char_size.
16645 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16646 operations on widgets here. Just set frame size if needed.
16647 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16648 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16649 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16650 the whole frame.
16651 (xg_create_tool_bar): Move attachment of the tool bar to
16652 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16653 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16654
166552008-03-01 Jason Rumney <jasonr@gnu.org>
16656
16657 * w32fns.c (w32_msg_pump): Disable debug code.
16658
166592008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16660
16661 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16662
166632008-02-29 Chong Yidong <cyd@stupidchicken.com>
16664
16665 * xdisp.c (next_overlay_string): Don't set
16666 overlay_strings_at_end_processed_p if we're currently reading from
16667 a display string.
16668
166692008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * xdisp.c (get_overlay_strings_1): Fix typo.
16672
166732008-02-29 Chong Yidong <cyd@stupidchicken.com>
16674
16675 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16676
166772008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16678
16679 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16680
16681 * xdisp.c (display_mode_element): Cancel the previous change.
16682 (decode_mode_spec): Likewise.
16683 (handle_auto_composed_prop): Don't make composition if it->string
16684 is a string.
16685
166862008-02-27 Kim F. Storm <storm@cua.dk>
16687
16688 * lisp.h (GLYPH): Change type from int to struct with separate char
16689 and face_id members.
16690 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16691 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16692 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16693 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16694 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16695 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16696 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16697 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16698 handle new Lisp glyph code encoding, either an integer or a cons.
16699
16700 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16701 (GLYPH_ALIAS): Delete.
16702 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16703 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16704 (GLYPH_FROM_CHAR): Replace macro by ...
16705 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16706
16707 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16708 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16709 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16710 (GLYPH_INVALID_P): New macro.
16711 (spec_glyph_lookup_face): Update prototype.
16712
16713 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16714 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16715 new glyph code encoding.
16716 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16717 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16718
16719 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16720 Adapt to new glyph type and new glyph code encoding.
16721
16722 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16723
16724 * indent.c (current_column, current_column_1, Fmove_to_column)
16725 (compute_motion): Adapt to new glyph code encoding.
16726
16727 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16728
167292008-02-27 Chong Yidong <cyd@stupidchicken.com>
16730
16731 * process.c (wait_reading_process_output): Check for window
16732 changes caused by timers.
16733 Suggested by Johan Bockgård.
16734
167352008-02-27 Glenn Morris <rgm@gnu.org>
16736
16737 * emacs.c (USAGE1): Add `--disable-font-backend'.
16738
167392008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16740
16741 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16742 is made to the buffer.
16743
167442008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16745
16746 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16747 (face_at_string_position):
16748 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16749 (face_at_string_position):
16750 * xdisp.c (display_string, next_overlay_change):
16751 * buffer.h (overlays_at):
16752 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16753 Update callers.
16754
167552008-02-26 Chong Yidong <cyd@stupidchicken.com>
16756
16757 * editfns.c (Fformat): Doc fix.
16758
167592008-02-26 Juanma Barranquero <lekktu@gmail.com>
16760
16761 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16762 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16763 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16764
167652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16766
16767 * buffer.c (Fbuffer_swap_text): New function.
16768 (syms_of_buffer): Defsubr it.
16769
167702008-02-25 Chong Yidong <cyd@stupidchicken.com>
16771
16772 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16773
167742008-02-25 Jason Rumney <jasonr@gnu.org>
16775
16776 * w32font.c (w32font_draw): Draw one character at a time when padding.
16777
167782008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16779
16780 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16781 Handle a nil arg. Use run_window_configuration_change_hook.
16782 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16783 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16784 Use run_window_configuration_change_hook.
16785
167862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16787
16788 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16789 1-pixel width.
16790
167912008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16792
16793 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16794 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16795 if the glyph in the font is zero pixel with.
16796
16797 * dispextern.h (struct glyph_string): New member padding_p.
16798
16799 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16800
16801 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16802
16803 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16804
16805 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16806
16807 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16808
168092008-02-25 Jason Rumney <jasonr@gnu.org>
16810
16811 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16812
168132008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16814
16815 Allow fine-grained image-cache flushing.
16816 * dispextern.h (struct image): Add `dependencies' field.
16817 (clear_image_caches): Change arg to Lisp_Object.
16818 * image.c (make_image): Initialize `dependencies' field.
16819 (clear_image_cache): Change arg to allow fine-grained flushing.
16820 Perform the flush even if image-cache-eviction-delay is nil.
16821 (clear_image_caches): Change arg to Lisp_Object.
16822 (Fclear_image_cache): Expand meaning of the argument.
16823 (mark_image): Mark `dependencies' field.
16824 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16825 (lface_hash): Use XHASH rather than XFASTINT.
16826 (face_at_buffer_position): Fix int -> EMACS_INT position.
16827 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16828 (select_frame_for_redisplay): Remove code duplication.
16829 (redisplay_internal): Adapt arg to call to clear_image_caches.
16830
168312008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16832
16833 * s/vms4-0.h:
16834 * s/vms4-2.h:
16835 * s/vms4-4.h:
16836 * s/vms5-5.h: Remove, unused.
16837
16838 * s/irix5-2.h:
16839 * s/irix6-0.h:
16840 * s/riscos5.h:
16841 * s/mach-bsd4-3.h:
16842 * m/mips4.h: Remove files for obsolete systems.
16843
16844 * Makefile.in:
16845 * filelock.c:
16846 * unexmips.c:
16847 * m/hp9000s300.h:
16848 * m/iris4d.h:
16849 * s/aix3-1.h:
16850 * s/hpux.h:
16851 * s/msdos.h:
16852 * s/usg5-0.h:
16853 * s/usg5-2-2.h:
16854 * s/usg5-2.h:
16855 * s/usg5-3.h: Remove references to obsolete variables.
16856
16857 * s/irix5-0.h: Remove, move all the contents ...
16858 * s/irix6-5.h: ... here. Simplify.
16859 * config.in: Regenerate.
16860
168612008-02-24 Jason Rumney <jasonr@gnu.org>
16862
16863 * w32term.c (x_draw_glyph_string_background): Clear the background
16864 manually when cleartype is in use.
16865 (x_draw_glyph_string_foreground): Draw text transparently when
16866 cleartype is in use.
16867
16868 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16869 a font into it unless we have to.
16870
168712008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16872
16873 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16874 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16875
aac0c6e3
MR
168762008-02-18 Jason Rumney <jasonr@gnu.org>
16877
16878 * w32fns.c (Fw32_shell_execute): Encode parameters.
16879
168802008-02-09 Eli Zaretskii <eliz@gnu.org>
16881
16882 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16883
168842008-02-05 Juanma Barranquero <lekktu@gmail.com>
16885
16886 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16887
168882008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16889
16890 * xterm.c (x_set_offset): Don't change the gravity if
16891 CHANGE_GRAVITY is -1.
16892
168932008-02-23 Chong Yidong <cyd@stupidchicken.com>
16894
16895 * fileio.c (auto_save_error_occurred): New var.
16896 (auto_save_error): Set it.
16897 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16898 error occurred.
16899
169002008-02-23 Eli Zaretskii <eliz@gnu.org>
16901
16902 * w32.c (globals_of_w32): Add initializations for
16903 g_b_init_get_sid_sub_authority and
16904 g_b_init_get_sid_sub_authority_count.
16905
169062008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16907
16908 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16909 (font_parse_xlfd): Use them for sanity check.
16910 (Finternal_set_font_style_table): Make sure the table is bijective.
16911
16912 Consolidate the image_cache to the terminal struct.
16913 * termhooks.h (P_): Remove redundant def.
16914 (struct terminal): New field `image_cache'.
16915 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16916 of FRAME_X_IMAGE_CACHE.
16917 * xterm.h (struct x_display_info): Remove image_cache field.
16918 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16919 * w32term.h (struct w32_display_info): Remove image_cache field.
16920 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16921 * macterm.h (struct mac_display_info): Remove image_cache field.
16922 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16923 * xterm.c (x_term_init):
16924 * w32term.c (w32_term_init):
16925 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16926 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16927 Remove declarations.
16928 (clear_image_caches, mark_image_cache): New declarations.
16929 * xfaces.c (clear_face_cache):
16930 * xdisp.c (redisplay_internal): Use clear_image_caches.
16931 * image.c (clear_image_cache): Don't check that a frame is on
16932 a window-system before checking if it shares the same cache.
16933 (clear_image_caches): New function.
16934 (Fclear_image_cache): Use it.
16935 (mark_image): Move from allo.c.
16936 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16937 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16938 (mark_object): Don't call mark_image_cache for frames.
16939 (mark_terminals): Call mark_image_cache.
16940
16941 * lisp.h (Fdelete_terminal): Declare.
16942
16943 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16944 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16945 wrong_type_argument.
16946
169472008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16948
16949 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16950 malayalam.el, and tamil.el. Add sinhala.el.
16951
169522008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16953
16954 * xterm.c (x_connection_closed): Consolidate identical tests.
16955 (x_delete_terminal): Don't crash if called via x_connection_closed.
16956
169572008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16958
16959 * xdisp.c (decode_mode_spec): New arg string.
16960 (display_mode_element): Adjust for the above change.
16961
169622008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16963
16964 * callint.c (Fcall_interactively): Use AREF.
16965
169662008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16967
16968 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16969
169702008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16971
16972 * xfns.c (Fx_show_tip): Set string to " " if empty.
16973
169742008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16975
16976 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16977 with Qt.
16978
169792008-02-17 Kenichi Handa <handa@m17n.org>
16980
16981 * ftfont.c (ftfont_shape): Return Lispy number.
16982
16983 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16984 for GCs.
16985 (Finternal_set_font_selection_order): Call font_update_sort_order
16986 only when enable_font_backend is set.
16987 (realize_x_face): Set face->font_info to that of default face only
16988 when enable_font_backend is set.
16989
16990 * xdisp.c (handle_composition_prop): Set it->c to the fist
16991 character of the composed region.
16992 (fill_composite_glyph_string): Set base_face->font_info to
16993 s->font_info. Get a face for ascii from base_face->ascii_face.
16994 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16995 with a face already decided.
16996 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16997 non-negative.
16998 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16999 call font_prepare_composition unconditionally.
17000
17001 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17002
17003 * xterm.h (struct x_display_info): New member font.
17004
17005 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17006 (x_set_mouse_face_gc, x_new_font): Likewise.
17007 (x_term_init): Setup display_info->font.
17008 (x_delete_terminal): Free display_info->font.
17009
17010 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17011
17012 * ftxfont.c (ftxfont_default_fid): Delete it.
17013 (ftxfont_open): Set xfont->fid to 0.
17014 (ftxfont_end_for_frame): Clear data specific to the frame and the
17015 font-driver.
17016
17017 * xftfont.c (xftfont_default_fid): Delete it.
17018 (xftfont_open): Set xfont->fid to 0.
17019
17020 * fontset.c (FONTSET_OBJLIST): New macro.
17021 (fontset_find_font): Update font-object list of the fontset.
17022 (free_realized_fontset): New function.
17023 (free_face_fontset): Call free_realized_fontset.
17024 (Ffont_info): Call font_close_object only when enable_font_backend
17025 is set.
17026
17027 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17028 [HAVE_NTGUI]: Include w32term.h.
17029 [MAC_OS]: Include macterm.ch.
17030 (font_otf_ValueRecord): Use make_number.
17031 (font_finish_cache): Fix handling of reference count.
17032 (font_clear_cache): Update num_fonts.
17033 (font_open_entity): Update smallest_char_width and
17034 smallest_font_height of the frame.
17035 (font_close_object): Update num_fonts.
17036 (Fclear_font_cache): Fix finding the target cache data.
17037
170382008-02-16 Glenn Morris <rgm@gnu.org>
17039
17040 * fontset.c (Finternal_char_font): Fix compilation warning.
17041
170422008-02-16 Eli Zaretskii <eliz@gnu.org>
17043
17044 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17045 instead of char arrays. Enlarge the size of array passed to
17046 get_token_information.
17047
17048 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17049 warnings.
17050
170512008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17052
17053 * .gdbinit: Don't set `args', it breaks gdb --args.
17054
170552008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17056
17057 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17058 within a narrowed buffer.
17059
170602008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17061
17062 * coding.c (decode_coding_object, encode_coding_object):
17063 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17064
170652008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17066
17067 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17068 hardcoding 1.
17069 (detect_coding_system):
17070 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17071 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17072 * insdel.c (insert_from_gap):
17073 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17074 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17075 (string_to_multibyte):
17076 * character.c (chars_in_text, multibyte_chars_in_text):
17077 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17078
17079 * character.h (FETCH_STRING_CHAR_ADVANCE)
17080 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17081 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17082 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17083
17084 * casefiddle.c (casify_region): Only call after-change and composition
17085 functions on the part of the region that was changed.
17086
17087 * keyboard.c (read_avail_input):
17088 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17089
170902008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17091
17092 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17093 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17094
170952008-02-11 Juanma Barranquero <lekktu@gmail.com>
17096
17097 * w32menu.c (push_submenu_start, push_submenu_end)
17098 (push_left_right_boundary, push_menu_pane, push_menu_item):
17099 * keyboard.c (read_key_sequence): Don't pass args with side effects
17100 to AREF, it fails when compiling with -DENABLE_CHECKING.
17101
171022008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17103
17104 * Makefile.in (${lispsource}international/charprop.el):
17105 Delete this target.
17106
17107 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17108 emacs-unicode-2.
17109
171102008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17111
17112 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17113
171142008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17115
17116 * frame.c (Qnoelisp): New symbol.
17117 (syms_of_frame): Initialize it.
17118 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17119 harmless Elisp code, from a strong `force' from x_connection_closed.
17120 * frame.h (Qnoelisp): Declare.
17121 * xterm.c (x_connection_closed): Pass `noelisp'.
17122
17123 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17124 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17125 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17126 rather than `int' for the type of `type'.
17127
171282008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17129
17130 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17131
17132 * Makefile.in (GNUC): Remove support for gcc-1.x.
17133
171342008-02-10 Richard Stallman <rms@gnu.org>
17135
17136 * lisp.h (ASET): Use AREF, not ASLOT.
17137
171382008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17139
17140 * lisp.h (ASET): Check bounds.
17141
171422008-02-10 Glenn Morris <rgm@gnu.org>
17143
17144 * buffer.c (mode-name): Doc fix.
17145
171462008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17147
17148 * Makefile.in:
17149 * emacs.c:
17150 * gmalloc.c:
17151 * keyboard.c:
17152 * lisp.h:
17153 * m/ibm370aix.h:
17154 * process.c:
17155 * regex.c:
17156 * s/hpux.h:
17157 * sysdep.c:
17158 * sysselect.h:
17159 * systty.h:
17160 * unexec.c:
17161 * w32term.c:
17162 * xsmfns.c:
17163 * xterm.c: Remove code that deals with obsolete variables.
17164
17165 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17166
17167 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17168 nothing else needs it anymore.
17169
171702008-02-09 Eli Zaretskii <eliz@gnu.org>
17171
17172 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17173 instead of unibyte_char_to_multibyte.
17174
171752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17176
17177 * s/gnu-linux.h: Remove commented out code.
17178
17179 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17180
17181 * Makefile.in: Update what RMS says about using autoconf.
17182 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17183 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17184 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17185 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17186
171872008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17188
17189 * keymap.c (Fkey_description): Move side effect outside of macro call.
17190
17191 * xfaces.c (Finternal_make_lisp_face):
17192 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17193
17194 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17195 (syms_of_fontset): Use ASET.
17196
17197 * fns.c (concat): Move side effect outside of macro call.
17198 (hash_clear): Use ASET.
17199
172002008-02-08 Richard Stallman <rms@gnu.org>
17201
17202 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17203 If FORCE, and frame has a surrogate minibuffer for another frame,
17204 delete the other frame first.
17205
172062008-02-07 Timo Savola <timo.savola@iki.fi>
17207
17208 * xterm.c (x_detect_focus_change): Handle embed client message.
17209 (handle_one_xevent): Ditto.
17210 (handle_one_xevent): If embedded and we get a button press/release,
17211 request focus.
17212 (xembed_set_info, xembed_send_message): New functions.
17213 (x_make_frame_visible): Call xembed_set_info if embedded.
17214 (x_make_frame_invisible): Call xembed_set_info if embedded.
17215 (x_term_init): Initialize Xatom_XEMBED.
17216 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17217 (x_iconify_frame): Ditto.
17218
17219 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17220 (enum xembed_info, enum xembed_message, enum xembed_focus)
17221 (enum xembed_modifier, enum xembed_accelerator): New.
17222 (xembed_set_info, xembed_send_message): Declare.
17223 (FRAME_X_EMBEDDED_P): New.
17224
17225 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17226 gtk_plug_new.
17227
17228 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17229 window ID of a frame.
17230 (x_window): Reparent frame if embedded.
17231 (Fx_create_frame): Don't set border width if embedded.
17232
17233 * emacs.c (USAGE3): Add --parent-id.
17234 (standard_args): Ditto.
17235
172362008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17237
17238 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17239
172402008-02-07 Jim Meyering <meyering@redhat.com>
17241
17242 Use "do...while (0)", not "if (1)...else" in macro definitions.
17243 The latter provokes a warning from gcc about the empty else, when
17244 followed by ";". Also, without that trailing semicolon, it would
17245 silently swallow up any following statement.
17246 * syntax.h (SETUP_SYNTAX_TABLE)
17247 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17248 * buffer.h (DECODE_POSITION): Likewise.
17249 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17250 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17251 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17252 (FETCH_CHAR_ADVANCE): Likewise.
17253 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17254
172552008-02-07 Jim Meyering <meyering@redhat.com>
17256
17257 * lread.c [lint]: Don't include <sys/inode.h>.
17258
172592008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17260
17261 * xselect.c (x_handle_dnd_message):
17262 * xmenu.c (digest_single_submenu, xmenu_show):
17263 * xdisp.c (with_echo_area_buffer_unwind_data)
17264 (format_mode_line_unwind_data, unwind_format_mode_line)
17265 (display_menu_bar):
17266 * eval.c (Ffetch_bytecode):
17267 * doc.c (store_function_docstring):
17268 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17269 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17270 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17271
172722008-02-07 Kenichi Handa <handa@m17n.org>
17273
17274 * ftxfont.c (ftxfont_open): Don't set
17275 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17276
17277 * ftfont.c (ftfont_open): Fix previous change.
17278
172792008-02-06 Jason Rumney <jasonr@gnu.org>
17280
17281 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17282 Use cached metrics for ASCII characters.
17283 (w32font_open_internal): Don't set font's owning_frame.
17284 Cache metrics for ASCII characters.
17285
17286 * w32font.h (struct w32font_info): Add ascii_metrics.
17287 Remove owning_frame.
17288
172892008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17290
17291 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17292 to negative value.
17293
17294 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17295
17296 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17297
17298 * charset.c (syms_of_charset): Set QCtest and Qeq.
17299
173002008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17301
17302 * process.c (Fstart_process):
17303 * callproc.c (Fcall_process): Handle the case where
17304 Funhandled_file_name_directory returns nil.
17305
17306 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17307 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17308 * font.c (check_gstring): Use them and AREF to access the vector before
17309 we know it's really a gstring.
17310 (Ffont_shape_text): Fix typo.
46e722a9 17311 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17312
17313 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17314 Declare.
17315
17316 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17317
173182008-02-05 Jason Rumney <jasonr@gnu.org>
17319
17320 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17321 Set smallest_font_height and smallest_char_width in display info.
17322
173232008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17324
17325 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17326
173272008-02-05 Miles Bader <miles@gnu.org>
17328
17329 * xfaces.c (get_lface_attributes, merge_named_face)
17330 (lookup_named_face, lookup_derived_face, realize_named_face):
17331 Revert 2008-02-01 change by cyd@stupidchicken.com.
17332
173332008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17334
17335 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17336 fallback fonts.
17337 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17338
173392008-02-04 Jason Rumney <jasonr@gnu.org>
17340
17341 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17342 set full_name.
17343 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17344
173452008-02-03 Jason Rumney <jasonr@gnu.org>
17346
17347 * makefile.w32-in (OBJ1): Include font.o here.
17348 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17349
173502008-02-02 Jason Rumney <jasonr@gnu.org>
17351
17352 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17353
173542008-02-01 Jason Rumney <jasonr@gnu.org>
17355
17356 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17357
17358 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17359
173602008-02-01 Andreas Schwab <schwab@suse.de>
17361
17362 * Makefile.in (shortlisp, lisp): Update for rename of
17363 ../lisp/language/myanmar.el.
17364
173652008-02-01 Chong Yidong <cyd@stupidchicken.com>
17366
17367 * xfaces.c (get_lface_attributes): Delete function.
17368 (merge_named_face, lookup_named_face, lookup_derived_face)
17369 (realize_named_face): Call lface_from_face_name directly, and use
17370 the fact that merge_face_vectors does not alter its FROM argument.
17371
173722008-02-01 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17375 input in the default locale. Handle non-Unicode multibyte input.
17376
173772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17378
17379 * fontset.c (reorder_font_vector): Exclude nil elements from the
17380 font group. Don't try multiple fonts.
17381 (fontset_font): Adjust for the above change.
17382 (Finternal_char_font): Return nil if the found font doesn't
17383 contain the character ch.
17384
17385 * Makefile.in (lisp, shortlisp): Add cham.el.
17386
173872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17388
17389 * font.h (FONTP): Make it return 1 also for a font-object.
17390
17391 * .gdbinit (xfontset): New function.
17392
17393 * font.c (font_find_for_lface): Check if the character C is
17394 supported or not only for the first font.
17395
17396 * fontset.c (reorder_font_vector): Fix typo.
17397 (fontset_find_font): Don't add a font-spec specifying a script.
17398 Use 0 (not Qt) for the indication of empty font-group. Change the
17399 format of RFONT-DEF. Return Qt if no font in the font-group
17400 support the character.
17401 (fontset_font): Adjust for the above change. If no font was
17402 found the character, remember that.
17403 (face_for_char): Adjust for the change of RFONT-DEF.
17404 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17405 no font for the target.
17406 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17407
174082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17409
17410 * font.c (font_load_for_face): Handle the case that the font in
17411 face->lface is a string.
17412
174132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17414
17415 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17416
174172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17418
17419 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17420 Fix previous change. If the frame is not on a window system,
17421 signal an error.
17422
174232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17424
17425 * coding.c (decode_coding_object, encode_coding_object): Adjust
17426 marker positions after conversion.
17427
17428 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17429
174302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17431
17432 * font.c (font_find_for_lface): Fix the handling of the return
17433 value of font_has_char.
17434 (Ffont_shape_text): Fix previous change.
17435
17436 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17437 (fontset_ref_and_range): Delete it.
17438 (fontset_find_font): Call char_table_ref_and_range instead of
17439 FONTSET_REF_AND_RANGE.
17440 (make_fontset): Don't setup font groups of Latin here.
17441 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17442 (new_fontset_from_font): Make the specified font the default for
17443 all Latin characters.
17444
174452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17446
17447 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17448 is on a window system before accessing the fontset of the frame.
17449
174502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17451
17452 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17453
17454 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17455 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17456
17457 * font.c (Ffont_shape_text): If the font driver doesn't have a
17458 shaper function, make zero-width glyphs to have at least one-pixel
17459 width. Fix setting of `to' field of glyphs.
17460
174612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17462
17463 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17464 glyphs.
17465
17466 * font.h (struct font_driver): Improve docstring of member `shape'.
17467
174682008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * composite.c (syms_of_composite): Fix docstring of
17471 auto-composition-function.
17472
17473 * font.h (LGLYPH_SIZE): New macro.
17474
17475 * font.c (Ffont_fill_gstring): Stop filling when a character not
17476 supported by the font is found.
17477 (Ffont_shape_text): When a shape callback function returns nil,
17478 try at most two more times with larger gstring.
17479 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17480
17481 * xdisp.c (handle_auto_composed_prop): Change the argument to
17482 auto-composition-function.
17483
17484 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17485 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17486 Lispy glyph and store it in the lgstring.
17487
17488 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17489
17490 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17491
174922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17493
17494 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17495
17496 * fontset.c (Vfont_encoding_charset_alist): New variable.
17497 (syms_of_fontset): DEFVAR it.
17498 (reorder_font_vector, fontset_find_font): Optimize for the case of
17499 no need of reordering.
17500 (face_for_char): Map the charset property by
17501 Vfont_encoding_charset_alist.
17502
175032008-02-01 Jason Rumney <jasonr@gnu.org>
17504
17505 * w32font.c (logfonts_match): Don't check adstyle here.
17506 (font_matches_spec): Check here against physical font instead.
17507 (add_font_entity_to_list): Avoid some substitutions.
17508
17509 * font.c (font_parse_fcname): Default weight and slant to normal.
17510 (font_score): Prefer normal fonts if weight or slant unspecified.
17511 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17512 match freetype scores.
17513
175142008-02-01 Jason Rumney <jasonr@gnu.org>
17515
17516 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17517 font, as it may have been deleted.
17518 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17519 most common hyphenless variation.
17520 (logfonts_match): Check generic family.
17521 (font_matches_spec): Don't check generic family here.
17522 (fill_in_logfont): Set generic family based on adstyle.
17523
17524 * w32font.h (w32font_get_cache): Update declaration.
17525
175262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17527
17528 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17529
17530 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17531 If none of the new drivers are available, call font_update_drivers
17532 with the old drivers.
17533
17534 * w32font.c (w32font_get_cache): Adjust the argument type.
17535
17536 * xfont.c (xfont_get_cache): Adjust the argument type.
17537
17538 * font.h (struct font_driver): Change argument type of get_cache.
17539
17540 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17541
17542 * font.c (Ffont_get): Fix arguments to Fassoc.
17543 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17544 (font_clear_cache): New function.
17545 (font_list_entities, font_matching_entity): Use font_get_cache.
17546 (font_update_drivers): Call font_clear_cache when finishing a driver.
17547
17548 * fontset.c (fontset_find_font): Fix previous change.
17549
175502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17551
17552 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17553 dpyinfo->font_table.
17554 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17555 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17556
17557 * font.c (font_at): Handle the case that the arg C is negative.
17558 Handle the unibyte case.
17559 (Ffont_at): Call font_at with the arg C -1.
17560
17561 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17562 the position here, and call font_at with the arg C -1.
17563 Don't check the range of the existing composition at the point.
17564
175652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17566
17567 * fontset.c (fontset_add): New args charset_id and family.
17568 Change caller.
17569 (load_font_get_repertory, fontset_find_font): Assume that
17570 font_spec is always a font-spec object.
17571 (Fset_fontset_font): Always store a font-spec object in a fontset.
17572
17573 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17574 instead of get_property_and_range.
17575
175762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17577
17578 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17579 (xftfont_open): Don't keep locking face.
17580 (xftfont_close): Don't unlock face.
17581 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17582
17583 * fontset.c (fontset_find_font): Don't prefer a font of
17584 supplementary charset.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17589 script, langsys_tag to langsys, new member script.
17590 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17591 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17592 listing to the script specified in that property. Fix arg to
17593 OTF_check_features.
17594
175952008-02-01 Jason Rumney <jasonr@gnu.org>
17596
17597 * w32font.h: New file.
17598
17599 * w32font.c: Include it.
17600 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17601 (w32font_open): Set owning_frame.
17602 (w32font_text_extents): Use owning_frame.
17603 (struct font_callback_data): Add opentype_only field.
17604 (add_font_entity_to_list): Use it to filter fonts.
17605 Don't check against full name.
17606 (w32font_list_internal): New function.
17607 (w32font_list): Use it.
17608 (w32font_match_internal): New function.
17609 (w32font_match): Use it.
17610 (w32font_open_internal): New function.
17611 (w32font_open): Use it.
17612 (w32font_get_cache, w32font_close, w32font_has_char)
17613 (w32font_encode_char, w32font_text_extents, w32font_draw):
17614 Make non-static.
17615
17616 * makefile.w32-in (w32font.o): Depend on w32font.h.
17617
176182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17619
17620 * charset.c (Fdefine_charset_internal): Record a supplementary
17621 charset at the tail of Vcharset_order_list.
17622
17623 * font.c (Ffont_shape_text): Fix the return value.
17624
17625 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17626
17627 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17628
176292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17630
17631 * ftfont.c (struct OpenTypeSpec): New struct.
17632 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17633 (ftfont_get_open_type_spec): New function.
17634 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17635
17636 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17637
176382008-02-01 Jason Rumney <jasonr@gnu.org>
17639
17640 * w32font.c (add_font_entity_to_list): Compare only the beginning
17641 of full name.
17642
176432008-02-01 Kenichi Handa <handa@m17n.org>
17644
17645 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17646 Never return HANDLED_RECOMPUTE_PROPS.
17647
176482008-02-01 Kenichi Handa <handa@m17n.org>
17649
17650 * font.c (font_gstring_produce): Delete it.
17651
17652 * composite.h (COMPOSITION_METHOD):
17653 Handle COMPOSITION_WITH_GLYPH_STRING.
17654
176552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17656
17657 * xfont.c (Qx): Delete.
17658 (syms_of_xfont): Don't initialize Qx.
17659
17660 * composite.h (enum composition_method):
17661 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17662
176632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17664
17665 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17666 (choose_face_font): Accept new form of font-spec.
17667
17668 * frame.h (font_driver_list): Declare it unconditionally.
17669 (struct frame): Define members font_driver_list and font_data_list
17670 unconditionally.
17671
17672 * fontset.c: Include "font.h" unconditionally.
17673 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17674 (Fset_fontset_font): Accept a font-spec object.
17675
17676 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17677 PIXEL_SIZE part a wild card.
17678
17679 * dispextern.h (struct glyph_string): Define members clip and
17680 num_clips unconditionally.
17681 (struct face): Define members font_info and extra unconditionally.
17682
17683 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17684 ftfont_info only when HAVE_LIBOTF is defined.
17685
176862008-02-01 Andreas Schwab <schwab@suse.de>
17687
17688 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17689 and end.
17690
176912008-02-01 Jason Rumney <jasonr@gnu.org>
17692
17693 * w32font.c (w32font_driver): Add new fields.
17694
176952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17696
17697 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17698 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17699 (LIBES): Add @M17N_FLT_CFLAGS@.
17700
17701 * composite.c (compose_text): Don't treat the new style
17702 composition specially.
17703
17704 * emacs.c (main): Call syms_of_font unconditionally.
17705
17706 * font.h (FONT_ENTITY_NOT_LOADABLE)
17707 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17708 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17709 (struct font_driver): New member shape.
17710 (font_registry_charsets): Extern it.
17711 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17712 (font_otf_capability, font_drive_otf): Delete their externs.
17713
17714 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17715 (font_charset_alist, font_registry_charsets): Move from xfont.c
17716 and rename.
17717 (font_prop_validate_otf): New function.
17718 (font_property_table): Register it for QCotf.
17719 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17720 (font_drive_otf): Delete.
17721 (font_prepare_composition): New arg F. Adjust for the change of
17722 lispy gstring.
17723 (font_find_for_lface): New arg C.
17724 (font_load_for_face): Adjust for the change of font_find_for_lface.
17725 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17726 lispy gstring.
17727 (Ffont_shape_text): New function.
17728 (Fopen_font): If the font size is not given, use 12-pixel.
17729 (Ffont_at): New arg STRING.
17730 (syms_of_font): Initalize font_charset_alist.
17731 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17732 conditionally.
17733
17734 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17735 fonts of the same font-spec. Change the format of RFONT-DEF.
17736 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17737 Adjust for the change of RFONT-DEF.
17738 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17739
17740 * ftfont.h: New file.
17741
17742 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17743 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17744 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17745 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17746 font_otf_capability and font_drive_otf, set ftfont_shape.
17747 (ftfont_list): Adjust for the change of :otf property value.
17748 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17749 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17750 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17751 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17752 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17753 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17754
17755 * w32term.c (x_draw_composite_glyph_string_foreground):
17756 Adjust for the change of lispy gstring.
17757
17758 * xdisp.c (handle_composition_prop): Adjust for the change of
17759 lispy gstring. Call a function for auto-composition with the
17760 third arg it->window.
17761 (fill_composite_glyph_string): Adjust for the change of lispy string.
17762 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17763
17764 * xfaces.c (set_font_frame_param): Adjust for the change of
17765 font_find_for_lface.
17766
17767 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17768 (xfont_registry_charsets): Likewise. Change caller.
17769 (syms_of_xfont): Don't handle x_font_charset_alist.
17770
17771 * xftfont.c: Include "ftfont.h".
17772 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17773 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17774 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17775 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17776 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17777 Set xftfont_driver.shape to xftfont_shape.
17778
17779 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17780 the change of lispy gstring.
17781
177822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17783
17784 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17785
177862008-02-01 Jason Rumney <jasonr@gnu.org>
17787
17788 * w32font.c (w32font_draw): Fill background manually.
17789
177902008-02-01 Jason Rumney <jasonr@gnu.org>
17791
17792 * font.c (Qfontp): Remove unused symbol.
17793 (QCantialias): New symbol.
17794 (syms_of_font): Define it.
17795 (font_property_table): Set a validator for QCantialias.
17796
17797 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17798 Define if not already.
17799 (QCfamily): Share with xfaces.c.
17800 (Qstandard, Qsubpixel, Qnatural): New symbols.
17801 (syms_of_w32font): Define them. Don't define QCfamily here.
17802 (w32_antialias_type, lispy_antialias_type): New functions.
17803 (w32_enumfont_pattern_entity): New arg requested_font.
17804 Set antialias parameter if non-default was requested.
17805 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17806
178072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17808
17809 * lread.c (read1): Undo the previous change.
17810
178112008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17812
17813 * frame.c (Fdelete_frame): Call font_update_drivers only when
17814 USE_FONT_BACKEND is defined.
17815
178162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17817
17818 * font.h (struct font_bitmap): New member bits_per_pixel.
17819 (struct font_driver): New members start_for_frame and end_for_frame.
17820 (struct font_data_list): New struct.
17821 (font_put_frame_data, font_get_frame_data): Extern them.
17822
17823 * frame.h (struct frame): New member font_data_list.
17824
17825 * font.c (font_update_drivers): Call driver->start_for_frame and
17826 driver->end_for_frame at proper timings.
17827 (font_put_frame_data, font_get_frame_data): New functions.
17828 (Ffont_spec): Add usage in the docstring.
17829
17830 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17831 (Fdelete_frame): Call font_update_drivers.
17832
17833 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17834 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17835 (xftfont_get_xft_draw): New function.
17836 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17837 (xftfont_end_for_frame): New function.
17838 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17839
17840 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17841 Change argument. Cache GCs in the per-frame data.
17842 (struct ftxfont_frame_data): New struct.
17843 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17844 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17845 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17846 (ftxfont_end_for_frame): New function.
17847 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17848
17849 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17850
178512008-02-01 Kenichi Handa <handa@m17n.org>
17852
17853 * xselect.c (Vselection_coding_system)
17854 (Vnext_selection_coding_system): Delete them.
17855 (syms_of_xselect): Don't declare selection-coding-system and
17856 next-selection-coding-system. They are declared in select.el.
17857
178582008-02-01 Jason Rumney <jasonr@gnu.org>
17859
17860 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17861
17862 * w32fns.c: Include imm.h.
17863 (get_composition_string_fn, get_ime_context_fn): New optional
17864 system functions.
17865 (globals_of_w32fns): Load them from imm32.dll.
17866 (ignore_ime_char): New flag.
17867 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17868 WM_IME_ENDCOMPOSITION messages.
17869
17870 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17871 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17872
178732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17874
17875 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17876 (READCHAR_REPORT_MULTIBYTE): New macro.
17877 (readchar): New 2nd arg MULTIBYTE.
17878 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17879 Make symbol's name multibyte according to the multibyteness of the
17880 source.
17881
178822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17883
17884 * xfaces.c (face_for_overlay_string): Call lookup_face with
17885 correct arguments (fix of synching with the trunk).
17886
178872008-02-01 Kenichi Handa <handa@m17n.org>
17888
17889 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17890 (font_prop_validate_non_neg, font_prop_validate_spacing):
17891 Delete argument prop_index.
17892 (font_property_table): Change arguments to validater. Change Callers.
17893 (font_lispy_object): Delete.
17894 (font_at): Use font_find_object instead fo font_lispy_object.
17895
178962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17897
17898 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17899 and file names.
17900
179012008-02-01 Jason Rumney <jasonr@gnu.org>
17902
17903 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17904 (font_matches_spec): Remove debug output.
17905 (add_font_entity_to_list): Avoid using substituted fonts.
17906
179072008-02-01 Jason Rumney <jasonr@gnu.org>
17908
17909 * doc.c (Fsnarf_documentation):
17910 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17911
179122008-02-01 Miles Bader <miles@gnu.org>
17913
17914 * dispextern.h (struct glyph_row): Only define "clip" field if
17915 HAVE_WINDOW_SYSTEM is defined.
17916
179172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17918
17919 Fix up multi-tty merge.
17920
17921 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17922 and indentation.
17923
17924 * xfaces.c (free_realized_face, clear_face_gcs):
17925 Include font_done_for_face in the input_blocked section, just in case.
17926
17927 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17928 (get_char_face_and_encoding): Undo last change and remove the *other*
17929 duplicate definition (i.e. keep the one that's better scoped and that
17930 includes code for the font-backend).
17931
17932 * terminal.c (create_terminal): Default keyboard_coding to
17933 `no-conversion' and terminal_coding to `undecided'.
17934
17935 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17936
17937 * fontset.c (free_realized_fontsets): Check that the table entry does
17938 contain a fontset before trying to compare it to `base'.
17939
17940 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17941 syms_of_charset, and syms_of_coding earlier because init_window_once
17942 now needs Vcoding_system_hash_table to be setup.
17943
17944 * coding.h (default_buffer_file_coding): Remove.
17945
17946 * coding.c (default_buffer_file_coding): Remove.
17947 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17948 than ->symbol, and use the terminal-local coding system.
17949 (syms_of_coding): Don't setup the coding-systems that are not
17950 terminal-local.
17951 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17952
17953 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17954 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17955
17956 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17957 in chartab.c and were re-added here by mistake.
17958 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17959
17960 * doc.c (Fsnarf_documentation):
17961 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17962 src to etc.
17963
17964 * ChangeLog.10: Add mistakenly removed entry.
17965
179662008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17967
17968 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17969
179702008-02-01 Miles Bader <miles@gnu.org>
17971
17972 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17973 Add extra args to FACE_FOR_CHAR.
17974
179752008-02-01 Kenichi Handa <handa@m17n.org>
17976
17977 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17978 in sequence.
17979
17980 * chartab.c (map_sub_char_table, map_char_table): If the range
17981 contains just one character, call the function with that character
17982 even if the depth is not 3.
17983
179842008-02-01 Jason Rumney <jasonr@gnu.org>
17985
17986 * w32font.c (w32font_text_extents): Calculate metrics for the
17987 whole string.
17988
179892008-02-01 Jason Rumney <jasonr@gnu.org>
17990
17991 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17992
179932008-02-01 Jason Rumney <jasonr@gnu.org>
17994
17995 * w32term.c (x_set_glyph_string_clipping): Use
17996 get_glyph_string_clip_rects.
17997 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17998 Adjust for the change of struct glyph_string.
17999
18000 * w32font.c (w32font_draw): Do clipping here.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * xftfont.c (xftfont_draw): Adjust for the change of struct
18005 glyph_string.
18006
18007 * xterm.c (x_set_glyph_string_clipping): Use
18008 get_glyph_string_clip_rects.
18009 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18010 Adjust for the change of struct glyph_string.
18011
18012 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18013 the resulting clip(s}.
18014 (expose_overlaps): Add arg r. Change callers. Set it to
18015 row->clip temporarily.
18016 (expose_window): Redraw rows overlapping the exposed area.
18017
18018 * dispextern.h (struct glyph_row): New member clip.
18019 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18020 clip_height, new member clip, and num_clips.
18021
180222008-02-01 Kenichi Handa <handa@m17n.org>
18023
18024 * data.c (Fchar_or_string_p): Fix docstring.
18025
180262008-02-01 Kenichi Handa <handa@m17n.org>
18027
18028 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18029 create a temporary XftDraw object.
18030
180312008-02-01 Kenichi Handa <handa@m17n.org>
18032
18033 * font.c (Ffontp): Fix docstring.
18034
18035 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18036 strong evidence of ISO-2022.
18037
180382008-02-01 Kenichi Handa <handa@m17n.org>
18039
18040 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18041 SYNTAX_ENTRY_FOLLOW_PARENT.
18042
180432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18044
18045 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18046 its type.
18047 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18048 Update to the new type of weak_hash_tables and next_weak.
18049
18050 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18051 a plain C pointer to Lisp_Hash_Table.
18052
18053 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18054 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18055 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18056 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18057 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18058 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18059 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18060 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18061 (GC_EQ): Remove since they've been identical to their non-GC_
18062 alter-egos ever since the markbit was eradicated.
18063
18064 * alloc.c:
18065 * buffer.c:
18066 * buffer.h:
18067 * data.c:
18068 * fileio.c:
18069 * filelock.c:
18070 * fns.c:
18071 * frame.h:
18072 * lisp.h:
18073 * macterm.c:
18074 * print.c:
18075 * process.c:
18076 * w32fns.c:
18077 * w32menu.c:
18078 * w32term.c:
18079 * xfns.c:
18080 * xmenu.c:
18081 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18082
180832008-02-01 Kenichi Handa <handa@m17n.org>
18084
18085 * chartab.c (map_sub_char_table): Make it work for the top-level
18086 char-table. Fix handling of parent char-table.
18087 (map_char_table): Adjust for the above change.
18088
180892008-02-01 Jason Rumney <jasonr@gnu.org>
18090
18091 * w32font.c (Qgdi): Rename from Qw32.
18092
180932008-02-01 Jason Rumney <jasonr@gnu.org>
18094
18095 * w32bdf.c (get_quoted_string): Make function static.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18100 bigger ascent and descent than those of the font, use them as
18101 font's ascent and descent.
18102
181032008-02-01 Kenichi Handa <handa@m17n.org>
18104
18105 * Makefile.in (${lispsource}international/charprop.el): Move this
18106 target within "#ifdef HAVE_UNIDATA" and "#endif".
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18111 (shortlisp): Add ../lisp/language/tai-viet.el.
18112
181132008-02-01 Ulrich Mueller <ulm@gentoo.org>
18114
18115 * Makefile.in (${lispsource}international/charprop.el): Depend on
18116 temacs${EXEEXT}.
18117
181182008-02-01 Jason Rumney <jasonr@gnu.org>
18119
18120 * w32font.c (w32font_close): Delete the GDI font object.
18121
18122 * w32menu.c: Include character.h.
18123
18124 * w32proc.c: Likewise.
18125
18126 * w32select.c: Likewise.
18127
18128 * makefile.w32-in (w32proc.o): Depend on character.h.
18129
181302008-02-01 Jason Rumney <jasonr@gnu.org>
18131
18132 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18133
18134 * w32menu.c (syms_of_w32menu): Likewise.
18135
18136 * w32proc.c (syms_of_ntproc): Likewise.
18137
18138 * w32select.c (syms_of_w32select): Likewise.
18139
18140 * w32term.c (syms_of_w32term): Likewise.
18141
181422008-02-01 Jason Rumney <jasonr@gnu.org>
18143
18144 * w32font.c (w32font_draw): Delete brush after using it.
18145
181462008-02-01 Jason Rumney <jasonr@gnu.org>
18147
18148 * w32font.c (w32font_open): Don't set font_idx.
18149 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18150 to font settings.
18151 (w32font_draw): Fill background explicitly.
18152
181532008-02-01 Jason Rumney <jasonr@gnu.org>
18154
18155 * w32term.c (w32_initialize): Don't call w32font_initialize.
18156
18157 * w32font.c (w32font_info): Remove subranges.
18158 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18159 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18160 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18161 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18162 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18163 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18164 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18165 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18166 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18167 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18168 New symbols.
18169 (font_callback_data): New struct.
18170 (w32font_list, w32font_match): Use it.
18171 (w32font_open): Don't populate subranges.
18172 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18173 (w32font_encode_char): Always return unicode code-point as-is.
18174 (w32font_text_extents): Supply a transformation matrix to
18175 GetGlyphOutline. Never look up by glyph index. Avoid looping
18176 twice. Use unicode version of GetTexExtentPoint32 instead of
18177 glyph index version.
18178 (set_fonts_frame): Remove.
18179 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18180 set frame parameter. Use backward compatible fake foundries.
18181 Save generic family in extra slot under QCfamily. Make width slot
18182 constant. Save QCspacing value. Save list of scripts instead of
18183 binary subranges.
18184 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18185 (add_font_entity_to_list): Use font_callback_data struct. Filter
18186 unwanted fonts.
18187 (add_one_font_entity_to_list): Use font_callback_data struct.
18188 (w32_registry): Default to iso10646_1.
18189 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18190 string font registries. Don't fill in font name if it is a generic
18191 family name, fill family instead. Use spacing, family and script
18192 extra info to fill pitch, family and charset fields.
18193 (list_all_matching_fonts): Use font_callback_data struct.
18194 (unicode_range_for_char): Remove.
18195 (font_supported_scripts): New function.
18196 (w32font_initialize): Remove.
18197 (syms_of_w32font): Update which symbols are defined.
18198
181992008-02-01 Jason Rumney <jasonr@gnu.org>
18200
18201 * font.c (font_pixel_size): Reverse assq_no_quit args.
18202
18203 * w32term.h (FONT_WIDTH): Report max width, not average.
18204 (FONT_MAX_WIDTH): Remove.
18205 (FONT_AVG_WIDTH): New macro.
18206
18207 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18208 redefinition of FONT_WIDTH.
18209
18210 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18211 (w32_cache_char_metrics): Use FONT_WIDTH.
18212
18213 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18214
182152008-02-01 Jason Rumney <jasonr@gnu.org>
18216
18217 * w32font.c (w32font_open): Make lfHeight negative.
18218
18219 * w32fns.c (x_default_font_parameter): Use new style font name.
18220 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18221
182222008-02-01 Jason Rumney <jasonr@gnu.org>
18223
18224 * w32font.c (QCsubranges): New symbol.
18225 (w32font_open, w32font_has_char): Get subranges from subproperty
18226 of extra.
18227 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18228 (syms_of_w32font): Define :subranges symbol.
18229
18230 * font.c (font_put_extra): Expose externally.
18231
18232 * font.h (font_put_extra): Move declaration from font.c.
18233
18234 * font.c (Ffont_get): Use font driver to determine otf capability.
18235 (adjust_anchor): Check if driver defines anchor_point before using.
18236
18237 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18238 (w32font_draw): Use options.
18239 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18240 Fix detection of truetype fonts.
18241 (registry_to_w32_charset): Handle charsets other than iso8859-1
18242 expressed as lisp symbols.
18243 (w32_registry): Express charset as lisp symbol.
18244 (fill_in_logfont): Reverse pixel and point height logic.
18245 Don't set width here. Set quality to default.
18246
18247 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18248 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18249
18250 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18251 Remove redundant loop and allocation.
18252
18253 * makefile.w32-in (font.o, w32font.o): New objects.
18254 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18255 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18256
18257 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18258 STORE_XCHARB a valid l-value.
18259
18260 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18261 calculations for non-Truetype fonts.
18262 (x_draw_glyph_string): Sync with xterm.c.
18263 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18264 Remove redundant code.
18265 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18266
18267 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18268 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18269
18270 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18271 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18272
18273 * w32font.c: New file for w32 font backend.
18274
182752008-02-01 Kenichi Handa <handa@m17n.org>
18276
18277 * term.c: Don't include "buffer.h" twice.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * character.c (Funibyte_string): New function.
18282 (syms_of_character): Defsubr it.
18283
182842008-02-01 Jason Rumney <jasonr@gnu.org>
18285
18286 * w32term.c [USE_FONT_BACKEND]:
18287 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18288 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18289 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18290 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18291 (x_free_frame_resources): Sync with xterm.c.
18292
182932008-02-01 Andreas Schwab <schwab@suse.de>
18294
18295 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18296 char-table size.
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18305 font_otf_gpos, add font_drive_otf.
18306
18307 * fontset.c (fontset_find_font): Pay attention to font size
18308 specified for a font.
18309 (reorder_font_vector): Check contents of font_def.
18310
18311 * font.c (struct otf_list): Delete it.
18312 (otf_list): Make it a lisp variable.
18313 (otf_open): Use lispy otf_list.
18314 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18315 (check_otf_features): New function.
18316 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18317 New functions.
18318 (font_drive_otf): New function merging font_otf_gsub and
18319 font_otf_gpos.
18320 (font_open_for_lface): New arg spec. Change argument order.
18321 (font_load_for_face): Adjust for the change of font_open_for_lface.
18322 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18323 Ffont_otf_gpos.
18324 (syms_of_font): Staticpro otf_list. Delete defsubr of
18325 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18326
18327 * xfaces.c (set_font_frame_param): Adjust for the change of
18328 font_open_for_lface.
18329
18330 * font.h (font_open_for_lface): Adjust prototype.
18331 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18332 member otf_drive.
18333 (font_otf_gsub, font_otf_gpos): Delete externs.
18334 (font_drive_otf): Extern it.
18335
183362008-02-01 Kenichi Handa <handa@m17n.org>
18337
18338 * font.c (font_at): If the window W is not on a window system,
18339 return Qnil.
18340
18341 * coding.c (produce_chars, encode_coding): Don't call
18342 insert_from_gap if no characters to produce.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18347 Fclear_face_cache.
18348
18349 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18350
183512008-02-01 Miles Bader <miles@gnu.org>
18352
18353 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18354 Parse "--disable-font-backend" option.
18355 (standard_args): Add "--disable-font-backend" option.
18356
183572008-02-01 Kenichi Handa <handa@m17n.org>
18358
18359 * fontset.c (fontset_find_font): New function.
18360 (fontset_font): Use fontset_find_font.
18361 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18362 Register the specified font for all Latin characters.
18363 (new_fontset_from_font): Register the specified font for all Latin
18364 characters.
18365 (dump_fontset): For a realized fontset, include the base fontset
18366 name in the returned vector.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * character.h (CHAR_STRING): Cast C to unsigned on calling
18371 char_string.
18372
18373 * character.c (char_string): Type of arg C changed to unsigned.
18374 Signal an error if C is an invalid character code.
18375
18376 * editfns.c (general_insert_function, Fchar_to_string):
18377 Use CHARACTERP, not INTEGERP.
18378
183792008-02-01 Kenichi Handa <handa@m17n.org>
18380
18381 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18382 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18383
18384 * regex.c (analyse_first): Fix for multibyte characters in "case
18385 charset:" and "case categoryspec:".
18386
183872008-02-01 Andreas Schwab <schwab@suse.de>
18388
18389 * Makefile.in (LIBES): Move standard libraries to the end.
18390
183912008-02-01 Kenichi Handa <handa@m17n.org>
18392
18393 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18394 nonzero, don't shrink the buffer nextb.
18395
18396 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18397
18398 * coding.c (coding_alloc_by_making_gap): New arg offset.
18399 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18400 offset.
18401 (decode_coding_iso_2022): Update coding->safe_charsets.
18402 (decode_coding_gap): Temporarily set
18403 current_buffer->text->inhibit_shrinking to 1.
18404
184052008-02-01 Kenichi Handa <handa@m17n.org>
18406
18407 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18408 indexing into elements of s->cmp and s->char2b.
18409
184102008-02-01 Juanma Barranquero <lekktu@gmail.com>
18411
18412 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18417 target_multibyte instead of multibyte.
18418 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18419 (bcmp_translate): Change the argument name from multibyte to
18420 target_multibyte.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 These changes are to compile a regexp into a pattern that can be
18425 used both for multibyte and unibyte targets.
18426
18427 * Makefile.in (search.o): Depend on charset.h.
18428
18429 * character.c (multibyte_char_to_unibyte_safe): New function.
18430
18431 * search.c: Include "charset.h".
18432 (compile_pattern_1): Delete argument multibyte. Don't set
18433 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18434 (compile_pattern): Don't compare cp->buf.target_multibyte.
18435 Compare cp->buf.charset_unibyte.
18436 (compile_pattern): Set cp->buf.target_multibyte.
18437
18438 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18439
18440 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18441
18442 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18443 multibyte. Change callers.
18444 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18445 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18446 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18447 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18448 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18449 (regex_compile): Make the compiled pattern usable both for
18450 multibyte and unibyte targets.
18451 (analyse_first): Make the fastmap usable both for multibyte and
18452 unibyte targets.
18453 (TRANSLATE_VIA_MULTIBYTE): Delete.
18454 (re_match_2_internal): Pay attention to the case that the
18455 multibyteness of bufp and target may be different.
18456
184572008-02-01 Kenichi Handa <handa@m17n.org>
18458
18459 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18460 empty box occupy at least one column width.
18461
184622008-02-01 Miles Bader <miles@gnu.org>
18463
18464 * Makefile.in: Remove redundant HAVE_XFT clause.
18465
184662008-02-01 Kenichi Handa <handa@m17n.org>
18467
18468 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18469
184702008-02-01 Kenichi Handa <handa@m17n.org>
18471
18472 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18473 being nil.
18474
184752008-02-01 Kenichi Handa <handa@m17n.org>
18476
18477 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18478
184792008-02-01 Kenichi Handa <handa@m17n.org>
18480
18481 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * search.c (simple_search): Fix previous change.
18486
184872008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 * xftfont.c (ftfont_font_format): Extern declaration.
18490
18491 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18492
18493 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18494 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18495
18496 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18497 (ftfont_font_format): Fix previous change.
18498
18499 * font.h (Ffont_xlfd_name): EXFUN it.
18500
18501 * font.c (font_parse_xlfd): Fix the array size of `f'.
18502 (register_font_driver): Use EQ to compare driver->type.
18503
18504 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18505 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18506 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18507
185082008-02-01 Kenichi Handa <handa@m17n.org>
18509
18510 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18511 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18512
185132008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * xfont.c (xfont_open): Set font->format.
18516
18517 * xftfont.c (xftfont_open): Set font->format.
18518
18519 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18520 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18521 (ftfont_open): Set font->format.
18522 (ftfont_font_format): New function.
18523
18524 * font.h (struct font): New member format.
18525
18526 * font.c (Qopentype): New variable.
18527 (syms_of_font): Defsym it.
18528 (Fquery_font): Change the format of the last element of the return
18529 value.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18534 last resort.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * coding.c (detect_coding_charset): Fix detection of multi-byte
18539 charset.
18540
185412008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18542
18543 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * xdisp.c (get_next_display_element): Set it->face_id for the
18548 first component of a composition.
18549 (x_produce_glyphs): Check if the font is changed or not for composition.
18550
185512008-02-01 Kenichi Handa <handa@m17n.org>
18552
18553 * fontset.c (Qlatin): New variable.
18554 (syms_of_fontset): Define it as a lisp symbol.
18555 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * font.c (font_unparse_fcname): Pay attention to the case that
18560 some of font property is a null string.
18561
185622008-02-01 Kenichi Handa <handa@m17n.org>
18563
18564 * term.c: Include "composite.h".
18565 (encode_terminal_code): Output all components of composition.
18566 Check the size of encode_terminal_src.
18567 (produce_glyphs): For composition, call produce_composite_glyph.
18568 (append_composite_glyph, produce_composite_glyph): New functions.
18569
18570 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18571 is not found, get font_info from the current ascii face.
18572
185732008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18576 buffer-file-name to Qnil before calling insert_from_buffer.
18577
18578 * font.c (font_unparse_fcname): Pay attention to the case that
18579 foundry is a null string.
18580
185812008-02-01 Kenichi Handa <handa@m17n.org>
18582
18583 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18584
18585 * font.c (Qunicode_sip): New variable.
18586 (syms_of_font): Declare it as a Lisp symbol.
18587
18588 * font.h (Qunicode_sip): Extern it.
18589
185902008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * composite.c (get_composition_id): Pay attention to TAB component.
18593
18594 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18595 TAB. Adjust for the change of s->char2b which always points to
18596 the first element of allocated memory.
18597
18598 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18599
18600 * xdisp.c (handle_composition_prop): Set it->c to the first
18601 non-TAB component.
18602 (fill_composite_glyph_string): Change argument.
18603 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18604 (x_produce_glyphs): Fix handling of left/right padding.
18605
186062008-02-01 Kenichi Handa <handa@m17n.org>
18607
18608 * coding.c (detect_coding_system): Fix for handling off
18609 inhibit_iso_escape_detection. Fix for the case that no coding
18610 system is defined for a specific coding category.
18611
186122008-02-01 Kenichi Handa <handa@m17n.org>
18613
18614 * font.c (font_matching_entity): Delete unused local var.
18615
18616 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18617 opening a font.
18618
18619 * fileio.c (Finsert_file_contents): On recovering a file, assume
18620 Unix-like eol.
18621 (choose_write_coding_system): On auto-saving a file, force
18622 Unix-like eol.
18623
18624 * coding.c (setup_coding_system): Fix setting of
18625 coding->common_flags based on eol_type.
18626 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18627 inherit from it.
18628
186292008-02-01 Kenichi Handa <handa@m17n.org>
18630
18631 * alloc.c (NSTATICS): Increas to 0x600.
18632
186332008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18636 (ftfont_list): Don't check :name property.
18637 (ftfont_match): New function.
18638 (ftfont_pattern_entity): If the pattern doesn't contain
18639 FC_SPACING, don't assume FC_MONO.
18640
18641 * font.h (struct font_driver): New member `match'.
18642 (font_update_drivers): Adjust prototype.
18643
18644 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18645 property of FONT.
18646 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18647 them unconditionally.
18648 (font_matching_entity): New function.
18649 (font_open_by_name): Try font_matching_entity if exact match is
18650 not found.
18651 (font_update_drivers): Delete the arg FONT. Return a list of
18652 actually used backends. Don't free faces, font caches here.
18653 Don't store data in frame parameters. Don't call x_set_font.
18654 (Ffont_spec): Store :name property as is.
18655 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18656 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18657 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18658 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18659 Call font->driver->otf_gsub instead of font_otf_gsub.
18660
18661 * frame.c (x_set_font_backend): Do more works that were done in
18662 font_update_drivers before.
18663
18664 * xfont.c (xfont_match): New function.
18665 (xfont_driver): Set xfont_driver.match to xfont_match.
18666 (xfont_draw): Set font in GC if necessary.
18667
18668 * ftxfont.c (ftxfont_match): New function.
18669 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18670
18671 * xftfont.c (xftfont_match): New function.
18672 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * font.h (struct font): New member scalable.
18677 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18678 (font_otf_gsub): Adjust prototype.
18679
18680 * font.c (font_otf_capability): Fix handling of the default langsys.
18681 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18682 Check the contents of SPEC.
18683 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18684 (check_gstring): New function.
18685 (REPLACEMENT_CHARACTER): New macro.
18686 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18687 glyph codes of GSTRING.
18688 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18689 (font_prepare_composition): Set cmp->glyph_len.
18690 (font_open_entity): Set font->scalable.
18691 (Ffont_get): Handle :otf property.
18692 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18693 functions.
18694 (Fquery_font): Use font->font.full_name.
18695 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18696 Sfont_otf_alternates.
18697
18698 * ftfont.c (ftfont_open): Set font->font.full_name and
18699 font->font.name properly. Fix calculation of font->font.height
18700 and font->min_width.
18701
18702 * ftxfont.c (ftxfont_create_gcs): New function.
18703 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18704 (ftxfont_draw_backgrond): Fix filling region.
18705 (ftxfont_default_fid): New function.
18706 (ftxfont_open): Set xfont->fid to the return value of
18707 ftxfont_default_fid.
18708 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18709 (ftxfont_done_face): Free only GCs that are created by
18710 ftxfont_create_gcs.
18711 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18712
18713 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18714 Clip to src->width, etc (not src->clip_XXX).
18715
18716 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18717 FontBackend frame parameter.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * font.h (struct font_driver_list): New member `on'.
18722 (Fclear_font_cache): EXFUN it.
18723 (font_update_drivers): Extern it.
18724
18725 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18726 (font_list_entities): Check driver_list->on.
18727 (register_font_driver): Initalize `on' member to 0.
18728 (font_update_drivers): New function.
18729 (Fclear_font_cache): Check driver_list->on.
18730
18731 * frame.h (Qfont_backend): Extern it.
18732 (x_set_font_backend): Extern it.
18733
18734 * frame.c (Qfont_backend): New variable.
18735 (frame_parms): New element for font-backend.
18736 (x_set_font_backend): New function.
18737
18738 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18739 FontBackend frame parameter.
18740 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18741 x_set_font_backend.
18742
18743 * xfont.c (xfont_list): Don't try listing by :name property if the
18744 name is not for XLFD.
18745
187462008-02-01 Kenichi Handa <handa@m17n.org>
18747
18748 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18749 (LGLYPH_SET_TO): New macros.
18750 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18751 element of G is vector or not.
18752 (font_at): Extern it.
18753
18754 * font.c: Include window.h.
18755 (font_lispy_object): New function.
18756 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18757 end of valid glyph.
18758 (font_close_object): Fix getting (struct font *).
18759 (font_at): New function.
18760 (Ffont_get): If FONT is a font-object, get entity from it.
18761 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18762 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18763 range check.
18764 (Ffont_at): New function.
18765 (syms_of_font): Defsubr Sfont_at.
18766
18767 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18768 before the entry for Qcomposition.
18769 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18770 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18771 the font in gstring.
18772 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18773 LGLYPH_FORM (g) to detect the end of valid glyph.
18774 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18775 we are composing with gstring.
18776
18777 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18778 Check if adjustment is vector or not.
18779
18780 * Makefile.in (font.o): Make it depends on window.h.
18781
187822008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18785 adjustment is vector or not.
18786
187872008-02-01 Miles Bader <miles@gnu.org>
18788
18789 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18794 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18795 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18796
18797 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18798 (DEVICE_DELTA): Fix typo.
18799 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18800 LGLYPH format.
18801
18802 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18803 the change of LGLYPH format.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * ftfont.c (ftfont_list): Fix typo.
18808 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18809
188102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18811
18812 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18813
18814 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18815 xftface_info is non-NULL.
18816
188172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18818
18819 * ftfont.c (ftfont_list): Move misplaced #endif.
18820
188212008-02-01 Kenichi Handa <handa@m17n.org>
18822
18823 * ftfont.c (ftfont_list): Pay attention to the case that
18824 FC_CAPABILITY is not defined.
18825
188262008-02-01 Kenichi Handa <handa@m17n.org>
18827
18828 * xftfont.c (xftfont_open): Set charset related members to -1.
18829
18830 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18831 QCname.
18832 (ftfont_open): Set charset related members to -1.
18833
18834 * fontset.c (Votf_script_alist): New variable.
18835 (syms_of_fontset): Initialize it.
18836 (fontset_font): Delete unused variable.
18837
18838 * fontset.h (Votf_script_alist): Extern it.
18839
18840 * font.c (font_find_for_lface): Optimize code.
18841
18842 * font.h (font_close_object, font_merge_old_spec): Extern them.
18843
188442008-02-01 Kenichi Handa <handa@m17n.org>
18845
18846 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18847 (syms_of_font): Initialize them.
18848 (font_pixel_size): Allow float value in dpi.
18849 (font_prop_validate_type): Delete.
18850 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18851 Change caller.
18852 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18853 (font_prop_validate_extra): Delete.
18854 (font_prop_validate_spacing): New function.
18855 (font_property_table): Add elements for all known properties.
18856 (get_font_prop_index): Rename from check_font_prop_name. New
18857 argument FROM. Change caller.
18858 (font_prop_validate): Validate all known properties.
18859 (font_put_extra): Delete argument force. Change caller.
18860 (font_expand_wildcards): Make it static. Fix the way of shrinking
18861 the possible range.
18862 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18863 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18864 Change caller.
18865 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18866 (font_parse_fcname): Delete argument merge. Fix parsing of point
18867 size. Don't validate properties values here. Change caller.
18868 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18869 (font_open_by_name): Delete unused variable.
18870 (Ffont_spec): Likewise. Validate property values.
18871 (Ffont_match_p): New function.
18872
18873 * font.h (QCscalable): Extern it.
18874 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18875
18876 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18877
18878 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18879 (xfont_list_pattern): New function.
18880 (xfont_list): Use xfont_list_pattern.
18881
188822008-02-01 Kenichi Handa <handa@m17n.org>
18883
18884 * font.h (Flist_fonts): EXFUN it.
18885
188862008-02-01 Jason Rumney <jasonr@gnu.org>
18887
18888 * w32term.c (w32_initialize): Add back smoothing_type and
18889 smoothing_enabled definitions.
18890
188912008-02-01 Kenichi Handa <handa@m17n.org>
18892
18893 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18894 s->face->font on determining underline position.
18895
188962008-02-01 Kenichi Handa <handa@m17n.org>
18897
18898 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18899 (font_has_char): Accept font-object too.
18900 (font_find_for_lface): Try at first with a size specified in face.
18901
189022008-02-01 Kenichi Handa <handa@m17n.org>
18903
18904 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18905 font_open_by_name.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * font.h (QCspacing, QCdpi): Extern them.
18910 (enum font_spacing): New enum.
18911 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18912
18913 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18914 (QCspacing, QCdpi): New variables.
18915 (syms_of_font): Initialize them.
18916 (font_pixel_size): New function.
18917 (font_put_extra): New function.
18918 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18919 in FONT_EXTRA.
18920 (font_parse_fcname): Handle enumerated values (e.g. bold).
18921 Fix handling font size. Add QCname property that contains only
18922 unknown properties.
18923 (font_score): Change argument. Change caller. Pay attention to
18924 FONT_PIXEL_SIZE_QUANTUM.
18925 (font_sort_entites, font_list_entities, font_find_for_lface)
18926 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18927 (Ffont_spec): Add QCname property that contains only unknown properties.
18928
18929 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18930 include weight in listing pattern, instead check weight of each
18931 listed font. Don't include scalable in pattern. Pay attention to
18932 FONT_PIXEL_SIZE_QUANTUM.
18933
189342008-02-01 Kenichi Handa <handa@m17n.org>
18935
18936 * font.c (font_parse_fcname): Fix parsing of point-size.
18937 (font_unparse_fcname): Produce symbolic names for style properties.
18938 (font_list_entities): Handle float size correctly.
18939 (font_open_by_name): Prefer `normal' property values if the name
18940 doesn't specify them.
18941
18942 * fontset.c (Finternal_char_font): Use font_get_name, not
18943 Ffont_xlfd_name.
18944
18945 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18946 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18947 pattern. Don't force scalable.
18948
18949 * xftfont.c (xftfont_open): For generating a name, start from
18950 96-byte buffer.
18951
189522008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18953
18954 * frame.h (x_new_fontset2): Fix prototype.
18955
189562008-02-01 Kenichi Handa <handa@m17n.org>
18957
18958 * font.h (struct font_driver): Delete member parse_name.
18959 (font_match_p, font_get_spec, font_parse_fcname)
18960 (font_unparse_fcname): Extern them.
18961 (font_get_name): Adjust prototype.
18962
18963 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18964 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18965 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18966 unnecessary checks for weight, slant, and swidth.
18967 (font_parse_fcname): New function.
18968 (font_unparse_fcname): New function.
18969 (font_parse_name): New function.
18970 (font_match_p): New function.
18971 (font_get_name): Change return value to Lisp string.
18972 (font_get_spec): New function.
18973 (Qunspecified, Qignore_defface): Don't extern them.
18974 (font_find_for_lface): Assume that LFACE is fully specified.
18975 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18976 object, use it for FACE.
18977 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18978 driver->parse_name.
18979 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18980
18981 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18982 prototype.
18983
18984 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18985 argument F. Don't call Fnew_fontset. Instead, directly call
18986 make_fontset.
18987
18988 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18989
18990 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18991 of x_new_fontset2.
18992
18993 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18994 (Qsans__serif): New variables.
18995 (ftfont_generic_family_list): New variable.
18996 (syms_of_ftfont): Initialize the above variables.
18997 (ftfont_pattern_entity): Delete argument NAME.
18998 (ftfont_list_generic_family): New function.
18999 (ftfont_parse_name): Delete this function.
19000 (ftfont_list): Try generic family only when FcFontList found no font.
19001 (ftfont_list_family): Fix args to FcObjectSetBuild.
19002
19003 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19004 object in attrs[LFACE_FONT_INDEX].
19005 (set_lface_from_font_name): Cancel all changes for font-backend.
19006 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19007 function.
19008 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19009 font object in QCfont attribute.
19010 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19011 (realize_default_face) [USE_FONT_BACKEND]: Call
19012 set_lface_from_font_and_fontset.
19013
19014 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19015 "fixed", and signal error here if no suitable font was found.
19016
19017 * xfont.c (xfont_parse_name): Delete this function.
19018
19019 * xftfont.c (xftfont_open): Change coding style of error
19020 handling. Generate fontconfig's fontname pattern.
19021
19022 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19023 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19024
19025 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19026 Both args FONTSET and FONT_OBJECT must be existing ones.
19027
190282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19029
19030 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19031
190322008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19035
19036 * font.h (struct font): Fix typo.
19037
19038 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19039 XLFD_XXX_INDEX.
19040 (enum xlfd_field_mask): New enum.
19041 (intern_font_field): Changed argument. Change caller. If digits
19042 are followed by non-digits, return a symbol.
19043 (font_expand_wildcards): New function.
19044 (font_parse_xlfd): Fix wildcard handling.
19045 (Ffont_spec): If :name is specified, reflect the info in the other
19046 properties.
19047
19048 * ftfont.c (ftfont_pattern_entity): Fix typo.
19049 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19050 locale.
19051
190522008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19055
19056 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19057 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19058 registry doesn't specify encoding part.
19059 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19060 (font_open_by_name): At first try parsing the name.
19061 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19062 as Lisp symbols.
19063
19064 * fontset.c (reorder_font_vector): Pay attention to the case that
19065 the 3rd element of font_def is nil.
19066 (fontset_font): For the default fontset, append one more fontset
19067 elements for a script-based font specification. Don't add script
19068 attribute on finding a font.
19069 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19070 font name.
19071 (fontset_ascii_font): If a font can't be opened, return nil.
19072
19073 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19074 (ftfont_pattern_entity): New function.
19075 (ftfont_get_cache): Assume that freetype_font_cache is already
19076 initialized.
19077 (ftfont_list): Handle the case that a file is specified in font
19078 name. Use ftfont_pattern_entity to generate entities.
19079 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19080 (syms_of_ftfont): Initialize freetype_font_cache.
19081
19082 * xftfont.c (xftfont_open): Make the font name fontconfig's
19083 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19084 (xftfont_close): Free font->font.name if not NULL.
19085
19086 * xfont.c (xfont_list): If script is specified for a font, return
19087 null_vector.
19088 (xfont_list_family): Declare argument type.
19089
19090 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19091 name, set LFACE_FONT (lface) to nil.
19092
19093 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19094 return Qnil.
19095
190962008-02-01 Kenichi Handa <handa@m17n.org>
19097
19098 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19099 (standard_args): Add "-enable-font-backend".
19100
191012008-02-01 Kenichi Handa <handa@m17n.org>
19102
19103 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19104 (struct xftdraw_list, xftdraw_list): Delete them.
19105 (register_xftdraw, check_xftdraw): Delete them.
19106 (xftfont_prepare_face): Don't call register_xftdraw.
19107 (xftfont_done_face): Don't call check_xftdraw.
19108 (xftfont_draw): Get background color only when with_background is
19109 nonzero.
19110
19111 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 These changes are for the new font handling codes.
19116
19117 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19118 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19119 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19120 (FONTSRC, FONTOBJ): New variables.
19121 (obj): Add $(FONTOBJ).
19122 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19123 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19124 @LIBOTF_LIBS@.
19125 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19126 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19127
19128 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19129
19130 * character.h (Vscript_representative_chars): Extern it.
19131
19132 * character.c (Vscript_representative_chars): New variable.
19133 (syms_of_character): Declare it as a Lisp variable.
19134
19135 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19136 enable_font_backend is nonzero, accept the composition method
19137 COMPOSITION_WITH_GLYPH_STRING.
19138
19139 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19140 enumeration COMPOSITION_WITH_GLYPH_STRING.
19141
19142 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19143 members clip_x, clip_y, clip_width, and clip_height.
19144 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19145
19146 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19147 --enable-font-backend. Call syms_of_font.
19148
19149 * fns.c (assoc_no_quit): New function.
19150
19151 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19152 (face_for_font, new_fontset_from_font)
19153 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19154
19155 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19156 (fontset_font, fontset_ascii, face_for_char)
19157 (make_fontset_for_ascii_face, Ffont_info)
19158 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19159 is nonzero, use font-backend mechanism.
19160 (find_font_encoding): Make it non-static.
19161 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19162 New functions.
19163
19164 * frame.h (struct frame): New members resx and resy.
19165 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19166 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19167
19168 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19169 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19170
19171 * lisp.h (assoc_no_quit): Extern it.
19172
19173 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19174 Through out the file, use FONT_INFO_FROM_FACE instead of
19175 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19176 rif->per_char_metric.
19177 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19178 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19179 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19180 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19181 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19182 nonzero, use font-backend mechanism.
19183 (get_per_char_metric): New function.
19184
19185 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19186 (set_lface_from_font_name)
19187 (set_font_frame_param, free_realized_face)
19188 (prepare_face_for_display, clear_face_gcs)
19189 (Finternal_set_font_selection_order, realize_x_face)
19190 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19191 font-backend mechanism.
19192 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19193 (load_face_font) [USE_FONT_BACKEND]: Abort.
19194 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19195 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19196
19197 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19198 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19199 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19200 nonzero, register all available font drivers. Call
19201 x_default_font_parameter for deciding a font.
19202 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19203
19204 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19205 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19206 (x_set_glyph_string_clipping_exactly)
19207 (x_compute_glyph_string_overhangs)
19208 (x_draw_glyph_string_foreground)
19209 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19210 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19211 enable_font_backend is nonzero, use font-backend mechanism.
19212 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19213
192142008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19217 system_eol_type.
19218 (syms_of_coding): Initialize system_eol_type.
19219
19220 * process.c (Fset_process_coding_system): Inherit system's eol
19221 format if necessary.
19222
192232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19224
19225 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19226
192272008-02-01 Kenichi Handa <handa@m17n.org>
19228
19229 * coding.c (decode_eol): Pay attention to buffer relocation in
19230 del_range_2.
19231 (decode_coding): Call decode_eol before restoring undo_list.
19232
192332008-02-01 Kenichi Handa <handa@m17n.org>
19234
19235 * charset.c (Fdefine_charset_internal): Fix setting of
19236 emacs_mule_bytes.
19237
192382008-02-01 Kenichi Handa <handa@m17n.org>
19239
19240 * keyboard.c (read_char): Check if C is a character or not before
19241 looking up Vkeyboard_translate_table.
19242
192432008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19246 condition to terminate the loop.
19247
192482008-02-01 Kenichi Handa <handa@m17n.org>
19249
19250 * coding.c (produce_composition): Compare charbuf[i] instead of
19251 args[i] against 0.
19252 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19253
192542008-02-01 Kenichi Handa <handa@m17n.org>
19255
19256 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19257 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19258 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19259 detect_coding.
19260 (emacs_mule_char): Handle old style (Emacs 20) component character
19261 of a composition.
19262 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19263 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19264 composition rule.
19265 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19266
192672008-02-01 Kenichi Handa <handa@m17n.org>
19268
19269 * coding.c (encode_coding_ccl): Allocate destination dynamically
19270 when necessary.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19275 the loop. When quitted, show a proper error message.
19276
192772008-02-01 Kenichi Handa <handa@m17n.org>
19278
19279 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19280 src->clip_head and src->clip_tail temporarily instead of src->hl.
19281
19282 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19283 character sequence.
19284 (Fccl_execute_on_string): Use ASET, not XSET.
19285
192862008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19289
192902008-02-01 Kenichi Handa <handa@m17n.org>
19291
19292 * coding.c (decode_coding): Fix the condition of terminating the
19293 decoding loop.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * data.c (Faset): On setting a character bigger than 255 in a
19298 unibyte string, signal an error instead of make the string multibyte.
19299
193002008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19303 made by a mapping table.
19304
193052008-02-01 Kenichi Handa <handa@m17n.org>
19306
19307 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19308 not.
19309 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19310 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19311
19312 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19313 s->face is NULL or not.
19314
193152008-02-01 Kenichi Handa <handa@m17n.org>
19316
19317 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19318 (x_draw_glyph_string): Fix drawing of right_overhang and
19319 left_overhang around/on cursor.
19320
19321 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19322
193232008-02-01 Kenichi Handa <handa@m17n.org>
19324
19325 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19326
193272008-02-01 Kenichi Handa <handa@m17n.org>
19328
19329 * coding.c (Fdefine_coding_system_internal)
19330 (Fdefine_coding_system_alias): Avoid a duplicated element in
19331 Vcoding_system_alist.
19332
193332008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19336
19337 * coding.c (Qcoding_system_define_form): New variable.
19338 (syms_of_coding): Intern and staticpro it.
19339 (Fcoding_system_p): Check Qcoding_system_define_form.
19340 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19341
19342 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19343 Fcoding_system_p.
19344 (CHECK_CODING_SYSTEM): If ID is not available, call
19345 Fcheck_coding_system.
19346 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19347 Try also Fcheck_coding_system.
19348
193492008-02-01 Kenichi Handa <handa@m17n.org>
19350
19351 * coding.c (code_conversion_restore): GCPRO arg.
19352
193532008-02-01 Kenichi Handa <handa@m17n.org>
19354
19355 * character.c (lisp_string_width): Check multibyteness of STRING.
19356
193572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19358
19359 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19360 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19361 (decode_mac_font_name): Use decode_coding_c_string instead of
19362 decode_coding.
19363 (x_load_font): Initialize fontp->fontset to -1. Set
19364 fontp->encoding_type.
19365
193662008-02-01 Kenichi Handa <handa@m17n.org>
19367
19368 * search.c (search_buffer): Give up BM search on case-fold-search
19369 if one of a target character has a case-equivalence of different
19370 byte length even if that target charcter is an ASCII.
19371 (simple_search): Fix calculation of byte length of matched text.
19372 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19373
193742008-02-01 Kenichi Handa <handa@m17n.org>
19375
19376 * coding.c (decode_coding): Fix handling of invalid bytes.
19377
193782008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19381 Unicode characters.
19382
193832008-02-01 Kenichi Handa <handa@m17n.org>
19384
19385 * coding.c (encode_coding_object): If a pre-write-conversion
19386 function makes a new buffer, kill it.
19387
193882008-02-01 Kenichi Handa <handa@m17n.org>
19389
19390 * coding.c (QCascii_compatible_p): New variable.
19391 (syms_of_coding): Initialize it.
19392 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19393 calling string_char.
19394 (record_conversion_result): Add `default:' case.
19395 (coding_charset_list): Delete unused variable `coding_type'.
19396 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19397 property in the plist of the coding system.
19398 (Fcoding_system_put): Check QCascii_compatible_p.
19399
194002008-02-01 Miles Bader <miles@gnu.org>
19401
19402 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19403 removed calculation of frame `f', as it's now used.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19408 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19409 (UNIDATA): New variable.
19410 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19411 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19412 $(RUN_TEMACS) unconditionally.
19413
194142008-02-01 Kenichi Handa <handa@m17n.org>
19415
19416 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19417 (admindir): New variable.
19418 ($(lispsource)international/charprop.el): New target.
19419
194202008-02-01 Miles Bader <miles@gnu.org>
19421
19422 * character.c (chars-in-region): Remove obsolete function.
19423 (syms_of_character): Remove its initialization.
19424
194252008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19426
19427 * w32select.c (validate_coding_system)
19428 (setup_windows_coding_system): New functions.
19429 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19430 setup_windows_coding_system.
19431 (setup_config, Fw32_get_clipboard_data): Use
19432 validate_coding_system.
19433 (Fx_selection_exists): Move call to setup_config to a place
19434 where signals are allowed.
19435
19436 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19437 (Fcheck_coding_system): Add declarations.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19442
194432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19444
19445 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19446 string as the second argument for x_new_fontset.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19451 (encode_coding_object): Use safe_call instead of call2.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19456
19457 * Makefile.in (lisp): Include charprop.el.
19458
194592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19460
19461 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19462 Not sure if it's unnecessary.
19463
194642008-02-01 Steven Tamm <steventamm@mac.com>
19465
19466 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19467 some possibly unnecessary fontset checking code that crashed
19468 when creating a new frame.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19473 lookup_face.
19474
19475 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19476
19477 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19478
194792008-02-01 Kenichi Handa <handa@m17n.org>
19480
19481 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19482 (coding_charset_list): New function.
19483
19484 * coding.h (coding_charset_list): Extern it.
19485
194862008-02-01 Kenichi Handa <handa@m17n.org>
19487
19488 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19489 concatenation of family and registry.
19490
194912008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * character.h (BYTE8_STRING): Fix typo.
19494
19495 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19496 string to multibyte (sync to HEAD).
19497
19498 * casefiddle.c (casify_region): Handle changes in byte-length
19499 using replace_range_2 (sync to HEAD).
19500
195012008-02-01 Andreas Schwab <schwab@suse.de>
19502
19503 * chartab.c (map_char_table): GCPRO table and arg.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19508 already at limit.
19509
195102008-02-01 Kenichi Handa <handa@m17n.org>
19511
19512 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19513 instead of fast_c_string_match_ignore_case.
19514 (find_font_encoding): Change argument to Lisp_Object. Use
19515 fast_string_match_ignore_case instead of
19516 fast_c_string_match_ignore_case. Change caller.
19517
195182008-02-01 Kenichi Handa <handa@m17n.org>
19519
19520 * xdisp.c (get_next_display_element): In unibyte case, decide to
19521 display in octal form by checking a character by
19522 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19523
19524 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19525
19526 * character.c (unibyte_has_multibyte_table): New variable.
19527
19528 * character.h (unibyte_has_multibyte_table): Extern it.
19529 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * coding.c (encode_coding_iso_2022): Fix handling of charset
19534 annotation.
19535
195362008-02-01 Kenichi Handa <handa@m17n.org>
19537
19538 * coding.c (setup_coding_system): If coding_system is nil, use
19539 Qundecided.
19540 (Fterminal_coding_system): Return nil if terminal coding system is
19541 `undecided'.
19542 (syms_of_coding): Define coding-system `undecided' here. Setup
19543 terminal_coding as `undecided'.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 * xdisp.c (message_dolog, set_message_1): Call
19548 unibyte_char_to_multibyte with arg type int.
19549
19550 * lread.c (read1): Fix reading of a char-table.
19551
19552 * print.c (print_object): Include sub char-table in circularities
19553 detection.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19558 Append the found sequences in car of ARGS instead of prepending.
19559
195602008-02-01 Kenichi Handa <handa@m17n.org>
19561
19562 * fileio.c (report_file_error): Make a unibyte string from
19563 strerror (errorno).
19564 (Fsubstitute_in_file_name): Fix the arg to
19565 unibyte_char_to_multibyte. It is evaluated twice.
19566
195672008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19570
195712008-02-01 Kenichi Handa <handa@m17n.org>
19572
19573 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19574 BOM is not found.
19575 (detect_coding, detect_coding_system): Optimization for ISO-2022
19576 when no 8-bit data is found.
19577
195782008-02-01 Jason Rumney <jasonr@gnu.org>
19579
19580 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19581
195822008-02-01 Kenichi Handa <handa@m17n.org>
19583
19584 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19585 CHARS.
19586
195872008-02-01 Steven Tamm <steventamm@mac.com>
19588
19589 * macterm.c (mac_encode_char): Add charset argument and update
19590 to use encoding_type.
19591 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19592 switch to pure fontset.
19593 (decode_mac_font_name): Temporarily remove decoding.
19594 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19595 (x_load_font): Temporarily remove encoding.
19596
195972008-02-01 Kenichi Handa <handa@m17n.org>
19598
19599 * xfaces.c (Fface_font): If frame is not on a window system,
19600 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19601 refer to face->font.
19602 (split_font_name_into_vector, build_font_name_from_vector)
19603 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19604 when HAVE_WINDOW_SYSTEM is defined.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19609 (x_produce_glyphs): Fix setting of members of cmp in case
19610 cmp->glyph_len is zero.
19611
19612 * fontset.c (Fset_fontset_font): Fix docstring.
19613 (Ffontset_info): Make it backward compatible. New arg ALL.
19614
196152008-02-01 Kim F. Storm <storm@cua.dk>
19616
19617 * process.c (read_process_output): Grow decoding_buf when needed;
19618 this could cause a crash in allocate_string and compact_small_strings.
19619
196202008-02-01 Kenichi Handa <handa@m17n.org>
19621
19622 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * coding.c (setup_coding_system): Set coding->common_flags
19627 correctly for raw-text.
19628 (consume_chars): On encoding unibyte text by raw-text, don't check
19629 multibyte form.
19630 (encode_coding): On encoding by raw-text, never use translation tables.
19631
19632 * fileio.c (e_write): Short cut for the case of no encoding.
19633
196342008-02-01 Kenichi Handa <handa@m17n.org>
19635
19636 * coding.c (detect_coding, detect_coding_system): Delete unused
19637 variables.
19638
196392008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19642 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19643
196442008-02-01 Kenichi Handa <handa@m17n.org>
19645
19646 * coding.c (Ffind_coding_systems_region_internal): Include
19647 raw-text and no-conversion in the result.
19648
196492008-02-01 Kenichi Handa <handa@m17n.org>
19650
19651 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19652 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19653 FONT_DEF.
19654 (font_def_arg, add_arg, from_arg, to_arg): New args.
19655 (set_fontset_font): Change argument.
19656 (Fset_fontset_font): Fix for the case that TARGET is a script
19657 name and charset name.
19658 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19659
196602008-02-01 Kenichi Handa <handa@m17n.org>
19661
19662 * fontset.c (fontset_font): Rename from fontset_face. Change return
19663 value.
19664 (face_suitable_for_char_p, face_for_char): Adjust for the change
19665 of fontset_font.
19666 (make_fontset_for_ascii_face): Fix setting of the fontset element
19667 for ASCII.
19668 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19669 to get a font name.
19670 (Ffontset_info): Adjust for the change of fontset_font.
19671
19672 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19673
19674 * character.h (LEADING_CODE_LATIN_1_MIN)
19675 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19676
196772008-02-01 Kenichi Handa <handa@m17n.org>
19678
19679 * editfns.c (check_translation): New function.
19680 (Ftranslate_region_internal): Handle M:N mapping.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19685
196862008-02-01 Kenichi Handa <handa@m17n.org>
19687
19688 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19689 goto invalid_code.
19690 (decode_coding_iso_2022): Fix handling of invalid designation.
19691
19692 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19693 after calling code_conversion_save.
19694
196952008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19698
19699 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19700
19701 * fontset.c: Include "intervals.h".
19702 (fontset_face): Fix comparing of Lisp_Objects.
19703 (free_face_fontset, new_fontset_from_font_name): Fix
19704 Lisp_Object/int mixup.
19705
19706 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19707
19708 * coding.c: Add many prototypes for static functions.
19709 (get_translation_table): Allow max_lookup to be NULL.
19710 (decode_coding, Ffind_coding_systems_region_internal)
19711 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19712 get_translation_table with max_lookup NULL.
19713
197142008-02-01 Kenichi Handa <handa@m17n.org>
19715
19716 * coding.c (get_translation_table): Declare it as Lisp_Object.
19717 (LOOKUP_TRANSLATION_TABLE): New macro.
19718 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19719 instead of CHAR_TABLE_REF.
19720
197212008-02-01 Kenichi Handa <handa@m17n.org>
19722
19723 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19724 annotation data format.
19725 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19726 Change arguments FROM and TO to single argument NCHARS. Change caller.
19727 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19728 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19729 (decode_coding_ccl, decode_coding_charset): Pay attention to
19730 coding->charbuf_used.
19731 (get_translation): New function.
19732 (produce_chars): New arguments translation_table and last_block.
19733 Translate characters here. Return number of carryover chars.
19734 Change caller.
19735 (produce_composition): New argument pos. Change caller.
19736 Adjust for the change of annotation data format.
19737 (produce_charset, produce_annotation): Likewise.
19738 (decode_coding, encode_coding): Don't call translate_chars.
19739 (consume_chars): New arg translation_table. Change caller.
19740 (translate_chars): Delete.
19741 (syms_of_coding): Make translation-table's number of extra slots 2.
19742
197432008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * search.c (simple_search): Fix setting this_pos_byte in backward
19746 search.
19747
19748 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19749 byte sequence.
19750 (detect_coding_ccl): Fix setting of the variable valids.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19755
19756 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19757
19758 * editfns.c (Ftranslate_region_internal): Rename from
19759 Ftranslate_region. Accept a char-table in TABLE.
19760 (syms_of_editfns): Defsubr Stranslate_region_internal.
19761
19762 * xfaces.c (set_lface_from_font_name): If a font is specified for
19763 a frame, generate a fontset from the font.
19764 (build_scalable_font_name): If the scalable font is requested for
19765 a specific size, don't change that size.
19766 (try_font_list): Try a scalable font also in the case that a
19767 pattern string is specified.
19768
197692008-02-01 Kenichi Handa <handa@m17n.org>
19770
19771 * xfaces.c (Fface_font): New optional arg CHARACTER.
19772
197732008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * charset.h (CHARSET_OFFSET): New macro.
19776
197772008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19780
19781 * fontset.c (fontset_face): Handle the case that repertory is a
19782 char-table.
19783 (find_font_encoding): Return nil for unknown encoding.
19784 (Fset_fontset_font): Ignore a font of unknown encoding.
19785
197862008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * keymap.c (describe_vector): Handle default value of a char table.
19789
19790 * fontset.c (fontset_face): Handle fallback fonts correctly.
19791 (Ffontset_info): Return infomation about fallback fonts.
19792
197932008-02-01 Kenichi Handa <handa@m17n.org>
19794
19795 * fontset.c (FONTSET_DEFAULT): New macro.
19796 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19797 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19798 the case that it is nil.
19799 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19800 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19801
19802 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19803 subset or superset.
19804
198052008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * emacs.c (main): Call init_charset after syms_of_XXX.
19808
19809 * charset.c (Vcharset_map_directory): Delete.
19810 (Vcharset_map_path): New variable.
19811 (load_charset_map_from_file): Use Vcharset_map_path instead.
19812 (init_charset): Initialize Vcharset_map_path.
19813 (syms_of_charset): Delete declaration of "charset-map-directory",
19814 add declaration of "charset-map-path".
19815
198162008-02-01 Kenichi Handa <handa@m17n.org>
19817
19818 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19819 ASCII only string.
19820
19821 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19822
19823 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19824 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19825
198262008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19829
19830 * coding.c (QCmnemonic, QCdefalut_char)
19831 (QCdecode_translation_table, QCencode_translation_table)
19832 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19833 (get_translation_table): Return a list of translation tables if
19834 necessary.
19835 (decode_coding): Call get_translation_table with ENCODEP 0.
19836 (char_encodable_p): If translation_table is non-nil, always call
19837 translate_char.
19838 (Fdefine_coding_system_internal): Accept list of translation
19839 tables as :encode-translation-table and :decode-translation-table.
19840 (Fcoding_system_put): New function.
19841 (syms_of_coding): Declare new symbols. Defsubr
19842 Scoding_system_put.
19843 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19844 typically JISX0212.
19845
19846 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19847 when the charset is superset type.
19848
19849 * character.c (translate_char): Accept list of translation tables.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19854 (CODING_ATTR_TRANS_TBL): New macro.
19855
19856 * coding.c (get_translation_table): New function.
19857 (translate_chars): Fix the bug of skipping annotation data.
19858 (decode_coding, encode_coding): Utilize get_translation_table.
19859 (char_encodable_p, Funencodable_char_position): Translate char if
19860 necessary.
19861 (Ffind_coding_systems_region_internal)
19862 (Fcheck_coding_systems_region): Setup translation table for encode
19863 in a coding system attribute vector in advance.
19864 (Fdefine_coding_system_internal): Allow a symbol as translation
19865 table. For shift-jis type coding system, allow 4th charset.
19866
198672008-02-01 Kenichi Handa <handa@m17n.org>
19868
19869 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19870
19871 * xdisp.c (get_next_display_element): Pass -1 as POS to
19872 FACE_FOR_CHAR if displaying a C-string.
19873
198742008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * composite.c (get_composition_id): Handle xoff and yoff in a
19877 composition rule.
19878
19879 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19880 (struct composition): New member lbearing and rbearing.
19881
19882 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19883 (x_get_glyph_overhangs): Handle a composition glyph.
19884 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19885
19886 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19887 composition glyph.
19888
198892008-02-01 Kenichi Handa <handa@m17n.org>
19890
19891 * print.c: Include charset.h.
19892 (Vprint_charset_text_property): New variable.
19893 (Qdefault): Extern it.
19894 (PRINT_STRING_NON_CHARSET_FOUND)
19895 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19896 (print_check_string_result): New variable.
19897 (print_check_string_charset_prop): New function.
19898 (print_prune_charset_plist): New variable.
19899 (print_prune_string_charset): New function.
19900 (print_object): Call print_prune_string_charset if
19901 Vprint_charset_text_property is not t.
19902 (print_interval): Print nothing if interval->plist is nil.
19903 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19904 variable. Init and staticpro print_prune_charset_plist.
19905
199062008-02-01 Kenichi Handa <handa@m17n.org>
19907
19908 * fontset.c (new_fontset_from_font_name): Use the specified font
19909 for all characters in the new fontset.
19910
19911 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19912 OBJECT args.
19913
19914 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19915 OBJECT args for composition too.
19916
19917 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19918 OBJECT args.
19919
199202008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19923
19924 * fontset.c (reorder_font_vector): Adjust for the change of
19925 FONT_DEF format.
19926 (fontset_face): New arg id. Change caller.
19927 (face_for_char): New args pos and object.
19928 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19929 (fs_query_fontset): Check NAME by Fassoc too.
19930 (Fset_fontset_font): Allow non-XLFD font name.
19931 (Ffontset_info): Adjust for the change of FONT_DEF format.
19932
19933 * fontset.h (face_for_char): Adjust prototype.
19934
19935 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19936 (append_space, extend_face_to_end_of_line)
19937 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19938 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19939
19940 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19941 POS and OBJECT args.
19942
19943 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19944 POS and OBJECT args.
19945
199462008-02-01 Jason Rumney <jasonr@gnu.org>
19947
19948 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19949 of GlobalAlloc'ed memory.
19950
199512008-02-01 Kenichi Handa <handa@m17n.org>
19952
19953 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19954
19955 * charset.h (charset_table_used): Delete extern.
19956
19957 * charset.c (charset_table_used): Make it static.
19958 (map_charset_chars): Fix args to c_function with.
19959
19960 * chartab.c (map_sub_char_table_for_charset): Fix args to
19961 c_function with.
19962
19963 * coding.h (enum coding_result_code): Delete
19964 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19965
19966 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19967 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19968 (Vlast_code_conversion_error): New variables.
19969 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19970 (ONE_MORE_BYTE): Record error if any instead of signaling an
19971 error. If non-ASCII multibyte char is found, return the negative
19972 value of the code. All callers changed to check it.
19973 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19974 (record_conversion_result): New function. Change all codes setting
19975 coding->result to call this function.
19976 (detect_coding_utf_8, decode_coding_utf_8)
19977 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19978 Don't use the local variable incomplete.
19979 (emacs_mule_char): Change the second arg to `const'.
19980 (decode_coding): Fix of flushing out unprocessed data.
19981 (make_conversion_work_buffer): Fix making of a work buffer.
19982 (decode_coding_object): Return coding->dst_object.
19983
19984 * fontset.c (set_fontset_font): Fix args.
19985
19986 * lisp.h (CHARACTERBITS): Define as 22.
19987
19988 * process.c (send_process): Be sure to set coding->src_multibyte.
19989
19990 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19991
199922008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * xdisp.c (handle_auto_composed_prop): Give limit to
19995 Fnext_single_char_property_change.
19996
199972008-02-01 Kenichi Handa <handa@m17n.org>
19998
19999 * composite.c (syms_of_composite): Don't make the composition hash
20000 table weak.
20001
20002 * fontset.c (Fset_fontset_font): Fix docstring.
20003
20004 * lisp.h (detect_coding_system): Adjust prototype.
20005
20006 * fileio.c (kill_workbuf_unwind): Delete this function.
20007 (Finsert_file_contents): Adjust the call of detect_coding_system.
20008 Get conversion_buffer by code_conversion_save. Use the macro
20009 CODING_MAY_REQUIRE_DECODING. After decoding, update
20010 coding_system.
20011
20012 * coding.h (make_conversion_work_buffer): Delete extern.
20013 (code_conversion_save): Extern it.
20014
20015 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20016 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20017 (decode_coding_utf_8): Don't do eol converion.
20018 (detect_coding_utf_16): Check coding->src_chars, not
20019 coding->src_bytes. Add heuristics for those that have no signature.
20020 (decode_coding_emacs_mule, decode_coding_iso_2022)
20021 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20022 Don't do eol converion.
20023 (adjust_coding_eol_type): Return a new coding system.
20024 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20025 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20026 each change.
20027 (decode_coding): Pay attention to undo_list. Do eol conversion for
20028 all types of coding-systems (if necessary).
20029 (Vcode_conversion_work_buf_list): Delete it.
20030 (Vcode_conversion_reused_workbuf): Rename from
20031 Vcode_conversion_reused_work_buf.
20032 (Vcode_conversion_workbuf_name): New variable.
20033 (reused_workbuf_in_use): New variable.
20034 (make_conversion_work_buffer): Delete the arg DEPTH.
20035 (code_conversion_restore): Change argument to cons.
20036 (code_conversion_save): Delete the argument BUFFER. Change callers.
20037 (detect_coding_system): New argument src_chars. Change callers.
20038 Fix for utf-16 detection.
20039 (init_coding_once): Don't use ISO_carriage_return.
20040 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20041 reused_workbuf_in_use.
20042
200432008-02-01 Kenichi Handa <handa@m17n.org>
20044
20045 * keymap.c (store_in_keymap): Pay attention to the case that idx
20046 is a cons specifying a character range.
20047
200482008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20051 HANDLED_RECOMPUTE_PROPS.
20052
20053 * coding.c (Fdefine_coding_system_internal): Fix checking of
20054 ascii compatibility.
20055
200562008-02-01 Kenichi Handa <handa@m17n.org>
20057
20058 * charset.c (find_charsets_in_text): Delete unused locale variable.
20059 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20060
20061 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20062 Resync charset_list to Vemacs_mule_charset_list.
20063
20064 * keymap.c (store_in_keymap): Pay attention to the case that idx
20065 is a cons specifying a character range.
20066
200672008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 * composite.c (update_compositions): Bind inhibit-read-only, etc
20070 to t before calling remove-list-of-text-properties.
20071
20072 * print.c (print_object): Always print ASCII chars as is.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20077
20078 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20079 is a char table.
20080
200812008-02-01 Kenichi Handa <handa@m17n.org>
20082
20083 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * xfaces.c (set_lface_from_font_name): Fix for the case that
20088 FONTNAME is not fontset name.
20089
200902008-02-01 Kenichi Handa <handa@m17n.org>
20091
20092 * fns.c (base64_encode_1): Fix previous change.
20093
200942008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * fontset.c (set_fontset_font): New function.
20097 (Fset_fontset_font): If a font is specified for a charset, use
20098 map_charset_chars to store the font spec in a fontset.
20099
201002008-02-01 Kenichi Handa <handa@m17n.org>
20101
20102 * fontset.c (fontset_face): Create a fallback fontset on demand.
20103 (make_fontset): Don't create a fallback fontset here.
20104 (free_face_fontset): Free a fallback fontset (if any) too.
20105 (n_auto_fontsets): Delete this variable.
20106 (auto_fontset_alist): New variable.
20107 (new_fontset_from_font_name): Check auto_fontset_alist.
20108 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20109 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20110 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20111 Defsubr Sfontset_list_all.
20112
201132008-02-01 Kenichi Handa <handa@m17n.org>
20114
20115 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20116
201172008-02-01 Kenichi Handa <handa@m17n.org>
20118
20119 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20120
201212008-02-01 Kenichi Handa <handa@m17n.org>
20122
20123 * editfns.c (Fgoto_char): Fix docstring.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * insdel.c (insert_from_gap): Adjust intervals correctly.
20128
201292008-02-01 Jason Rumney <jasonr@gnu.org>
20130
20131 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20132 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20133 (w32_initialize): Try to load it.
20134 (x_get_font_repertory): Use it if available.
20135 (w32_encode_char): Add shortcut for unicode output.
20136
20137 * w32fns.c (w32_load_system_font): Default charset to -1.
20138 (x_to_w32_charset): Match all fonts for unicode.
20139 (w32_to_x_charset): New parameter matching. Don't return partial
20140 or wildcard charsets.
20141 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20142 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20143 (w32_to_x_font): Match charset to real charset.
20144 (enum_font_cb2): Always list unicode versions.
20145
20146 * makefile.w32-in (temacs): Increase EMHEAP.
20147
201482008-02-01 Jason Rumney <jasonr@gnu.org>
20149
20150 * w32term.c (w32_encode_char): New charset parameter.
20151 font_info.encoding becomes encoding_type.
20152 (x_get_font_repertory): New function. Warning: stub only!
20153 (x_new_font): Return quickly if font already set.
20154 (x_new_fontset): fontsetname parameter is Lisp_Object.
20155 Use new fs_query_fontset. Try new_fontset_from_font_name.
20156 Use fontset_name for return value.
20157
20158 * w32term.h: Declare x_get_font_repertory.
20159
20160 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20161 place of find_charset_in_text. Use encode_coding_object in place
20162 of encode_coding.
20163 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20164 decode_coding.
20165
20166 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20167 of x_new_fontset.
20168 (w32_load_system_font): Initialize charset as unicode.
20169 font_info.encoding becomes encoding_type.
20170 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20171 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20172 (syms_of_w32fns): Set get_font_repertory_func.
20173
20174 * w32console.c: Include character.h. Use terminal_encode_buffer
20175 from term.c.
20176 (write_glyphs): Use new version of encode_terminal_code. Use
20177 encode_coding_object in place of encode_coding.
20178
20179 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20180 encoding becomes encoding_type.
20181
20182 * term.c (terminal_encode_buffer): Make externally visible.
20183
20184 * makefile.w32-in: Add character.h dependancies.
20185 (character.o, chartab.o): New targets.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20190 CODING_ID_EOL_TYPE.
20191
201922008-02-01 Andreas Schwab <schwab@suse.de>
20193
20194 * coding.c (produce_chars): Revert last change.
20195
201962008-02-01 Kenichi Handa <handa@m17n.org>
20197
20198 * charset.h (charset_unicode): Extern it.
20199
20200 * charset.c (string_xstring_p): Check by (C >= 0x100).
20201 (find_charsets_in_text): Change format of the arc CHARSETS. New
20202 arg MULTIBYTE.
20203 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20204 change of find_charsets_in_text.
20205 (Fsplit_char): Fix doc. Never return unknown.
20206
20207 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20208
20209 * coding.c (Fdefine_coding_system_alias): Update
20210 Vcoding_system_list.
20211
20212 * fontset.c (load_font_get_repertory): Pay attention to the case
20213 that ENCODING of a font is specified by a char-table.
20214
20215 * xterm.c (x_get_font_repertory): Handle the case that the
20216 encoding of font is other than Unicode.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20221 if a character is encodable by the terminal coding system. If
20222 not, produces proper number of `?'s. Update
20223 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20224 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20229 variables.
20230 (encode_terminal_code): Change argument. Encode multiple
20231 characters at once. Store the result of encoding in
20232 terminal_encode_buffer.
20233 (write_glyphs, insert_glyphs): Adjust for the change of
20234 encode_terminal_code.
20235 (term_init): Initialize terminal_encode_buffer and
20236 terminal_encode_buf_size.
20237
20238 * coding.c (consume_chars): If coding->src_object is nil, don't
20239 check annotation.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * character.c (char_string): Use ASCII_CHAR_P instead of
20244 SINGLE_BYTE_CHAR_P.
20245
202462008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * xdisp.c (handle_auto_composed_prop): Check if the last
20249 characters of auto-composed region is newly composed with the
20250 following characters.
20251 (handle_composition_prop): Fix checking of point being inside
20252 composition.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * fns.c (concat): Don't change multibyteness of the result by
20257 concatenating an 8-bit character.
20258
20259 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20260 multibyteness of the result when newelt is an 8-bit character.
20261
202622008-02-01 Dave Love <fx@gnu.org>
20263
20264 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20265 EMACS_INT.
20266
20267 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20268
20269 * xfaces.c (face_numeric_value): Declare dim size_t.
20270 (Finternal_lisp_face_equal_p): Remove unused f.
20271
20272 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20273 (MATRIX_ROW): Remove unused vars.
20274 (draw_glyphs, x_insert_glyphs, fast_find_position)
20275 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20276 byte/char counts.
20277
20278 * regex.c (regex_compile): Remove unused var.
20279
20280 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20281
20282 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20283 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20284
20285 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20286
20287 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20288
20289 * fileio.c (Fwrite_region): Remove unused var.
20290
20291 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20292 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20293
20294 * composite.c (Fremove_list_of_text_properties): Declare.
20295
20296 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20297 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20298 (coding_inherit_eol_type): Remove unused attrs.
20299 (detect_coding): Cast arg of detect_eol.
20300
20301 * charset.c (syms_of_charset): Remove unused var p.
20302 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20303 byte/char counts.
20304
20305 * casetab.c (set_case_table): Remove unused var.
20306
20307 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20308 unused vars.
20309
203102008-02-01 Dave Love <fx@gnu.org>
20311
20312 * xterm.c (x_bitmap_mask): Declare.
20313
203142008-02-01 Dave Love <fx@gnu.org>
20315
20316 * xterm.c (x_term_init): Fix type error.
20317
20318 * lisp.h: Add Funibyte_char_to_multibyte.
20319
20320 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20321 (Fset_coding_system_priority): Doc fix.
20322
20323 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20324
20325 * indent.c (check_composition): Make start and end EMACS_INT.
20326
20327 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20328
20329 * xdisp.c (handle_composition_prop, check_point_in_composition):
20330 Make buffer positions EMACS_INT.
20331
20332 * composite.c (find_composition, run_composition_function)
20333 (update_compositions, Ffind_composition_internal): Make buffer
20334 positions EMACS_INT.
20335
20336 * composite.h (find_composition, update_compositions): Make
20337 position args EMACS_INT.
20338
20339 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20340
20341 * intervals.c (get_property_and_range):
20342 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20343
20344 * unexalpha.c: Don't include varargs.h.
20345
203462008-02-01 Dave Love <fx@gnu.org>
20347
20348 * coding.h (ENCODE_UTF_8): New.
20349
20350 * Makefile.in (gtkutil.o): Depend on coding.h.
20351
20352 * coding.c (Fset_coding_system_priority): Doc fix.
20353
203542008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20357 the case of auto saving.
20358
203592008-02-01 Andreas Schwab <schwab@suse.de>
20360
20361 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20362 `range' from GC.
20363
203642008-02-01 Kenichi Handa <handa@m17n.org>
20365
20366 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20367
203682008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * fileio.c (choose_write_coding_system): Return a decided coding system.
20371 (Fwrite_region): Set Vlast_coding_system_used to the return value
20372 of choose_write_coding_system.
20373
203742008-02-01 Kenichi Handa <handa@m17n.org>
20375
20376 * charset.c (Fset_charset_priority): Pay attention to duplicated
20377 arguments.
20378
20379 * coding.c (QCcategory): New variable.
20380 (syms_of_coding): Defsym it. Set all elements of
20381 Vcoding_category_table and their symbol values.
20382 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20383 coding-category-XXX, and coding-category-list.
20384 (Fdefine_coding_system_internal): Add category in the plist.
20385
203862008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * callproc.c (Fcall_process): Handle carryover correctly.
20389
20390 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20391 (raw_text_coding_system): Check NILP (coding_system).
20392 (coding_inherit_eol_type): Check NILP (coding_system) and
20393 NILP (parent).
20394 (consume_chars): Fix for the case of raw-text.
20395
20396 * process.c (read_process_output): Handle carryover correctly.
20397
203982008-02-01 Dave Love <fx@gnu.org>
20399
20400 * regex.c (re_search_2): Fix last change.
20401
204022008-02-01 Kenichi Handa <handa@m17n.org>
20403
20404 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20405 target_multibyte. Even in a unibyte case, return a converted
20406 multibyte char.
20407 (GET_CHAR_AFTER): New macro.
20408 (PATFETCH): Translate via multibyte char.
20409 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20410 (SETUP_MULTIBYTE_RANGE): New macro.
20411 (regex_compile): Setup compiled code so that its multibyteness
20412 matches that of a target. Fix the handling of "[X-YZ]" using
20413 SETUP_MULTIBYTE_RANGE.
20414 (analyse_first) <charset>: For filling fastmap for all multibyte
20415 characters, don't check by BASE_LEADING_CODE_P.
20416 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20417 the same as RE_MULTIBYTE_P (bufp) now.
20418 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20419 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20420 (TRANSLATE_VIA_MULTIBYTE): New macro.
20421 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20422 It is the same as RE_MULTIBYTE_P (bufp) now.
20423 <exactn>: Translate via multibyte.
20424 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20425 translate it.
20426 <charset, charset_not>: Fetch a character by
20427 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20428 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20429 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20430 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20431 by GET_CHAR_AFTER.
20432 (bcmp_translate): Likewise.
20433
20434 * search.c (compile_pattern): Check the member target_multibyte,
20435 not the member multibyte of buf.
20436
20437 * lread.c (read1): While reading a string, set force_singlebyte
20438 and force_multibyte correctly.
20439
20440 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20441 up of unibyte_to_multibyte_table.
20442
204432008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 * coding.c (setup_coding_system): If coding has
20446 post-read-conversion or pre-write-conversion, set
20447 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20448 respectively.
20449 (decode_coding_gap): Run post-read-conversion if any.
20450
20451 * fileio.c (Finsert_file_contents): Even if we read into a
20452 unibyte buffer, check if we must decode the result or not.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * coding.c (make_conversion_work_buffer): Change the work buffer
20457 name to the same one as that of Emacs 21.
20458
204592008-02-01 Kenichi Handa <handa@m17n.org>
20460
20461 * coding.h (make_conversion_work_buffer): Adjust prototype.
20462 (code_conversion_restore): Don't extern it.
20463
20464 * coding.c (detected_mask): Delete unused variable.
20465 (decode_coding_iso_2022): Pay attention to the byte sequence of
20466 CTEXT extended segment, and retain those bytes as is.
20467 (decode_coding_ccl): Delete unused variable `valids'.
20468 (setup_coding_system): Delete unused variable `category'.
20469 (consume_chars): Delete unused variable `category'. Make it work
20470 for non-multibyte case.
20471 (make_conversion_work_buffer): Change argument.
20472 (saved_coding): Delete unused variable.
20473 (code_conversion_restore): Don't check saved_coding->destination.
20474 (code_conversion_save): New function.
20475 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20476 instead of record_unwind_protect.
20477 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20478 (detect_coding_system): Delete unused variable `mask'.
20479 (Fdefine_coding_system_internal): Delete unused variable id.
20480
20481 * fileio.c (kill_workbuf_unwind): New function.
20482 (Finsert_file_contents): On replacing, call
20483 make_conversion_work_buffer with correct args, and call
20484 record_unwind_protect with the first arg kill_workbuf_unwind.
20485
20486 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20491 (fontset_add): Fix for the case that TO is less than TO1.
20492 (Ffontset_info): Don't use fallback fontset on checking the
20493 default fontset.
20494 (dump_fontset): New function for debugging.
20495
20496 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20497 coding_type is Qcharset.
20498
204992008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20502 (map_char_table): Don't inherit the value from the parent on
20503 initializing VAL. Adjust for the above change.
20504
205052008-02-01 Kenichi Handa <handa@m17n.org>
20506
20507 * coding.c (Qsignature, Qendian): Delete these variables.
20508 (syms_of_coding): Don't initialize them.
20509 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20510 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20511 detect_info->found.
20512 (decode_coding_utf_16): Don't detect BOM here.
20513 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20514 is NOT utf_16_without_bom.
20515 (setup_coding_system): For a coding system of type utf-16, check
20516 if the attribute :endian is Qbig or not (not nil or not), and set
20517 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20518 (detect_coding): If coding type is utf-16 and BOM detection is
20519 required, detect it.
20520 (Fdefine_coding_system_internal): For a coding system of type
20521 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20522
205232008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * coding.c (coding_set_source): Fix for the case that the current
20526 buffer is different from coding->src_object.
20527 (decode_coding_object): Don't use the conversion work buffer if
20528 DST_OBJECT is a buffer.
20529
205302008-02-01 Dave Love <fx@gnu.org>
20531
20532 * lread.c (read_emacs_mule_char) [len==2]: Index
20533 emacs_mule_charset correctly.
20534
205352008-02-01 Dave Love <fx@gnu.org>
20536
20537 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20538 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20539 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20540 treated specially.)
20541 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20542 (detected_mask): Remove Big5 bits.
20543
205442008-02-01 Kenichi Handa <handa@m17n.org>
20545
20546 The following changes are to make the font rescaling facility
20547 compatible with Emacs 21.
20548
20549 * xfaces.c (Vface_font_rescale_alist): Rename from
20550 Vface_resizing_fonts.
20551 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20552 (font_rescale_ratio): Rename from font_resizing_ratio.
20553 (split_font_name): Set font->rescale_ratio.
20554 (better_font_p): Pay attention to font->rescale_ratio.
20555 (build_scalable_font_name): Likewise. Change RESX, and RESY
20556 fields.
20557 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20558
205592008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20562 (Qutf_16_le): Remove these variables.
20563 (syms_of_coding): Don't DEFSYM them.
20564 (decode_coding_utf_16): Fix handling of BOM.
20565 (encode_coding_utf_16): Fix handling of BOM.
20566
205672008-02-01 Kenichi Handa <handa@m17n.org>
20568
20569 * fileio.c (Finsert_file_contents): On replacing, before decoding
20570 the file into the work buffer, set point of the work buffer to the end.
20571
205722008-02-01 Dave Love <fx@gnu.org>
20573
20574 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20575
205762008-02-01 Dave Love <fx@gnu.org>
20577
20578 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20579 and fix C types.
20580
205812008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * xdisp.c (SKIP_GLYPHS): New macro.
20584 (set_cursor_from_row): Pay attention to string display properties.
20585
20586 * category.c (copy_category_entry): Fix for the case that RANGE
20587 is an integer.
20588
20589 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20590
20591 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20592
205932008-02-01 Kenichi Handa <handa@m17n.org>
20594
20595 * charset.c (Fcharset_id_internal): New function.
20596 (syms_of_charset): Defsubr it.
20597
20598 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20599 with the last arg charset_list acquired from coding.
20600 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20601 the attribute coding_attr_ccl_valids.
20602
20603 * coding.h (enum define_coding_ccl_arg_index): Set the first
20604 member coding_arg_ccl_decoder to coding_arg_max.
20605
20606 * ccl.h (ccl_driver): Adjust prototype.
20607
20608 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20609 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20610 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20611 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20612 last arg Qnil.
20613
206142008-02-01 Kenichi Handa <handa@m17n.org>
20615
20616 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20617 call encode_char.
20618
20619 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20620
206212008-02-01 Dave Love <fx@gnu.org>
20622
20623 * composite.c (syms_of_composite): Make composition_hash_table weak.
20624
206252008-02-01 Kenichi Handa <handa@m17n.org>
20626
20627 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20628 (font_name_registry): Don't extern them.
20629 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20630
20631 * fontset.h (Qfontset): Don't extern it.
20632 (new_fontset_from_font_name): Extern it.
20633
20634 * fontset.c: Give 8 extra slots to fontset objects.
20635 (Qfontset_info): New variable.
20636 (syms_of_fontset): Defsym it.
20637 (FONTSET_FALLBACK): New macro.
20638 (fontset_face): Try also the default fontset.
20639 (make_fontset): Realize a fallback fontset from the default fontset.
20640 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20641 using split_font_name_into_vector and build_font_name_from_vector.
20642 (Fset_fontset_font): Access the elements of font_spec by enum
20643 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20644 name by using split_font_name_into_vector.
20645 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20646 generate a proper font name from the fontset name. Update
20647 Vfontset_alias_alist.
20648 (n_auto_fontsets): New variable.
20649 (new_fontset_from_font_name): New function.
20650 (Ffont_info): Store the information about fonts generated from the
20651 default fontset in the first extra slot of the returned char-table.
20652
20653 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20654 (font_name_registry): Delete function.
20655 (split_font_name_into_vector): New function.
20656 (build_font_name_from_vector): New function.
20657 (font_list): The argument REGISTRY is now a list of registry names.
20658 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20659 specifies an explicit font name, return the name as is. Make a
20660 list of registy names.
20661
20662 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20663 of x_new_fontset.
20664 (Fx_create_frame): Don't call x_new_fontset here. Just use
20665 x_list_fonts to check the existence of fonts.
20666
20667 * xterm.h (x_new_fontset): Adjust prototype.
20668
20669 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20670 string. Use new_fontset_from_font_name to create a fontset from a
20671 font name.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * syntax.c (Vfind_word_boundary_function_table): New name for
20676 Vnext_word_boundary_function_table.
20677 (find-word-boundary-function-table): New name for
20678 next-word-boundary-function-table.
20679
206802008-02-01 Dave Love <fx@gnu.org>
20681
20682 * Makefile.in: Fix some dependencies.
20683
20684 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20685 set it to nil before returning.
20686
20687 * composite.c (update_compositions): Fix type error.
20688
20689 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20690
206912008-02-01 Kenichi Handa <handa@m17n.org>
20692
20693 * xterm.c (x_new_font): Optimize for the case that the font is
20694 already set for the frame.
20695
206962008-02-01 Kenichi Handa <handa@m17n.org>
20697
20698 * chartab.c (char_table_ascii): Check if the char table contents
20699 is sub-char-table or not.
20700 (char_table_set, char_table_set_range): Fix argument to
20701 char_table_ascii.
20702
20703 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20704 (detect_coding_utf_8, detect_coding_utf_16)
20705 (detect_coding_emacs_mule, detect_coding_iso_2022)
20706 (detect_coding_sjis, detect_coding_big5)
20707 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20708 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20709 sequence is valid in this coding system. Change callers.
20710 (MAX_ANNOTATION_LENGTH): New macro.
20711 (ADD_ANNOTATION_DATA): New macro.
20712 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20713 ADD_ANNOTATION_DATA. Change the format of annotation data.
20714 (ADD_CHARSET_DATA): New macro.
20715 (emacs_mule_char): New argument ID. Change callers.
20716 (decode_coding_emacs_mule, decode_coding_iso_2022)
20717 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20718 Produce charset annotation data in coding->charbuf.
20719 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20720 to charset annotation data in coding->charbuf.
20721 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20722 coding->common_flags if the coding system is iso-2022 based and
20723 uses designation.
20724 (produce_composition): Adjust for the new annotation data format.
20725 (produce_charset): New function.
20726 (produce_annotation): Handle charset annotation.
20727 (handle_composition_annotation, handle_charset_annotation): New
20728 functions.
20729 (consume_chars): Handle charset annotation. Utilize the above two
20730 functions.
20731 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20732 buffer, get the deleted text as a string and set
20733 coding->src_object to that string.
20734 (detect_coding, detect_coding_system): Use the new struct
20735 coding_detection_info.
20736
20737 * coding.h (struct coding_detection_info): New structure.
20738 (struct coding_system): Adjust prototype of the member `detector'.
20739 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20744
207452008-02-01 Dave Love <fx@gnu.org>
20746
20747 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20748 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20749 to new local and nullify apropos_accumulate before returning.
20750 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20751
207522008-02-01 Kenichi Handa <handa@m17n.org>
20753
20754 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20755 correctly.
e3eea1fc 20756
aac0c6e3
MR
207572008-02-01 Dave Love <fx@gnu.org>
20758
20759 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20760
207612008-02-01 Kenichi Handa <handa@m17n.org>
20762
20763 The following changes are to make character composition happen
20764 automatically on displaying.
20765
20766 * Makefile.in (lisp, shortlisp): Add composite.elc.
20767
20768 * composite.h (Qauto_composed, Vauto_composition_function)
20769 (Qauto_composition_function): Extern them.
20770
20771 * composite.c (Vcomposition_function_table)
20772 (Qcomposition_function_table): Delete variables.
20773 (Qauto_composed, Vauto_composition_function)
20774 (Qauto_composition_function): New variables.
20775 (run_composition_function): Don't call
20776 compose-chars-after-function.
20777 (update_compositions): Clear `auto-composed' text property.
20778 (compose_chars_in_text): Delete this function.
20779 (syms_of_composite): Staticpro Qauto_composed and
20780 Qauto_composition_function. Declare Vauto_composition_function as
20781 a Lisp variable.
20782
20783 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20784
20785 * xdisp.c (it_props): Add an entry for Qauto_composed.
20786 (handle_auto_composed_prop): New function.
20787
20788 * xselect.c (selection_data_to_lisp_data): Don't call
20789 compose_chars_in_text.
20790
207912008-02-01 Dave Love <fx@gnu.org>
20792
20793 * keyboard.c (read_char): Modify checking around use of
20794 Vkeyboard_translate_table.
20795
20796 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20797 and fix C types.
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20802 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20803 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20804 the case that the last byte is '\r' correctly.
20805 (decode_coding): Flush out the unprocessed data correctly.
20806 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20807
208082008-02-01 Dave Love <fx@gnu.org>
20809
20810 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20811 Add XK_ISO... case.
20812 (xaw_scroll_callback): Revert last change.
20813
208142008-02-01 Kenichi Handa <handa@m17n.org>
20815
20816 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20817
208182008-02-01 Kenichi Handa <handa@m17n.org>
20819
20820 * xfaces.c (Vface_resizing_fonts): New variable.
20821 (struct font_name): New member `resizing_ratio'.
20822 (font_resizing_ratio): New function.
20823 (split_font_name): Set font->resizing_ratio.
20824 (better_font_p): Pay attention to font->resizing_ratio.
20825 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20826 RESX, and RESY fields.
20827 (try_alternative_families): Try scalable fonts if
20828 Vscalable_fonts_allowed is not Qt.
20829 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20830
208312008-02-01 Dave Love <fx@gnu.org>
20832
20833 * xterm.c (xaw_scroll_callback): Cast correctly.
20834
208352008-02-01 Dave Love <fx@gnu.org>
20836
20837 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20838 (lispy_kana_keys): Comment out.
20839 (make_lispy_event) [XK_kana_A]: Comment out.
20840
20841 * xterm.c (xaw_scroll_callback): Cast call_data.
20842 (XTread_socket): Deal with ASCII keysyms.
20843 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20844
208452008-02-01 Dave Love <fx@gnu.org>
20846
20847 * xterm.c (Vx_keysym_table): New.
20848 (syms_of_xterm): Initialize it.
20849 (XTread_socket): Use it.
20850 From head: Eliminate incorrect optimization that tried to avoid
20851 decoding the output of X*LookupString.
20852 (x_get_font_repertory): Delete charset declaration.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20857 return 0.
20858 (Fdefine_coding_system_internal): Setup
20859 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20860
208612008-02-01 Dave Love <fx@gnu.org>
20862
20863 * coding.c (Fcheck_coding_system): Doc fix.
20864
20865 * editfns.c (Finsert_byte): Return a proper value.
20866
208672008-02-01 Kenichi Handa <handa@m17n.org>
20868
20869 * coding.c (decode_coding): Fix args to translate_chars. Pay
20870 attention to Vstandard_translation_table_for_decode.
20871 (encode_coding): Fix args to translate_chars. Pay attention to
20872 Vstandard_translation_table_for_encode.
20873
20874 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20875 SINGLE_BYTE_CHAR_P.
20876
20877 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20878 not by SINGLE_BYTE_CHAR_P.
20879
20880 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20881 SINGLE_BYTE_CHAR_P.
20882
20883 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20884 SINGLE_BYTE_CHAR_P.
20885
20886 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20887 by SINGLE_BYTE_CHAR_P.
20888
20889 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20890 SINGLE_BYTE_CHAR_P.
20891
208922008-02-01 Dave Love <fx@gnu.org>
20893
20894 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20895
208962008-02-01 Dave Love <fx@gnu.org>
20897
20898 * fns.c (Flanginfo): Fix typo.
20899
20900 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20901
209022008-02-01 Kenichi Handa <handa@m17n.org>
20903
20904 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20905 (detect_coding_emacs_mule, detect_coding_iso_2022)
20906 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20907 incomplete byte sequence. Don't update *mask when correctly detected.
20908 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20909 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20910 (detect_coding, detect_coding_system): Adjust for the changes above.
20911
209122008-02-01 Kenichi Handa <handa@m17n.org>
20913
20914 * character.c (char_string): Rename from
20915 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20916 (string_char): Rename from string_char.
20917
20918 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20919 if C is greater than MAX_3_BYTE_CHAR.
20920 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20921 string_char instead of string_char_with_unification.
20922
209232008-02-01 Dave Love <fx@gnu.org>
20924
20925 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20926
209272008-02-01 Kenichi Handa <handa@m17n.org>
20928
20929 * keymap.c (push_key_description): Pay attention to force_multibyte.
20930
20931 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20932
209332008-02-01 Dave Love <fx@gnu.org>
20934
20935 * charset.c (define_charset_internal): Rename `supprementary'.
20936
20937 * Makefile.in (lisp, shortlisp): Remove latin-N.
20938
209392008-02-01 Dave Love <fx@gnu.org>
20940
20941 * xfns.c (x_window, x_window): Use use_xim.
20942
20943 * xterm.c (use_xim): Initialize.
20944 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20945 (x_term_init): Maybe set use_xim.
20946
20947 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20948
209492008-02-01 Kenichi Handa <handa@m17n.org>
20950
20951 * search.c (search_buffer): Fix case-fold-search of multibyte
20952 characters.
20953 (boyer_moore): Rename the last argument to char_high_bits.
20954
209552008-02-01 Kenichi Handa <handa@m17n.org>
20956
20957 * xdisp.c (display_string): Fix for the case of zero width glyph.
20958
20959 * xfns.c (x_set_font): Change the error message of the case that
20960 x_new_fontset returns Qt.
20961
20962 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20963 (Finternal_set_lisp_face_attribute): Use signal_error for the
20964 error of invalid fontset.
20965
20966 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20967 fontset, return Qt.
20968
209692008-02-01 Dave Love <fx@gnu.org>
20970
20971 * unexelf.c (unexec): Make .got handling not SGI-specific.
20972
20973 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20974
20975 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20976
20977 * keyboard.c (read_key_sequence): Fix type error.
20978
20979 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20980 type error.
20981
20982 * fontset.c (fontset_add): Return Lisp_Object.
20983
209842008-02-01 Dave Love <fx@gnu.org>
20985
20986 * charset.h (charset_ordered_list_tick): Declare extern.
20987
209882008-02-01 Kenichi Handa <handa@m17n.org>
20989
20990 The following changes (and some of 2008-02-01 changes of mine) are
20991 for handling syntax, category, and case conversion for unibyte
20992 characters by converting them to multibyte on the fly. With these
20993 changes, we don't have to setup syntax and case tables for unibyte
20994 characters in each language environment.
20995
20996 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20997 multibyte if necessary.
20998
20999 * bytecode.c (Fbyte_code): Likewise.
21000
21001 * character.h (LEADING_CODE_LATIN_1_MIN)
21002 (LEADING_CODE_LATIN_1_MAX): New macros.
21003 (unibyte_to_multibyte_table): Extern it.
21004 (unibyte_char_to_multibyte): New macro.
21005 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21006 (CHAR_LEADING_CODE): New macro.
21007 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21008
21009 * character.c (unibyte_to_multibyte_table): New variable.
21010 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21011 (multibyte_char_to_unibyte): If C is an eight-bit character,
21012 convert it to the corresponding byte value.
21013
21014 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21015 not 1, signals an error. Update the elements of
21016 unibyte_to_multibyte_table.
21017 (init_charset_once): Initialize unibyte_to_multibyte_table.
21018 (syms_of_charset): Define the charset `iso-8859-1'.
21019
21020 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21021 as is without converting it to unibyte. In a unibyte buffer,
21022 convert C to multibyte before checking the syntax.
21023
21024 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21025
21026 * minibuf.c (Fminibuffer_complete_word): Use the macro
21027 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21028
21029 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21030
21031 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21032 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21033 that is zero, convert an eight-bit char to multibyte.
21034 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21035 non-emacs case.
21036 (PATFETCH): Convert an eight-bit char to multibyte.
21037 (HANDLE_UNIBYTE_RANGE): New macro.
21038 (regex_compile): Setup the compiled pattern for multibyte chars
21039 even if the given regex string is unibyte. Use PATFETCH_RAW
21040 instead of PATFETCH in many places. To handle `charset'
21041 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21042 only for ASCII chars.
21043 (analyse_first) <exactn>: Simplify because the compiled pattern
21044 is multibyte.
21045 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21046 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21047 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21048 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21049 multibyte always 1.
21050 (re_search_2): In emacs, set the locale variable multibyte to 1,
21051 otherwise to 0. New local variable target_multibyte. Check it
21052 to decide the multibyteness of STR1 and STR2. If
21053 target_multibyte is zero, convert unibyte chars to multibyte
21054 before translating and checking fastmap.
21055 (TARGET_CHAR_AND_LENGTH): New macro.
21056 (re_match_2_internal): In emacs, set the locale variable multibyte
21057 to 1, otherwise to 0. New local variable target_multibyte. Check
21058 it to decide the multibyteness of STR1 and STR2. Use
21059 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21060 <charset, charset_not>: If multibyte is nonzero, check fastmap
21061 only for ASCII chars. Call bcmp_translate with
21062 target_multibyte, not with multibyte.
21063 <begline>: Declare the local variable C as `unsigned'.
21064 (bcmp_translate): Change the last arg name to target_multibyte.
21065
21066 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21067 the regexp pattern and the matching target. Set cp->buf.multibyte
21068 to the multibyteness of the regexp pattern. Set
21069 cp->but.target_multibyte to the multibyteness of the matching target.
21070 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21071 FETCH_STRING_CHAR_ADVANCE.
21072 (Freplace_match): Convert unibyte chars to multibyte.
21073
21074 * syntax.c (char_quoted, back_comment, scan_words)
21075 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21076 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21077 unibyte chars to multibyte.
21078 (skip_chars): Delete the arg syntaxp, and move the code for
21079 handling syntaxes to skip_syntaxes. Change callers.
21080 Fix the case that the multibyteness of STRING and the current
21081 buffer doesn't match.
21082 (skip_syntaxes): New function.
21083 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21084 SINGLE_BYTE_CHAR_P.
21085
210862008-02-01 Kenichi Handa <handa@m17n.org>
21087
21088 * xfaces.c (QCfontset): New variable.
21089 (LFACE_FONTSET): New macro.
21090 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21091 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21092 (Finternal_set_lisp_face_attribute)
21093 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21094 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21095 check also LFACE_FONTSET_INDEX.
21096 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21097 attrs[LFACE_FONT_INDEX].
21098 (syms_of_xfaces): Intern and staticpro QCfontset.
21099
21100 * dispextern.h (enum lface_attribute_index): New member
21101 LFACE_FONTSET_INDEX.
21102
21103 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21104
211052008-02-01 Kenichi Handa <handa@m17n.org>
21106
21107 * coding.c (coding_set_destination): Fix coding->destination for
21108 the case converting a region.
21109 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21110 (encode_coding_object): Fix coding->dst_pos and
21111 coding->dst_pos_byte for the case converting a region.
21112
21113 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21114
21115 * character.h (BYTE8_STRING): New macro.
21116
21117 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21118
211192008-02-01 Kenichi Handa <handa@m17n.org>
21120
21121 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21122 characters by octal form.
21123
21124 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21125
21126 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21127 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21128 _fetch_multibyte_char_len.
21129 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21130
21131 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21132
21133 * casefiddle.c (casify_object): Simplify. Handle the case that
21134 the case conversion change the byte length.
21135 (casify_region): Likewise.
21136
21137 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21138
21139 * character.c (_fetch_multibyte_char_len): Delete this variable.
21140 (syms_of_character): Setup Vprintable_chars.
21141
21142 * editfns.c (Fchar_equal): Fix for the unibyte case.
21143 (Finsert_byte): New function.
21144 (syms_of_editfns): Defsubr it.
21145
21146 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21147 of direct code 0x3ffff.
21148
21149 * search.c (Freplace_match): Fix for the unibyte case.
21150
211512008-02-01 Kenichi Handa <handa@m17n.org>
21152
21153 * lread.c (safe_to_load_p): Fix the logic.
21154
21155 * syntax.c (scan_words): Don't treat characters belonging to
21156 different scripts as constituting a word.
21157
21158 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21159
21160 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21161
21162 * emacs.c (main): In the case of --unibyte, instead of aborting on
21163 finding non-empty buffer, make it unibyte.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21168 to create a fontset.
21169
211702008-02-01 Dave Love <fx@gnu.org>
21171
21172 * character.c (Funibyte_char_to_multibyte): Doc fix.
21173
21174 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21175
211762008-02-01 Kenichi Handa <handa@m17n.org>
21177
21178 * fontset.c (fontset_add): Make the type `int'.
21179 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21180
21181 * character.c (unibyte_char_to_multibyte)
21182 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21183 charset_unibyte, not charset_primary.
21184
21185 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21186
21187 * charset.c (charset_unibyte): Rename from charset_primary.
21188 (Funibyte_charset): Rename from Fprimary_charset.
21189 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21190 (syms_of_charset): Adjust for the above changes.
21191
21192 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21193 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21194 it->multibyte_p is zero.
21195
21196 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21197 Delete extern.
21198
211992008-02-01 Kenichi Handa <handa@m17n.org>
21200
21201 * coding.c (Fdefine_coding_system_internal): Fix category setting
21202 for a coding system of type iso-2022.
21203
212042008-02-01 Kenichi Handa <handa@m17n.org>
21205
21206 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21207
212082008-02-01 Kenichi Handa <handa@m17n.org>
21209
21210 * syntax.c (Vnext_word_boundary_function_table): New variable.
21211 (next-word-boundary-function-table): Declare it as a Lisp variable
21212 in syms_of_syntax.
21213 (scan_words): Call functions in Vnext_word_boundary_function_table
21214 if any.
21215
21216 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21217
21218 * fontset.c (fs_load_font): If fontp->charset is not negative,
21219 return fontp without setting its members.
21220
212212008-02-01 Dave Love <fx@gnu.org>
21222
21223 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21224
21225 * m/sparc.h (HAVE_ALLOCA): Delete.
21226
21227 * s/irix6-5.h: Don't include strings.h.
21228 (bcopy, bzero, bcmp): Don't undef.
21229
21230 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21231
21232 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21233 (TIOCSIGSEND): Don't test IRIX6.
21234 (bcopy, bzero, bcmp): Define conditionally.
21235
212362008-02-01 Kenichi Handa <handa@m17n.org>
21237
21238 * buffer.c (Qas, Qmake, Qto): New variables.
21239 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21240 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21241
21242 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21243 we are inserting a process output into a multibyte buffer.
21244
21245 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21246 multibyte_char_to_unibyte.
21247
21248 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21249 by the primary charset, make it eight-bit char.
21250 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21251
21252 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21253 (charset_8_bit__control, charset_8_bit_graphic)
21254 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21255 (define_charset_internal): New function.
21256 (syms_of_charset): Call define_charset_internal for pre-defined
21257 charsets.
21258
21259 * charset.h (charset_8_bit): Extern it.
21260
21261 * coding.c (make_conversion_work_buffer): Adjust for the change
21262 of Fset_buffer_multibyte.
21263 (encode_coding_raw_text): Increment p0 in the loop.
21264
21265 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21266
21267 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21268 for the change of Fset_buffer_multibyte.
21269
21270 * fns.c (Fstring_to_multibyte): New function.
21271 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21272
212732008-02-01 Dave Love <fx@gnu.org>
21274
21275 * xfns.c (x_put_x_image): Declare args.
21276
21277 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21278 (try_font_list): Declare an arg.
21279
21280 * xdisp.c (message2_nolog, set_message): Declare an arg.
21281
21282 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21283
21284 * syntax.c (scan_sexps_forward): Declare an arg.
21285
21286 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21287 Declare an arg.
21288
21289 * lisp.h (Fnew_fontset): Declare.
21290
21291 * keymap.c (push_key_description): Call CHARACTERP correctly.
21292
21293 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21294 (face_for_char): Delete unused vars.
21295 (Fset_fontset_font): Doc fix. Delete unused vars.
21296
21297 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21298
21299 * composite.c (update_compositions): Declare arg.
21300
21301 * cm.c (calccost, cmgoto): Declare args.
21302
21303 * charset.c: Remove `emacs' conditional. Doc fixes.
21304 (map_char_table_for_charset): Declare.
21305
21306 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21307
21308 * ccl.c: Remove `emacs' conditional.
21309
213102008-02-01 Kenichi Handa <handa@m17n.org>
21311
21312 The following changes are to allow specifying multiple font
21313 patterns for a character range (specified by script or charset).
21314
21315 * Makefile.in (abbrev.o): Depend on syntax.h.
21316 (xfaces.o): Depend on charset.h.
21317
21318 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21319 SINGLE_BYTE_CHAR_P.
21320
21321 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21322
21323 * character.h (Vchar_script_table): Extern it.
21324
21325 * character.c (Vscript_alist): Delete.
21326 (Vchar_script_table, Qchar_script_table): New variable.
21327 (syms_of_character): Declare Vchar_script_table as a lisp variable
21328 and initialize it.
21329
21330 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21331 have property char-table-extra-slots, make no extra slot.
21332
21333 * dispextern.h (struct face): Delete member `charset'.
21334 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21335 SINGLE_BYTE_CHAR_P.
21336 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21337 Add prototypes.
21338 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21339 (generate_ascii_font_name): Rename from generate_ascii_font.
21340
21341 * fontset.h (get_font_repertory_func): New prototype.
21342 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21343 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21344
21345 * fontset.c (Qprepend, Qappend): New variables.
21346 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21347 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21348 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21349 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21350 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21351 (load_font_get_repertory): New functions.
21352 (fontset_set): Delete.
21353 (fontset_face): New arg FACE. Return face ID, not face.
21354 Complete re-write to handle new fontset structure. Change caller.
21355 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21356 (face_for_char): Don't call lookup_face.
21357 (make_fontset_for_ascii_face): New arg FACE.
21358 (fs_load_font): New arg CHARSET_ID. Don't check
21359 Vfont_encoding_alist here.
21360 (find_font_encoding): New function.
21361 (list_fontsets): Use STRINGP, not ! NILP.
21362 (accumulate_script_ranges): New function.
21363 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21364 re-written to handle new fontset structure.
21365 (Ffontset_font): Return a copy of element.
21366 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21367 docstring of font-encoding-alist.
21368
21369 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21370 (Fset_fotset_font): Fix arguments to 5.
21371
21372 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21373
21374 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21375 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21376 (highlight_trailing_whitespace): Adjust for the change of
21377 lookup_named_face.
21378
21379 * xfaces.c: Include charset.h.
21380 (load_face_font): Delete argument C. Change caller.
21381 (generate_ascii_font_name): Rename from generate_ascii_font.
21382 (font_name_registry): New function.
21383 (cache_face): Store ascii faces before non-ascii faces in buckets.
21384 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21385 Lookup only ascii faces.
21386 (lookup_non_ascii_face): New function.
21387 (lookup_named_face): Delete argument C. Change caller.
21388 (lookup_derived_face): Delete argument C. Change caller.
21389 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21390 a string, just call font_list with it.
21391 (choose_face_font): Delete arguments FACE and C. New arg
21392 FONT_SPEC. Change caller.
21393 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21394 Change caller.
21395 (realize_non_ascii_face): New function.
21396 (realize_x_face): Call load_face_font here.
21397 (realize_tty_face): Delete argument C. Change caller.
21398 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21399 get a face ID.
21400 (dump_realized_face): Don't print charset of FACE.
21401
21402 * xfns.c (x_set_font): Always call x_new_fontset and
21403 store_frame_parameter.
21404 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21405 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21406
21407 * xterm.h (x_get_font_repertory): Extern it.
21408
21409 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21410 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21411 it->multibyte_p is zero.
21412 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21413 (x_new_fontset): If FONTSETNAME doesn't match any existing
21414 fontsets, create a new one.
21415 (x_get_font_repertory): New function.
21416
214172008-02-01 Kenichi Handa <handa@m17n.org>
21418
21419 * coding.c (Ffind_coding_systems_region_internal): Detect an
21420 ASCII only string correctly.
21421
21422 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21423 version is 0.
21424
214252008-02-01 Kenichi Handa <handa@m17n.org>
21426
21427 * lread.c: Include "coding.h".
21428 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21429 (load_each_byte, unread_char): New variables.
21430 (readchar_backlog): Delete.
21431 (readchar): Return a character unless load_each_byte is nonzero.
21432 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21433 cons. If unread_char is not -1, simply return it.
21434 (unreadchar): Handle the case that readcharfun is
21435 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21436 (read_multibyte): Delete.
21437 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21438 (read_emacs_mule_char): New functions.
21439 (Fload): Even if the file doesn't have the extension ".elc", if
21440 safe_to_load_p returns a positive version number, assume that the
21441 file contains bytecompiled code. If the version is less than 22,
21442 load the file while decoding multibyte sequences by emacs-mule.
21443 (readevalloop): Don't use readchar_backlog.
21444 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21445 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21446 (read_escape): Delete the arg BYTEREP.
21447 (read1): Set load_each_byte to 1 temporarily while handling
21448 #@NUMBER. Don't call read_multibyte.
21449 (read_vector): Call Fread with a cons. If readcharfun is
21450 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21451 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21452 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21453 and Qload_force_doc_strings.
21454
214552008-02-01 Kenichi Handa <handa@m17n.org>
21456
21457 * xdisp.c (face_before_or_after_it_pos): Call
21458 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21459
214602008-02-01 Kenichi Handa <handa@m17n.org>
21461
21462 * character.h (TRAILING_CODE_P): New macro.
21463 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21464 (string_char_with_unification): Fix prototype.
21465 (Vscript_alist): Extern it.
21466
21467 * character.c (Vscript_alist): New variable.
21468 (string_char_with_unification, str_as_unibyte)
21469 (string_escape_byte8): Add `const' to local variables.
21470 (syms_of_character): Declare script-alist as a Lisp variable.
21471
21472 * charset.h (Vcharset_ordered_list): Extern it.
21473 (charset_ordered_list_tick): Extern it.
21474 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21475 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21476 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21477 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21478 (Funify_charset): Adjust for the change of Funify_charset.
21479
21480 * charset.c (charset_ordered_list_tick): New variable.
21481 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21482 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21483 deunify instead of unify a charset.
aac0c6e3
MR
21484 (string_xstring_p): Add `const' to local variables.
21485 (find_charsets_in_text): Add `const' to arguments and local variables.
21486 (encode_char): Adjust for the change of Funify_charset. Fix
21487 detecting of invalid code.
21488 (Fset_charset_priority): Increment charset_ordered_list_tick.
21489 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21490 and TO_CODE.
21491
21492 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21493 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21494 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21495 (decode_coding_ccl, consume_chars)
21496 (Ffind_coding_systems_region_internal)
21497 (Fcheck_coding_systems_region): Add `const' to local variables.
21498
21499 * print.c (print_object): Use octal form for printing the
21500 contents of a bool vector.
21501
215022008-02-01 Dave Love <fx@gnu.org>
21503
21504 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21505 <version == 20>: Refuse to load.
21506
215072008-02-01 Dave Love <fx@gnu.org>
21508
21509 * fns.c: Move coding.h.
21510 (Qcodeset, Qdays, Qmonths): New.
21511 (concat): Use CHARACTERP instead of INTEGERP.
21512 (Flocale_codeset): Delete.
21513 (Flanginfo): New function.
21514 (syms_of_fns): Change accordingly.
21515
21516 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21517
215182008-02-01 Dave Love <fx@gnu.org>
21519
21520 * casetab.c (init_casetab_once, init_casetab_once): Fix
21521 CHAR_TABLE_SET call.
21522
21523 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21524
21525 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21526
21527 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21528 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21529 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21530
21531 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21532
21533 * coding.c (ENCODE_DESIGNATION, decode_eol)
21534 (make_conversion_work_buffer, code_conversion_restore)
21535 (Fdefine_coding_system_internal): Convert Lisp types.
21536 (code_conversion_restore): Use EQ, not ==.
21537 (Fencode_coding_string): Fix code_convert_string call.
21538
21539 * coding.h (code_convert_region): Fix prototype.
21540
21541 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21542
21543 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21544 (Ffontset_info): Convert Lisp types.
21545
21546 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21547
21548 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21549
21550 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21551
21552 * chartab.c: Include "...h", not <...h> in some cases.
21553
21554 * callproc.c (Fcall_process): Remove unused variables.
21555
215562008-02-01 Dave Love <fx@gnu.org>
21557
21558 * coding.c (Fset_coding_system_priority): Allow null arg list.
21559
215602008-02-01 Dave Love <fx@gnu.org>
21561
21562 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21563 (Fself_insert_and_exit): Use CHARACTERP.
21564
21565 * callproc.c (Fcall_process): Remove unused vars.
21566
21567 * xterm.c (XTread_socket): Add extra dead keysyms.
21568
21569 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21570
21571 * dispextern.h: Remove prototypes for redraw_frame,
21572 redraw_garbaged_frames.
21573
21574 * cmds.c (Fself_insert_command): Use CHARACTERP.
21575
21576 * chartab.c (make_sub_char_table): Remove unused var.
21577 (Fset_char_table_default, Fmap_char_table): Doc fix.
21578
21579 * keymap.c (access_keymap): Remove generic char code.
21580 (push_key_description): Use CHARACTERP.
21581
215822008-02-01 Dave Love <fx@gnu.org>
21583
21584 * charset.c: Doc fixes.
21585 (Funify_charset): Extra checking.
21586
215872008-02-01 Dave Love <fx@gnu.org>
21588
21589 * lread.c: Remove some unused variables.
21590 (safe_to_load_p): If safe, return the magic number version byte.
21591 (Fload): Maybe use load-with-code-conversion.
21592
215932008-02-01 Kenichi Handa <handa@m17n.org>
21594
21595 * category.c (Fmodify_category_entry): Don't modify the contents
21596 of category_set for characters out of the range. Avoid
21597 unnecessary modification.
21598
21599 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21600 Vchar_unify_table. The default value of the table is now nil.
21601
21602 * character.c (syms_of_character): Setup Vchar_width_table for
21603 eight-bit-control and raw-byte chars.
21604
21605 * charset.h (enum define_charset_arg_index): Delete
21606 charset_arg_parents and add charset_arg_subset and
21607 charset_arg_superset.
21608 (enum charset_attr_index): Delete charset_parents and add
21609 charset_subset and charset_superset.
21610 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21611 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21612 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21613 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21614 (CHARSET_SUPERSET): New macros.
21615 (charset_work): Extern it.
21616 (ENCODE_CHAR): Use charset_work.
21617 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21618 (map_charset_chars): Extern it.
21619
21620 * charset.c (load_charset_map): Set the default value of encoder
21621 and deunifier char-tables to nil.
21622 (map_charset_chars): Change argument. Change callers. Use
21623 map_char_table_for_charset instead of map_char_table.
21624 (Fmap_charset_chars): New optional args from_code and to_code.
21625 (Fdefine_charset_internal): Adjust for the change of
21626 `define-charset' (:parents -> :subset or :superset).
21627 (charset_work): New variable.
21628 (encode_char, syms_of_charset): Adjust for the change of
21629 Fdefine_charset_internal.
21630 (Ffind_charset_string): Setup the vector `charsets' correctly.
21631
21632 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21633 the previous change.
21634 (char_table_ref_and_range): Adjust for the above change.
21635 (map_sub_char_table_for_charset): New function.
21636 (map_char_table_for_charset): New function.
21637
21638 * keymap.c (describe_vector): Handle a char-table directly here.
21639 (describe_char_table): Delete.
21640
21641 * lisp.h (map_charset_chars): Delete.
21642
216432008-02-01 Dave Love <fx@gnu.org>
21644
21645 * fns.c (count_combining): Comment out (unused).
21646 (Flocale_codeset): New.
21647 (syms_of_fns): Defsubr it.
21648
21649 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21650 (size_t): Remove.
21651
216522008-02-01 Dave Love <fx@gnu.org>
21653
21654 * Makefile.in (chartab.o): Depend on charset.h.
21655
216562008-02-01 Kenichi Handa <handa@m17n.org>
21657
21658 * character.c (syms_of_character): Set the default value of
21659 Vprintable_chars to Qnil.
21660
216612008-02-01 Dave Love <fx@gnu.org>
21662
21663 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21664
216652008-02-01 Kenichi Handa <handa@m17n.org>
21666
21667 * charset.c (load_charset_map): Handle the case that from < to
21668 correctly.
21669
21670 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21671 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21672 Pay attention to raw-8-bit chars.
21673
216742008-02-01 Kenichi Handa <handa@m17n.org>
21675
21676 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21677 It is not bytecompiled now.
21678
21679 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21680 (charset_jisx0208): New variables.
21681 (Fdefine_charset_internal): Setup them if appropriate.
21682 (init_charset_once): Initialize them to -1.
21683
21684 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21685 (charset_jisx0208): Extern them.
21686
21687 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21688 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21689 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21690 (setup_iso_safe_charsets): Fix arguments to Fassq.
21691 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21692 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21693 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21694 (encode_coding_iso_2022): Change the 1st arg to
21695 ENCODE_ISO_CHARACTER to a variable.
21696
216972008-02-01 Kenichi Handa <handa@m17n.org>
21698
21699 * charset.h (enum define_charset_arg_index): New enums
21700 charset_arg_min_code and charset_arg_max_code.
21701 (struct charset): New member char_index_offset.
21702
21703 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21704 Take charset->char_index_offset into account.
21705 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21706 args[charset_arg_max_code]. Setup charset.char_index_offset.
21707 (syms_of_charset): Fix args to Fdefine_charset_internal.
21708
217092008-02-01 Dave Love <fx@gnu.org>
21710
21711 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21712
217132008-02-01 Dave Love <fx@gnu.org>
21714
21715 * coding.c: Doc fixes.
21716 (Fcoding_system_aliases): Fix return value.
21717 (Qmac): Remove (duplicated) definition.
21718
217192008-02-01 Dave Love <fx@gnu.org>
21720
362654a6
JB
21721 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21722 New functions.
aac0c6e3
MR
21723
21724 * character.c (Fstring): Doc fix.
21725
21726 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21727
362654a6 21728 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21729 (font-encoding-alist): Doc fix.
21730
217312008-02-01 Dave Love <fx@gnu.org>
21732
21733 * term.c (costs_set): Declare static, non-initialized for pcc.
21734 (encode_terminal_code): Remove unused var.
21735
21736 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21737 for K&R.
21738
21739 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21740
21741 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21742 (suffixes): Move out of make_subsidiaries for K&R.
21743
21744 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21745
21746 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21747
217482008-02-01 Dave Love <fx@gnu.org>
21749
21750 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21751
21752 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21753
217542008-02-01 Yong Lu <lyongu@asia-infonet.com>
21755
21756 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21757
21758 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21759
217602008-02-01 Kenichi Handa <handa@m17n.org>
21761
21762 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21763 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21764
217652008-02-01 Kenichi Handa <handa@m17n.org>
21766
21767 * coding.c (decode_coding_charset): Adjust for the change of
21768 Fdefine_coding_system_internal.
21769 (Fdefine_coding_system_internal): For a coding system of
21770 `charset' type, store a list of charset IDs in
21771 `charset_attr_charset_valids' element of coding attributes.
21772
217732008-02-01 Kenichi Handa <handa@m17n.org>
21774
21775 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21776 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21777 caller. Handle 2-byte and 3-byte charsets correctly.
21778 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21779 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21780 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21781 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21782 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21783 sequence.
21784 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21785 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21786 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21787 and alt&rule composition.
21788 (decode_coding_iso_2022): Handle composition correctly.
21789 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21790
21791 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21792 re-defining a charset. If the charset has :emacs-mule-id, setup
21793 emacs_mule_bytes.
21794 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21795
217962008-02-01 Kenichi Handa <handa@m17n.org>
21797
21798 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21799 (encode_coding_big5, encode_coding_charset): If coding requires safe
21800 encoding, produce a character specified by
21801 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21802
218032008-02-01 Dave Love <fx@gnu.org>
21804
21805 * xterm.c (XSetIMValues): Declare.
21806
21807 * process.c: Conditionally include sys/wait.h, pty.h.
21808
21809 * print.c (print_object): Fix print format for 64-bit systems.
21810
21811 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21812
21813 * buffer.c (emacs_strerror): Declare.
21814
21815 * fontset.c (Fclear_face_cache): Declare.
21816 (accumulate_font_info): Comment-out (unused).
21817 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21818 variables.
21819
21820 * character.h (string_escape_byte8): Declare.
21821
21822 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21823 unused vars.
21824 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21825 (Fmap_charset_chars): Doc fix.
21826
21827 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21828 (Fset_coding_system_priority, Fset_coding_system_priority)
21829 (Fdefine_coding_system_internal): Doc fix.
21830
218312008-02-01 Dave Love <fx@gnu.org>
21832
21833 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 * character.c (string_escape_byte8): Make multibyte string with
21838 correct size.
21839
21840 * charset.c (Fmake_char): Delete unnecessary code.
21841
218422008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * xfns.c (x_encode_text): Allocate coding.destination here, and
21845 call encode_coding_object with dst_object Qnil.
21846
21847 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21848 multibyte form correctly.
21849
21850 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21851 against Vfont_encoding_alist.
21852
21853 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21854 handling of charset list.
21855 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21856 (decode_coding_object): Move point to coding->dst_pos before
21857 calling post-read-conversion function.
21858 (encode_coding_object): Give correct arguments to
21859 pre-write-conversion. Ignore the return value of
21860 pre-write-conversion function. Pay attention to the case that
21861 pre-write-conversion changes the current buffer. If dst_object is
21862 Qt, even if coding->src_bytes is zero, allocate at least one byte
21863 to coding->destination.
21864
21865 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21866
21867 * charset.c (Fmake_char): Make it more backward compatible.
21868 (Fmap_charset_chars): Fix docstring.
21869
218702008-02-01 Dave Love <fx@gnu.org>
21871
21872 * coding.c: Doc fixes.
21873 (Fdefine_coding_system_alias): Use names, not symbols, in
21874 coding-system-alist.
21875
218762008-02-01 Kenichi Handa <handa@m17n.org>
21877
21878 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21879 of calling free_realized_face.
21880
218812008-02-01 Yong Lu <lyongu@asia-infonet.com>
21882
21883 * charset.c (read_hex): Don't treat SPC as a comment starter.
21884 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21885 (Fdecode_char): Fix typo.
21886
218872008-02-01 Kenichi Handa <handa@m17n.org>
21888
21889 * charset.h (struct charset): New member `code_space_mask'.
21890
21891 * coding.c (coding_set_source): Delete the local variable beg_byte.
21892 (encode_coding_charset, Fdefine_coding_system_internal):
21893 Delete the local variable charset.
21894 (Fdefine_coding_system_internal): Setup
21895 attrs[coding_attr_charset_valids] correctly.
21896
21897 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21898 member to check if CODE is valid or not.
21899 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21900 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21901 is within the range of charset->min_code and carset->max_code.
21902
219032008-02-01 Dave Love <fx@gnu.org>
21904
21905 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21906
21907 * dispextern.h (generate_ascii_font): Fix return type.
21908
21909 * xfaces.c (generate_ascii_font): Fix arg declaration.
21910
21911 * coding.c (coding_inherit_eol_type)
21912 (Fset_terminal_coding_system_internal)
21913 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21914
219152008-02-01 Kenichi Handa <handa@m17n.org>
21916
21917 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21918 multiple charsets correctly.
21919
219202008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 * search.c (boyer_moore): Fix handling of multibyte character
21923 translation.
21924
21925 * xdisp.c (display_mode_element): When the variable `elt' is
21926 changed, update `this' and `lisp_string'.
21927
219282008-02-01 Kenichi Handa <handa@m17n.org>
21929
21930 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21931
21932 * callproc.c (Fcall_process): Be sure to give the current buffer
21933 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21934
21935 * charset.c (struct charset_map_entries): New struct.
21936 (load_charset_map): Rename from parse_charset_map. New args
21937 entries and n_entries. Change caller.
21938 (load_charset_map_from_file): Rename from load_charset_map.
21939 Change caller. New arg control_flag. Call load_charset_map at
21940 the tail.
21941 (load_charset_map_from_vector): New function.
21942 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21943 (encode_char): If the charset is compact, change a character index
21944 to a code point.
21945
21946 * coding.c (coding_alloc_by_making_gap): Check the case that the
21947 source and destination are the same correctly.
21948 (decode_coding_raw_text): Set coding->consumed_char and
21949 coding->consumed to 0.
21950 (produce_chars): If coding->chars_at_source is nonzero, update
21951 coding->consumed_char and coding->consumed before calling
21952 alloc_destination.
21953 (Fdefine_coding_system_alias): Register ALIAS in
21954 Vcoding_system_alist.
21955 (syms_of_coding): Define `no-conversion' coding system at the tail.
21956
21957 * fileio.c (Finsert_file_contents): Set coding_system instead of
21958 val. If the current buffer is multibyte, always call
21959 decode_coding_gap.
21960
21961 * xfaces.c (try_font_list): Give higher priority to fontset's
21962 family than face's family.
21963
219642008-02-01 Kenichi Handa <handa@m17n.org>
21965
21966 * callproc.c (Fcall_process): Be sure to give the current buffer
21967 to decode_coding_c_string.
21968
21969 * xfaces.c (try_font_list): Give a family specified in a fontset
21970 higher priority than a family specified in a face.
21971
219722008-02-01 Kenichi Handa <handa@m17n.org>
21973
21974 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21975 Fix arguments to insert_from_buffer.
21976
21977 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21978
219792008-02-01 Kenichi Handa <handa@m17n.org>
21980
21981 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21982 (decode_coding_gap): Set coding->dst_multibyte correctly.
21983
219842008-02-01 Kenichi Handa <handa@m17n.org>
21985
21986 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21987 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21988 (encode_coding_utf_16): Substitute coding->default_char for
21989 non-Unicode characters.
21990 (decode_coding): Don't call record_insert here.
21991 (setup_coding_system): Initialize `surrogate' of
21992 coding->spec.utf_16 to 0.
21993 (EMIT_ONE_BYTE): Fix for multibyte case.
21994
21995 * insdel.c (insert_from_gap): Call record_insert.
21996
219972008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * casefiddle.c (casify_region): Fix multibyte case.
22000
22001 * character.c (c_string_width): Add return type `int'.
22002 (char_string_with_unification): Delete arg ADVANCED.
22003
22004 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22005 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22006 (CHAR_STRING_ADVANCE): Make it do-while statement.
22007
22008 * chartab.c (sub_char_table_set_range): Optimize for the case
22009 DEPTH == 3. Add workaround code for a GCC optimization bug.
22010
22011 * charset.c (parse_charset_map): Remove an unused variable.
22012
22013 * coding.c: Delete unused variables.
22014
22015 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22016 earlier. If inserted is zero and the coding system doesn't
22017 require flushing, don't call decode_coding_gap.
22018
22019 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22020
220212008-02-01 Kenichi Handa <handa@m17n.org>
22022
22023 The following changes are for using Unicode as an internal
22024 character model, and use UTF-8 format for buffer/string
22025 representation.
22026
22027 * .gdbinit (xchartable): Adjust for the change of char table structure.
22028 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22029
22030 * Makefile.in (obj): Add character.o and chartab.o.
22031 (lisp, shortlisp): Remove utf-8.elc.
22032 (*.o): For many files, change dependency on charset.h to
22033 character.h, and add dependency on character.h.
22034 (character.o, chartab.o): New targets.
22035
22036 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22037 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22038 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22039 of "charset.h".
22040
22041 * dired.c, filelock.c: Include "character.h".
22042
22043 * alloc.c: Include "character.h" instead of "charset.h".
22044 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22045 (syms_of_alloc): Remove defsubr for Smake_char_table.
22046
22047 * buffer.c: Include "character.h" instead of "charset.h", don't
22048 include "coding.h".
22049 (Fset_buffer_multibyte): Adjust for UTF-8.
22050
22051 * buffer.h: EXFUN Fbuffer_live_p.
22052
22053 * callproc.c: Include "character.h" instead of "charset.h".
22054 (Fcall_process): Big change for the new code-conversion APIs.
22055
22056 * casetab.c: Include "character.h" instead of "charset.h".
22057 (set_canon, set_identity, shuffle): Adjust for the new
22058 map_char_table spec.
22059 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22060 accessing the char table structure.
22061
22062 * chartab.c: New file that implements char table.
22063
22064 * category.c: Include "character.h".
22065 (copy_category_entry): New function.
22066 (copy_category_table): Call map_char_table and copy_category_entry.
22067 (Fmake_category_table): Initialize all top-level slots.
22068 (char_category_set): New function.
22069 (modify_lower_category_set): Delete.
22070 (Fmodify_category_entry): Call char_table_ref_and_range.
22071
22072 * category.h (CATEGORY_SET): Just call char_category_set.
22073
22074 * ccl.c: Include "character.h".
22075 (Qccl, Qcclp): New variables.
22076 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22077 it's less than 256.
22078 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22079 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22080 and DST type.
22081 (ccl_driver): Change types of argument, adjust code accordingly.
22082 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22083 ccl_driver.
22084 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22085
22086 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22087 New members src_multibyte, dst_multibyte, consumed, and produced.
22088 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22089 (CODING_SPEC_CCL_PROGRAM): New macro.
22090 (ccl_driver): Update prototype.
22091 (Qccl, Qcclp, Fccl_program_p): Extern them.
22092 (CHECK_CCL_PROGRAM): New macro.
22093
22094 * character.c, character.h, chartab.c: New files.
22095
22096 * charset.c: Mostly re-written. Move character and multibyte sequence
22097 handling codes to character.c.
22098
22099 * charset.h: Mostly re-written. Move character and multibyte sequence
22100 handling codes to character.h.
22101
22102 * coding.c, coding.h: Mostly re-written.
22103
22104 * composite.c: Include "character.h" instead of "charset.h".
22105 (CHAR_WIDTH): Move to character.h.
22106 (HASH_KEY, HASH_VALUE): Delete.
22107
22108 * composite.h (enum composition_method): Change order of enumeration
22109 symbols.
22110
22111 * data.c: Include "character.h" instead of "charset.h".
22112 (Faref): Call CHAR_TABLE_REF for a char table.
22113 (Faset): Call CHAR_TABLE_SET for a char table.
22114
22115 * dispextern.h (free_realized_face, check_face_attribytes)
22116 (generate_ascii_font): Extern them.
22117 (free_realized_multibyte_face): Delete extern.
22118
22119 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22120 table structure.
22121
22122 * editfns.c: Include "character.h" instead of "charset.h".
22123 (Fchar_to_string): Always call CHAR_STRING.
22124
22125 * emacs.c (main): Call init_charset_once, init_charset,
22126 syms_of_chartab, and syms_of_character.
22127
22128 * fileio.c: Include "character.h" instead of "charset.h".
22129 (Finsert_file_contents): Big change for the new code-conversion API.
22130 (choose_write_coding_system, Fwrite_region): Likewise.
22131 (build_annotations_2): Delete.
22132 (e_write): Big change for the new code-conversion API.
22133
22134 * fns.c: Include "character.h" instead of "charset.h".
22135 (copy_sub_char_table): Move to chartab.c.
22136 (Fcopy_sequence): Call copy_char_table for a char table.
22137 (concat): Delete codes calling count_multibyte.
22138 (string_char_to_byte, string_byte_to_char): Adjust for the new
22139 multibyte form.
22140 (internal_equal): Adjust for the change of char table structure.
22141 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22142 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22143 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22144 (char_table_translate, optimize_sub_char_table)
22145 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22146 chartab.c.
22147 (char_table_ref_and_index): Delete.
22148 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22149 (Fmd5): Call preferred_coding_system instead of accessing
22150 Vcoding_category_list. Adjust for the new code-conversion API.
22151 (syms_of_fns): Move defsubr for char table related functions to
22152 chartab.c.
22153
22154 * fontset.c: Mostly re-written.
22155
22156 * fontset.h (struct font_info): Change type of the member encoding_type.
22157 (enum FONT_SPEC_INDEX): New enum.
22158 (fontset_font_pattern, fs_load_font): Update prototype.
22159 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22160
22161 * indent.c: Include "character.h" instead of "charset.h".
22162 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22163
22164 * insdel.c: Include "character.h" instead of "charset.h".
22165 (copy_text): Don't refer to Vnonascii_translation_table.
22166 (insert_from_gap): New function.
22167
22168 * keyboard.c: Include "character.h" instead of "charset.h".
22169 (command_loop_1): Never call direct_output_forward_char before
22170 a non-ASCII character.
22171 (read_char): If Vkeyboard_translate_table is a char table, always
22172 translate a character.
22173
22174 * keymap.c: Include "character.h".
22175 (store_in_keymap): Handle the case that IDX is a cons.
22176 (Fdefine_key): Handle the case that KEY is a cons and the car part
22177 is also a cons (range).
22178 (push_key_description): Adjust for the new character code.
22179 (describe_vector): Call describe_char_table for a char table.
22180 (describe_char_table): New function.
22181
22182 * keymap.h (describe_char_table): Extern it.
22183
22184 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22185 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22186 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22187 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22188 Delete.
22189 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22190 structure.
22191 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22192 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22193 (CHARTAB_SIZE_BITS_3): New macros.
22194 (chartab_size): Extern it.
22195 (struct Lisp_Char_Table): Re-design.
22196 (struct Lisp_Sub_Char_Table): New structure.
22197 (HASH_KEY, HASH_VALUE): Move from fns.c.
22198 (CHARACTERBITS): Define as 22.
22199 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22200 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22201 (GC_SUB_CHAR_TABLE_P): New macro.
22202 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22203 (code_convert_string_norecord): Deleted extern.
22204 (init_character_once, syms_of_character, init_charset)
22205 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22206
22207 * lread.c: Include "character.h".
22208 (read_multibyte): New arg NBYTES.
22209 (read_escape): Change the meaning of returned *BYTEREP.
22210 (to_multibyte): Delete.
22211 (read1): Adjust the handling of char table and string.
22212
22213 * print.c: Include "character.h" instead of "charset.h".
22214 (print_string): Convert 8-bit raw bytes to octal form by
22215 string_escape_byte8.
22216 (print_object): Adjust for the new multibyte form. Print 8-bit
22217 raw bytes always in octal form. Handle sub char table correctly.
22218
22219 * process.c: Include "character.h" instead of "charset.h".
22220 (read_process_output, send_process): Adjust for the new
22221 code-conversion API.
22222
22223 * puresize.h (BASE_PURESIZE): Increase.
22224
22225 * regex.c: Include "character.h" instead of "charset.h".
22226 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22227 (regex_compile): Accept a range whose starting and ending
22228 character have different leading bytes.
22229 (analyse_first): Adjust for the above change.
22230
22231 * search.c: Include "character.h" instead of "charset.h".
22232 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22233 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22234
22235 * syntax.c: Include "character.h" instead of "charset.h".
22236 (syntax_parent_lookup): Delete.
22237 (Fmodify_syntax_entry): Accept a cons as CHAR.
22238 (skip_chars): Adjust for the new multibyte form.
22239 (init_syntax_once): Call char_table_set_range instead of directly
22240 accessing the structure of a char table.
22241
22242 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22243 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22244 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22245 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22246
22247 * term.c: Include "buffer.h" and "character.h".
22248 (encode_terminal_code, write_glyphs): Adjust for the new
22249 code-conversion API.
22250 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22251
22252 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22253
22254 * xdisp.c: Include "character.h".
22255 (get_next_display_element): Adjust for the new multibyte form.
22256 (disp_char_vector): Adjust for the new char table structure.
22257 (decode_mode_spec_coding): Adjust for the new structure of
22258 coding system.
22259 (decode_mode_spec): Adjust for the new code-conversion API.
22260
22261 * xfaces.c: Include "character.h" instead of "charset.h".
22262 (load_face_font): Adjust for the change of choose_face_font and
22263 FS_LOAD_FONT.
22264 (generate_ascii_font): New function.
22265 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22266 (set_font_frame_param): Adjust for the change of choose_face_font.
22267 (free_realized_face): Make it public.
22268 (free_realized_faces_for_fontset): Rename from
22269 free_realized_multibyte_face. Free also faces realized for ASCII.
22270 (choose_face_font): Change arguments. Adjust for the change of
22271 fontset_font_pattern and FS_LOAD_FONT.
22272
22273 * xfns.c: Include "character.h".
22274 (x_encode_text): Adjust for the new code-conversion API.
22275
22276 * xselect.c: Don't include "charset.h".
22277 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22278
22279 * xterm.c: Include "character.h".
22280 (x_encode_char): New argument CHARSET. Change caller.
22281 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22282 Call ENCODE_CHAR instead of SPLIT_CHAR.
22283 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22284 CHAR_WIDTH instead of CHARSET_WIDTH.
22285 (XTread_socket): Adjust for the new code-conversion API.
22286 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22287 (x_load_font): Adjust for the change of struct font.
22288
222892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22290
22291 * xfaces.c (face_at_buffer_position): Remove unused vars.
22292
222932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22294
22295 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22296 Fix overflow checking.
22297
222982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22299
22300 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22301 Cancel previous change.
22302
223032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22304
22305 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22306 ccl->eight_bit_control. Fix check for buffer overflow.
22307 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22308 (ccl_driver): Initialize extra_bytes to 0.
22309
223102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22311
22312 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22313 return it ORed with ctrl_modifier.
22314
223152008-01-29 Miles Bader <miles@gnu.org>
22316
22317 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22318
223192008-01-28 Jason Rumney <jasonr@gnu.org>
22320
22321 * w32.c (stat): Don't double check for networked drive.
22322
223232008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22324
22325 * window.c (run_window_configuration_change_hook): New function.
22326 Code extracted from set_window_buffer. Set the selected frame.
22327 (set_window_buffer): Use it.
22328 * window.h (run_window_configuration_change_hook): Declare.
22329 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22330
22331 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22332
223332008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22334
22335 * Makefile.in: Remove references to unused macros.
22336
223372008-01-26 Eli Zaretskii <eliz@gnu.org>
22338
22339 * w32.c (g_b_init_get_sid_sub_authority)
22340 (g_b_init_get_sid_sub_authority_count): New static variables.
22341 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22342 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22343 (init_user_info): Use them to retrieve uid and gid.
22344 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22345 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22346 st_uid and st_gid of the file.
22347
223482008-01-26 Jason Rumney <jasonr@gnu.org>
22349
22350 * w32.c (logon_network_drive): New function.
22351 (stat): Use it.
22352
223532008-01-26 Chong Yidong <cyd@stupidchicken.com>
22354
22355 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22356 invisible text covered with an ellipsis.
22357
223582008-01-25 Richard Stallman <rms@gnu.org>
22359
22360 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22361 jump back to beginning. Move some other initializations after that.
22362 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22363 New variables.
22364 (syms_of_xdisp): Init them.
22365
22366 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22367
22368 * buffer.c (reset_buffer_local_variables):
22369 Implement `permanent-local-hook'.
22370 (Qpermanent_local_hook): New variable.
22371 (syms_of_buffer): Init and staticpro it.
22372
223732008-01-25 Michael Albinus <michael.albinus@gmx.de>
22374
22375 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22376
223772008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22378
22379 * fns.c (Fclrhash): Return TABLE.
22380
223812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22382
22383 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22384 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22385 is set even without positional changes.
22386 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22387
22388 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22389
223902008-01-23 Jason Rumney <jasonr@gnu.org>
22391
22392 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22393
22394 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22395 the unicode range available in MULE by locale-coding-system.
22396 Improve dbcs lead byte detection. Set event timestamp and modifiers
22397 earlier.
22398
223992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22400
22401 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22402 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22403 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22404 when used on child processes.
22405
224062008-01-21 Michael Albinus <michael.albinus@gmx.de>
22407
22408 * dbusbind.c (Fdbus_method_return_internal): Rename from
22409 Fdbus_method_return.
22410 (Fdbus_unregister_object): Move to dbus.el.
22411 (Fdbus_call_method, Fdbus_method_return_internal)
22412 (Fdbus_send_signal): Improve debug messages.
22413
224142008-01-20 Martin Rudalics <rudalics@gmx.at>
22415
22416 * undo.c (undo_inhibit_record_point): New variable.
22417 (syms_of_undo): Initialize it.
22418 (record_point): Don't record point when undo_inhibit_record_point
22419 is set.
22420
224212008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22422
22423 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22424
22425 * xdisp.c (Qauto_hscroll_mode): New var.
22426 (syms_of_xdisp): Initialize it.
22427 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22428 window's buffer.
22429 (hscroll_windows): Don't check automatic_hscrolling_p here.
22430
22431 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22432 vscroll if we're setting window-buffer to the value it already has.
22433
224342008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22435
22436 * m/intel386.h: Remove references to XENIX.
22437
224382008-01-17 Andreas Schwab <schwab@suse.de>
22439
22440 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22441 instead of HAVE_X86_64_LIB64_DIR.
22442 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22443
224442008-01-17 Glenn Morris <rgm@gnu.org>
22445
22446 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22447 to HAVE_X86_64_LIB64_DIR.
22448
224492008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22450
22451 * s/irix3-3.h:
22452 * s/irix4-0.h:
22453 * s/386-ix.h:
22454 * s/domain.h:
22455 * s/hpux9-x11r4.h:
22456 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22457
22458 * sysdep.c: Remove code containing references to symbols defined
22459 by unsupported systems.
22460
224612008-01-16 Glenn Morris <rgm@gnu.org>
22462
22463 * coding.c (select-safe-coding-system-function): Doc fix.
22464
224652008-01-15 Glenn Morris <rgm@gnu.org>
22466
22467 * config.in: Revert 2008-01-13 change: this is a generated file.
22468
224692008-01-13 Tom Tromey <tromey@redhat.com>
22470
22471 * lisp.h: Fix typo.
22472
224732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22474
22475 * m/sequent-ptx.h:
22476 * m/sequent.h:
22477 * s/ptx.h:
22478 * s/ptx4-2.h:
22479 * s/ptx4.h: Remove files for systems no longer supported.
22480
22481 * callproc.c (Fcall_process): Fix previous change.
22482
224832008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22484
22485 * unexsunos4.c: Remove file, system not supported anymore.
22486
22487 * m/mips.h:
22488 * m/intel386.h:
22489 * callproc.c:
22490 * config.in:
22491 * ecrt0.c:
22492 * emacs.c:
22493 * fileio.c:
22494 * frame.c:
22495 * getpagesize.h:
22496 * keyboard.c:
22497 * lread.c:
22498 * process.c:
22499 * puresize.h:
22500 * sysdep.c:
22501 * systty.h:
22502 * syswait.h:
22503 * unexec.c:
22504 * xdisp.c:
22505 * alloc.c: Remove code containing references to symbols defined by
22506 unsupported systems.
22507
225082008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22509
22510 * coding.c (detect_coding_mask): Fix previous change.
22511
225122008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22513
22514 * coding.c (detect_coding_iso2022): New arg
22515 latin_extra_code_state. Allow Latin extra codes only
22516 when *latin_extra_code_state is nonzero.
22517 (detect_coding_mask): If there is a NULL byte, detect the encoding
22518 as UTF-16 or binary. If Latin extra codes exist, detect the
22519 encoding as ISO-2022 only when there's no other proper encoding is
22520 found.
22521
225222008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22523
22524 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22525 #ifdef MAC_OS.
22526
225272008-01-08 Richard Stallman <rms@gnu.org>
22528
22529 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22530
225312008-01-06 Nick Roberts <nickrob@snap.net.nz>
22532
22533 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22534 menu bar in parentheses.
22535
225362008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22537
22538 * m/7300.h:
22539 * m/acorn.h:
22540 * m/alliant-2800.h:
22541 * m/alliant.h:
22542 * m/alliant1.h:
22543 * m/alliant4.h:
22544 * m/altos.h:
22545 * m/amdahl.h:
22546 * m/apollo.h:
22547 * m/att3b.h:
22548 * m/aviion-intel.h:
22549 * m/aviion.h:
22550 * m/celerity.h:
22551 * m/clipper.h:
22552 * m/cnvrgnt.h:
22553 * m/convex.h:
22554 * m/cydra5.h:
22555 * m/delta88k.h:
22556 * m/dpx2.h:
22557 * m/dual.h:
22558 * m/elxsi.h:
22559 * m/f301.h:
22560 * m/gould-np1.h:
22561 * m/gould.h:
22562 * m/i860.h:
22563 * m/ibmps2-aix.h:
22564 * m/ibmrt-aix.h:
22565 * m/ibmrt.h:
22566 * m/irist.h:
22567 * m/is386.h:
22568 * m/isi-ov.h:
22569 * m/mega68.h:
22570 * m/mg1.h:
22571 * m/news-r6.h:
22572 * m/news-risc.h:
22573 * m/news.h:
22574 * m/nh3000.h:
22575 * m/nh4000.h:
22576 * m/ns16000.h:
22577 * m/ns32000.h:
22578 * m/nu.h:
22579 * m/orion.h:
22580 * m/orion105.h:
22581 * m/paragon.h:
22582 * m/pfa50.h:
22583 * m/plexus.h:
22584 * m/pyramid.h:
22585 * m/pyrmips.h:
22586 * m/sh3el.h:
22587 * m/sps7.h:
22588 * m/sr2k.h:
22589 * m/stride.h:
22590 * m/sun1.h:
22591 * m/sun2.h:
22592 * m/sun3-68881.h:
22593 * m/sun3-fpa.h:
22594 * m/sun3-soft.h:
22595 * m/sun3.h:
22596 * m/sun386.h:
22597 * m/symmetry.h:
22598 * m/tad68k.h:
22599 * m/tahoe.h:
22600 * m/targon31.h:
22601 * m/tek4300.h:
22602 * m/tekxd88.h:
22603 * m/tower32.h:
22604 * m/tower32v3.h:
22605 * m/ustation.h:
22606 * m/wicat.h:
22607 * m/xps100.h:
22608 * s/cxux.h:
22609 * s/cxux7.h:
22610 * s/dgux.h:
22611 * s/dgux4.h:
22612 * s/dgux5-4-3.h:
22613 * s/dgux5-4r2.h:
22614 * s/esix.h:
22615 * s/esix5r4.h:
22616 * s/hiuxmpp.h:
22617 * s/hiuxwe2.h:
22618 * s/iris3-5.h:
22619 * s/iris3-6.h:
22620 * s/isc2-2.h:
22621 * s/isc3-0.h:
22622 * s/isc4-0.h:
22623 * s/isc4-1.h:
22624 * s/newsos5.h:
22625 * s/newsos6.h:
22626 * s/osf1.h:
22627 * s/osf5-0.h:
22628 * s/riscix1-1.h:
22629 * s/riscix12.h:
22630 * s/sco4.h:
22631 * s/sco5.h:
22632 * s/sunos4-0.h:
22633 * s/sunos4-1.h:
22634 * s/sunos413.h:
22635 * s/sunos4shr.h:
22636 * s/umax.h:
22637 * s/unipl5-2.h:
22638 * s/xenix.h:
22639 * cxux-crt0.s:
22640 * unexapollo.c:
22641 * unexconvex.c:
22642 * unexenix.c:
22643 * unexsni.c: Remove files for systems no longer supported.
22644
22645 * m/intel386.h: Remove references to unsupported systems.
22646
22647 * w32.c (get_emacs_configuration): Remove reference to i860.
22648
22649 * sysdep.c: Remove dead code.
22650
226512008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22652
22653 * s/rtu.h:
22654 * m/masscomp.h: Remove files. Platform is obsolete.
22655
226562008-01-04 Michael Albinus <michael.albinus@gmx.de>
22657
22658 * dbusbind.c (Fdbus_method_return): New function.
22659 (xd_read_message): Add the serial number to the event.
22660 (Fdbus_register_method): Activate the function.
22661
226622008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22663
22664 * keyboard.c (read_key_sequence): Fix typo.
22665
226662008-01-03 Michael Albinus <michael.albinus@gmx.de>
22667
22668 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22669 (xd_signature, xd_append_arg): Handle element type detection for
22670 empty arrays.
22671 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22672 SDATA () calls; this must be solved more general.
22673 (Fdbus_register_signal): Use SBYTES instead of strlen.
22674
226752008-01-03 Magnus Henoch <magnus@zemdatav>
22676
22677 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22678 unsigned int for byte values (necessary for big-endian platform).
22679 (Fdbus_call_method): Handle the case of no returned arguments.
22680
226812007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22682
22683 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22684
226852007-12-31 Magnus Henoch <mange@freemail.hu>
22686
22687 * dbusbind.c (xd_signature): Signature of variant is just "v".
22688
226892007-12-30 Michael Albinus <michael.albinus@gmx.de>
22690
22691 * dbusbind.c: Fix several errors and compiler warnings.
22692 Reported by Tom Tromey <tromey@redhat.com>.
22693 (XD_ERROR, XD_DEBUG_MESSAGE)
22694 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22695 (xd_append_arg): Part for basic D-Bus types rewritten.
22696 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22697 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22698 appropriate.
22699 (xd_read_message): Return Qnil. Don't signal an error; it is not
22700 useful during event reading.
22701 (Fdbus_register_signal): Signal an error if the check for
22702 FUNCTIONP fails.
22703 (Fdbus_register_method): New function. The implementation is not
22704 complete, the call of the function signals an error therefore.
22705 (Fdbus_unregister_object): New function, renamed from
22706 Fdbus_unregister_signal. The initial check signals an error, if
22707 the object is not well formed.
22708
227092007-12-30 Richard Stallman <rms@gnu.org>
22710
22711 * textprop.c (get_char_property_and_overlay):
22712 Signal error if POSITION is out of range in a buffer.
22713
227142007-12-29 Martin Rudalics <rudalics@gmx.at>
22715
22716 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22717 because the original parameters are in pure storage now.
22718
227192007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22720
22721 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22722
227232007-12-22 Eli Zaretskii <eliz@gnu.org>
22724
22725 * callint.c (syms_of_callint) <command-history>: Add reference to
22726 history-length in the doc string.
22727
227282007-12-17 Jason Rumney <jasonr@gnu.org>
22729
22730 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22731 before passing as wParam.
22732
227332007-12-22 Michael Albinus <michael.albinus@gmx.de>
22734
22735 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22736 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22737 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22738 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22739 as number.
22740 (Fdbus_call_method): Fix docstring.
22741
227422007-12-21 Michael Albinus <michael.albinus@gmx.de>
22743
22744 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22745 New macros.
22746 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22747 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22748 Simplify.
22749 (xd_signature): New function.
22750 (xd_append_arg): Compute also signatures. Major rewrite.
22751 (xd_retrieve_arg): Make debug messages friendly.
22752 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22753 Check for signatures of arguments.
22754
227552007-12-19 Michael Albinus <michael.albinus@gmx.de>
22756
22757 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22758 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22759 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22760 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22761 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22762 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22763 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22764 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22765 (xd_retrieve_value): Remove. Functionality included in ...
22766 (xd_append_arg): New function.
22767 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22768
227692007-12-16 Michael Albinus <michael.albinus@gmx.de>
22770
22771 * dbusbind.c (top): Include <stdio.h>.
22772 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22773 dbus_message_new_method_call and dbus_message_new_signal.
22774 (Fdbus_register_signal): Rename unique_name to uname.
22775 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22776 non-existing unique name. Fix typos in matching rule. Return an
22777 object which is useful in Fdbus_unregister_signal.
22778 (Fdbus_unregister_signal): Reimplementation, in order to remove
22779 only the corresponding entry.
22780 (Vdbus_registered_functions_table): Change the order of entries.
22781 Apply these changes in xd_read_message and Fdbus_register_signal.
22782
227832007-12-16 Andreas Schwab <schwab@suse.de>
22784
22785 * fileio.c (Finsert_file_contents): Fix overflow check to not
22786 depend on undefined integer overflow.
22787
227882007-12-14 Jason Rumney <jasonr@gnu.org>
22789
22790 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22791 for characters above 127.
22792
227932007-12-13 Jason Rumney <jasonr@gnu.org>
22794
22795 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22796 before dereferencing array.
22797 (lookup_vk_code): Remove zero comparison.
22798
227992007-12-14 Michael Albinus <michael.albinus@gmx.de>
22800
22801 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22802 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22803 Use `unsigned int' instead of `uint'.
22804 (xd_read_message, Fdbus_register_signal): Split expressions into
22805 multiple lines before operators "&&" and "||", according to the
22806 GNU Coding Standards.
22807
228082007-12-14 Eli Zaretskii <eliz@gnu.org>
22809
22810 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22811
228122007-12-12 Juri Linkov <juri@jurta.org>
22813
22814 * buffer.c (Frename_buffer): In interactive spec replace
22815 `read-buffer' with `read-string' that uses `buffer-name-history'
22816 as history, and the current buffer's name as default.
22817
228182007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22819
22820 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22821 manipulating the backtrace manually.
22822 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22823 (struct backtrace, backtrace_list): Remove.
22824 (command_loop_1): Remove dead var `no_direct'.
22825
22826 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22827 preserve non-built-in buffer-local variables.
22828 (Fkill_all_local_variables): Don't re-create&re-set permanent
22829 buffer-local variables.
22830
228312007-12-09 Juri Linkov <juri@jurta.org>
22832
22833 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22834 Lisp code that uses `read-buffer' with current buffer as default.
22835
228362007-12-08 Michael Albinus <michael.albinus@gmx.de>
22837
22838 * dbusbind.c (xd_read_message): Generate an event for every
22839 registered handler. There might be several handlers registered
22840 for the same signal.
22841 (Fdbus_register_signal): Don't overwrite a registration for the
22842 same signal. Add a new registration if handlers are different.
22843 (Vdbus_registered_functions_table): Rework doc string.
22844
228452007-12-07 Michael Albinus <michael.albinus@gmx.de>
22846
22847 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22848 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22849 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22850 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22851 Unify argument lists.
22852 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22853 arguments and hash table keys. Use unique name for service.
22854 (Fdbus_unregister_signal): Remove checks.
22855 (Vdbus_registered_functions_table): Fix doc string.
22856
228572007-12-05 Magnus Henoch <mange@freemail.hu>
22858
22859 * process.c (make_process): Initialize pty_flag to 0.
22860
228612007-12-05 Jason Rumney <jasonr@gnu.org>
22862
22863 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22864 specified XBMs.
22865
228662007-12-05 Richard Stallman <rms@gnu.org>
22867
22868 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22869
228702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22871
22872 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22873 New variable.
22874 (mac_try_close_socket) [MAC_OSX]: New function.
22875 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22876 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22877
22878 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22879 Use mac_try_close_socket.
22880
228812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22882
22883 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22884 reloc_base.
22885 (copy_dysymtab): Compute relocation base here.
22886 (rebase_reloc_address) [__ppc64__]: New function.
22887 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22888 changed.
22889
228902007-12-05 Jason Rumney <jasonr@gnu.org>
22891
22892 * w32proc.c (sys_spawnve): Quote args with wildcards.
22893
228942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22895
22896 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22897 __objc_* sections.
22898 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22899
229002007-12-05 Michael Albinus <michael.albinus@gmx.de>
22901
22902 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22903 Move check for Vdbus_registered_functions_table to
22904 xd_read_queued_messages.
22905 (xd_read_queued_messages): Protect xd_read_message calls by
22906 internal_condition_case_1.
22907
229082007-12-04 Michael Albinus <michael.albinus@gmx.de>
22909
22910 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22911 Qdbus_system_bus and Qdbus_session_bus, respectively.
22912 (Vdbus_intern_symbols): Remove.
22913 (Vdbus_registered_functions_table): New hash table.
22914 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22915 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22916 Rewrite in order to manage registered functions by hash table
22917 Vdbus_registered_functions_table.
22918
229192007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22920
22921 * xterm.c: Update URL to Window Manager Specification in comment.
22922
229232007-12-02 Michael Albinus <michael.albinus@gmx.de>
22924
22925 * config.in (HAVE_DBUS): Add.
22926
22927 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22928 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22929 (obj): Add $(DBUS_OBJ).
22930 (LIBES): Add $(DBUS_LIBS).
22931 (dbusbind.o): New target.
22932
22933 * dbusbind.c: New file.
22934
22935 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22936
22937 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22938 (Qdbus_event): New Lisp symbol.
22939 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22940 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22941 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22942
22943 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22944
229452007-12-01 Richard Stallman <rms@gnu.org>
22946
22947 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22948
229492007-11-30 Jason Rumney <jasonr@gnu.org>
22950
22951 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22952 (w32con_reset_terminal_modes): Clear screen buffer.
22953 (w32_face_attributes): Don't use color indexes that are out of range.
22954 Only reverse the default colors.
22955
22956 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22957 WINDOWSNT.
22958
22959 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22960
229612007-11-29 Jason Rumney <jasonr@gnu.org>
22962
22963 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22964 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22965 if the terminal colors are initialized.
22966 (unspecified_fg, unspecified_bg): Remove unused declarations.
22967
229682007-11-29 Andreas Schwab <schwab@suse.de>
22969
22970 * keyboard.c (apply_modifiers): Fix typo.
22971
229722007-11-29 Richard Stallman <rms@gnu.org>
22973
22974 * keymap.c (Fcurrent_local_map): Doc fix.
22975
229762007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22977
22978 * s/gnu-kfreebsd.h: New file.
22979
229802007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22981
22982 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22983 Don't cast redundantly.
22984
22985 * keyboard.c (KEY_TO_CHAR): New macro.
22986 (parse_modifiers, apply_modifiers): Accept integer arguments.
22987 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22988 for chars and symbol keys.
22989 After doing such remapping, apply function-key-map again.
22990
229912007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22992
22993 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22994 compiled anymore.
22995
229962007-11-26 Andreas Schwab <schwab@suse.de>
22997
22998 * process.c (list_processes_1): Fix indentation level of the
22999 command column.
23000
230012007-11-23 Andreas Schwab <schwab@suse.de>
23002
23003 * editfns.c (Fformat): Handle %c specially since it requires the
23004 argument to be of type int.
23005
230062007-11-23 Markus Triska <markus.triska@gmx.at>
23007
23008 * emacs.c (main): Call init_editfns before init_process, since
23009 init_process sets Vprocess_connection_type depending on OS release.
23010
230112007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23012
23013 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23014 (find_symbol_value): Use do_symval_forwarding.
23015
23016 * data.c (set_internal): Set the value in the `cons-cell' (for
23017 Buffer_Local_values) not only for frame-local variables.
23018
230192007-11-22 Andreas Schwab <schwab@suse.de>
23020
23021 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23022 values to sprintf.
23023 * keymap.c (Fsingle_key_description): Likewise.
23024 * print.c (print_object): Likewise.
23025
230262007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23027
23028 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23029 file for image is nil.
23030
230312007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23032
23033 * term.c: Include stdarg.h.
23034 (fatal): Implement using varargs.
23035 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23036
230372007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23038
23039 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23040 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23041 Update call to buffer_slot_type_mismatch.
23042 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23043 (buffer_slot_type_mismatch): Update.
23044 * buffer.c (buffer_local_types): Remove.
23045 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23046 (defvar_per_buffer): Set the type in the buffer_objfwd.
23047
230482007-11-21 Jason Rumney <jasonr@gnu.org>
23049
23050 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23051 CreateFileMapping returns NULL on failure.
23052
230532007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23054
23055 * search.c (Fset_match_data): Remove the `evaporate' feature.
23056 (unwind_set_match_data): Don't use the `evaporate' feature.
23057
230582007-11-21 Jason Rumney <jasonr@gnu.org>
23059
23060 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23061
23062 * w32console.c (w32con_write_glyphs): Remove unused variables.
23063
230642007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23065
23066 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23067
23068 * s/darwin.h (MULTI_KBOARD): Remove.
23069
23070 * macfns.c (x_create_tip_frame, Fx_create_frame)
23071 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23072
230732007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23074
23075 * buffer.c (Fbuffer_local_value): Remove redundant test.
23076 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23077 than in `current-buffer' to match the comment.
23078 Do the swap using swap_in_global_binding.
23079
23080 * data.c (store_symval_forwarding, set_internal):
23081 * eval.c (specbind): Remove dead code.
23082
23083 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23084 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23085 Since we do not want to see internal Lisp_*fwd objects here.
23086
230872007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23088
23089 * sysdep.c (init_system_name): Use getaddrinfo if available.
23090
23091 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23092 (x_scroll_bar_note_movement): start, end, with, height in struct
23093 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23094
230952007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23096
23097 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23098
230992007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23100
23101 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23102 This undoes Richard's change of 14-Oct-2002.
23103
23104 * alloc.c (allocate_other_vector):
23105 * lisp.h (allocate_other_vector): Remove.
23106
23107 * window.c (struct save_window_data): Move non-lisp data to the end
23108 and make it `int' rather than Lisp_Object.
23109 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23110 Done wrap/unwrap integer values.
23111 (Fset_window_configuration, compare_window_configurations):
23112 Update use of fields to their new types.
23113
23114 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23115 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23116 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23117 (SET_SCROLL_BAR_X_WINDOW): Remove.
23118 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23119 Access the new x_window field directly.
23120 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23121 Don't wrap/unwrap integers into Lisp_Objects.
23122 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23123 (x_scroll_bar_report_motion):
23124 Don't wrap/unwrap integers into Lisp_Objects.
23125 (x_term_init): Use SDATA.
23126 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23127 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23128 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23129 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23130 * xfns.c (x_set_background_color):
23131 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23132 Access the new x_window field directly.
23133
23134 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23135 (allocate_pseudovector): Make non-static.
23136
23137 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23138 (allocate_pseudovector): Declare.
23139 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23140
231412007-11-15 Andreas Schwab <schwab@suse.de>
23142
23143 * editfns.c (Fformat): Correctly format EMACS_INT values.
23144 Also take precision into account when formatting an integer.
23145
23146 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23147
231482007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23149
23150 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23151 (syms_of_keyboard): Defsubr it.
23152
23153 * data.c (swap_in_global_binding): Fix longstanding bug where
23154 store_symval_forwarding was not called with the right second argument,
23155 thus causing objfwd-ing from being dropped.
23156
231572007-11-14 Juanma Barranquero <lekktu@gmail.com>
23158
23159 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23160 (Fx_display_pixel_height, Fx_display_planes)
23161 (Fx_display_color_cells, Fx_server_max_request_size)
23162 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23163 (Fx_display_visual_class, Fx_display_save_under):
23164 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23165 (Fx_display_pixel_height, Fx_display_planes)
23166 (Fx_display_color_cells, Fx_server_max_request_size)
23167 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23168 (Fx_display_mm_height, Fx_display_mm_width)
23169 (Fx_display_backing_store, Fx_display_visual_class)
23170 (Fw32_select_font, Fx_display_save_under):
23171 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23172 (Fx_display_pixel_height, Fx_display_planes)
23173 (Fx_display_color_cells, Fx_server_max_request_size)
23174 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23175 (Fx_display_save_under): Fix typos in docstrings.
23176
231772007-11-14 Juanma Barranquero <lekktu@gmail.com>
23178
23179 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23180 corresponding to deleted entries; they are an implementation detail.
23181 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23182 Remove variables.
23183 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23184 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23185 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23186 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23187 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23188 (Fw32_define_rgb_color, Fw32_load_color_file)
23189 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23190 Fix typos in docstrings.
23191 (Fx_server_version): Reflow docstring.
23192 (Fw32_shell_execute): Doc fixes.
23193
231942007-11-13 Juanma Barranquero <lekktu@gmail.com>
23195
23196 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23197 if w32_parse_hot_key returned nil.
23198
231992007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23200
23201 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23202
232032007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23204
aac0c6e3
MR
23205 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23206
23207 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23208
23209 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23210 Remove W32_SCROLL_BAR_CLICK_EVENT.
23211
23212 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23213 Add MULTIMEDIA_KEY_EVENT.
23214
23215 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23216 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23217 (make_lispy_event) [WINDOWSNT]: Use it to translate
23218 MULTIMEDIA_KEY_EVENT.
23219
23220 * w32term.h (WM_APPCOMMAND): Define if not already.
23221 (GET_APPCOMMAND_LPARAM): Likewise.
23222
23223 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23224 WM_APPCOMMAND.
23225
23226 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23227 (syms_of_w32fns): Export and initialize it.
23228 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23229
232302007-11-09 Chong Yidong <cyd@stupidchicken.com>
23231
23232 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23233 twice.
23234
23235 * xdisp.c (handle_face_prop): Fix last change.
23236
232372007-11-09 Richard Stallman <rms@gnu.org>
23238
23239 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23240 not just for after-strings and before-strings.
23241 Call face_for_overlay_string and pass the overlay to it.
23242 (handle_display_prop): Determine whether property came from an overlay.
23243 Pass OVERLAY arg to handle_single_display_spec.
23244 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23245 (load_overlay_strings): Fill in it->string_overlays.
23246 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23247
23248 * xfaces.c (face_for_overlay_string): Function renamed from
23249 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23250
23251 * dispextern.h (struct it): New elt string_overlays.
23252 New elt from_overlay, also in stack.
23253 Rearrange a few elements.
23254 (face_for_overlay_string): Decl renamed from
23255 face_at_buffer_position_no_overlays, and add argument.
23256
232572007-11-09 Richard Stallman <rms@gnu.org>
23258
23259 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23260 to get the base face for an overlay string.
23261
23262 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23263
23264 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23265
23266 * xdisp.c (handle_stop): Move some code out of loop.
23267
232682007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23269
23270 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23271 Fix conversion from Lisp object to ATSUFontID.
23272
232732007-11-09 Jason Rumney <jasonr@gnu.org>
23274
23275 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23276
232772007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23278
23279 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23280 Don't assume regions are aligned to page boundary.
23281 (print_load_command_name): Add LC_UUID if defined.
23282
232832007-11-09 Richard Stallman <rms@gnu.org>
23284
23285 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23286
232872007-11-07 Jason Rumney <jasonr@gnu.org>
23288
23289 * s/windows95.h: Remove.
23290
232912007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23292
23293 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23294 abort with a message on unhandled store_type values.
23295
232962007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23297
23298 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23299 Remove HAVE_X11R5 and HAVE_X11R4.
23300
233012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23302
23303 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23304
233052007-11-01 Johan Bockgård <bojohan@gnu.org>
23306
23307 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23308 Don't set s->stippled_p here, since it has already been set by
23309 x_set_glyph_string_gc from x_draw_glyph_string.
23310
233112007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23312
23313 * sunfns.c: Remove file.
23314
23315 * m/sun386.h:
23316 * m/sun2.h:
23317 * m/sparc.h: Remove Sun windows code.
23318
233192007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23320
23321 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23322 (init_keyboard): Set current_kboard's window-system to nil.
23323 (tty_read_avail_input): Typo.
23324 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23325
233262007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23327
23328 * s/usg5-4.h:
23329 * s/usg5-3.h:
23330 * s/ptx.h:
23331 * m/is386.h:
23332 * m/ibmps2-aix.h:
23333 * Makefile.in: Remove all mentions of X10.
23334
23335 * dispnew.c (syms_of_display): Don't mention version 10.
23336
233372007-10-28 Juanma Barranquero <lekktu@gmail.com>
23338
23339 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23340 ($(BLD)/abbrev.$(O)): Remove.
23341
233422007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23343
23344 Rewrite abbrev.c in Elisp.
23345 * image.c (Qcount): Don't declare as extern.
23346 (syms_of_image): Initialize and staticpro `Qcount'.
23347 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23348 * emacs.c (main): Don't call syms_of_abbrev.
23349 * Makefile.in (obj): Remove abbrev.o.
23350 (abbrev.o): Remove.
23351 * abbrev.c: Remove.
23352
233532007-10-26 Martin Rudalics <rudalics@gmx.at>
23354
23355 * window.c (window_min_size_2): Don't count header-line.
23356
233572007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23358
23359 * frame.h (struct frame): Move all bit fields after the first bit
23360 field to take advantage of the available space. Group all the
23361 chars together to reduce wasted space due to padding.
23362
233632007-10-26 Juanma Barranquero <lekktu@gmail.com>
23364
23365 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23366
23367 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23368 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23369 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23370 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23371 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23372 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23373 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23374 (last_marked, mark_object_loop_halt): Make static.
23375
23376 * frame.c (syms_of_frame) <delete-frame-functions>:
23377 Fix typo in docstring.
23378
233792007-10-25 Juanma Barranquero <lekktu@gmail.com>
23380
23381 * w32.c (init_environment): Fix tiny memory leak.
23382 (w32_get_resource): Remove unused variable `ok'.
23383
233842007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23385
23386 Make `window-system' into a keyboard-local variable (rather than
23387 frame-local as done originally by multi-tty).
23388
23389 * keyboard.h (struct kboard): Add Vwindow_system.
23390 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23391 (mark_kboards): Mark Vwindow_system.
23392
23393 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23394 (init_display): Don't set the obsolete `window-system' frame-param.
23395
23396 * xterm.c (x_term_init):
23397 * w32term.c (w32_create_terminal):
23398 * term.c (init_tty): Set Vwindow_system.
23399 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23400 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23401
23402 * xfns.c (Fx_create_frame, x_create_tip_frame):
23403 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23404 * macfns.c (Fx_create_frame):
23405 Don't set the obsolete `window-system' frame-param.
23406
23407 * frame.h (Qwindow_system): Remove.
23408 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23409 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23410
234112007-10-24 Richard Stallman <rms@gnu.org>
23412
23413 * frame.c (x_figure_window_size): For fullscreen case,
23414 set USPosition | PPosition without clobbering rest of window_prompting.
23415
23416 * keyboard.c (Fcurrent_idle_time): Doc fix.
23417
23418 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23419
234202007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23421
23422 * process.c (unwind_request_sigio): Only define if __ultrix__.
23423
23424 * callproc.c (child_setup): Remove spurious *.
23425
23426 * lisp.h (Fget_text_property): Declare.
23427 (have_menus_p): Declare it here rather than in sys-dep header files.
23428 * macterm.h (have_menus_p):
23429 * msdos.h (have_menus_p):
23430 * xterm.h (have_menus_p): Remove.
23431
23432 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23433 (Fmake_variable_frame_local): Just check the variable's const-ness
23434 rather than checking nil or t.
23435
234362007-10-22 Jason Rumney <jasonr@gnu.org>
23437
23438 * w32fns.c: Include math.h.
23439 (w32_abort): Declaration moved to nt/config.nt.
23440
23441 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23442 (abort): Redefinition moved to nt/config.nt.
23443
23444 * m/windowsnt.h: Remove.
23445
234462007-10-22 Juanma Barranquero <lekktu@gmail.com>
23447
23448 * emacs.c (Fdump_emacs): Fix typo in message.
23449 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23450 <installation-directory>: Reflow docstring.
23451
234522007-10-22 Juri Linkov <juri@jurta.org>
23453
23454 * minibuf.c: Allow minibuffer default to be a list of default values.
23455 With empty input use the first element of this list as returned default.
23456 (string_to_object)
23457 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23458 (read_minibuf): If defalt is cons, set histstring to its car.
23459 (Fread_string): If default_value is cons, set val to its car.
23460 (Fread_buffer): If def is cons, use its car.
23461 (Fcompleting_read): If defalt is cons, set val to its car.
23462
234632007-10-21 Michael Albinus <michael.albinus@gmx.de>
23464
23465 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23466
234672007-10-20 Juanma Barranquero <lekktu@gmail.com>
23468
23469 * doc.c (Fdocumentation): Check for advice in all cases.
23470
234712007-10-19 Chong Yidong <cyd@stupidchicken.com>
23472
23473 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23474
234752007-10-19 Richard Stallman <rms@gnu.org>
23476
23477 * doc.c (Fdocumentation): Check for and handle an advised function.
23478
234792007-10-19 Juanma Barranquero <lekktu@gmail.com>
23480
23481 * process.c (Fset_process_filter): Doc fix.
23482
234832007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23484
23485 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23486 which caused key-translation-map to applied repeatedly (thus breaking
23487 double-mode).
23488
234892007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23490
23491 * xselect.c (x_own_selection, x_handle_selection_clear)
23492 (x_clear_frame_selections):
23493 * w32menu.c (list_of_panes, list_of_items):
23494 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23495 * textprop.c (validate_plist, interval_has_all_properties)
23496 (interval_has_some_properties, interval_has_some_properties_list)
23497 (add_properties, text_property_list):
23498 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23499 * minibuf.c (Fassoc_string):
23500 * macselect.c (x_own_selection, x_clear_frame_selections)
23501 (Fx_disown_selection_internal):
23502 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23503 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23504
235052007-10-17 Chong Yidong <cyd@stupidchicken.com>
23506
23507 * process.c: Link to libs for calling res_init() if available.
23508 (Fmake_network_process): Call res_init() before getaddrinfo or
23509 gethostbyname, if possible.
23510
235112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23512
23513 * lread.c (read1): Set pvectype for char_tables.
23514
23515 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23516 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23517 Add type checks.
23518 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23519
23520 * alloc.c (free_misc): Use XMISCTYPE.
23521 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23522
235232007-10-17 Glenn Morris <rgm@gnu.org>
23524
23525 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23526 (syms_of_minibuf): Add Qcompletion_ignore_case.
23527 * dired.c (Qcompletion_ignore_case): Change to external.
23528 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23529 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23530 (Fread_file_name): Use it rather than intern'ing.
23531
23532 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23533 (Fread_coding_system): Ignore case of user input.
23534
235352007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23536
23537 * xdisp.c (handle_display_prop): Ignore display specs after
23538 replacing one when string text is being replaced.
23539 (handle_single_display_spec): Pretend as if characters with display
23540 property haven't been consumed only when buffer text is being replaced.
23541
235422007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23543
23544 * xfns.c (Fx_create_frame, Fx_display_list):
23545 * window.c (window_fixed_size_p, enlarge_window)
23546 (shrink_window_lowest_first):
23547 * macterm.c (init_font_name_table):
23548 * macfns.c (Fx_create_frame, Fx_display_list):
23549 * lread.c (close_load_descs):
23550 * keyboard.c (read_char_x_menu_prompt):
23551 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23552 * coding.c (code_convert_region_unwind): Test the type of an object
23553 rather than just !NILP before extracting data from it.
23554
23555 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23556
23557 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23558 (XMISCANY): New macro.
23559 (XMISCTYPE): Use it.
23560 (struct Lisp_Misc_Any): New type.
23561 (union Lisp_Misc): Use it.
23562 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23563 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23564 (find_symbol_value, set_internal, default_value, Fset_default)
23565 (Fmake_variable_buffer_local, Fmake_local_variable)
23566 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23567 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23568 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23569 * alloc.c (allocate_buffer): Set the size and tag.
23570 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23571 Use XMISCANY.
23572 (die): Follow the GNU convention for error messages.
23573 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23574 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23575 tag any more.
23576 (set_buffer_internal_1):
23577 * frame.c (store_frame_param):
23578 * eval.c (specbind):
23579 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23580
23581 * doc.c (Fsnarf_documentation): Simplify.
23582
235832007-10-14 Juanma Barranquero <lekktu@gmail.com>
23584
23585 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23586 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23587
235882007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23589
23590 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23591
235922007-10-14 Juanma Barranquero <lekktu@gmail.com>
23593
23594 * eval.c (do_autoload): Don't save autoloads.
23595
23596 * data.c (Ffset): Save autoload of the function being set.
23597
235982007-10-07 John Paul Wallington <jpw@pobox.com>
23599
23600 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23601 parameter before setting up faces.
23602
236032007-10-13 Eli Zaretskii <eliz@gnu.org>
23604
23605 * ccl.c (Fregister_code_conversion_map):
23606 * keyboard.c (append_tool_bar_item): Reformat last change.
23607
23608 * lisp.h (eabs): Rename from `abs'. All callers changed.
23609
236102007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23611
23612 * buffer.c (add_overlay_mod_hooklist):
23613 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23614 * fontset.c (make_fontset):
23615 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23616 (append_tool_bar_item):
23617 * macmenu.c (grow_menu_items):
23618 * w32menu.c (grow_menu_items):
23619 * xmenu.c (grow_menu_items): Use larger_vector.
23620
236212007-10-13 Eli Zaretskii <eliz@gnu.org>
23622
23623 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23624 selected frame'' on MSDOS).
23625
236262007-10-12 Martin Rudalics <rudalics@gmx.at>
23627
23628 * frame.c (Qexplicit_name): New variable.
23629 (x_report_frame_params): Report it in parameter alist.
23630 (syms_of_frame): Intern and staticpro it.
23631
236322007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23633
23634 * macfns.c (x_create_tip_frame): Set terminal for frame.
23635
236362007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23637
23638 * frame.c (Qenvironment): Remove.
23639 (syms_of_frame) <Qenvironment>: Don't initialize.
23640 (Fdelete_frame): Don't treat the `environment' param specially.
23641 * frame.h (Qenvironment): Don't declare.
23642 * callproc.c (set_initial_environment): Don't set unused frame param.
23643
23644 * frame.c (Fframe_with_environment): Remove.
23645 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23646
23647 * lisp.h (Fframe_with_environment): Don't declare.
23648
236492007-10-10 Juanma Barranquero <lekktu@gmail.com>
23650
23651 * indent.c (indent_tabs_mode, last_known_column)
23652 (last_known_column_modified): Make static.
23653 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23654
236552007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23656
23657 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23658
236592007-10-09 Jason Rumney <jasonr@gnu.org>
23660
23661 * w32term.c (x_set_window_size): Disable code that attempts to tell
23662 Lisp code about a size change before it actually happens.
23663
236642007-10-09 Richard Stallman <rms@gnu.org>
23665
23666 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23667 return HANDLED_RETURN.
23668
236692007-10-08 Martin Rudalics <rudalics@gmx.at>
23670
23671 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23672 when there's an unread command event.
23673
23674 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23675 window autoselection act appropriately when leaving selected frame.
23676 (syms_of_frame): Initialize focus_follows_mouse.
23677 * frame.h (focus_follows_mouse): Extern it.
23678 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23679 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23680 * msdos.c (dos_rawgetc): Likewise.
23681 * w32term.c (w32_read_socket): Likewise.
23682 * xterm.c (handle_one_xevent): Likewise.
23683 * xdisp.c (syms_of_xdisp): In doc-string of
23684 mouse-autoselect-window mention focus-follows-mouse.
23685
236862007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23687
23688 * macterm.c (mac_load_query_font): Fix missing return value.
23689 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23690 Add BLOCK_INPUT.
23691
236922007-10-08 Richard Stallman <rms@gnu.org>
23693
23694 * xdisp.c (get_window_cursor_type): Implement documented behavior
23695 for cursor-in-non-selected-windows = t.
23696
236972007-10-08 Jason Rumney <jasonr@gnu.org>
23698
23699 * w32.c (w32_get_resource): Always close registry keys.
23700
237012007-10-08 Jason Rumney <jasonr@gnu.org>
23702
23703 * makefile.w32-in (LIBS): Add COMCTL32.
23704
23705 * w32fns.c (globals_of_w32fns): Init common controls.
23706
237072007-10-08 Richard Stallman <rms@gnu.org>
23708
23709 * image.c (our_memory_buffer): Rename from omfib_buffer.
23710
237112007-10-08 Richard Stallman <rms@gnu.org>
23712
23713 * buffer.c (Foverlays_at): Doc fix.
23714
237152007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23716
23717 * fns.c (Fplist_put): Preserve uneven tail data.
23718
237192007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23720
23721 * termhooks.h (enum event_kind): Remove trailing comma.
23722
23723 * frame.h (enum): Remove trailing comma.
23724
237252007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23726
23727 * w32proc.c (delete_child): Don't terminate threads of zombies.
23728
237292007-10-08 Martin Rudalics <rudalics@gmx.at>
23730
23731 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23732
23733 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23734 last-repeatable-command.
23735 (init_kboard): Initialize Vlast_repeatable_command.
23736 (command_loop_1): Set it to real_this_command unless that was
23737 bound to an input event.
23738 (mark_kboards): Mark it.
23739
237402007-10-08 Richard Stallman <rms@gnu.org>
23741
23742 * eval.c (condition-case): Doc fix.
23743
237442007-10-08 Masatake YAMATO <jet@gyve.org>
23745
23746 * xfaces.c (tty_supports_face_attributes_p): Fix code
23747 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23748 was copied and not edited.
23749
237502007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23751
23752 Add new `input-decode-map' keymap and use it for terminal
23753 escape sequences.
23754 * keyboard.h (struct kboard): Add Vinput_decode_map.
23755 Remove Vlocal_key_translation_map.
23756 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23757 (init_kboard): Init input-decode-map.
23758 Replace local-key-translation-map back with key-translation-map.
23759 (syms_of_keyboard): Declare input-decode-map.
23760 Remove local-key-translation-map. Update docstrings.
23761 (mark_kboards): Mark Vinput_decode_map.
23762 Don't mark Vlocal_key_translation_map.
23763 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23764 Replace local-key-translation-map back with key-translation-map.
23765 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23766 Bind in input-decode-map rather than function-key-map.
23767
23768 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23769 This was made redundant by the previous introduction of XSETPVECTYPE.
23770
237712007-10-09 Richard Stallman <rms@gnu.org>
23772
23773 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23774
237752007-09-29 Richard Stallman <rms@gnu.org>
23776
23777 * eval.c (internal_condition_case_2, internal_condition_case_1)
23778 (internal_condition_case): Reenable abort if x_catching_errors ()
23779 to see if that really happens and why.
23780
237812007-10-06 Andreas Schwab <schwab@suse.de>
23782
23783 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23784
237852007-10-04 Juanma Barranquero <lekktu@gmail.com>
23786
23787 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23788
237892007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23790
23791 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23792
237932007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23794
23795 * window.h (struct window):
23796 * window.c (struct save_window_data, struct saved_window):
23797 * termhooks.h (struct terminal):
23798 * process.h (struct Lisp_Process):
23799 * frame.h (struct frame):
23800 * buffer.h (struct buffer):
23801 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23802 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23803 The size field of (pseudo)vectors is now unsigned.
23804 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23805
23806 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23807 Turn `count' into an integer.
23808
23809 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23810 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23811 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23812 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23813 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23814
23815 * alloc.c (allocate_pseudovector): New fun.
23816 (ALLOCATE_PSEUDOVECTOR): New macro.
23817 (allocate_window, allocate_terminal, allocate_frame)
23818 (allocate_process): Use it.
23819 (mark_vectorlike): New function.
23820 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23821 (mark_terminals): Use it.
23822 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23823 (Fmake_byte_code): Use XSETPVECTYPE.
23824
23825 * frame.c (Fframe_parameters): Minor simplification.
23826
23827 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23828
23829 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23830
23831 * buffer.c (Fget_buffer_create, init_buffer_once):
23832 * lread.c (defsubr):
23833 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23834
23835 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23836 defined differently in the m/*.h files.
23837 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23838 (XSETPVECTYPE): New macro.
23839 (XSETPSEUDOVECTOR): Use it.
23840
23841 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23842 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23843
23844 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23845 * lread.c (defvar_per_buffer):
23846 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23847
23848 * window.c (candidate_window_p): Only consider as visible frames that
23849 are on the same terminal.
23850
23851 * m/ibms390x.h (MARKBIT): Remove unused macro.
23852
238532007-10-01 Juanma Barranquero <lekktu@gmail.com>
23854
23855 * lread.c (Fload): Fix typo in docstring.
23856
238572007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23858
23859 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23860 of a non-zero value can't yield zero.
23861
238622007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23863
23864 * term.c (term_clear_mouse_face, term_mouse_highlight)
23865 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23866
23867 * print.c (safe_debug_print): Use XHASH.
23868
23869 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23870 Lisp elements such as tags.
23871 (XHASH): New macro.
23872 (EQ): Use it.
23873 (SREF, SSET, STRING_COPYIN): Use SDATA.
23874 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23875
23876 * alloc.c (mark_terminal): Remove left-over declaration.
23877 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23878 (allocate_vectorlike): Remove type argument. Adjust callers.
23879 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23880 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23881
23882 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23883 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23884 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23885 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23886 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23887 Use them.
23888
23889 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23890 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23891 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23892
238932007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23894
23895 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23896 loaded by default.
23897
238982007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23899
23900 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23901 on this tty.
23902 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23903
23904 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23905 Update all users.
23906 (handle_one_term_event): Use Gpm_DrawPointer.
23907 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23908 Signal errors instead of returning nil. Always return nil.
23909 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23910 Make it a noop if gpm-mouse was not activated.
23911 (syms_of_term): Update names.
23912
239132007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23914
23915 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23916 (init_sys_modes): Check that gpm_tty is the current tty.
23917
23918 * alloc.c (allocate_terminal): Set the vector size to only count the
23919 lisp fields. Initialize those to nil.
23920 (mark_object): Don't treat terminals specially.
23921 (mark_terminal): Remove.
23922 (mark_terminals): Use mark_object instead.
23923
23924 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23925 the GC to the beginning.
23926
23927 * indent.h:
23928 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23929
23930 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23931
239322007-09-25 Jason Rumney <jasonr@gnu.org>
23933
23934 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23935
23936 * w32console.c (create_w32cons_output): Remove.
23937
23938 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23939
23940 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23941 (reset_sys_modes): Use reset_terminal_modes_hook.
23942
239432007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23944
23945 * eval.c (do_autoload): Don't output any message.
23946
239472007-09-24 Juri Linkov <juri@jurta.org>
23948
23949 * emacs.c (standard_args): Change priority of "--no-splash"
23950 from 40 to 3. Add "--no-desktop" with the same priority.
23951
239522007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23953
23954 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23955 and optimize the case where they are all 1.
23956
239572007-09-23 Johannes Weiner <hannes@saeurebad.de>
23958
23959 * lisp.h (abs): Define if not defined.
23960 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23961 Don't define `abs', since it's defined in lisp.h.
23962
239632007-09-22 Eli Zaretskii <eliz@gnu.org>
23964
23965 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23966 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23967 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23968 (init_tty): Use DEV_TTY instead of "/dev/tty".
23969 [WINDOWSNT]: No need to protect from NAME arg being null.
23970
239712007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23972
23973 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23974 up the tty state.
23975
239762007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23977
23978 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23979 (gpm_tty): Change its type.
23980 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23981 (gpm_tty): Change its type and initialize it.
23982 (Fterm_open_connection): Check the frame is indeed a tty.
23983 Use the new gpm_tty.
23984 (Fterm_close_connection): Use the new gpm_tty.
23985 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23986 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23987
239882007-09-21 Juanma Barranquero <lekktu@gmail.com>
23989
23990 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23991 underline_color, to draw strike-through.
23992
239932007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23994
23995 * lisp.h (allocate_terminal): Declare.
23996
23997 * window.c (candidate_window_p): Consider frames that are being placed
23998 by the user as somewhere between visible and iconified.
23999 (window_loop): Prefer windows on the current frame.
24000 (Fselect_window): Move the use of select-frame to the beginning so we
24001 can just delegate all the work (it'll call us back anyway).
24002
24003 * frame.c (Qdisplay_environment_variable):
24004 * frame.h (Qdisplay_environment_variable): Delete.
24005
24006 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24007 of the first arg, since that value may be a union.
24008
24009 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24010 parameter rather than Qdisplay_environment_variable. If all else
24011 fails, look for DISPLAY in initial-environment.
24012
240132007-09-21 Glenn Morris <rgm@gnu.org>
24014
24015 * Makefile.in (emacstool): Remove target.
24016 (lisp, shortlisp): Remove termdev.elc.
24017
240182007-09-21 Markus Triska <markus.triska@gmx.at>
24019
24020 * xterm.c (x_delete_display): Compile session management conditionally.
24021
240222007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24023
24024 * callproc.c (getenv_internal_1): New function.
24025 (getenv_internal): Use it.
24026 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24027
24028 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24029 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24030 (Fset_terminal_parameter): Work with dead terminals as well.
24031 (Fmodify_terminal_parameters): Remove.
24032
24033 * terminal.c (get_terminal): Handle terminals.
24034 Make sure the terminal returned is live.
24035 (create_terminal): Use allocate_terminal.
24036 (mark_terminals): Move to alloc.c.
24037 (delete_terminal): Use terminal->name as liveness status.
24038 NULL out fields after freeing their contents.
24039 Don't deallocate the object.
24040 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24041 rather than an int.
24042 (Fterminal_live_p): Accept non-integer arguments.
24043 (Fterminal_list): Return terminal objects rather than an ints.
24044
24045 * alloc.c (enum mem_type): New member for `terminal' objects.
24046 (allocate_terminal): New function.
24047 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24048 Handle terminals.
24049 (mark_terminal): New fun.
24050 (mark_terminals): Move from terminal.c.
24051
24052 * term.c (get_tty_terminal): Don't treat output_initial specially.
24053 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24054 (delete_tty): Use terminal->name as liveness status.
24055
24056 * termhooks.h (struct terminal): Make it into a pseudovector.
24057 Remove `deleted' replaced by checking `name's nullness.
24058
24059 * print.c (print_object): Handle terminals.
24060
24061 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24062 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24063
24064 * frame.c (make_terminal_frame):
24065 * keyboard.c (tty_read_avail_input):
24066 * w32term.c (x_delete_terminal):
24067 * xfns.c (Fx_create_frame, x_create_tip_frame):
24068 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24069
240702007-09-20 Glenn Morris <rgm@gnu.org>
24071
24072 * process.c (Fmake_network_process): Doc fix.
24073
240742007-09-19 Jason Rumney <jasonr@gnu.org>
24075
24076 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24077
240782007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24079
24080 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24081 Fix a C warning regarding variable constness.
24082
24083 * xterm.c (handle_one_xevent): Fix a C warning.
24084
240852007-09-18 Jason Rumney <jasonr@gnu.org>
24086
24087 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24088
240892007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24090
24091 * gtkutil.c (gdpy_def): New variable.
24092 (xg_initialize): Initialize gdpy_def.
24093 (xg_display_close): If no other display exists, set gdpy_def to a
24094 new connection.
24095
240962007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24097
24098 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24099 when we have no file name for the icon.
24100 (xg_tool_bar_expose_callback): Remove.
24101 (xg_create_tool_bar): Don't connect expose signal to
24102 xg_tool_bar_expose_callback.
24103 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24104
241052007-09-16 Andreas Schwab <schwab@suse.de>
24106
24107 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24108 values instead of zapping them.
24109
241102007-09-14 Glenn Morris <rgm@gnu.org>
24111
24112 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24113 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24114 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24115 scope and rename to omfib_buffer for clarity.
24116 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24117
241182007-09-14 Kenichi Handa <handa@m17n.org>
24119
24120 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24121
241222007-09-13 Jason Rumney <jasonr@gnu.org>
24123
24124 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24125
24126 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24127
24128 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24129 (mac_term_init): Call here instead, passing rif.
24130
241312007-09-13 Glenn Morris <rgm@gnu.org>
24132
24133 * s/hpux.h: No longer define `static' as nothing.
24134
241352007-09-13 Johan Bockgård <bojohan@gnu.org>
24136
24137 * callint.c (Fcall_interactively): Remove unused var `fun'.
24138
241392007-09-12 Romain Francoise <romain@orebokech.com>
24140
24141 * window.c (prefer_window_split_horizontally, display_buffer):
24142 Revert 2007-09-08 change.
24143
241442007-09-12 Glenn Morris <rgm@gnu.org>
24145
24146 * alloca.c: Remove file.
24147 * Makefile.in (alloca): Do not undef.
24148 (allocaobj, alloca.o): Remove.
24149 (otherobj): Remove allocaobj.
24150 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24151 * regex.c (C_ALLOCA): Remove all references and code that was only
24152 used when this was defined.
24153 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24154 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24155 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24156
24157 * Makefile.in (SOURCES, unlock, relock): Delete.
24158
24159 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24160 (menu_grab_callback): All uses changed.
24161
24162 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24163 (x_reply_selection_request): All uses changed.
24164
241652007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24166
24167 * lread.c (load_warn_old_style_backquotes): Change message to look
24168 better when it appears in the middle of byte-compiler messages.
24169
241702007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24171
24172 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24173
24174 * xterm.c (x_create_terminal): Add comment.
24175
24176 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24177
241782007-09-10 Richard Stallman <rms@gnu.org>
24179
24180 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24181
241822007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24183
24184 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24185 (DEFUN): Document `intspec', use it instead of `prompt'.
24186
24187 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24188
24189 * data.c (Finteractive_form): If the interactive specification starts
24190 with a `(', use it as a Lisp form.
24191
24192 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24193 name and file modes.
24194
24195 * callint.c (Fcall_interactively): Comment fixes.
24196
241972007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24198
24199 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24200 and compiled functions.
24201
242022007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24203
24204 * window.c (prefer_window_split_horizontally): New variable.
24205 (display_buffer): Consider splitting window horizontally depending
24206 on prefer_window_split_horizontally.
24207
242082007-09-08 Eli Zaretskii <eliz@gnu.org>
24209
24210 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24211
242122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24213
24214 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24215
24216 * frame.c (x_set_frame_parameters): Check number is positive before
24217 using XFASTINT.
24218
24219 * window.c (freeze_window_start): Don't presume selected_window holds
24220 a window object.
24221 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24222
242232007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24224
24225 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24226
242272007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24228
24229 * window.c (Vsplit_window_preferred_function): New var.
24230 (Fdisplay_buffer): Use it.
24231 (syms_of_window): Export, and initialize it.
24232
242332007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24234
24235 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24236
242372007-09-06 Glenn Morris <rgm@gnu.org>
24238
24239 * gtkutil.c (menu_grab_callback) <cnt>:
24240 * xselect.c (x_reply_selection_request) <cnt>: Move static
24241 variable to file scope.
24242
242432007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24244
24245 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24246 consistent values of selected_frame and selected_window.
24247
242482007-09-04 Jason Rumney <jasonr@gnu.org>
24249
24250 * w32console.c (initialize_w32_display): Zero unused hooks.
24251
242522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24253
24254 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24255 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24256
242572007-09-04 Jason Rumney <jasonr@gnu.org>
24258
24259 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24260 in w32console.c. Set up input. Remove XXX comments that have been
24261 confirmed as correct.
24262
24263 * s/ms-w32.h (MULTI_KBOARD): Define.
24264
24265 * w32console.c (one_and_only_w32cons): Remove.
24266 (initialize_w32_display): Take terminal argument.
24267
24268 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24269 initialize_w32_display.
24270 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24271
24272 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24273
24274 * keyboard.c (discard_mouse_events): Discard it.
24275 (make_lispy_event): Translate it to a lisp event.
24276 (lispy_wheel_names): Add wheel-left and right events.
24277 (syms_of_keyboard): Enlarge wheel_syms.
24278
24279 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24280 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24281
24282 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24283
24284 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24285 from WM_MOUSEHWHEEL.
24286 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24287
24288 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24289 terminal.
24290
24291 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24292 keyboard for the terminal.
24293
242942007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24295
24296 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24297 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24298 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24299 and resume-tty-function to resume-tty-hook.
24300 (Fsuspend_tty, Fresume_tty): Use new names.
24301
243022007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24303
24304 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24305 if it starts with "n:".
24306
243072007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24308
24309 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24310
243112007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24312
24313 * frame.h:
24314 * frame.c (Qterm_environment_variable): Remove.
24315 (syms_of_frame): Don't init and staticpro it.
24316
24317 * callproc.c (getenv_internal): Remove special case for $TERM.
24318
24319 * callproc.c (Vinitial_environment): New variable.
24320 (set_initial_environment): Initialize it.
24321 (syms_of_callproc): Declare it.
24322 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24323 TERM under which a process runs is never related to the TERM in which
24324 Emacs is running.
24325
243262007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24327
24328 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24329 * s/darwin.h: ... do it here.
24330
243312007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24332
24333 * lisp.h (set_initial_environment): Rename from set_global_environment.
24334
24335 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24336 removed by mistake on the multi-tty branch.
24337
24338 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24339 (Fmodify_frame_parameters): Return a value.
24340
24341 * image.c (png_load): Comment-out var only used in commented-out code.
24342
24343 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24344 before passing it to mark_object.
24345
24346 * xfaces.c (internal_resolve_face_name): Return a value.
24347 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24348
24349 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24350 (x_icon): Comment-out var only used in commented-out code.
24351
243522007-08-29 Romain Francoise <romain@orebokech.com>
24353
24354 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24355 QUIT hasn't been provided.
24356
243572007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24358
24359 * callproc.c (child_setup, getenv_internal): Use the
24360 display-environment-variable and term-environment-variable frame params.
24361 (set_initial_environment): Initialise Vprocess_environment.
24362
24363 * config.in: Disable multi-keyboard support on a mac.
24364
24365 * frame.c (Qterm_environment_variable)
24366 (Qdisplay_environment_variable): New variables.
24367 (syms_of_frame): Intern and staticpro them.
24368 (Fmake_terminal_frame): Disable output method test.
24369
24370 * frame.h: Declare them here.
24371
24372 * macfns.c (x_set_mouse_color): Get rif from the frame.
24373 (x_set_tool_bar_lines): Don't use updating_frame.
24374 (mac_window): Add 2 new parameters for consistency with other systems.
24375 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24376 frame parameters following what is done in X11 and w32. Don't use
24377 FRAME_MAC_DISPLAY_INFO.
24378 (Fx_open_connection, start_hourglass): Remove window-system check.
24379 (x_create_tip_frame): Get the keyboard from the terminal.
24380
24381 * macmenu.c: Reorder includes.
24382 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24383
24384 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24385 terminal parameter.
24386 (x_clear_frame): Add a frame parameter.
24387 (note_mouse_movement): Get rif from the frame.
24388 (mac_term_init): Initialize the terminal.
24389 (mac_initialize): Make static and move terminal initialization ...
24390 (mac_create_terminal): ... to this new function.
24391
24392 * macterm.h (struct mac_display_info): Add terminal.
24393 (mac_initialize): Delete declaration.
24394
24395 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24396
24397 * sysdep.c: Comment out text after #endif.
24398
24399 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24400 is defined. Better initialize ttys in windows. Use terminal
24401 specific mouse_position_hook.
24402
24403 * termhooks.h (union display_info): Add mac_display_info.
24404
24405 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24406 Set the default minibuffer frame, window_system and the rest of the
24407 frame parameters following what is done in X11.
24408
24409 * w32term.c (w32_initialize): Make static.
24410
24411 * xselect.c (x_handle_selection_clear): Only access
24412 terminal->kboard when MULTI_KBOARD is defined.
24413
24414 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24415 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24416
244172007-08-29 Jason Rumney <jasonr@gnu.org>
24418
24419 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24420 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24421
24422 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24423 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24424
24425 * keyboard.c (restore_kboard_configuration): Only define when
24426 MULTI_KBOARD defined.
24427
24428 * makefile.w32-in: Update dependancies from Makefile.in.
24429 (OBJ1): Add terminal.$(O)
24430
24431 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24432 Don't define function body.
24433 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24434
24435 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24436
24437 * w32.c (request_sigio, unrequest_sigio): Remove.
24438
24439 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24440 (w32con_clear_frame, w32con_clear_end_of_line)
24441 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24442 (w32con_delete_glyphs, w32con_set_terminal_window)
24443 (scroll_line, w32_sys_ring_bell): Add frame arg.
24444 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24445 Add terminal arg.
24446 (PICK_FRAME): Remove.
24447 (w32con_write_glyphs): Use frame specific terminal coding.
24448 (one_and_only_w32cons): New global variable.
24449 (initialize_w32_display): Use it for storing hooks.
24450 (create_w32cons_output): New function.
24451
24452 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24453 arg a frame.
24454
24455 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24456 Set window_system.
24457 (x_set_tool_bar_lines): Don't use updating_frame.
24458 (Fx_create_frame): Set terminal and ref count.
24459 (Fx_open_connection): Remove window-system check.
24460
24461 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24462
24463 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24464 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24465 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24466 Add frame arg.
24467 (x_delete_terminal, w32_create_terminal): New functions.
24468 (w32_term_init): Create a terminal.
24469 (w32_initialize): Move terminal specific initialization to
24470 w32_create_terminal.
24471
24472 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24473 (w32_clear_rect, w32_clear_area): Use background from frame.
24474 (w32_display_info): Add terminal.
24475 (w32_sys_ring_bell, x_delete_display): Declare here.
24476
24477 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24478
24479 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24480
244812007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24482
24483 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24484 Fix get_named_tty calls for the controlling tty.
24485
244862007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24487
194d44e7 24488 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24489
244902007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24491
24492 * term.c (tty_insert_glyphs): Add missing first parameter.
24493
244942007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24495
24496 * buffer.c (Fbuffer_list, Fbury_buffer):
24497 Take frame->buried_buffer_list into account.
24498
24499 * cm.c (current_tty): New variable, for cmputc().
24500 (cmputc): Use it.
24501 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24502 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24503 (cmgoto): Add tty parameter. Pass it on to calccost().
24504 Use emacs_tputs() instead of tputs().
24505
24506 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24507 tputs().
24508 (current_tty): New variable, for cmputc().
24509 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24510
24511 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24512 (internal_condition_case, internal_condition_case_1)
24513 (internal_condition_case_2): Don't abort when x_catching_errors.
24514
24515 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24516 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24517 prevent crashes caused by bogus longjmps in read_char.
24518
24519 * keymap.h (Fset_keymap_parent): Add EXFUN.
24520
24521 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24522 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24523 Remove redundant definition.
24524
24525 * macfns.c (x_set_mouse_color, x_make_gc):
24526 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24527
24528 * w32term.c (x_free_frame_resources):
24529 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24530 (w32_initialize): Use the accessor macros for terminal characteristics.
24531
24532 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24533 Use the accessor macros for terminal characteristics.
24534 * msdos.c (internal_terminal_init): Use the accessor macros for
24535 terminal characteristics.
24536 (ScreenVisualBell, internal_terminal_init):
24537 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24538
24539 * termopts.h (no_redraw_on_reenter): Declare.
24540
24541 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24542 (mark_terminals, mark_ttys): Declare.
24543 (Fgarbage_collect): Call them.
24544 (mark_object): Mark buried_buffer_list.
24545
24546 * prefix-args.c: Include stdlib.h for exit.
24547
24548 * syssignal.h: Add comment.
24549
24550 * indent.c: Include stdio.h.
24551
24552 * window.h (Vinitial_window_system): Declare.
24553 (Vwindow_system): Delete declaration.
24554
24555 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24556
24557 * image.c (lookup_image): Don't initialize `c' until the xasserts
24558 have been run.
24559
24560 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24561 FRAME_FOREGROUND_PIXEL.
24562
24563 * print.c (print_preprocess): Don't lose print_depth levels while
24564 iterating.
24565
24566 * widget.c (update_from_various_frame_slots):
24567 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24568
24569 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24570 frames.
24571 (window_internal_height): Remove bogus make_number call.
24572 (init_window_once): Call make_terminal_frame with two zero parameters.
24573
24574 * fileio.c (Fread_file_name): Update comment.
24575
24576 * callint.c (Fcall_interactively):
24577 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24578 Make sure it is correctly unwound.
24579
24580 * xsmfns.c (x_session_close): New function.
24581
24582 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24583 Delete declarations.
24584
24585 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24586 (x_output): Remove background_pixel and foreground_pixel fields.
24587 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24588 (x_delete_device, x_session_close): Declare.
24589
24590 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24591 (read_filtered_event): Call `read_char' with a local
24592 `wrong_kboard_jmpbuf'.
24593
24594 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24595 Don't call single_kboard_state. Use FRAME_RIF.
24596
24597 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24598 systems.
24599
24600 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24601 (Fframe_with_environment, Fset_input_meta_mode)
24602 (Fset_quit_char): EXFUN.
24603 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24604 (init_sys_modes, reset_sys_modes): Update prototypes.
24605 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24606
24607 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24608 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24609 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24610 Delete declarations.
24611 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24612 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24613 New declarations.
24614
24615 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24616 already does that during init_display(). Call syms_of_keymap
24617 before syms_of_keyboard. Call `syms_of_terminal'.
24618 Call set_initial_environment, not set_process_environment.
24619 (shut_down_emacs): Call reset_all_sys_modes() instead of
24620 reset_sys_modes().
24621
24622 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24623 (internal_resolve_face_name, resolve_face_name_error): New functions.
24624 (resolve_face_name): Protect against loops and errors thrown by Fget.
24625 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24626 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24627
24628 * scroll.c: Replace CURTTY() with local variables throughout the
24629 file (where applicable).
24630 (calculate_scrolling, calculate_direct_scrolling)
24631 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24632 characteristics.
24633
24634 * keymap.c (Vfunction_key_map): Remove.
24635 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24636 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24637 (Vkey_translation_map): Remove.
24638 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24639 (Fdescribe_buffer_bindings)
24640 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24641 Update for terminal-local key-translation-map.
24642
24643 * Makefile.in (callproc.o): Update dependencies.
24644 (lisp, shortlisp): Add termdev.elc.
24645 (obj): Add terminal.o.
24646 (terminal.o): Add dependencies.
24647 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24648 (data.o, fns.o): Add termhooks.h dependency.
24649 (SOME_MACHINE_LISP): Add dnd.elc.
24650 (minibuf.o): Fix typo.
24651 Update dependencies.
24652
24653 * data.c (do_symval_forwarding, store_symval_forwarding)
24654 (find_symbol_value): Use the selected frame's keyboard, not
24655 current_kboard.
24656
24657 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24658 Vwindow_system.
24659
24660 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24661 Fmenu_bar_open.
24662 (syms_of_xmenu): Update defsubr.
24663 (mouse_position_for_popup, Fx_popup_menu)
24664 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24665 (set_frame_menubar, free_frame_menubar)
b97439ce 24666 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24667 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24668 an X frame.
24669
24670 * xselect.c (x_own_selection): Abort if not an X frame.
24671 (some_frame_on_display): Check if it is an X frame.
24672 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24673
24674 * coding.c: Include frame.h and termhooks.h.
24675 (terminal_coding, keyboard_coding): Delete.
24676 (Fset_terminal_coding_system_internal)
24677 (Fset_keyboard_coding_system_internal)
24678 (Fkeyboard_coding_system)
24679 (Fterminal_coding_system): Add a terminal parameter.
24680 Get terminal_coding from the terminal.
24681 (init_coding_once): Don't call setup_coding_system here.
24682
24683 * dispextern.h (set_scroll_region, turn_off_insert)
24684 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24685 (tty_clear_end_of_line, tty_setup_colors)
24686 (delete_tty, updating_frame)
24687 (produce_special_glyphs, produce_glyphs, write_glyphs)
24688 (insert_glyphs): Remove.
24689 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24690 (tty_turn_off_highlight, get_tty_size): Add declaration.
24691 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24692
24693 * frame.h (enum output_method): Add output_initial.
24694 (struct x_output): Delete.
24695 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24696 Access foreground_pixel and background_pixel directly from the frame.
24697 (tty_display): Delete.
24698 (struct frame): Add buried_buffer_list, foreground_pixel,
24699 background_pixel and terminal. Delete kboard.
24700 (union output_data): Add tty.
24701 (FRAME_KBOARD): Get the kboard from the terminal.
24702 (FRAME_INITIAL_P): New macro.
24703 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24704 (Qterm_environment_variable, Qdisplay_environment_variable)
24705 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24706 New declarations.
24707
24708 * termchar.h (tty_output, tty_display_info): New structures.
24709 (tty_list): Declare.
24710 (FRAME_TTY, CURTTY): New macros.
24711 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24712 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24713 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24714 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24715
24716 * callproc.c: Include frame.h and termhooks.h, for terminal
24717 parameters.
24718 (add_env): New function.
24719 (child_setup): Use it.
24720 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24721 (getenv_internal): Fix get_terminal_param call.
24722 (Fgetenv_internal, egetenv): Update doc.
24723 (syms_of_callproc): Initialize Vprocess_environment to nil.
24724 Register and initialize them. Remove obsolete defvars. Update doc
24725 strings.
24726 (child_setup): Handle Vlocal_environment_variables.
24727 (getenv_internal): Add terminal parameter.
24728 Handle Vlocal_environment_variables.
24729 (Fgetenv_internal): Add terminal parameter.
24730 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24731 environment in a frame (not terminal) parameter. Update doc strings.
24732 (set_initial_environment): Rename from set_global_environment.
24733 Store Emacs environment in initial frame parameter.
24734
24735 * xdisp.c (redisplay_internal): Update references to
24736 `previous_terminal_frame'.
24737 (display_mode_line, Fformat_mode_line): Replace calls to
24738 `push_frame_kboard' with `push_kboard'.
24739 (get_glyph_string_clip_rects): Add extra parentheses and
24740 braces to prevent compiler warnings.
24741 (calc_pixel_width_or_height): Add xassert to check that the
24742 frame is alive. Don't call `lookup_image' on a termcap frame.
24743 (message2_nolog, message3_nolog, redisplay_internal)
24744 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24745 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24746 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24747 (Fx_display_pixel_width, Fx_display_pixel_height)
24748 (Fx_display_planes, Fx_display_color_cells)
24749 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24750 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24751 (Fx_display_backing_store, Fx_display_visual_class)
24752 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24753 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24754
24755 * xfns.c (x_set_foreground_color x_set_background_color)
24756 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24757 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24758 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24759 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24760 terminal that is being deleted.
24761 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24762 frame parameter, and make sure it overrides any user-supplied setting.
24763 (Fx_close_connection, Fx_synchronize): Unify argument names with
24764 the rest of the DEFUNs.
24765
24766 * dispnew.c (Fsend_string_to_terminal): Update call to
24767 `get_tty_terminal'.
24768 (Fredraw_frame, Fsend_string_to_terminal)
24769 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24770 FRAME_TERMCAP_P and FRAME_TTY.
24771 (window_change_signal): Don't believe width/height values that are
24772 impossibly small.
24773 (Vinitial_window_system): Rename from Vwindow_system.
24774 (termscript, Wcm, rif): Delete.
24775
24776 * termhooks.h (struct terminal): New struct containing the
24777 previously global text display hooks and new members NAME,
24778 DELETED and PARAM_ALIST.
24779 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24780 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24781 (FRAME_RIF): New macros.
24782 (get_terminal_param, get_device): New declarations.
24783 (termscript): Delete declaration.
24784
24785 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24786 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24787 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24788 FRAME_FOREGROUND_PIXEL.
24789 (x_fully_uncatch_errors): Disable definition.
24790 (x_scroll_bar_expose): Fix reference to foreground pixel.
24791 (XTread_socket): Disable loop on all X displays.
24792 (x_delete_terminal): Don't set terminal->deleted and let
24793 delete_terminal delete the frames on the terminal.
24794 (x_delete_display): Doc update to reflect changes in
24795 delete_terminal.
24796 (x_display_info) <terminal>: Move member earlier in the struct.
24797 (deleting_tty): Remove old variable.
24798 (Fsuspend_tty): Call clear_tty_hooks.
24799 (Fresume_tty, init_tty): Call set_tty_hooks.
24800 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24801 errors on X frames.
24802 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24803 (handle_one_xevent): Initialize `f' to NULL.
24804 (x_delete_terminal, x_create_terminal): New functions.
24805 (XTset_terminal_modes, XTreset_terminal_modes)
24806 (XTread_socket, x_connection_closed, x_term_init)
24807 (x_term_init, x_delete_display): Add terminal parameter.
24808 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24809 X connections.
24810
24811 * frame.c: Include termchar.h.
24812 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24813 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24814 (Qdisplay_environment_variable): New vars.
24815 (Fframep): Deal with output_initial.
24816 (Fframe-live-p): Doc fix.
24817 (Fwindow-system): New function.
24818 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24819 (make_terminal_frame): Don't create frames on a terminal that is
24820 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24821 (store_frame_param): Check for found_for_frame before calling XFRAME.
24822 (Fmake_terminal_frame): Handle NULL tty names correctly.
24823 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24824 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24825 frames to refer to a deleted frame in their 'environment parameter.
24826 (Fframe_with_environment): New function.
24827 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24828 (get_future_frame_param): New function.
24829 (Fmake_terminal_frame): Use it.
24830 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24831
24832 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24833 * sysdep.c (reset_sys_modes): Update for renames.
24834
24835 * keyboard.c (tty_read_avail_input): New function.
24836 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24837 (syms_of_keyboard): Defsubr them.
24838 (Fset_input_meta_mode, Fset_quit_char): New functions.
24839 (Fset_input_mode): Split to above functions.
24840 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24841 parameter. Use it in call to `read_char'.
24842 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24843 Set wrong_kboard_jmpbuf correctly in recursive calls.
24844 Use current_kboard to access Vkeyboard_translate_table.
24845 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24846 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24847 Update longjmp invocations. Remember the original current_kboard,
24848 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24849 changes it. Comment out unnecessary calls to
24850 `record_single_kboard_state' and `any_kboard_state'.
24851 Update recursive calls.
24852 (wrong_kboard_jmpbuf): Remove global variable.
24853 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24854 Handle deleted interrupted_kboards correctly; that is a legal
24855 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24856 and read_char calls. Abort if interrupted_kboard died in read_char.
24857 (any_kboard_state, single_kboard_state)
24858 (push_frame_kboard): Remove function.
24859 (pop_kboard): Switch out of single_kboard mode if the kboard has
24860 been deleted. Remove unused variable. Help debugging by not
24861 changing current_kboard unnecessarily. Set current_kboard to the
24862 kboard of the selected frame when the stored kboard object has
24863 been deleted before pop_kboard.
24864 (temporarily_switch_to_single_kboard): Change first parameter to a
24865 frame pointer. Throw an error when caller wants to change kboards
24866 while in single_kboard mode. Don't push_kboard if we weren't in
24867 single kboard state. Don't pop_kboard if we popped into any
24868 kboard state.
24869 (restore_kboard_configuration): Abort if pop_kboard changed the
24870 kboard in single_kboard mode. Call pop_kboard only after setting
24871 up single_kboard mode.
24872 (Frecursive_edit): Switch to single_kboard mode only in nested
24873 command loops.
24874 (cmd_error, command_loop, command_loop_1, timer_check):
24875 Comment out unnecessary call to `any_kboard_state' and
24876 `record_single_kboard_state'.
24877 (delete_kboard): Exit single_kboard mode if we have just deleted
24878 that kboard. Use FRAME_KBOARD.
24879 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24880 `fatal_error_signal'.
24881 (record_single_kboard_state): Don't push_kboard if we weren't in
24882 single kboard state. Don't pop_kboard if we popped into any
24883 kboard state.
24884 (push_frame_kboard): Rename to push_kboard.
24885 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24886 (read_avail_input): Read input from all terminals.
24887 (mark_kboards): Also mark Vkeyboard_translate_table.
24888 (kbd_buffer_store_event_hold): Simplify condition.
24889 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24890 (Vkeyboard_translate_table): Move to struct kboard.
24891 (init_kboard): Initialize Vkeyboard_translate_table.
24892 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24893 Vkeyboard_translate_table. Update doc strings. Update docs of
24894 local-function-key-map and function-key-map.
24895
24896 * terminal.c: New file.
24897
24898 * term.c: Include errno.h.
24899 (Vring_bell_function, device_list, initial_device)
24900 (next_device_id, ring_bell, update_begin, update_end)
24901 (set_terminal_window, cursor_to, raw_cursor_to)
24902 (clear_to_end, clear_frame, clear_end_of_line)
24903 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24904 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24905 (syms_of_term): Move their initialization to terminal.c.
24906 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24907 (Ftty_display_color_cells)
24908 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24909 (clear_tty_hooks, set_tty_hooks)
24910 (init_tty, maybe_fatal): New functions.
24911 (Ftty_type): Return nil if terminal is not on a tty instead of
24912 throwing an error. Doc update.
24913 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24914 Doc update. Initialize new subrs and variables.
24915 (delete_tty): Use terminal->deleted.
24916 (tty_set_terminal_modes): Rename from set_terminal_modes.
24917 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24918 (set_scroll_region): Rename to `tty_set_scroll_region'.
24919 (turn_on_insert): Rename to `tty_turn_on_insert'.
24920 (turn_off_insert): Rename to `tty_turn_off_insert'.
24921 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24922 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24923 (toggle_highligh): Rename to `tty_toggle_highlight'.
24924 (background_highlight): Rename to `tty_background_highlight'.
24925 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24926 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24927 (tty_set_scroll_region, tty_background_highlight)
24928 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24929 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24930 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24931 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24932 Add static modifier.
24933 (tty_reset_terminal_modes, tty_set_terminal_window)
24934 (tty_set_scroll_region, tty_background_highlight)
24935 (tty_highlight_if_desired, tty_cursor_to)
24936 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24937 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24938 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24939 renames.
24940
249412007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24942
24943 * keyboard.c: Qrtl is new.
24944 (parse_tool_bar_item): Handle :rtl keyword.
24945 (syms_of_keyboard): Intern :rtl keyword.
24946
24947 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24948
24949 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24950 so no Lisp code is executed.
24951 (file_for_image, find_rtl_image): New functions.
24952 (xg_get_image_for_pixmap): Use file_for_image.
24953 (update_frame_tool_bar): If direction is RTL, use RTL image if
24954 defined. Use Gtk stock images if defined.
24955
249562007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24957
24958 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24959 for nonexistent or zero-width glyph in composition glyph.
24960
249612007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24962
24963 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24964
24965 * xdisp.c (Finvisible_p): New function.
24966 (syms_of_xdisp): defsubr it.
24967
249682007-08-24 Juanma Barranquero <lekktu@gmail.com>
24969
24970 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24971 Doc fixes.
24972
249732007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24974
24975 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24976
249772007-08-24 Martin Rudalics <rudalics@gmx.at>
24978
24979 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24980 whether decoding has modified buffer contents.
24981
249822007-08-24 Jason Rumney <jasonr@gnu.org>
24983
24984 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24985 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24986 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24987 (init_svg_functions) [HAVE_NTGUI]: New function.
24988 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24989 (svg_load_image): Use them.
24990 (svg_load_image) [HAVE_NTGUI]: Implement background.
24991
249922007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24993
24994 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24995 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24996 (LIBX): Remove @RSVG_LIBS@.
24997 (LIBES): Add $(RSVG_LIBS).
24998
24999 * image.c (svg_load_image): Blend with specified background if exists.
25000 Use IMAGE_BACKGROUND. Add Mac OS Support.
25001
25002 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25003 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25004 Remove macros.
25005 [MAC_OSX] (socket_callback): Do nothing.
25006 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25007 ReceiveNextEvent.
25008 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25009 socket_callback.
25010 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25011
250122007-08-22 Glenn Morris <rgm@gnu.org>
25013
25014 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25015
250162007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25017
25018 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25019
25020 * image.c: Add support for SVG images. Some additional comments
25021 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25022 (svg_image_p): New function to test for SVG image.
25023 (svg_load): New function to load SVG image.
25024 (svg_load_image): New function, helper for svg_load.
25025 (Qsvg): New Lisp_object.
25026 (svg_keyword_index): New enum.
25027 (svg_format): New static `image_keyword' struct.
25028 (svg_type): New static `image_type' struct.
25029 (librsvg/rsvg.h): Include it.
25030
250312007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25032
25033 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25034
250352007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25036
25037 * lread.c (Qold_style_backquotes): New var.
25038 (syms_of_lread): Init and staticpro it.
25039 (load_warn_old_style_backquotes): New fun.
25040 (Fload): Use them to warn about old style backquotes.
25041 (end_of_file_error, Fload): Remove unused vars.
25042
25043 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25044
25045 * lread.c (Vold_style_backquotes): New var.
25046 (syms_of_lread): Init and export it to Elisp.
25047 (read1): Set it when we find an old-style (back)quote.
25048
250492007-08-22 Jason Rumney <jasonr@gnu.org>
25050
25051 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25052
250532007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25054
25055 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25056
250572007-08-19 Richard Stallman <rms@gnu.org>
25058
25059 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25060
250612007-08-19 Andreas Schwab <schwab@suse.de>
25062
25063 * alloc.c (pure): Round PURESIZE up.
25064
250652007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25066
25067 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25068 active frame.
25069
250702007-08-16 Richard Stallman <rms@gnu.org>
25071
25072 * eval.c (Fcommandp): Add parens to clarify.
25073
25074 * minibuf.c (Fall_completions): Use enum for type of table.
25075
25076 * emacs.c (USAGE2): Improve text.
25077
250782007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25079
25080 * term.c (tty_default_color_capabilities): Declare static
25081 variables in file scope, to avoid HPUX compiler problem.
25082
250832007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25084
25085 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25086 to gtk_toolbar_insert.
25087
250882007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25089
25090 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25091
25092 * insdel.c (reset_var_on_error): New fun.
25093 (signal_before_change, signal_after_change):
25094 Use it to reset (after|before)-change-functions to nil in case of error.
25095 Bind inhibit-modification-hooks to t.
25096 Don't bind (after|before)-change-functions to nil while they run.
25097
250982007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25099
25100 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25101 filling pixmap with stippled background.
25102
251032007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25104
25105 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25106 Don't use invisible frame as parent window for repositioning.
25107
251082007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25109
25110 * print.c (new_backquote_output): Rename from old_backquote_output.
25111 (print): Inverse its logic (according to its name) so as to match the
25112 behavior of new_backquote_flag in lread.c.
25113
251142007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25115
25116 * gmalloc.c (posix_memalign): New function.
25117
25118 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25119 ActivateControl/DeactivateControl here.
25120 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25121 frame-notice-user-settings is non-nil.
25122 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25123 for kEventParamFMFontStyle.
25124 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25125 mac_pass_command_to_system and mac_pass_control_to_system here.
25126 (XTread_socket): Call ActivateControl/DeactivateControl here.
25127 (XTread_socket) [TARGET_API_MAC_CARBON]:
25128 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25129 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25130 for window repositioning.
25131
251322007-08-08 Glenn Morris <rgm@gnu.org>
25133
25134 * Replace `iff' in doc-strings and comments.
25135
251362007-08-07 Chong Yidong <cyd@stupidchicken.com>
25137
25138 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25139
251402007-08-07 Martin Rudalics <rudalics@gmx.at>
25141
25142 * fileio.c (Finsert_file_contents): Run format-decode and
25143 after_insert_file_functions on entire buffer when REPLACE is
25144 non-nil and inhibit modification_hooks and point_motion_hooks.
25145 For consistency, run after_insert_file_functions iff something
25146 got inserted. Move signal_after_change and update_compositions
25147 after code running after_insert_file_functions. Make sure that
25148 undo_list doesn't record intermediate steps of the decoding process.
25149
251502007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25151
25152 * emacs.c (main)
25153 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25154 Call malloc_enable_thread on interactive startup.
25155
25156 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25157 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25158 [USE_PTHREAD]: Conditionalize with it.
25159 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25160 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25161 New functions.
25162
251632007-08-06 Chong Yidong <cyd@stupidchicken.com>
25164
25165 * xdisp.c (redisplay_window): When restoring original buffer
25166 position, make sure it is still valid.
25167
25168 * image.c (png_load): Ignore png-supplied background color.
25169
251702007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25171
25172 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25173 Use kCFAbsoluteTimeIntervalSince1970.
25174
25175 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25176 New variable.
25177 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25178 event loop should be quit.
25179 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25180 Quit dialog event loop if quit_dialog_event_loop is set.
25181
25182 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25183 (Selection): New typedef. Use instead of ScrapRef.
25184 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25185 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25186 (mac_clear_selection): Rename from clear_scrap.
25187 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25188 scrap_has_target_type. All uses changed.
25189 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25190 (mac_selection_has_target_p): New functions.
25191 (mac_put_selection_value): Rename from put_scrap_string.
25192 (mac_get_selection_value): Rename from get_scrap_string.
25193 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25194 (put_scrap_private_timestamp, scrap_has_target_type)
25195 (get_scrap_private_timestamp): Remove functions.
25196 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25197 (x_own_selection, x_get_local_selection):
25198 Use mac_valid_selection_value_p.
25199 (x_own_selection): Don't use put_scrap_private_timestamp.
25200 Record OWNERSHIP-INFO into Vselection_alist instead.
25201 (x_get_local_selection): Don't check type if request is local.
25202 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25203 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25204
252052007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25206
25207 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25208 add comment explaining why.
25209
252102007-08-03 Richard Stallman <rms@gnu.org>
25211
25212 * fileio.c (Fvisited_file_modtime): Use make_time.
25213
252142007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25215
25216 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25217 build.
25218
252192007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25220
25221 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25222
252232007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25224
25225 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25226
252272007-07-30 Richard Stallman <rms@gnu.org>
25228
25229 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25230
252312007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25232
25233 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25234
252352007-07-28 Nick Roberts <nickrob@snap.net.nz>
25236
25237 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25238 remote default-directory.
25239
25240 * buffer.c (mode-line-format): Update doc string.
25241
252422007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25243
25244 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25245 scroll bar gap.
25246 (x_scroll_bar_create): Set bar->fringe_extended_p.
25247 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25248 on frame edge. Check fringe background extension. Don't clear
25249 extended fringe background area.
25250
25251 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25252 (w32_fill_area): Enclose multiple statements with do ... while (0).
25253
25254 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25255 Extend fringe background to scroll bar gap.
25256 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25257 Set bar->fringe_extended_p.
25258 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25259 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25260 background extension. Don't clear extended fringe background area.
25261
25262 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25263 New member fringe_extended_p.
25264
252652007-07-25 Glenn Morris <rgm@gnu.org>
25266
25267 * Relicense all FSF files to GPLv3 or later.
25268
25269 * COPYING: Switch to GPLv3.
25270
252712007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25272
25273 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25274
25275 * data.c (Finteractive_form): Check for the presence of an
25276 `interactive-form' symbol property more thoroughly.
25277
25278 * data.c (Finteractive_form): Use an `interactive-form' property if
25279 present, analogous to the function-documentation property.
25280
252812007-07-24 Jason Rumney <jasonr@gnu.org>
25282
25283 * w32fns.c (x_real_positions): Get real position from OS instead of
25284 calculating it.
25285
252862007-07-23 Jason Rumney <jasonr@gnu.org>
25287
25288 * filelock.c (current_lock_owner): Allow for @ sign in username.
25289
252902007-07-22 Nick Roberts <nickrob@snap.net.nz>
25291
25292 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25293 remote default-directory.
25294
25295 * buffer.c (mode-line-format): Describe above case in doc string.
25296
252972007-07-20 Eli Zaretskii <eliz@gnu.org>
25298
25299 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25300 Define if not defined.
25301
253022007-07-18 Jason Rumney <jasonr@gnu.org>
25303
25304 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25305
253062007-07-18 Richard Stallman <rms@gnu.org>
25307
25308 * data.c (Fsetq_default): Doc fix.
25309
25310 * eval.c (Fsetq): Doc fix.
25311
253122007-07-18 Juanma Barranquero <lekktu@gmail.com>
25313
25314 * coding.c (Ffind_operation_coding_system):
25315 * eval.c (For, Fand): Doc fixes.
25316 Reported by Johan Bockgård.
25317
253182007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25319
25320 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25321
25322 * xterm.h: Declare x_ewmh_activate_frame.
25323
25324 * xterm.c (x_ewmh_activate_frame): New function.
25325 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25326
253272007-07-17 Martin Rudalics <rudalics@gmx.at>
25328
25329 * window.c (Fdisplay_buffer): If largest or LRU window is the
25330 only window, split it even if it is not eligible for splitting.
25331 This restores the original behavior broken by the 2007-07-15
25332 change.
25333
253342007-07-17 Glenn Morris <rgm@gnu.org>
25335
25336 * abbrev.c (abbrev_check_chars): New function.
25337 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25338 Call abbrev_check_chars to check abbrev characters are word
25339 constituents. Doc fix.
25340
253412007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25342
25343 * process.c (Fstart_process, Fmake_network_process)
25344 (read_process_output): Fix up last changes.
25345
253462007-07-16 Eli Zaretskii <eliz@gnu.org>
25347
25348 * makefile.w32-in (clean): Don't delete *~.
25349
253502007-07-16 Andreas Schwab <schwab@suse.de>
25351
25352 * window.c (Fdisplay_buffer): Use NILP.
25353 (Fset_window_scroll_bars): Likewise.
25354
253552007-07-15 Martin Rudalics <rudalics@gmx.at>
25356
25357 * window.c (window_min_size_2): New function.
25358 (window_min_size_1, size_window, Fdisplay_buffer)
25359 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25360 windows without mode- or header-lines when window-min-height is
25361 too small.
25362 (size_window): Reset nodelete_p after testing it, following an
25363 earlier note by Kim F. Storm.
25364 (display_buffer): Do not set split_height_threshold to twice the
25365 value of window_min_height to avoid changing the value of a
25366 customizable variable. Rather explicitly check whether the
25367 height of the window that shall be splitted is at least as large
25368 as split_height_threshold.
25369 (Fwindow_full_width_p): New defun.
25370 (syms_of_window): Defsubr it.
25371
25372 * window.h: Add EXFUN for Fwindow_full_width_p.
25373
253742007-07-14 Jason Rumney <jasonr@gnu.org>
25375
25376 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25377
253782007-07-14 Richard Stallman <rms@gnu.org>
25379
25380 * eval.c (maybe_call_debugger): New function.
25381 (find_handler_clause): Use maybe_call_debugger.
25382 Call it when the handler says `debug'.
25383 Eliminate DEBUGGER_VALUE_PTR.
25384 (Fsignal): Eliminate debugger_value.
25385 (Qdebug): New variable.
25386 (syms_of_eval): Initialize it.
25387
253882007-07-14 Juanma Barranquero <lekktu@gmail.com>
25389
25390 * eval.c (Fprogn):
25391 * keyboard.c (Ftrack_mouse):
25392 * print.c (Fwith_output_to_temp_buffer):
25393 * window.c (Fsave_window_excursion): Doc fix.
25394
253952007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25396
25397 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25398
253992007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25400
25401 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25402 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25403 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25404 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25405 Remove unused encoding_carryover.
25406 * process.c: Adjust all functions accordingly.
25407
254082007-07-12 Richard Stallman <rms@gnu.org>
25409
25410 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25411
254122007-07-11 Jason Rumney <jasonr@gnu.org>
25413
25414 * makefile.w32-in (LIBS): Include OLE32.
25415
25416 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25417 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25418
254192007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25420
25421 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25422 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25423 from a Lisp_Object into a bare pointer.
25424 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25425 Adjust the code correspondingly.
25426
25427 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25428
25429 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25430 (term_show_mouse_face): Remove unused var `j'.
25431 (handle_one_term_event): Remove unused vars `i' and `j'.
25432 Don't cast return value of ttyname since it's not necessary.
25433
254342007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25435
25436 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25437 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25438
25439 * fns.c (map_char_table): Use an array of int for `indices' rather than
25440 an array of Lisp_Objects (which are only ever integers anyway).
25441 (Fmap_char_table): Update caller.
25442 * lisp.h: Update prototype.
25443 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25444 * fontset.c (Ffontset_info):
25445 * casetab.c (set_case_table): Update callers.
25446
25447 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25448
25449 * keymap.c (struct accessible_keymaps_data)
25450 (struct where_is_internal_data): New structures.
25451 (accessible_keymaps_1, where_is_internal_1): Use them to change
25452 interface to adhere to the one used by map_keymap.
25453 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25454 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25455
25456 * keymap.h (map_keymap_function_t): More informative prototype.
25457
254582007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25459
25460 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25461 (looking_at_1): Don't change search_regs and last_thing_searched
25462 if `inhibit-changing-match-data' is non-nil.
25463 (string_match_1, search_buffer, set_search_regs): Likewise.
25464 (syms_of_search): Add Lisp level definition for
25465 `inhibit-changing-match-data' and set it to nil.
25466 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25467 start and end of the match, instead of using values in search_regs.
25468
254692007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25470
25471 * minibuf.c (Fcompleting_read): New value `confirm-only'
25472 for `require-match'.
25473
254742007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25475
25476 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25477 part of the 2007-06-27 change to syms_of_fileio.
25478
254792007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25480
25481 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25482 Check WINDOWP before using XWINDOW. Consolidate return statements.
25483
254842007-06-27 Richard Stallman <rms@gnu.org>
25485
25486 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25487
254882007-06-27 Juanma Barranquero <lekktu@gmail.com>
25489
25490 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25491
254922007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25493
25494 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25495 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25496 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25497 (_free_internal, memalign): Use them.
25498 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25499 Initialize to PTHREAD_MUTEX_INITIALIZER.
25500 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25501 (morecore_nolock): Rename from morecore. All uses changed.
25502 Use only nolock versions of internal allocation functions.
25503 (_malloc_internal_nolock, _realloc_internal_nolock)
25504 (_free_internal_nolock): New functions created from
25505 _malloc_internal, _realloc_internal, and _free_internal.
25506 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25507 Copy hook value to automatic variable before its use.
25508 (memalign): Copy hook value to automatic variable before its use.
25509
255102007-06-26 Kenichi Handa <handa@m17n.org>
25511
25512 * coding.c (Ffind_operation_coding_system): Docstring improved.
25513 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25514
255152007-06-25 David Kastrup <dak@gnu.org>
25516
25517 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25518 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25519 cater for additional parameter.
25520
25521 * keymap.h: Adjust number of parameters to `current-active-maps'.
25522
25523 * doc.c (Fsubstitute_command_keys): Adjust call of
25524 `current-active-maps'.
25525
255262007-06-25 David Kastrup <dak@gnu.org>
25527
25528 * callint.c (Fcall_interactively): Make the parsing of interactive
25529 specs somewhat more readable.
25530
255312007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25532
25533 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25534 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25535 if extended background has already been filled.
25536
255372007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25538
25539 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25540 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25541
25542 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25543 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25544 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25545 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25546 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25547 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25548 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25549 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25550 Run timers during dialog popup.
25551 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25552
255532007-06-21 Jason Rumney <jasonr@gnu.org>
25554
25555 * image.c (convert_mono_to_color_image): Swap fore and background.
25556
255572007-06-20 Jason Rumney <jasonr@gnu.org>
25558
25559 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25560 (w32_free_bdf_font): Unmap memory not handle.
25561
255622007-06-20 Sam Steingold <sds@gnu.org>
25563
25564 * gmalloc.c (__morecore): Fix the declaration to comply with the
25565 definition.
25566
255672007-06-20 Juanma Barranquero <lekktu@gmail.com>
25568
25569 * w32term.c (w32_delete_display): Remove leftover declaration.
25570 (w32_define_cursor, w32_initialize): Make static.
25571
25572 * w32.c (_wsa_errlist): Fix typo in error message.
25573 (init_environment): Ignore any environment variable from the
25574 registry having a null value.
25575
255762007-06-20 Glenn Morris <rgm@gnu.org>
25577
25578 * Makefile.in (LIBGIF): Default to -lgif.
25579
255802007-06-17 Jason Rumney <jasonr@gnu.org>
25581
25582 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25583 unicode strings.
25584
255852007-06-16 Juanma Barranquero <lekktu@gmail.com>
25586
25587 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25588 Fix typo in docstring.
25589
255902007-06-16 Eli Zaretskii <eliz@gnu.org>
25591
25592 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25593 and their keybindings.
25594
255952007-06-15 Chong Yidong <cyd@stupidchicken.com>
25596
25597 * composite.c (update_compositions): Fix last fix.
25598
255992007-06-14 Jason Rumney <jasonr@gnu.org>
25600
25601 * w32.c (get_process_times_fn): New function pointer.
25602 (globals_of_w32): Intialize it if present in kernel32.dll.
25603 (w32_get_internal_run_time): New function.
25604
25605 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25606
256072007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25608
25609 * composite.c (update_compositions): Check the validness of
25610 compositions.
25611
256122007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25613
25614 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25615 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25616
25617 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25618 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25619
25620 * macgui.h (USE_MAC_TOOLBAR): New define.
25621
25622 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25623 Return immediately unless popup is activated.
25624
25625 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25626 background to scroll bar gap.
25627 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25628 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25629 scroll bars on frame edge. Check fringe background extension.
25630 Don't clear extended fringe background area.
25631 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25632 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25633 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25634 [USE_MAC_TOOLBAR]: New macros.
25635 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25636 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25637 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25638 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25639 [USE_MAC_TOOLBAR]: New functions.
25640 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25641 manually if previous repositioning has failed.
25642 (mac_handle_keyboard_event): Use precomputed event kind.
25643 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25644 as tool bar item click. Handle mouse movement over tool bar items.
25645
25646 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25647 toolbar_win_gravity.
25648 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25649 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25650 Add externs.
25651
25652 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25653 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25654
256552007-06-14 Chong Yidong <cyd@stupidchicken.com>
25656
25657 * image.c (search_image_cache): Remove unused variable.
25658
256592007-06-13 Chong Yidong <cyd@stupidchicken.com>
25660
25661 * xfns.c, xmenu.c: Link to xaw3d if available.
25662
256632007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25664
25665 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25666 frame_foreground and frame_background.
25667
25668 * image.c (lookup_image): Save frame foreground and background colors.
25669 (search_image_cache): Check if saved and current frame colors match.
25670
256712007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25672
25673 * regex.c (regex_compile): Remove the `regnum' counter.
25674 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25675
256762007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25677
25678 * term.c: Include intervals.h to declare Fget_text_property.
25679
256802007-06-10 Jason Rumney <jasonr@gnu.org>
25681
25682 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25683
256842007-06-08 Juanma Barranquero <lekktu@gmail.com>
25685
25686 * callint.c (Fcall_interactively):
25687 * editfns.c (Fdelete_and_extract_region):
25688 * fileio.c (Fread_file_name):
25689 * fns.c (Fmapconcat):
25690 * keyboard.c (cmd_error_internal):
25691 * keymap.c (Fkey_description):
25692 * lread.c (openp):
25693 * minibuf.c (read_minibuf):
25694 * search.c (wordify):
25695 * sunfns.c (sel_read):
25696 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25697 * xfns.c (x_default_scroll_bar_color_parameter):
25698 * xmenu.c (menu_help_callback):
25699 * xselect.c (Fx_get_atom_name):
25700 * xterm.c (x_term_init): Use empty_unibyte_string.
25701
257022007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25703
25704 * alloc.c (init_strings): Initialize canonical empty strings.
25705 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25706 canonical empty string when the requested size is 0.
25707
25708 * emacs.c (empty_unibyte_string): Rename from empty_string.
25709 (empty_multibyte_string): New canonical empty string.
25710 (syms_of_emacs): Don't initialize empty_string.
25711
25712 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25713 string, if appropriate.
25714 (empty_unibyte_string, empty_multibyte_string): New externs.
25715 (empty_string): Remove extern.
25716
25717 * lread.c (syms_of_lread): Use empty_unibyte_string.
25718
257192007-06-07 Jason Rumney <jasonr@gnu.org>
25720
25721 * s/ms-w32.h: Don't define HAVE_TZNAME.
25722
25723 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25724
257252007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25726
25727 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25728
25729 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25730 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25731
25732 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25733 Don't call next handler.
25734 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25735 Remove argument. Install handler to application.
25736 (set_frame_menubar): Don't change deep_p.
25737 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25738 FRAME_OUTER_TO_INNER_DIFF_Y.
25739 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25740 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25741 [HAVE_DIALOGS]: New macros.
25742 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25743 Use them.
25744 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25745
25746 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25747 init_service_handler. All callers changed. Return OSStatus value.
25748
25749 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25750 All callers changed so as not to call SetPortWindowPort.
25751 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25752 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25753 mac_draw_string_common.
25754 (mac_draw_image_string_qd): Likewise.
25755 (mac_draw_string_common): Use them. Add INLINE.
25756 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25757 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25758 GetGlobalMouse.
25759 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25760 and FRAME_OUTER_TO_INNER_DIFF_Y.
25761 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25762 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25763 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25764 repositioning window to mac_handle_window_event.
25765 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25766 saving window location to mac_handle_window_event
25767 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25768 (install_menu_target_item_handler): Remove argument in extern.
25769 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25770 Also accept command events.
25771 (do_keystroke): New function created from XTread_socket.
25772 (init_command_handler): Remove functions.
25773 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25774 and save window location by kEventWindowShowing and kEventWindowHiding
25775 handlers here. Don't call next handler for window state change and
25776 focus events.
25777 (mac_handle_application_event, mac_handle_keyboard_event)
25778 [TARGET_API_MAC_CARBON]: New functions.
25779 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25780 kEventWindowShowing and kEventWindowHiding events. Move installation
25781 of mouse, font, text input and menu target item handlers to
25782 install_application_handler.
25783 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25784 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25785 New function.
25786 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25787 Register it.
25788 (XTread_socket) [TARGET_API_MAC_CARBON]:
25789 Consolidate SendEventToEventTarget calls.
25790 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25791 Move application activation handler to mac_handle_application_event.
25792 Move keyboard handler to mac_handle_keyboard_event.
25793 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25794 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25795 init_command_handler. Call install_application_handler.
25796
25797 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25798 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25799
258002007-06-07 Glenn Morris <rgm@gnu.org>
25801
25802 * emacs.c (main): Use `emacs-copyright' in --version output.
25803
258042007-06-06 Chong Yidong <cyd@stupidchicken.com>
25805
25806 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25807
258082007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25809
25810 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25811
25812 * macgui.h: Replace WindowPtr with WindowRef.
25813
25814 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25815 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25816 Replace ControlHandle with ControlRef.
25817 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25818
25819 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25820 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25821 Replace ControlHandle with ControlRef.
25822 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25823 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25824
25825 * macterm.h (struct scroll_bar): Rename member control_handle_low
25826 and control_handle_high to control_ref_low and control_ref_high.
25827 All uses changed.
25828 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25829 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25830 respectively. All uses changed.
25831 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25832 (install_window_handler, remove_window_handler): Replace WindowPtr
25833 with WindowRef in externs.
25834
258352007-06-05 Juanma Barranquero <lekktu@gmail.com>
25836
25837 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25838
258392007-06-03 Nick Roberts <nickrob@snap.net.nz>
25840
25841 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25842
25843 * frame.c (Fmouse_position, Fmouse_pixel_position):
25844 Condition on HAVE_GPM too.
25845
25846 * term.c (term_mouse_highlight): Remove unused variables.
25847 (Fterm_open_connection): Set gpm_zerobased to 1.
25848 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25849 Use zero based co-ordinates.
25850 (handle_one_term_event): Report a drag as mouse movement too.
25851
25852 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25853
258542007-06-03 Chong Yidong <cyd@stupidchicken.com>
25855
25856 * image.c (search_image_cache): New function. Require background
25857 color match if background color is unspecified in the image spec.
25858 (uncache_image, lookup_image): Use it.
25859
258602007-06-01 Juanma Barranquero <lekktu@gmail.com>
25861
25862 * window.c (Fshrink_window): Reflow docstring.
25863
258642007-06-02 Chong Yidong <cyd@stupidchicken.com>
25865
25866 * Version 22.1 released.
25867
258682007-06-01 Richard Stallman <rms@gnu.org>
25869
25870 * xfns.c (x_encode_text): Add GCPRO.
25871
258722007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25873
25874 * xfns.c (x_set_name_internal): Save encoded name before
25875 x_encode_text in case string data is relocated.
25876
258772007-05-31 Richard Stallman <rms@gnu.org>
25878
25879 * buffer.c (syms_of_buffer): Doc fix.
25880
258812007-05-30 Nick Roberts <nickrob@snap.net.nz>
25882
25883 * sysdep.c (init_sys_modes): Add rather than replace with
25884 O_NONBLOCK.
25885
25886 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25887 term_mouse_moveto.
25888
25889 * termhooks.h (term_mouse_moveto): New extern.
25890
25891 * term.c (mouse_face_window): Rename...
25892 (Qmouse_face_window): ...to this.
25893 (term_show_mouse_face, term_clear_mouse_face)
25894 (term_mouse_highlight): Use Qmouse_face_window.
25895 (term_mouse_moveto): New function.
25896 (term_mouse_position): Make it work.
25897 (syms_of_term): Uncomment assignment to mouse_position_hook.
25898 Staticpro Qmouse_face_window.
25899
259002007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25901
25902 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25903 around current_column call.
25904
259052007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25906
25907 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25908 * xdisp.c (next_element_from_buffer):
25909 * window.c (delete_window):
25910 * term.c (term_mouse_highlight):
25911 * msdos.c (getdefdir):
25912 * macterm.c (mac_create_bitmap_from_bitmap_data)
25913 (init_font_name_table):
25914 * fns.c (Fsxhash):
25915 * data.c (Fmake_local_variable):
25916 * ccl.c (ccl_driver): Likewise.
25917
259182007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25919
25920 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25921 Call mac_wakeup_from_rne on window size change.
25922
259232007-05-25 Chong Yidong <cyd@stupidchicken.com>
25924
25925 * image.c (uncache_image): Fix typo.
25926
259272007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25928
25929 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25930
259312007-05-22 Richard Stallman <rms@gnu.org>
25932
25933 * xterm.c (x_connection_closed): Remove NO_RETURN.
25934
259352007-05-22 Martin Rudalics <rudalics@gmx.at>
25936
25937 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25938
259392007-05-21 Chong Yidong <cyd@stupidchicken.com>
25940
25941 * image.c (uncache_image): New function.
25942 (Fimage_refresh): New function.
25943
259442007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25945
25946 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25947
259482007-05-20 Nick Roberts <nickrob@snap.net.nz>
25949
25950 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25951 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25952
259532007-05-20 Nick Roberts <nickrob@snap.net.nz>
25954
25955 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25956 conditional on [HAVE_GPM_H].
25957
259582007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25959
25960 * syntax.c (skip_chars): Update syntax-table only after we checked that
25961 the new location is valid.
25962
259632007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25964
25965 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25966 mac_get_window_bounds.
25967
259682007-05-20 Nick Roberts <nickrob@snap.net.nz>
25969
25970 * Makefile.in (LIBGPM): Allow it to be set from configure.
25971 If set then link Emacs with it.
25972
25973 * config.in: Regenerate.
25974
25975 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25976 New externs.
25977
25978 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25979 Include gpm.h.
25980 (handle_one_term_event, term_gpm): New externs.
25981
25982 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25983 and allow it to be interrupted by SIGIO.
25984
25985 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25986 (wait_reading_process_output): Wait on gpm_fd too.
25987 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25988 (add_gpm_wait_descriptor_called_flag): New variable.
25989 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25990
25991 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25992 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25993 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25994 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25995 (make_lispy_event): Add case GPM_CLICK_EVENT.
25996 (read_avail_input): Handle mouse input.
25997
25998 * term.c (write_glyphs_with_face): New function.
25999 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26000 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26001 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26002 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26003 (last_mouse_x, last_mouse_y): New variables.
26004 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26005 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26006 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26007 (Fterm_close_connection): New functions.
26008 (term_init): Initialise mouse_face_window.
26009
260102007-05-19 Chong Yidong <cyd@stupidchicken.com>
26011
26012 * xdisp.c (redisplay_window): If first window line is a
26013 continuation line, recompute the new window start instead of
26014 recentering.
26015
260162007-05-18 Glenn Morris <rgm@gnu.org>
26017
26018 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26019 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26020
260212007-05-17 Glenn Morris <rgm@gnu.org>
26022
26023 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26024
260252007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26026
26027 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26028 dead key repeat and up events.
26029
260302007-05-14 Chong Yidong <cyd@stupidchicken.com>
26031
26032 * image.c (pbm_load): Check image size for monochrome pbm.
26033
260342007-05-13 Chong Yidong <cyd@stupidchicken.com>
26035
26036 * xterm.c (XTread_socket): Revert last change.
26037
260382007-05-12 Chong Yidong <cyd@stupidchicken.com>
26039
26040 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26041
26042 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26043
260442007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26045
26046 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26047 mixup (YAILOM).
26048
260492007-05-07 Andreas Schwab <schwab@suse.de>
26050
26051 * keymap.c (Flookup_key): Fix typo in last change.
26052
260532007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26054
26055 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26056 mapping for unibyte strings.
26057
260582007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26059
26060 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26061 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26062
260632007-04-29 Richard Stallman <rms@gnu.org>
26064
26065 * insdel.c (replace_range): For undo, record insertion first.
26066
260672007-04-29 Andreas Schwab <schwab@suse.de>
26068
26069 * lisp.h (VECSIZE): Use OFFSETOF.
26070
260712007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26072
26073 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26074 disabled lines.
26075
260762007-04-28 Richard Stallman <rms@gnu.org>
26077
26078 * lread.c (read_escape): In a string, \s is always space.
26079
260802007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26081
26082 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26083
26084 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26085 submenu for menu bar items.
26086
26087See ChangeLog.10 for earlier changes.
26088
26089;; Local Variables:
26090;; coding: utf-8
26091;; add-log-time-zone-rule: t
aac0c6e3
MR
26092;; End:
26093
e3eb1dae 26094 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26095
26096 This file is part of GNU Emacs.
26097
26098 GNU Emacs is free software: you can redistribute it and/or modify
26099 it under the terms of the GNU General Public License as published by
26100 the Free Software Foundation, either version 3 of the License, or
26101 (at your option) any later version.
26102
26103 GNU Emacs is distributed in the hope that it will be useful,
26104 but WITHOUT ANY WARRANTY; without even the implied warranty of
26105 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26106 GNU General Public License for more details.
26107
26108 You should have received a copy of the GNU General Public License
26109 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26110
26111;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40