Cleanup xrdb.c.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
1b6d8cf0
DN
12010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * xrdb.c: Remove include guard. Remove
4 DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
5 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6 realloc->xrealloc instead of using #defines.
7
efb41e21
EZ
82010-08-08 Eli Zaretskii <eliz@gnu.org>
9
cd21226d
EZ
10 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
11 * editfns.c (Fline_beginning_position, Fline_end_position): State
12 in the doc strings that start and end of line are in the logical
13 order.
14
efb41e21
EZ
15 * xdisp.c (display_line): Move the handling of overlay arrow after
16 the call to find_row_edges. (Bug#6699)
17
746812d9
CY
182010-08-07 Chong Yidong <cyd@stupidchicken.com>
19
20 * keyboard.c (command_loop_1):
21 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
22
9852377f
CY
232010-08-07 Chong Yidong <cyd@stupidchicken.com>
24
25 * insdel.c (prepare_to_modify_buffer): Save active region text to
26 Vsaved_region_selection.
27
28 * xselect.c (QPRIMARY): Move to keyboard.c.
29
30 * keyboard.c (Vselect_active_regions): Move from simple.el.
31 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
32 vars.
33 (command_loop_1): Set window selection prior to deactivating the
34 mark.
35
0e9c8657
JB
362010-08-07 Juanma Barranquero <lekktu@gmail.com>
37
38 * alloc.c (lisp_malloc):
39 * buffer.c (set_buffer_internal, set_buffer_internal_1):
40 * charset.h (emacs_mule_charset):
41 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
42 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
43 (bitch_at_user):
44 * lisp.h (Fcheck_coding_system, Fget_text_property)
45 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
46 Remove duplicate declarations.
47
648801d1
DN
482010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
49
32bc6709
DN
50 * process.c: Simplify include logic.
51
3ef1d108
DN
52 * keyboard.h (quit_char): Add declaration.
53 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
54 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add
55 declarations.
56 * sysdep.c:
57 * w32.c: Remove the above declarations.
58
97ec208f
DN
59 Remove extern declarations in .c files, .h files have them.
60 * xterm.c:
61 * xdisp.c:
97ec208f
DN
62 * msdos.c:
63 * image.c:
64 * gtkutil.c:
65 * fileio.c:
66 * eval.c: Remove declarations.
67
94eed851
DN
68 * frame.c (frame_params): Make const.
69
36e053eb
DN
70 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
71
0e843971
DN
72 * emacs.c (emacs_copyright, emacs_version): Make static.
73 (Vinitial_window_system, Vauto_save_list_file_name)
74 (Vinhibit_redisplay): Remove declarations.
75 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
76 for AIX.
77
648801d1
DN
78 Use const for some arrays and functions.
79 * xterm.h (xg_set_icon_from_xpm_data):
80 * xfns.c (xg_set_icon_from_xpm_data):
81 * term.c (fkeys):
82 * keyboard.c (lispy_accent_keys, lispy_function_keys)
83 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
84 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
85 (frame.c frame_parms):
86 * emacs-icon.h (gnu_xpm_bits):
87 * callint.c (callint_argfuns): Use const.
88
8646d999
J
892010-08-06 Jan Djärv <jan.h.d@swipnet.se>
90
91 * sysdep.c: Move include term.h last of includes (Bug#6812).
92
cb4545ad
EZ
932010-08-06 Eli Zaretskii <eliz@gnu.org>
94
95 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
96
97 * msdos.c (IT_display_cursor): Log cursor position on termscript.
98
99 * .gdbinit (pgx): Display the avoid_cursor_p flag.
100
da7e2be6
JB
1012010-08-06 Juanma Barranquero <lekktu@gmail.com>
102
103 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
104
3d608a86
J
1052010-08-06 Jan Djärv <jan.h.d@swipnet.se>
106
7908fb60
J
107 * xterm.h (x_get_focus_frame): Declare.
108
109 * keyboard.h (poll_for_input_1): Unconditionally declare.
110
4094bf36
J
111 * nsterm.h (x_set_menu_bar_lines): Declare.
112
113 * window.c: Don't include menu.h, it depends on lots of other .h-files.
114
3d608a86
J
115 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
116
117 * window.c: Include menu.h.
118
119 * unexmacosx.c (print_region_list, print_regions)
120 (build_region_list, find_emacs_zone_regions)
121 (unexec_regions_merge, read_load_commands, dump_it)
122 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
123
124 * term.c: Check HAVE_SYS_IOCTL_H.
125
686b968e 126 * sysdep.c: Check HAVE_TERM_H.
3d608a86 127
686b968e 128 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
129
130 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
131 (ns_ring_bell, ns_defined_color, hide_hourglass)
132 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
133 Convert to ANSI C prototypes.
134 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
135 before code.
136
137 * nsterm.h : Include sysselect.h.
138 (x_sync, x_get_focus_frame, x_set_mouse_position)
139 (x_set_mouse_pixel_position, x_make_frame_visible)
140 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
141 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
142 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
143 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 144 Declare.
3d608a86
J
145
146 * nsmenu.m (popup_activated, name_is_separator)
147 (syms_of_nsmenu): Convert to ANSI C prototypes.
148 (runMenuAt): Prototypes and move declarations before code.
149
150 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
151
152 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
153 prototypes.
154
155 * nsfns.m (have_menus_p, ns_display_info_for_name)
156 (x_set_cursor_type, ns_appkit_version_str)
157 (ns_appkit_version_int, ns_do_applescript)
158 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
159 (syms_of_nsfns): Convert to ANSI C prototypes.
160
161 * menu.h (x_set_menu_bar_line): Declare.
162 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
163
164 * lisp.h (fmod_float): Declare.
165
166 * image.c (xpm_scan, xpm_make_color_table_v)
167 (xpm_put_color_table_v, xpm_get_color_table_v)
168 (xpm_make_color_table_h, xpm_put_color_table_h)
169 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
170 (xpm_load): Convert to ANSI C prototypes.
171
172 * emacs.c: Include nsterm.h if HAVE_NS.
173
174 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
175
fce70521
DN
1762010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
177
178 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
179 subprocesses, only MSDOS does not define HAVE_SOCKETS.
180 (socket_options): Use const char* for name.
181
a11889ab
JB
1822010-08-06 Juanma Barranquero <lekktu@gmail.com>
183
184 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
185
186 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
187 Don't declare xmalloc_widget_value and digest_single_submenu.
188
189 * w32font.c (Qlatin): Remove declaration.
190
191 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
192
c95b508f 193 * dired.c (compile_pattern): Restore declaration.
a11889ab 194
6254cdda
DN
1952010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
196
04bab72c
DN
197 Remove extern declarations in .c files, .h files have them.
198 * data.c:
199 * dired.c:
200 * editfns.c:
201 * filelock.c:
202 * fns.c:
203 * font.c:
204 * fontset.c:
205 * frame.c:
206 * fringe.c:
207 * ftfont.c:
208 * gtkutil.c:
209 * indent.c:
210 * keyboard.c:
211 * keymap.c:
212 * lread.c:
213 * menu.c:
214 * print.c:
215 * search.c:
216 * sound.c:
217 * window.c:
218 * xdisp.c:
219 * xfaces.c:
220 * xfns.c:
221 * xfont.c:
222 * xftfont.c:
223 * xmenu.c:
224 * xterm.c: Remove declarations.
225
dff94ed5
DN
226 Cleanup syssignal.h.
227 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
228 (main_thread): Move down to remove #ifdef.
229 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
230 Remove conditional definition following unconditional ones.
231
99f3388e
DN
232 * lisp.h: Remove HAVE_SHM code, unused.
233 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
234 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
235 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
236 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
237 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
238 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
239 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
240 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
241 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
242 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
243 (Qwindow_scroll_functions, Vafter_load_alist)
244 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
245 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
246 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
247 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
248 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
249 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
250 (initial_argv, last_nonmenu_event, load_in_progress)
251 (noninteractive_need_newline, scroll_margin): Add declarations.
252
253 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
254 declarations, menu.h has them.
255 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
256 (Vinput_method_function, Qinput_method_function)
257 (Qevent_symbol_element_mask, last_event_timestamp):
258 * dispextern.h (Voverflow_newline_into_fringe):
259 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
260 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
261 (syms_of_w32font, syms_of_nsfont):
262 * fontset.h (find_font_encoding, Qlatin):
263 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
264 (Vtool_bar_mode, set_frame_menubar):
265 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
266 * xterm.h (Qx_gtk_map_stock):
267 * keymap.h (meta_prefix_char): Add declarations.
268
9f5dd6f2
DN
269 * term.c: Remove dead code.
270
6254cdda
DN
271 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
272 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
273 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
274 which is what was there before BSD_PGRPS was removed.
275
29cf3e20
EZ
2762010-08-05 Eli Zaretskii <eliz@gnu.org>
277
278 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
279
280 * unexcoff.c: Renamed from unexec.c.
281
aaa0a19a
SM
2822010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
283
284 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
285
8d1d9587
JB
2862010-08-03 Johan Bockgård <bojohan@gnu.org>
287
288 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 289 (Bug#6744)
8d1d9587 290
9a747ba6
JD
2912010-08-02 Jan Djärv <jan.h.d@swipnet.se>
292
4d464ae4
JD
293 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
294 to TRUE if depth of screen is < 16.
295
ac01763e
JD
296 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
297 USE_GTK_TOOLTIP.
e0d62a9b
JB
298 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
299 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 300 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
301 USE_GTK_TOOLTIP.
302 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
303
304 * xterm.h (USE_GTK_TOOLTIP): New define.
305 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
306
9a747ba6
JD
307 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
308 to Control-D (Bug#6771).
309
7b0815ba
JB
3102010-08-02 Juanma Barranquero <lekktu@gmail.com>
311
312 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
313 Wording by Drew Adams <drew.adams@oracle.com>.
314
aa1859f5
J
3152010-08-01 Jan Djärv <jan.h.d@swipnet.se>
316
317 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
318 ttip_lbl.
319
320 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
321 calling gtk_widget_queue_draw.
322 (x_free_frame_resources): Call xg_free_frame_widgets.
323
324 * xfns.c (x_gtk_use_system_tooltips): New variable.
325 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
326 new gtkutil tooltip functions to show the tooltip.
327 (Fx_hide_tip): Call xg_hide_tooltip.
328 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
329
330 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
331 (xg_show_tooltip, xg_hide_tooltip): Declare.
332
333 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
334 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
335 New functions.
aa1859f5
J
336 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
337 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
338 Remove code that is commented out.
339
76417ef4
SM
3402010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
341
342 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
343
16041401
CY
3442010-07-31 Chong Yidong <cyd@stupidchicken.com>
345
346 * xselect.c (x_own_selection): Use list4.
347
2c09a58f
DN
3482010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
349
350 * buffer.c (Qwindow): Do not define, already defined in data.c.
351 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
352
59df9fdd 3532010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 354
59df9fdd
JB
355 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
356 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
357 * config.in: Undef HAVE_DIRENT_H.
1c97e857 358 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 359 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 360
1b231651
DN
3612010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
362
363 Rename s/usg5-4.h -> s/usg5-4-common.h.
364 * s/usg5-4.h: Rename file to ...
365 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
366 * s/unixware.h:
367 * s/sol2-6.h:
368 * s/irix6-5.h: Update includes accordingly.
369
bfeabdc3
JD
3702010-07-29 Jan Djärv <jan.h.d@swipnet.se>
371
2ebf1083
J
372 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
373
bfeabdc3 374 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
375 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
376 Remove toolbar_height.
377 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
378 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
379 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
380 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
381
382 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
383
384 * xfns.c (x_set_tool_bar_position): New function.
385 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
386 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 387 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
388
389 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
390 and FRAME_TOOLBAR_LEFT_WIDTH.
391
392 * gtkutil.h (xg_change_toolbar_position): Declare.
393
394 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
395 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
396 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
397 (xg_create_frame_widgets): Create a hobox for placing widgets
398 vertically. Use gtk_box_pack_start.
399 (xg_height_or_width_changed): Renamed from xg_height_changed.
400 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
401 (xg_update_frame_menubar, free_frame_menubar): Change to
402 xg_height_or_width_changed.
403 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
404 size correctly. Remove hardcoded 4, instead use handlebox size -
405 toolbar size.
406 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 407 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
408 (xg_pack_tool_bar): POS is a new parameter.
409 Set orientation of tool bar based on pos.
410 Only make handlebox_widget if NULL.
411 Check if tool bar goes to vbox or hbox depending on pos.
412 (xg_update_tool_bar_sizes): New function.
686b968e 413 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
414 height, call xg_update_tool_bar_sizes instead.
415 (free_frame_tool_bar): Remove from hbox or vbox depending on
416 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
417 (xg_change_toolbar_position): New function.
418
419 * frame.h (struct frame): Add tool_bar_position.
420 (Qbottom): Declare.
421
422 * frame.c (Qtool_bar_position): New variable.
423 (make_frame): Set tool_bar_position to Qtop.
424 (frame_parms): Add tool-bar-position.
425 (x_report_frame_params): Store tool_bar_position.
426 (x_set_fringe_width): Reset wm size hint after fringe changes.
427
26469a38
DN
4282010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
429
430 Make lisp_time_argument declaration work on all systems.
431 * lisp.h (lisp_time_argument): Move declaration ...
432 * systime.h (lisp_time_argument): ... here
433 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
434
8848b728
JD
4352010-07-29 Jan Djärv <jan.h.d@swipnet.se>
436
437 * vm-limit.c (POINTER): Add typedef for it.
438 (start_of_data): Change return type from POINTER to char *.
439
440 * frame.h (Qtty_color_mode): Move declaration out of ifdef
441 HAVE_WINDOW_SYSTEM.
442
76fd1ee9
DN
4432010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
444
0441987e
DN
445 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
446 Remove reference to __osf__, unused.
447
56a000c7
DN
448 * mem-limits.h: Remove duplicated includes.
449 (NULL): Remove definition, unused.
450 (POINTER): Remove definition.
451 (start_of_data): Use char* in prototype, as the function
452 definition does.
453
e6cba650
DN
454 Remove extern declarations from .c files, and them to .h files.
455 * keyboard.h (Qhelp_echo, waiting_for_input)
456 (input_available_clear_time, ignore_mouse_drag_p)
457 (Vdouble_click_time, real_this_command, Vthis_original_command):
458 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
459 (Voverriding_local_map_menu_flag):
460 * lisp.h (Qinteractive_form, use_file_dialog)
461 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
462 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
463 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
464 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
465 (Qfunction, debug_on_next_call, Qfield)
466 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
467 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
468 (Qfile_directory_p, Qinsert_file_contents)
469 (Qcompletion_ignore_case, Qcompletion_ignore_case)
470 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
471 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
472 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
473 (Qminibuffer_prompt)
474 (Vtemporary_file_directory,char_ins_del_vector, Qface):
475 * xterm.h (gray_bitmap_width, gray_bitmap_height)
476 (gray_bitmap_bits, xic_create_fontsetname):
477 * coding.h (Vtranslation_table_for_input): Add extern declarations.
478
479 * xsmfns.c (Vuser_login_name):
480 * xrdb.c (Vdouble_click_time):
481 * xfaces.c (xic_create_fontsetname):
482 * w32select.c (waiting_for_input):
483 * print.c (minibuffer_auto_raise):
484 * msdos.c (Qhelp_echo):
485 * macros.c (real_this_command):
486 * keymap.c (Voverriding_local_map):
487 * xterm.c (poll_for_input_1, gray_bitmap_width)
488 (gray_bitmap_height, gray_bitmap_bits;
489 * xmenu.c ( Voverriding_local_map)
490 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
491 (use_file_dialog, Xt_app_con):
492 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
493 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
494 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
495 (Qtool_bar_lines, ignore_mouse_drag_p):
496 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
497 (Qrear_nonsticky, nconc2):
498 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
499 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
500 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
501 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
502 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
503 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
504 (gc_in_progress):
505 * doc.c (Voverriding_local_map, Qremap):
506 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
507 (Vcompletion_regexp_list):
508 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
509 (Qcompletion_ignore_case):
510 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
511 (Vhistory_length, Vthis_original_command, real_this_command)
512 (Qface, Qminibuffer_prompt, history_delete_duplicates):
513 * image.c (Qrisky_local_variable):
514 * fontset.c (QCname):
515 * fns.c (minibuffer_auto_raise, QCname):
516 * dispnew.c (char_ins_del_cost):
517 * composite.c (font_fill_lglyph_metrics):
518 * cmds.c (Qface, Vtranslation_table_for_input):
519 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
520 * ccl.c (charset_unicode):
521 * callproc.c (Vtemporary_file_directory):
522 * buffer.c (emacs_strerror): Remove extern declarations.
523
524 * data.c (Qwindow): Make non-static, used from other files too.
525 * frame.c (validate_x_resource_name): Remove shadow definition for i.
526
76fd1ee9
DN
527 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
528 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
529 * s/usg5-4.h (COFF):
530 * s/template.h:
531 * s/msdos.h (COFF, NO_REMAP):
532 * s/ms-w32.h (NO_REMAP):
533 * s/hpux10-20.h (NO_REMAP):
534 * m/sparc.h (SEGMENT_MASK):
535 * m/m68k.h (NO_REMAP):
536 * m/intel386.h (SEGMENT_MASK):
537 * m/arm.h (NO_REMAP):
538 * m/alpha.h (COFF):
539 * m/template.h: Remove references to unused defines.
540
8a52f00a
JD
5412010-07-28 Jan Djärv <jan.h.d@swipnet.se>
542
543 * xsettings.c (Ftool_bar_get_system_style): Also check for
544 Qtext_image_horiz.
545
546 * xdisp.c (Qtext_image_horiz): Define.
547 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 548 to documentation of tool-bar-style.
8a52f00a
JD
549
550 * lisp.h (Qtext_image_horiz): Declare.
551
552 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
553 style text_image_horiz.
554
89dc303e
DN
5552010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
556
60799703
DN
557 * emacs.c (Fkill_emacs): Remove return statement.
558
37254dc1
DN
559 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
560 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
561 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
562 local extern declarations.
563
71c7345a
DN
564 * xmenu.c: Do not included lwlib.h, not needed.
565
6ba577cb
DN
566 * m/iris4d.h (XUINT, XSET): Remove, not needed.
567
fdb183d6
DN
568 * process.c: Move definitions earlier to minimize #ifdefs.
569
570 * xterm.h (x_get_customization_string, x_load_resources)
571 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
572 (x_check_errors, x_property_data_to_lisp, defined_color)
573 (xic_set_xfontset, x_defined_color): Use const.
574
575 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
576 (x_text_icon, x_check_errors, x_connection_closed): Use const.
577
578 * xselect.c (selection_data_to_lisp_data)
579 (x_property_data_to_lisp):
580 * xrdb.c (x_get_string_resource, file_p)
581 (x_get_customization_string, magic_file_p, search_magic_path)
582 (get_system_app, get_user_app, x_load_resources, x_get_resource)
583 (x_get_string_resource): Use const.
584
585 * xfns.c: Include xlwmenu.h when USE_LUCID.
586 (x_defined_color, xic_set_xfontset): Use const.
587 (Fx_hide_tip): Remove local extern declaration.
588
589 * xfaces.c (Qmouse_face): Remove declaration.
590 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 591 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
592
593 * xdisp.c (do_mouse_tracking): Remove declaration.
594 (add_to_log): Use const.
595
596 * minibuf.c (Qmouse_face): Remove declaration.
597
598 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
599
600 * keyboard.h (do_mouse_tracking): Add declaration.
601
602 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
603 (QCdata, QCtype, Qcenter): Remove declarations.
604
605 * frame.c (x_get_resource_string, x_get_string_resource)
606 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
607 (x_default_parameter): Use const.
608
609 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
610 (QCheight, QCsize, QCname): Remove declarations.
611
612 * emacs.c (main): Remove local extern declaration.
613
614 * editfns.c (region_limit, syms_of_editfns): Remove local extern
615 declarations.
616
617 * dispnew.c: Remove duplicate #include <unistd.h>.
618 (update_window, update_frame_1, init_display): Remove local extern
619 declarations.
620
621 * dispextern.h (add_to_log): Remove declaration.
622 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
623 (x_frame_get_and_record_arg, x_default_parameter): Add const.
624
625 * dired.c (scmp): Add const.
626 (directory_files_internal): Remove local extern declaration.
627
628 * data.c (Finteractive_form): Use const.
629
630 * composite.c (syms_of_composite): Remove local extern declarations.
631
632 * charset.c (add_to_log): Remove declaration.
633
634 * character.c (strwidth, parse_str_to_multibyte): Add const.
635
636 * character.h (strwidth, parse_str_to_multibyte): Likewise.
637
638 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
639
89dc303e 640 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
641 (Lisp_Subr): Make doc and intspec constant.
642 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
643 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
644 (QCheight, QCsize, QCname, QCwidth, QCforeground)
645 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
646 (display_arg): Add declarations.
89dc303e 647
0ed082fe 6482010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
649
650 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
651
0ed082fe
JB
652 * window.c (Fwindow_height): Doc fix (bug#6518).
653
6542010-07-27 Juanma Barranquero <lekktu@gmail.com>
655
656 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
657
ccaf0336
DN
6582010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
659
977105dc
DN
660 * keyboard.c (Ftop_level, Fexit_recursive_edit)
661 (Fabort_recursive_edit): Remove return statements in NO_RETURN
662 functions.
663
f5ada890
DN
664 * frame.h (Qtty_color_mode): Add declaration.
665
ccaf0336
DN
666 * lisp.h (Ftop_level, Fexit_recursive_edit)
667 (Fabort_recursive_edit): Mark as NO_RETURN.
668
dfe3c90f
KH
6692010-07-26 Kenichi Handa <handa@m17n.org>
670
671 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 672 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 673
7d383292
JB
6742010-07-26 Juanma Barranquero <lekktu@gmail.com>
675
676 * lread.c (unreadpure, mapatoms_1): Make static.
677
da31e629
JB
6782010-07-25 Juanma Barranquero <lekktu@gmail.com>
679
680 * terminfo.c (tparam): Fix prototype of tparm.
681
7bfa6d77
AS
6822010-07-25 Andreas Schwab <schwab@linux-m68k.org>
683
dcc19aac
AS
684 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
685 find start of text segment.
686 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
687 is defined.
688
7bfa6d77
AS
689 * callproc.c (set_initial_environment): Avoid unbalanced braces.
690
63f9a672
KB
6912010-07-25 Ken Brown <kbrown@cornell.edu>
692
693 * vm-limit.c (check_memory_limits): Fix previous change;
694 accidentally reverted an earlier change.
695
24933075
KB
6962010-07-25 Ken Brown <kbrown@cornell.edu>
697
698 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
699 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
700
361358ea
JB
7012010-07-25 Juanma Barranquero <lekktu@gmail.com>
702
703 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
704 * dired.c (opendir, readdir): Fix prototypes.
705 * editfns.c (w32_get_internal_run_time): Fix prototypes.
706 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
707 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
708 (telldir): Remove declaration.
709 * ralloc.c (real_morecore, __morecore): Fix prototypes.
710 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
711 * syssignal.h (strsignal): Fix prototype.
712 * term.c (tparam): Fix prototype.
713 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
714 (term_get_fkeys): Set inside "#ifndef DOS_NT".
715 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
716 and __morecore.
717 * w32gui.h (XParseGeometry): Fix prototype.
718 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
719 * w32term.c (my_set_focus): Declare inside #if 0.
720 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
721 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
722 (drain_message_queue, get_next_msg, post_msg, parse_button)
723 (ClipboardSequence_Proc): Fix prototypes.
724 (wait_for_sync): Remove declaration.
725
630b9592
JB
7262010-07-24 Juanma Barranquero <lekktu@gmail.com>
727
728 * w32fns.c (w32_to_x_color): Remove, unused.
729
6a0d6611
AS
7302010-07-24 Andreas Schwab <schwab@linux-m68k.org>
731
732 * lisp.h: Remove leftover P_.
733
4e8608ff
DN
7342010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
735
736 * ecrt0.c, unexalpha.c: Remove files, unused.
737
c8197983
AS
7382010-07-24 Andreas Schwab <schwab@linux-m68k.org>
739
740 * cmds.c (internal_self_insert): Make static.
741 * lisp.h (internal_self_insert): Remove declaration.
742
97b372d7
JB
7432010-07-23 Juanma Barranquero <lekktu@gmail.com>
744
33ac0414
JB
745 * alloc.c (free_float):
746 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
747 * frame.c (delete_frame_handler):
748 * ralloc.c (reorder_bloc):
749 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
750 Remove unused static functions.
751
94da8397
JB
752 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
753 it is called only from NS code.
754
2e6c8532
JB
755 * w32term.c (my_set_focus): #ifdef away; it is called only from
756 "#ifdef 0" code.
757
97b372d7
JB
758 * w32fns.c (x_edge_detection):
759 * xfaces.c (may_use_scalable_font_p):
760 Remove obsolete static declarations.
761
7c3320d8
JB
7622010-07-20 Juanma Barranquero <lekktu@gmail.com>
763
764 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
765 (emacs_blocked_realloc, uninterrupt_malloc):
766 * fringe.c (w32_reset_fringes):
767 * image.c (convert_mono_to_color_image, lookup_rgb_color)
768 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
769 * sound.c (be2hs, do_play_sound):
770 * vm-limit.c (get_lim_data, ret_lim_data):
771 * w32term.c (x_free_frame_resources):
772 * xfaces.c (x_create_gc, x_free_gc):
773 Convert definitions to standard C.
774
d5273788
SM
7752010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
776
777 * eval.c (Feval, Ffuncall): Use the new names.
778
779 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
780 (DEFUN): Add braces around the union initialisation and use ## to
781 specify the right union alternative and avoid a cast.
782
8d16a259
JB
7832010-07-18 Juanma Barranquero <lekktu@gmail.com>
784
785 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
786
3b8eff32
CY
7872010-07-17 Chong Yidong <cyd@stupidchicken.com>
788
789 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
790
499322ce
J
7912010-07-17 Jan Djärv <jan.h.d@swipnet.se>
792
793 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
794 is related to the menu bar (Bug#6499).
a628ad9d 795 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 796
f6003da5 7972010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
798
799 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
800
801 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
802
803 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
804 i.e. don't put back ButtonRelease (Bug#6608).
805
806 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
807 instead of Window. Call xg_event_is_for_menubar when
808 USE_GTK (Bug#6499).
809
810 * gtkutil.h (xg_event_is_for_menubar): Declare.
811
812 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
813
f6003da5 8142010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
815
816 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
817 when it's the same as the old foreground. (Bug#6609)
818
23243f29
J
8192010-07-16 Jan Djärv <jan.h.d@swipnet.se>
820
821 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
822 widget is non-null (Bug#6645).
823
2b23d2a6
AS
8242010-07-15 Andreas Schwab <schwab@linux-m68k.org>
825
01b564ff
AS
826 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
827 Convert old-style definition.
828
2b23d2a6
AS
829 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
830 timestamp argument.
831
c4affd2c
EZ
8322010-07-15 Eli Zaretskii <eliz@gnu.org>
833
834 * fringe.c (update_window_fringes): Restore mistakenly reverted
835 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
836
cf28cebc
J
8372010-07-14 Jan Djärv <jan.h.d@swipnet.se>
838
839 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
840 (SET_SAVED_KEY_EVENT): Remove (not used).
841 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
842 remove size parameter.
843 (handle_one_xevent): Check popup_activated () for menu for Xt also.
844 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
845 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
846 ButtonRelease.
6b2c4bd9
J
847 (x_set_window_size_1): scroll_bar_actual_width is always
848 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
849
850 * xdisp.c (pending_menu_activation): Remove extern declaration.
851 (prepare_menu_bars): Remove setting of pending_menu_activation.
852
853 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
854 (x_activate_menubar): Set popup_activated_flag for Xt also.
855 Remove setting of pending_menu_activation.
cf28cebc
J
856 (set_frame_menubar): Remove check of pending_menu_activation.
857 Declare menubar_size before code. Correct spelling in comment.
858
f6c1c771
KH
8592010-07-14 Kenichi Handa <handa@m17n.org>
860
861 * font.c (font_open_entity): Cancel previous change.
862 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
863
20477505
EZ
8642010-07-13 Eli Zaretskii <eliz@gnu.org>
865
77defa9a
EZ
866 Remove subprocesses #ifdefs.
867 * process.c <inhibit_sentinels>: Move to the common part.
868 (Fwaiting_for_user_input_p): Move to the common part; return nil
869 if async subprocesses aren't supported.
870 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
871 MS-DOS. Remove "#ifdef subprocesses".
872 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
873 (gettimeofday): Remove "#ifdef subprocesses".
874 (wait_without_blocking): Remove function.
875 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
876 Remove "#ifdef subprocesses".
877 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
878 compiled on MS-DOS.
879 * callproc.c (Fcall_process) [!MSDOS]: Don't call
880 wait_for_termination on MS-DOS.
881 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
882 initialization of inhibit_sentinels.
883 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
884 subprocesses" conditional.
885 * callproc.c (Fcall_process) [!subprocesses]: Don't call
886 wait_for_termination, since `buffer' cannot be an integer when
887 async subprocesses are not supported
888 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
889 for ifdefing away the call to Fprocess_status.
890
20477505
EZ
891 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
892 away the entire body of the function.
893
b3ffc17c
DN
8942010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
895
01faa934
DN
896 Remove subprocesses #ifdefs from term.c.
897 * process.c (add_keyboard_wait_descriptor)
898 (delete_keyboard_wait_descriptor): Move to common section, do
899 nothing when subprocesses is not defined.
a628ad9d
JB
900 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
901 Remove subprocesses #ifdefs.
01faa934 902
b3ffc17c
DN
903 Convert maybe_fatal to standard C.
904 * lisp.h (verror): Declare.
905 * eval.c (verror): New function containing the code from ...
906 (error): ... this. Call verror.
907 * term.c (vfatal): New function containing the code from ...
908 (fatal): ... this. Call vfatal.
909 (maybe_fatal): Convert to standard C, use variable number of
910 arguments. Declare as non-return.
911 (init_tty): Fix maybe_fatal call.
912
0521f580
DN
9132010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
914
915 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
916 (_scroll_bar_note_movement): Convert definitions to standard C.
917 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
918 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
919
ebd15611
DN
9202010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
921
922 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
923 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
924 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
925 (xaw_jump_callback, xaw_scroll_callback)
926 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
927 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
928 definitions to standard C.
929 * xmenu.c (menubar_id_to_frame, popup_get_selection)
930 (popup_activate_callback, popup_deactivate_callback)
931 (menu_highlight_callback, menubar_selection_callback)
932 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
933 (free_frame_menubar, popup_selection_callback, as)
934 (create_and_show_popup_menu, dialog_selection_callback)
935 (create_and_show_dialog):
936 * xfns.c (hack_wm_protocols, x_window):
937 * xfaces.c (x_update_menu_appearance):
938 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
939 (char_to_pixel_size, round_size_to_char, get_wm_shell)
940 (set_frame_size, update_wm_hints, setup_frame_gcs)
941 (update_various_frame_slots, update_from_various_frame_slots)
942 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
943 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
944 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
945
de06a2dd
AS
9462010-07-12 Andreas Schwab <schwab@linux-m68k.org>
947
a628ad9d 948 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 949
fc549af9
EZ
9502010-07-12 Eli Zaretskii <eliz@gnu.org>
951
952 * process.c (setup_process_coding_systems): Move to the part
953 shared by non-subprocesses systems, and make its body empty when
954 subprocesses is not defined.
955 (close_process_descs): Move to the part shared by non-subprocesses
956 systems.
1408902e
EZ
957 (wait_reading_process_output) [!subprocesses]: Convert arg list to
958 ANSI C.
fc549af9 959
d5a3eaaf
AS
9602010-07-12 Andreas Schwab <schwab@linux-m68k.org>
961
962 * editfns.c (transpose_markers): Convert old-style definition.
963 * emacs.c (abort, shut_down_emacs, fixup_locale)
964 (synchronize_system_time_locale)
965 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
966 * floatfns.c (extract_float, matherr, init_floatfns)
967 (syms_of_floatfns): Likewise.
968 * fns.c (make_hash_table): Likewise.
969 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
970 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
971 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
972 (ftfont_variation_glyphs): Likewise.
973 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
974 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
975 * lread.c (read_filtered_event): Likewise.
976 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
977 * process.c (wait_reading_process_output): Likewise.
978 * scroll.c (do_line_insertion_deletion_costs): Likewise.
979 * search.c (search_buffer, boyer_moore): Likewise.
980 * syntax.c (scan_sexps_forward): Likewise.
981 * xdisp.c (try_scrolling): Likewise.
982 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
983 (face_at_string_position): Likewise.
984 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
985 * xselect.c (x_get_window_property, receive_incremental_selection)
986 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
987 Likewise.
988 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
989
6f704c76
DN
9902010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
991
ded80a25
DN
992 * callproc.c (child_setup): Remove subprocesses conditional.
993 Remove code dealing with SET_EMACS_PRIORITY, unused.
994
49d937f4 995 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
996 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
997
998 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
999 (__do_global_dtors, __main): Use void in definition.
1000 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1001 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1002 the only users from ...
1003 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1004 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1005 (HAVE_VOLATILE): Remove, unused.
1006
6f704c76
DN
1007 Convert more function definitions to standard C.
1008 * xdisp.c (window_box_edges, handle_single_display_spec)
1009 (display_string): Convert definition to standard C.
1010 * scroll.c (do_direct_scrolling, scrolling_1):
1011 * dispnew.c (allocate_matrices_for_frame_redisplay)
1012 (mirrored_line_dance):
1013 * coding.c (code_convert_string):
1014 * charset.c (map_charset_chars):
1015 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1016 (Fregister_ccl_program, Fregister_code_conversion_map):
1017 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1018 (head_table): Make static and const.
1019
e6cfa7c3
AS
10202010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1021
1022 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1023 (PROFILING_LDFLAGS): Set from substitution.
1024 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1025 CFLAGS last.
1026
892dd565
KH
10272010-07-12 Kenichi Handa <handa@m17n.org>
1028
6f2cdcd1
KH
1029 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1030 (shortlisp): Likewise.
1031
892dd565
KH
1032 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1033
1034 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1035 of FONT_ENTITY_INDEX.
1036 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1037 property, get the property value dynamically.
1038 (Ffont_put): Accept font-entity and font-object too.
1039 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1040 return value changed.
1041 (syms_of_font): Adjusted for the above change.
1042
ae96d47a
AS
10432010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1044
c8fc18ee
AS
1045 * blockinput.h: Remove obsolete comment.
1046
89887d67
AS
1047 * lisp.h: Include <stddef.h>.
1048 (OFFSETOF): Don't define.
1049 (VECSIZE): Use offsetof instead of OFFSETOF.
1050 (PSEUDOVECSIZE): Likewise.
1051 * process.c (conv_sockaddr_to_lisp): Likewise.
1052 * alloc.c: Don't include <stddef.h>.
1053 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1054
ae96d47a
AS
1055 * process.c: Remove obsolete comment.
1056
635c0aa1
CY
10572010-07-11 Chong Yidong <cyd@stupidchicken.com>
1058
1059 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1060
a64df650
AS
10612010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1062
8966b757
AS
1063 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1064 index, rindex.
1065 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1066 * editfns.c (Fuser_full_name, Fformat): Likewise.
1067 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1068 * fileio.c (Ffile_symlink_p): Likewise.
1069 * filelock.c (current_lock_owner): Likewise.
1070 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1071 * fontset.c (fontset_pattern_regexp): Likewise.
1072 * lread.c (read1): Likewise.
1073 * sysdep.c (init_system_name): Likewise.
1074 * xfns.c (select_visual): Likewise.
1075 * s/hpux10-20.h (index, rindex): Don't define.
1076 * s/ms-w32.h (index): Likewise.
1077 * s/usg5-4.h: Likewise.
1078
cf237e27
AS
1079 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1080
a8fe7202
AS
1081 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1082 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1083 (egetenv): Likewise.
1084 * doprnt.c (doprnt): Likewise.
1085 * editfns.c (set_time_zone_rule, format2): Likewise.
1086 * emacs.c (decode_env_path): Likewise.
1087 * eval.c (signal_error, error): Likewise.
1088 * insdel.c (replace_range_2): Likewise.
1089 * keyboard.c (cmd_error_internal): Likewise.
1090 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1091 * print.c (write_string, write_string_1, print_error_message):
1092 Likewise.
1093 * vm-limit.c (warn_function, memory_warnings): Likewise.
1094 * xdisp.c (message1, message1_nolog, message_with_string)
1095 (vmessage, message, message_nolog): Likewise.
1096 * emacs.c: Remove duplicate declaration.
1097 * keyboard.h: Likewise.
1098 * lisp.h: Update prototypes.
1099
bb8e180f
AS
1100 * eval.c: Fix indentation problem.
1101
83380e65
AS
1102 * keyboard.c: Include "process.h"
1103
a64df650
AS
1104 * eval.c: Remove obsolete noinline declaration.
1105 * fns.c: Likewise.
1106
6a8033e1
KR
11072010-07-11 Ken Raeburn <raeburn@raeburn.org>
1108
1109 * doprnt.c (doprnt): Take a va_list argument instead of count and
1110 pointer.
1111 * eval.c (error): Change to a standard-C variadic function.
1112 * xdisp.c (vmessage): Renamed from message, made static, and
1113 changed to take a va_list argument.
1114 (message): New variadic wrapper.
1115 (message_nolog): Now a variadic function, calling vmessage.
1116 * lisp.h: Include stdarg.h for va_list.
1117 (doprnt, error, message, message_nolog): Decls updated.
1118
462aa963
EZ
11192010-07-11 Eli Zaretskii <eliz@gnu.org>
1120
1121 * process.c (syms_of_process) <delete-exited-processes>: Define
1122 even if !subprocesses.
1123 (delete_exited_processes): Ditto.
1124
1125 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1126 (delete_exited_processes): Don't define.
1127
48104462
CY
11282010-07-10 Chong Yidong <cyd@stupidchicken.com>
1129
1130 * frame.c (make_frame): Initialize menu_bar_lines and
1131 tool_bar_lines members.
1132 (make_initial_frame, make_terminal_frame): Initialize
1133 menu_bar_lines using value of menu-bar-mode.
1134
1135 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1136
f388c88a
EZ
11372010-07-10 Eli Zaretskii <eliz@gnu.org>
1138
1139 * process.c: Reshuffle #include's. Condition some of the global
1140 and static variables on `subprocesses'.
1141 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1142 Leave only one implementation.
1143 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1144 (kill_buffer_processes, Flist_system_processes)
1145 (Fprocess_attributes, init_process, syms_of_process): Unify the
1146 implementations for with subprocesses and without them.
1147
723f5a07
J
11482010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1149
1150 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1151 correct size for Motif.
1152 (free_frame_menubar): Call x_set_window_size to update frame size.
1153
1154 * xfns.c (x_window): Set borderWidth to 0 for pane and
1155 EmacsFrame. Frame size calculation is wrong otherwise.
1156
2536a4b7
MA
11572010-07-09 Michael Albinus <michael.albinus@gmx.de>
1158
1159 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1160 allows to suppress errors when polling in Emacs' main loop.
1161 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1162 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1163 (Fdbus_method_error_internal, Fdbus_send_signal)
1164 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1165 (Fdbus_register_method): Use it. (Bug#6579)
1166
5842a27b
DN
11672010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1168
1169 * alloc.c: Convert DEFUNs to standard C.
1170 * buffer.c:
1171 * bytecode.c:
1172 * callint.c:
1173 * callproc.c:
1174 * casefiddle.c:
1175 * casetab.c:
1176 * category.c:
1177 * character.c:
1178 * charset.c:
1179 * chartab.c:
1180 * cmds.c:
1181 * coding.c:
1182 * composite.c:
1183 * data.c:
1184 * dbusbind.c:
1185 * dired.c:
1186 * dispnew.c:
1187 * doc.c:
1188 * dosfns.c:
1189 * editfns.c:
1190 * emacs.c:
1191 * eval.c:
1192 * fileio.c:
1193 * filelock.c:
1194 * floatfns.c:
1195 * fns.c:
1196 * font.c:
1197 * fontset.c:
1198 * frame.c:
1199 * fringe.c:
1200 * image.c:
1201 * indent.c:
1202 * insdel.c:
1203 * keyboard.c:
1204 * keymap.c:
1205 * lread.c:
1206 * macros.c:
1207 * marker.c:
1208 * menu.c:
1209 * minibuf.c:
1210 * msdos.c:
1211 * nsfns.m:
1212 * nsmenu.m:
1213 * nsselect.m:
1214 * print.c:
1215 * process.c:
1216 * search.c:
1217 * sound.c:
1218 * syntax.c:
1219 * term.c:
1220 * terminal.c:
1221 * textprop.c:
1222 * undo.c:
1223 * w16select.c:
1224 * w32console.c:
1225 * w32fns.c:
1226 * w32font.c:
1227 * w32menu.c:
1228 * w32proc.c:
1229 * w32select.c:
1230 * window.c:
1231 * xdisp.c:
1232 * xfaces.c:
1233 * xfns.c:
1234 * xmenu.c:
1235 * xselect.c:
1236 * xsettings.c:
1237 * xsmfns.c: Likewise.
1238
d568829b
EZ
12392010-07-08 Eli Zaretskii <eliz@gnu.org>
1240
1241 * process.c (kbd_is_on_hold, hold_keyboard_input)
1242 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1243
52214050
J
12442010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1245
1246 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1247 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1248 unless USE_LUCID.
1249
313d9eb2
DN
12502010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1251
a628ad9d
JB
1252 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1253 declaration.
d8825aa3 1254
295d0d8f
DN
1255 Clean up include guards.
1256 * tparam.c: Remove include guards for config.h, string.h and code
1257 that assumes #ifndef emacs.
1258 * termcap.c:
1259 * unexalpha.c:
1260 * sysdep.c:
1261 * filemode.c:
1262 * filelock.c:
1263 * bidi.c: Likewise.
1264
49d9e6b0
DN
1265 Remove prefix-args.c
1266 * prefix-args.c: Remove file.
1267 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1268 * Makefile.in (temacs${EXEEXT}): Remove references to
1269 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1270 (mostlyclean): Remove reference to prefix-args.
1271 (prefix-args): Remove.
1272
313d9eb2
DN
1273 Simplify cstart_of_data, start_of_code and related code.
1274 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1275 (start_of_data): Merge into start_of_data function.
1276 * sysdep.c (start_of_text): Remove. Move simplified versions of
1277 it in the only users: unexaix.c and unexec.c.
1278 (read_input_waiting): Remove local declaration of quit_char.
1279 (start, etext): Remove declarations.
1280 (start_of_data): Merge with the version in mem-limits.h and move
1281 to vm-limits.c.
1282 * vm-limit.c (start_of_data): Merged and simplified version of the
1283 code formerly in mem-limits.h and sysdep.c.
1284 * unexec.c (start): New declaration, moved from sysdep.c.
1285 (start_of_text): Simplified version of the code formerly in sysdep.c.
1286 * unexaix.c (start_of_text): Simplified version of the code
1287 formerly in sysdep.c.
1288 * m/alpha.h (HAVE_TEXT_START): Remove.
1289 (TEXT_START): Move ...
1290 * unexalpha.c (TEXT_START): ... here.
1291 * s/hpux10-20.h (TEXT_START): Remove.
1292 * s/darwin.h (TEXT_START):
1293 * m/mips.h (TEXT_START):
1294 * m/macppc.h (HAVE_TEXT_START):
1295 * m/m68k.h (TEXT_START):
1296 * m/iris4d.h (TEXT_START):
1297 * m/intel386.h (TEXT_START):
1298 * m/ibmrs6000.h (TEXT_START):
1299 * m/ia64.h (HAVE_TEXT_START):
1300 * s/msdos.h (TEXT_START): Likewise.
1301
72af86bd
AS
13022010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1303
1304 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1305 (overrun_check_free, xstrdup, allocate_string)
1306 (allocate_string_data, compact_small_strings, Fmake_string)
1307 (make_unibyte_string, make_multibyte_string)
1308 (make_string_from_bytes, make_specified_string, make_float)
1309 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1310 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1311 memcpy, memmove, memset, memcmp.
1312 * atimer.c (start_atimer, set_alarm): Likewise.
1313 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1314 (mmap_realloc, init_buffer_once): Likewise.
1315 * callint.c (Fcall_interactively): Likewise.
1316 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1317 (getenv_internal_1): Likewise.
1318 * casefiddle.c (casify_object): Likewise.
1319 * ccl.c (ccl_driver): Likewise.
1320 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1321 * charset.c (load_charset_map_from_file)
1322 (load_charset_map_from_file, load_charset_map_from_vector)
1323 (Fdefine_charset_internal): Likewise.
1324 * cm.c (Wcm_clear): Likewise.
1325 * coding.c (decode_eol, decode_coding_object)
1326 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1327 * data.c (Faset): Likewise.
1328 * dired.c (directory_files_internal, file_name_completion_stat):
1329 Likewise.
1330 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1331 (clear_glyph_row, copy_row_except_pointers)
1332 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1333 (save_current_matrix, restore_current_matrix)
1334 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1335 (mirror_line_dance, scrolling_window): Likewise.
1336 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1337 Likewise.
1338 * doprnt.c (doprnt): Likewise.
1339 * editfns.c (Fuser_full_name, make_buffer_string_both)
1340 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1341 * emacs.c (sort_args): Likewise.
1342 * eval.c (Fapply, Ffuncall): Likewise.
1343 * fileio.c (Ffile_name_directory, make_temp_name)
1344 (Fexpand_file_name, search_embedded_absfilename)
1345 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1346 (auto_save_error): Likewise.
1347 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1348 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1349 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1350 (Fmake_hash_table): Likewise.
1351 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1352 * ftfont.c (ftfont_text_extents): Likewise.
1353 * getloadavg.c (getloadavg): Likewise.
1354 * image.c (define_image_type, make_image, make_image_cache)
1355 (x_create_x_image_and_pixmap, xbm_image_p)
1356 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1357 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1358 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1359 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1360 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1361 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1362 Likewise.
1363 * indent.c (scan_for_column, compute_motion): Likewise.
1364 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1365 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1366 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1367 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1368 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1369 (store_user_signal_events, menu_bar_items, tool_bar_items)
1370 (process_tool_bar_item, append_tool_bar_item)
1371 (read_char_minibuf_menu_prompt, read_key_sequence)
1372 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1373 Likewise.
1374 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1375 Likewise.
1376 * lisp.h (STRING_COPYIN): Likewise.
1377 * lread.c (Fload, read1, oblookup): Likewise.
1378 * msdos.c (Frecent_doskeys): Likewise.
1379 * nsfns.m (Fx_create_frame): Likewise.
1380 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1381 Likewise.
1382 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1383 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1384 Likewise.
1385 * nsmenu.m (ns_update_menubar): Likewise.
1386 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1387 * print.c (print_unwind, printchar, strout, print_string)
1388 (print_error_message): Likewise.
1389 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1390 (Fmake_network_process, Fnetwork_interface_list)
1391 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1392 (init_process): Likewise.
1393 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1394 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1395 Likewise.
1396 * scroll.c (do_scrolling, do_direct_scrolling)
1397 (scrolling_max_lines_saved): Likewise.
1398 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1399 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1400 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1401 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1402 (emacs_set_tty): Likewise.
1403 * term.c (encode_terminal_code, calculate_costs)
1404 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1405 Likewise.
1406 * termcap.c (tgetst1, gobble_line): Likewise.
1407 * termhooks.h (EVENT_INIT): Likewise.
1408 * tparam.c (tparam1): Likewise.
1409 * unexalpha.c (unexec): Likewise.
1410 * unexec.c (write_segment): Likewise.
1411 * unexmacosx.c (unexec_write_zero): Likewise.
1412 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1413 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1414 * w32font.c (w32font_list_family, w32font_text_extents)
1415 (w32font_list_internal, w32font_match_internal)
1416 (w32font_open_internal, compute_metrics, Fx_select_font):
1417 Likewise.
1418 * w32menu.c (set_frame_menubar, add_menu_item)
1419 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1420 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1421 * w32uniscribe.c (uniscribe_list_family): Likewise.
1422 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1423 * window.c (make_window, replace_window, set_window_buffer)
1424 (Fsplit_window): Likewise.
1425 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1426 (add_to_log, message3, x_consider_frame_title)
1427 (append_space_for_newline, extend_face_to_end_of_line)
1428 (decode_mode_spec_coding, init_glyph_string): Likewise.
1429 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1430 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1431 (face_attr_equal_p, make_realized_face, make_face_cache)
1432 (free_realized_faces, lookup_named_face, smaller_face)
1433 (face_with_height, lookup_derived_face)
1434 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1435 (Finternal_set_font_selection_order, realize_default_face)
1436 (compute_char_face, face_at_buffer_position)
1437 (face_for_overlay_string, face_at_string_position, merge_faces):
1438 Likewise.
1439 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1440 (Fx_window_property, x_create_tip_frame)
1441 (Fx_backspace_delete_keys_p): Likewise.
1442 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1443 (xfont_text_extents): Likewise.
1444 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1445 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1446 * xselect.c (x_queue_event, x_get_window_property)
1447 (receive_incremental_selection): Likewise.
1448 * xsmfns.c (x_session_check_input): Likewise.
1449 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1450 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1451 Likewise.
1452 * character.h (BCOPY_SHORT): Removed.
1453 * config.in: Regenerate.
1454 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1455 * emacs.c (main) [PROFILING]: Don't declare
1456 dump_opcode_frequencies.
1457 * lisp.h (safe_bcopy): Remove declaration.
1458 (memset) [!HAVE_MEMSET]: Declare.
1459 (memcpy) [!HAVE_MEMCPY]: Likewise.
1460 (memmove) [!HAVE_MEMMOVE]: Likewise.
1461 (memcmp) [!HAVE_MEMCMP]: Likewise.
1462 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1463 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1464 Don't define.
1465 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1466 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1467 (BCOPY_DOWNWARD_SAFE): Don't define.
1468 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1469 (memcpy) [!HAVE_MEMCPY]: Define.
1470 (memmove) [!HAVE_MEMMOVE]: Define.
1471 (memcmp) [!HAVE_MEMCMP]: Define.
1472
cb768704
J
14732010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1474
1475 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1476 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1477 New functions.
cb768704
J
1478 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1479 select on empty input mask.
1480 (init_process): Initialize kbd_is_on_hold to 0.
1481
1482 * process.h (hold_keyboard_input, unhold_keyboard_input)
1483 (kbd_on_hold_p): Declare.
1484
1485 * keyboard.c (input_available_signal): Declare.
1486 (kbd_buffer_nr_stored): New function.
1487 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1488 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1489 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1490 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1491 (tty_read_avail_input): If input is on hold, return.
1492 Don't read more that free slots in kbd_buffer (Bug#6571).
1493
3a8ce822
EZ
14942010-07-07 Eli Zaretskii <eliz@gnu.org>
1495
1496 * msdos.h:
1497 * msdos.c:
1498 * dosfns.c:
1499 * w16select.c: Convert function definitions to ANSI C.
1500
a628ad9d
JB
1501 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1502 Remove unused prototypes.
3a8ce822 1503
cf84bb53
JB
15042010-07-07 Juanma Barranquero <lekktu@gmail.com>
1505
1506 * coding.c, sysdep.c: Convert some more functions to standard C.
1507
1a4990fb
JB
15082010-07-07 Juanma Barranquero <lekktu@gmail.com>
1509
1510 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1511 (encode_coding_object): Use SPECPDL_INDEX.
1512 (syms_of_coding): Use DOS_NT.
1513
c0f2f16b
DN
15142010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1515
48fb6855
DN
1516 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1517
c0f2f16b
DN
1518 Make the function member of Lisp_Subr use standard C prototypes.
1519 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1520 (DECL_ALIGN): Add a cast for the function.
1521 * eval.c (Feval, Ffuncall): Use the proper type for each type
1522 function call.
1523
67aecef9
CY
15242010-07-06 Chong Yidong <cyd@stupidchicken.com>
1525
1526 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1527 fringe face id, so face-remapping-alist works (Bug#6091).
1528
b56ceb92
JB
15292010-07-06 Juanma Barranquero <lekktu@gmail.com>
1530
1531 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1532 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1533 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1534
7af07b96
AS
15352010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1536
1537 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1538 * lisp.h: Declare x_get_keysym_name.
1539 * keyboard.c (modify_event_symbol): Don't declare
1540 x_get_keysym_name here.
1541
69e24e34
DN
15422010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1543
1544 * ecrt0.c: Revert conversion to standard C.
1545
d3da34e0 15462010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1547
1548 * vm-limit.c (memory_warnings):
1549 * keyboard.c (modify_event_symbol):
1550 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1551 (round2, emacs_rint):
1552 * process.c (send_process, old_sigpipe): Convert function
1553 definitions and declarations to standard C.
1554
15552010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1556
1557 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1558 * xdisp.c: Convert function definitions to standard C.
1559
1560 * cm.c (cmputc): Arg C is now int, not char.
1561 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1562
00be444c
J
15632010-07-05 James Cloos <cloos@jhcloos.com>
1564
1565 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1566
1567 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1568 _NET_WM_ICON_NAME atoms.
1569
1570 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1571 and _NET_WM_ICON_NAME properties, too, matching what is
1572 done in the Gtk+ case.
1573
e4c8d29a
J
15742010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1575
ff919460
J
1576 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1577
e4c8d29a
J
1578 * xsmfns.c (SSDATA): New macro.
1579 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1580 passed to strlen/strcpy/strcat.
1581 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1582 7:th arg to XChangeProperty to (unsigned char *)
1583
1584 * xsettings.c (something_changedCB, parse_settings)
1585 (apply_xft_settings): Reformat prototype.
1586 (something_changedCB, init_gconf): Remove unused variable i.
1587 (read_settings): Remove unused variable long_len.
1588
1589 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1590 (xg_get_image_for_pixmap, create_dialog)
1591 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1592 (menuitem_highlight_callback, make_menu_item)
1593 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1594 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1595 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1596 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1597 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1598 (xg_tool_bar_item_expose_callback): Reformat prototype.
1599 (xg_update_menubar): GList *group => GSList *group.
1600 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1601 before use.
1602 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1603 to GTK_IMAGE (wimage).
1604
dd4c5104
DN
16052010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1606
898b4c5c
DN
1607 * atimer.c: Use "" instead of <> for local includes for
1608 consistency with the rest of the code.
1609
dd4c5104
DN
1610 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1611 * xrdb.c (get_system_name):
1612 * window.c (shrink_windows):
1613 * syntax.c (forw_comment):
1614 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1615 (ins_del_costs):
1616 * mem-limits.h (start_of_data):
1617 * lread.c (readevalloop):
1618 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1619 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1620 * frame.c (x_get_focus_frame):
1621 * floatfns.c (fmod_float):
1622 * fileio.c (choose_write_coding_system):
1623 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1624 (malloc_initialize_hook, sort_args, synchronize_locale):
1625 * doprnt.c (doprnt):
1626 * dired.c (compile_pattern):
1627 * data.c (fmod_float):
1628 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1629 (map_char_table_for_charset):
1630 * charset.c (define_charset_internal):
1631 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1632 to standard C.
1633
9a39b306 16342010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1635 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1636
1637 * lread.c (read1): Fix up last change to not mess up `c'.
1638
e6cb2cbb
JB
16392010-07-04 Juanma Barranquero <lekktu@gmail.com>
1640
1641 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1642
438105ed
JB
16432010-07-04 Juanma Barranquero <lekktu@gmail.com>
1644
1645 Fix prototypes.
1646
e5447b22 1647 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1648 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1649 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1650 arg, as required by internal_condition_case_1.
dcc7404b 1651 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1652 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1653 (analyse_first): Fix "const const".
e5447b22 1654 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1655 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1656 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1657
971de7fb
DN
16582010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1659
1660 * alloc.c: Convert function definitions to standard C.
1661 * atimer.c:
1662 * bidi.c:
1663 * bytecode.c:
1664 * callint.c:
1665 * callproc.c:
1666 * casefiddle.c:
1667 * casetab.c:
1668 * category.c:
1669 * ccl.c:
1670 * character.c:
1671 * charset.c:
1672 * chartab.c:
1673 * cmds.c:
1674 * coding.c:
1675 * composite.c:
1676 * data.c:
1677 * dbusbind.c:
1678 * dired.c:
1679 * dispnew.c:
1680 * doc.c:
1681 * doprnt.c:
1682 * ecrt0.c:
1683 * editfns.c:
1684 * fileio.c:
1685 * filelock.c:
1686 * filemode.c:
1687 * fns.c:
1688 * font.c:
1689 * fontset.c:
1690 * frame.c:
1691 * fringe.c:
1692 * ftfont.c:
1693 * ftxfont.c:
1694 * gtkutil.c:
1695 * indent.c:
1696 * insdel.c:
1697 * intervals.c:
1698 * keymap.c:
1699 * lread.c:
1700 * macros.c:
1701 * marker.c:
1702 * md5.c:
1703 * menu.c:
1704 * minibuf.c:
1705 * prefix-args.c:
1706 * print.c:
1707 * ralloc.c:
1708 * regex.c:
1709 * region-cache.c:
1710 * scroll.c:
1711 * search.c:
1712 * sound.c:
1713 * strftime.c:
1714 * syntax.c:
1715 * sysdep.c:
1716 * termcap.c:
1717 * terminal.c:
1718 * terminfo.c:
1719 * textprop.c:
1720 * tparam.c:
1721 * undo.c:
1722 * unexelf.c:
1723 * window.c:
1724 * xfaces.c:
1725 * xfns.c:
1726 * xfont.c:
1727 * xftfont.c:
1728 * xgselect.c:
1729 * xmenu.c:
1730 * xrdb.c:
1731 * xselect.c:
1732 * xsettings.c:
1733 * xsmfns.c:
1734 * xterm.c: Likewise.
1735
ae492bec
EZ
17362010-07-03 Eli Zaretskii <eliz@gnu.org>
1737
76ea4cc9
EZ
1738 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1739 frames other than the initial one. Fix reversal of colors when
1740 `reverse' is specified in the frame parameters. Call
1741 update_face_from_frame_parameter instead of
1742 internal-set-lisp-face-attribute. Initialize screen colors from
1743 initial_screen_colors[] when f->default_face_done_p is zero,
1744 instead of depending on being called with default-frame-alist as
1745 the alist argument.
1746
1747 * xfaces.c (update_face_from_frame_parameter): Move out of
1748 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1749 with HAVE_WINDOW_SYSTEM.
1750
1e6255ae
EZ
1751 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1752 to menu-bar-mode, if not set in the frame parameters or in
1753 default-frame-alist.
1754
ae492bec
EZ
1755 * w32console.c (sys_tputs): Adjust argument list to prototype in
1756 term.c.
1757
3a35a84c
JB
17582010-07-03 Juanma Barranquero <lekktu@gmail.com>
1759
1760 * lisp.h (memory_warnings): Fix prototype.
1761
1762 * cm.h (evalcost): Fix prototype.
1763
1764 * cm.c (evalcost): Fix arg type.
1765
c532d349
DN
17662010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1767
1768 * term.c (term_clear_mouse_face, Fidentity):
1769 * syssignal.h (signal_handler_t):
1770 * lisp.h (memory_warnings):
1771 * coding.h (preferred_coding_system):
1772 * cm.h (evalcost):
1773 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1774
c0b36d46
EZ
17752010-07-02 Eli Zaretskii <eliz@gnu.org>
1776
1777 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1778 from prototypes.
1779
1780 * msdos.h (load_pixmap): Don't define away.
1781
383e0970
J
17822010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1783
f57e2426
J
1784 * lisp.h:
1785 * atimer.h: Remove define for P_.
1786
1787 * alloc.c: Remove __P and P_ from .c and .m files.
1788 * atimer.c:
1789 * buffer.c:
1790 * callint.c:
1791 * category.c:
1792 * charset.c:
1793 * chartab.c:
1794 * cm.c:
1795 * coding.c:
1796 * composite.c:
1797 * data.c:
1798 * dired.c:
1799 * dispnew.c:
1800 * doc.c:
1801 * editfns.c:
1802 * emacs.c:
1803 * eval.c:
1804 * fileio.c:
1805 * filelock.c:
1806 * fns.c:
1807 * font.c:
1808 * fontset.c:
1809 * frame.c:
1810 * ftfont.c:
1811 * ftxfont.c:
1812 * gmalloc.c:
1813 * gtkutil.c:
1814 * image.c:
1815 * indent.c:
1816 * intervals.c:
1817 * keyboard.c:
1818 * keymap.c:
1819 * lread.c:
1820 * marker.c:
1821 * menu.c:
1822 * minibuf.c:
1823 * print.c:
1824 * process.c:
1825 * scroll.c:
1826 * search.c:
1827 * sound.c:
1828 * strftime.c:
1829 * syntax.c:
1830 * sysdep.c:
1831 * term.c:
1832 * terminal.c:
1833 * textprop.c:
1834 * unexalpha.c:
1835 * w32console.c:
1836 * w32fns.c:
1837 * w32font.c:
1838 * w32menu.c:
1839 * w32term.c:
1840 * w32uniscribe.c:
1841 * window.c:
1842 * xdisp.c:
1843 * xfaces.c:
1844 * xfns.c:
1845 * xfont.c:
1846 * xftfont.c:
1847 * xmenu.c:
1848 * xselect.c:
1849 * xterm.c: Likewise.
1850
383e0970 1851 Remove P_ and __P macros.
f57e2426
J
1852 * atimer.h: Remove P_ and __P macros.
1853 * buffer.h:
383e0970
J
1854 * category.h:
1855 * ccl.h:
1856 * character.h:
1857 * charset.h:
1858 * cm.h:
1859 * coding.h:
1860 * composite.h:
1861 * dispextern.h:
1862 * disptab.h:
9e892c8d 1863 * dosfns.h:
383e0970
J
1864 * font.h:
1865 * fontset.h:
1866 * frame.h:
1867 * gtkutil.h:
1868 * indent.h:
1869 * intervals.h:
1870 * keyboard.h:
1871 * keymap.h:
1872 * lisp.h:
1873 * macros.h:
1874 * md5.h:
1875 * menu.h:
1876 * msdos.h:
1877 * nsterm.h:
1878 * puresize.h:
1879 * region-cache.h:
1880 * syntax.h:
1881 * syssignal.h:
1882 * systime.h:
1883 * termhooks.h:
9e892c8d 1884 * w32font.h:
383e0970
J
1885 * w32term.h:
1886 * widget.h:
1887 * window.h:
1888 * xgselect.h:
1889 * xsettings.h:
1890 * xterm.h: Likewise.
1891
98601119
DN
18922010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1893
d9170db5
DN
1894 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1895
98601119
DN
1896 Cleanup old code.
1897 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1898 * syssignal.h: Remove code for Lynx, not supported anymore.
1899 * vm-limit.c: Remove unused code the depends on emacs not being
1900 defined and NO_LIM_DATA being defined.
1901 * mem-limits.h: Remove dead code.
1902
1f984e12
J
19032010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1904
c49d071a
J
1905 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1906
9d5405ec
J
1907 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1908 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1909
7a18115b
J
1910 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1911 parameters, they are already absolute.
1912
a628ad9d
JB
1913 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1914 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1915
a628ad9d 1916 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1917
a628ad9d
JB
1918 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1919 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1920
a628ad9d
JB
1921 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1922 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1923
c1ef4455
CY
19242010-06-30 Chong Yidong <cyd@stupidchicken.com>
1925
1926 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1927 check default-frame-alist.
1928
ce8f5a9a
AS
19292010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1930
1931 * process.c (create_process): Avoid using invalid file descriptors.
1932
1933 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1934
bf935339
J
19352010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1936
1937 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1938 Improve documentation. Return font regardless of use_system_font.
1939 (syms_of_xsettings): Improve documentation for font-use-system-font.
1940
7c33a057
CY
19412010-07-10 Chong Yidong <cyd@stupidchicken.com>
1942
2ec1b5ee
CY
1943 * xfaces.c (realize_face): Garbage the frame if a face is removed
1944 (Bug#6593).
1945
19462010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1947
1948 * keyboard.c: Remove duplicate <setjmp.h>.
1949 (read_key_sequence): Remove volatile qualifiers.
1950
19512010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1952
1953 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1954 (struct glyph_row): New members left_fringe_offset and
1955 right_fringe_offset.
1956
1957 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1958 specially.
1959 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1960 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1961
1962 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1963 Take account of bitmap offset.
2ec1b5ee
CY
1964 (draw_window_fringes): Take account of window vscroll.
1965 (update_window_fringes): Likewise. Extend top-aligned top indicator
1966 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1967 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1968 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1969
19702010-07-04 Juanma Barranquero <lekktu@gmail.com>
1971
1972 * w32fns.c (Qtooltip): Declare.
1973 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1974
19752010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1976
1977 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1978 grab on just Press (Bug#6499).
1979
19802010-07-02 Chong Yidong <cyd@stupidchicken.com>
1981
1982 * frame.c (Qtooltip): New var.
1983 (delete_frame): Use it. Fix faulty if statement. Don't update
1984 mode line for tooltip frames. Suggested by Martin Rudalics.
1985
1986 * xfns.c (x_create_tip_frame):
1987 * w32fns.c (x_create_tip_frame): Use it.
1988
19892010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1990
1991 * xftfont.c (xftfont_open): Check font width one by one also when
1992 spacing is dual.
1993
1994 * ftfont.c (ftfont_open): Ditto.
1995
6259c2ec
GM
19962010-06-30 Glenn Morris <rgm@gnu.org>
1997
a46007e9
GM
1998 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1999
6259c2ec
GM
2000 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2001
2002 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2003 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2004 * s/darwin.h (SYSTEM_MALLOC):
2005 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2006
5d1d3d04
J
20072010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2008
2009 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2010 (ns_get_screen): Don't assign integer to f.
2011 (Fx_display_color_cells): Declarations before statements.
2012
e547b051
J
20132010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2014
5fc8e5bc
J
2015 * xfns.c (x_default_font_parameter): Remove got_from_system
2016 (Bug#6526).
2017
e547b051
J
2018 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2019 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2020 defines based on what configure finds.
2021
2022 * xterm.c (XTflash): Use gtk_widget_get_window.
2023 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2024 gtk_adjustment_get_page_size.
2025 (handle_one_xevent): Use gtk_widget_get_mapped.
2026 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2027 messages.
2028
2029 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2030
2031 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2032 HAVE_GTK_FILE_SELECTION_NEW.
2033
2034 * gtkutil.c (xg_display_open, xg_display_close): Remove
2035 HAVE_GTK_MULTIDISPLAY, it is always defined.
2036 (xg_display_open): Return type is void.
2037 (gtk_widget_set_has_window)
2038 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2039 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2040 (gtk_adjustment_set_page_increment)
2041 (gtk_adjustment_get_step_increment): #define these if not found
2042 by configure.
2043 (remove_submenu): New define based on Gtk+ version.
2044 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2045 gtk_widget_get_window.
2046 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2047 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2048 (create_dialog): Use gtk_dialog_get_action_area and
2049 gtk_dialog_get_content_area.
2050 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2051 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2052 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2053 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2054 g_object_ref and g_object_unref.
2055 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2056 gtk_widget_get_sensitive.
2057 (xg_update_submenu): Use remove_submenu.
2058 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2059 properties instead to get old x and y position.
2060 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2061 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2062 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2063 (xg_get_tool_bar_widgets): New function.
2064 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2065 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2066 (toolbar_set_orientation): New #define based on if configure
2067 finds gtk_orientable_set_orientation.
2068 (xg_create_tool_bar): Call toolbar_set_orientation.
2069 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2070 instead of gtk_box_pack_start_defaults.
2071
b9229673
CY
20722010-06-28 Chong Yidong <cyd@stupidchicken.com>
2073
2074 * cmds.c (Fdelete_backward_char): Move into Lisp.
2075
bbc803b0
DN
20762010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2077
2078 * s/freebsd.h (BSD4_2): Remove redundant definition.
2079 bsd-common.h defines it already.
2080
6431f2e6
CY
20812010-06-27 Chong Yidong <cyd@stupidchicken.com>
2082
2083 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2084 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2085 tool-bar-mode, which are now set using these X resources at
2086 startup, to determine the defaults (Bug#2249).
2087
2088 * w32fns.c (Fx_create_frame):
2089 * nsfns.m (Fx_create_frame): Likewise.
2090
2091 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2092
8c079ebb
JB
20932010-06-24 Juanma Barranquero <lekktu@gmail.com>
2094
2095 * gtkutil.c (xg_update_scrollbar_pos):
2096 Avoid C99 mid-block variable declaration.
2097
e9b7ab96
JD
20982010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2099
bc869eca
JD
2100 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2101
2b7e356a 2102 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2103
2104 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2105 if height is less than scroll bar min size.
2106 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2107
e9b7ab96
JD
2108 * xfns.c (x_default_font_parameter): Try to open font from system
2109 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2110
a628ad9d 21112010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2112
2113 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2114
70c4cfbb
EZ
21152010-06-20 Eli Zaretskii <eliz@gnu.org>
2116
2117 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2118 most-positive-fixnum, be extra accurate when scrolling window
2119 start, to avoid missing the cursor line.
2120
ad5a12b5
EZ
21212010-06-19 Eli Zaretskii <eliz@gnu.org>
2122
2123 * xdisp.c (try_scrolling): Compute the limit for searching point
2124 in forward scroll from scroll_max, instead of an arbitrary limit
2125 of 10 screen lines. See
2126 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2127 and
2128 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2129 for details.
2130
2a64315a 21312010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2132
2133 * editfns.c (Fbyte_to_string): Pacify compiler.
2134
288cf4e9
SM
21352010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2136
2137 * lread.c (read1): Phase out old-style backquotes a bit more.
2138
6e6e5760
EZ
21392010-06-12 Eli Zaretskii <eliz@gnu.org>
2140
cbc4fd20
EZ
2141 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2142 bidimirror.h.
2143
2144 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2145
317fbf33
EZ
2146 * bidi.c (bidi_initialize): Remove explicit initialization of
2147 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2148 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2149 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2150
2151 * biditype.h: New file.
2152
cbc4fd20
EZ
2153 * bidimirror.h: New file.
2154
6e6e5760
EZ
2155 * window.c (syms_of_window): Doc fix (bug#6409).
2156
4176cba2
RF
21572010-06-12 Romain Francoise <romain@orebokech.com>
2158
2159 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2160 ediff-hook.
2161
cb4bfcb5
GM
21622010-06-10 Glenn Morris <rgm@gnu.org>
2163
64c60c2f
GM
2164 * editfns.c (Fbyte_to_string): Pacify compiler.
2165
cb4bfcb5
GM
2166 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2167
2ec1b5ee
CY
21682010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2169
2170 * alloc.c (Fmake_byte_code): Don't access undefined argument
2171 (Bug#6517).
2172
21732010-06-25 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * xdisp.c (next_element_from_image): Ensure that after-strings are
2176 read the next time we hit handle_stop (Bug#1336).
2177
21782010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2179
2180 * lread.c (read1): Signal error if #s is not followed by paren.
2181
21822010-06-19 Chong Yidong <cyd@stupidchicken.com>
2183
2184 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2185
2186 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2187
21882010-06-15 Glenn Morris <rgm@gnu.org>
2189
2190 * editfns.c (Fbyte_to_string): Pacify compiler.
2191
e454a4a3
SM
21922010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2193
2194 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2195 Check `object's type before accessing its guts.
2196
c1b1acc2
DN
21972010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2198
2199 * s/usg5-4.h: Fix previous change.
2200 Suggested by Lawrence Mitchell <wence@gmx.li>
2201
657d4c0b
AS
22022010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2203
2204 * minibuf.c (Fall_completions): Add more checks.
2205
9b27fd9f
JB
22062010-06-08 Juanma Barranquero <lekktu@gmail.com>
2207
2208 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2209
a99ebb40
DN
22102010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2211
d7c5d87d
DN
2212 * lread.c (X_OK): Remove, unused.
2213
0263a941
DN
2214 * dispnew.c: Remove obsolete comment.
2215
a99ebb40
DN
2216 Remove INCLUDED_FCNTL.
2217 * xterm.c (INCLUDED_FCNTL):
2218 * callproc.c (INCLUDED_FCNTL):
2219 * alloc.c (INCLUDED_FCNTL):
2220 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2221 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2222
13b5221f
MR
22232010-06-07 Martin Rudalics <rudalics@gmx.at>
2224
2225 * window.c (Fselect_window): Move `record_buffer' up to the
2226 beginning of this function, so the buffer gets recorded
2227 even if the selected window does not change.
2228 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2229
5220357f
JB
22302010-06-07 Juanma Barranquero <lekktu@gmail.com>
2231
2232 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2233 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2234
3085237c
DN
22352010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2236
2237 Remove BSTRING related code, all platforms define it.
2238 * s/usg5-4.h (BSTRING): Remove definition.
2239 * s/template.h (BSTRING):
2240 * s/msdos.h (BSTRING):
2241 * s/ms-w32.h (BSTRING):
2242 * s/hpux10-20.h (BSTRING):
2243 * s/gnu-linux.h (BSTRING):
2244 * s/darwin.h (BSTRING):
2245 * s/cygwin.h (BSTRING):
2246 * s/bsd-common.h (BSTRING):
2247 * s/aix4-2.h (BSTRING): Likewise.
2248 * sysdep.c: Remove code depending on BSTRING not being defined.
2249
409f2919
JB
22502010-06-05 Juanma Barranquero <lekktu@gmail.com>
2251
2252 Remove obsolete macro BASE_LEADING_CODE_P.
2253 * character.h (BASE_LEADING_CODE_P): Remove.
2254 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2255 * buffer.c (Fset_buffer_multibyte):
2256 * indent.c (scan_for_column, compute_motion):
2257 * insdel.c (count_combining_before, count_combining_after):
2258 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2259
087fc47a
JB
22602010-06-04 Juanma Barranquero <lekktu@gmail.com>
2261
2262 Turn `directory-sep-char' into a noop.
2263
2264 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2265 (DIRECTORY_SEP): Define unconditionally.
2266
2267 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2268
2269 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2270 call dostounix_filename directly.
2271
2272 * fileio.c (CORRECT_DIR_SEPS): Remove.
2273 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2274 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2275 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2276 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2277
2278 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2279 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2280
0eb7675e
AS
22812010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2282
a628ad9d
JB
2283 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2284 (Bug#6346)
0eb7675e 2285
78edd3b7
JB
22862010-06-03 Juanma Barranquero <lekktu@gmail.com>
2287
2288 * ccl.c (Fccl_program_p): Fix typo in docstring.
2289
eb697db5
DN
22902010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2291
2292 Move UNEXEC definition to autoconf.
2293 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2294 * s/sol2-10.h (UNEXEC):
2295 * s/irix6-5.h (UNEXEC):
2296 * s/hpux10-20.h (UNEXEC):
2297 * s/gnu-linux.h (UNEXEC):
2298 * s/darwin.h (UNEXEC):
2299 * s/cygwin.h (UNEXEC):
2300 * s/bsd-common.h (UNEXEC):
2301 * s/aix4-2.h (UNEXEC):
2302 * m/alpha.h (UNEXEC): Likewise.
2303 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2304
aa3830c4
JB
23052010-06-03 Juanma Barranquero <lekktu@gmail.com>
2306
2307 Remove obsolete pre-unicode2 macros.
2308 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2309 * composite.c (composition_reseat_it):
2310 * data.c (Faset):
2311 * fns.c (Ffillarray):
2312 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2313 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2314
d234d13e
JL
23152010-06-03 Juri Linkov <juri@jurta.org>
2316
2317 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2318 (Fswitch_to_buffer): Remove unused variable `err'.
2319
0d4bcf4d
GM
23202010-06-03 Glenn Morris <rgm@gnu.org>
2321
e23dc1e2
GM
2322 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2323
05b09564
GM
2324 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2325 now that AH_BOTTOM does it.
2326
824e2978
GM
2327 * m/hp800.h (HAVE_ALLOCA):
2328 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2329
0d4bcf4d
GM
2330 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2331 Remove NOT_C_CODE tests, it is always true now.
2332
c55d2abf
DN
23332010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2334
08a494a3
DN
2335 Fix config.h includes.
2336 * xsettings.c:
2337 * xgselect.c:
2338 * nsterm.m:
2339 * nsselect.m:
2340 * nsimage.m:
2341 * nsfont.m:
2342 * nsfns.m:
2343 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2344 other files do.
2345
75934b1d
DN
2346 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2347
9f32a766
DN
2348 * s/sol2-6.h: Remove obsolete comments.
2349
c55d2abf
DN
2350 Remove unnecessary alloca.h includes.
2351 * keymap.c: Do not include alloca.h, config.h does that.
2352 * sysdep.c: Likewise. Do not define fwrite, not used.
2353
06ac62b4
SM
23542010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2355
2356 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2357 the HAVE_TERMIO where it belongs (bug#6149).
2358
1ab8293c
SM
23592010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2360
2361 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2362 of bug#6305).
2363
6dcfd253
EZ
23642010-05-30 Eli Zaretskii <eliz@gnu.org>
2365
2366 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2367 state is always cached (bug#6306).
2368
6d26bbb2
EZ
23692010-05-29 Eli Zaretskii <eliz@gnu.org>
2370
06fa4a23
EZ
2371 Fix cursor motion in bidi-reordered continued lines.
2372 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2373 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2374 over continuation lines in bidi-reordered buffers. Return
2375 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2376 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2377
f5783df3
MA
23782010-05-28 Michael Albinus <michael.albinus@gmx.de>
2379
2380 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2381
7d56b2dd
KH
23822010-05-28 Kenichi Handa <handa@m17n.org>
2383
2384 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2385 Don't sheck SPEC if it is nil.
2386 (font_list_entities): Call font_delete_unmatched if
b925d231 2387 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2388
e58d4ff7
GM
23892010-05-28 Glenn Morris <rgm@gnu.org>
2390
2391 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2392
f1a5d776
CY
23932010-05-27 Chong Yidong <cyd@stupidchicken.com>
2394
2395 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2396 whether to trash.
2397 (internal_delete_file, Frename_file): Callers changed.
2398 (delete_by_moving_to_trash): Doc fix.
2399 (Fdelete_directory_internal): Don't move to trash.
2400
2401 * callproc.c (delete_temp_file):
2402 * buffer.c (Fkill_buffer): Callers changed.
2403
2404 * lisp.h: Update prototype.
2405
f44a59e6
CY
24062010-05-27 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * xdisp.c (redisplay_window): After redisplay, check if point is
2409 still valid before setting it (Bug#6177).
2410
81ac4f35
GM
24112010-05-27 Glenn Morris <rgm@gnu.org>
2412
2413 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2414 Convert comments to Makefile format.
2415
2416 * Makefile.in (bootstrap-clean): No more Makefile.c.
2417
ccd89fb3
GM
24182010-05-26 Glenn Morris <rgm@gnu.org>
2419
90278cb6
GM
2420 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2421 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2422
ccd89fb3
GM
2423 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2424 Remove.
2425 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2426
b7050583
KH
24272010-05-26 Kenichi Handa <handa@m17n.org>
2428
2429 * composite.c (composition_compute_stop_pos): Fix condition for
2430 backward scanning.
2431
e5458003
GM
24322010-05-25 Glenn Morris <rgm@gnu.org>
2433
c345fe90
GM
2434 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2435 Move before TEMACS_LDFLAGS.
2436 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2437 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2438
2e0689ab
GM
2439 * Makefile.in (NOT_C_CODE): No longer define.
2440 (config.h): No longer include.
2441
8009a5e8
GM
2442 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2443 variables it may reference.
2444
e5458003
GM
2445 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2446 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2447
10f72a37
KH
24482010-05-25 Kenichi Handa <handa@m17n.org>
2449
2450 * dispextern.h (struct composition_it): New members rule_idx and
2451 charpos.
2452
2453 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2454 that the character positions of IT point the last character of the
2455 current grapheme cluster.
2456 (next_element_from_composition): Don't change character positions
2457 of IT.
2458 (append_composite_glyph): Set glyph->charpos to
2459 it->cmp_it.charpos.
2460
2461 * composite.c (autocmp_chars): Change the first argument to RULE,
2462 and try composition with RULE only.
2463 (composition_compute_stop_pos): Record the index number of the
2464 composition rule in CMP_IT->rule_idx.
2465 (composition_reseat_it): Call autocmp_chars repeatedly until the
2466 correct rule of the composition is found.
2467 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2468 is at the last character of the current grapheme cluster when
2469 CMP_IT->reversed_p is nonzero.
2470
171eda53 24712010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2472
171eda53
SM
2473 * editfns.c (Fbyte_to_string): New function.
2474
66a9f7f4
SM
24752010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2476
2477 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2478 Suggested by Masatake YAMATO <yamato@redhat.com>.
2479
d8c315d1
EZ
24802010-05-23 Eli Zaretskii <eliz@gnu.org>
2481
171eda53 2482 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2483
f5b416d2 24842010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2485
2486 * s/netbsd.h: If terminfo is found, use it in preference to
2487 termcap. (Bug#6190) [Backport from trunk]
2488
0416466c
EZ
24892010-05-19 Eli Zaretskii <eliz@gnu.org>
2490
11117830 2491 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2492
2493 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2494 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2495 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2496 and maxpos members instead of start.pos and end.pos, respectively.
2497
2498 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2499 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2500 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2501 (try_window_reusing_current_matrix, try_window_id):
2502 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2503 (init_from_display_pos, init_iterator): Use EMACS_INT for
2504 character and byte positions.
66a9f7f4 2505 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2506 arguments for minimum and maximum buffer positions seen by
2507 display_line for this row. Don't use iterator to find the
2508 position following the maximum one; instead, increment the
11117830
EZ
2509 position found by display_line directly. Fix logic; eol_pos
2510 should be tested before the rest. Handle the case of characters
2511 delivered from display vector (bug#6036). Fix tests related to
2512 it->method. Handle the truncated_on_right_p rows.
2513 (RECORD_MAX_MIN_POS): New macro.
2514 (display_line): Use it to record the minimum and maximum buffer
2515 positions for glyphs in the row being assembled. Record the
2516 position of the newline that terminates the line. If word wrap is
2517 in effect, restore minimum and maximum positions seen up to the
2518 wrap point, when iterator returns to it.
2519 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2520 row and cursor not already at point. Restore original pre-bidi
2521 code for unidirectional buffers.
d36fe237
EZ
2522
2523 * dispnew.c (increment_row_positions, check_matrix_invariants):
2524 Increment and check row->start.pos and row->end.pos, in addition
2525 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2526
11117830
EZ
2527 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2528 Display truncated_on_left_p and truncated_on_right_p flags.
2529 Formatting fixes.
2530 (pmtxrows): Display the ordinal number of each row. Don't display
2531 rows beyond the last one.
2532
2533 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2534 it is not copied by bidi_copy_it.
2535
6e83d800
EZ
25362010-05-22 Eli Zaretskii <eliz@gnu.org>
2537
2538 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2539 (Bug#6237)
2540
110683ad
CY
25412010-05-22 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * image.c (Fimage_flush): Rename from image-refresh.
2544
98fe5161
CY
25452010-05-21 Chong Yidong <cyd@stupidchicken.com>
2546
2547 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2548 just one window.
2549
2550 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2551 (clear_image_cache): If the number of cached images is unusually
2552 large, decrease the cache eviction delay (Bug#6230).
2553
e8752c66
GM
25542010-05-21 Glenn Morris <rgm@gnu.org>
2555
66dbf213
GM
2556 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2557 Move these rules to ns.mk.
2558 * ns.mk: New file.
2559
04384b2d
GM
2560 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2561
e8752c66
GM
2562 * Makefile.in (CANNOT_DUMP): New, set by configure.
2563 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2564
2e2bbddb
JL
25652010-05-20 Juri Linkov <juri@jurta.org>
2566
2567 * fileio.c (Fdelete_file): Change interative spec to use
2568 `read-file-name' like in `find-file-read-args' where the default
2569 value is `default-directory' instead of `buffer-file-name'.
2570 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2571
31c4aaf6
KR
25722010-05-20 Kevin Ryde <user42@zip.com.au>
2573
2574 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2575 (Voverriding_terminal_local_map, Vsystem_key_alist)
2576 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2577
9d5cf9b6
GM
25782010-05-20 Glenn Morris <rgm@gnu.org>
2579
2580 * Makefile.in (DEPDIR): New constant.
2581 (DEPFLAGS): Set with configure, not cpp.
2582 (MKDEPDIR): New, set by configure.
2583 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2584 (clean): Use $DEPDIR.
2585 (deps_frag): Include from configure.
2586 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2587 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2588
ead6f8f5
EZ
2589 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2590 reallocation of the cache. (Bug#6210)
2591
7f34aec3
GM
25922010-05-19 Glenn Morris <rgm@gnu.org>
2593
d494e8f2
GM
2594 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2595
c1d0dcfd
GM
2596 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2597 (GNULIB_VAR): Remove.
2598 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2599
2600 * m/ibms390x.h (LINKER):
2601 * m/macppc.h (LINKER) [GNU_LINUX]:
2602 * s/aix4-2.h (ORDINARY_LINK):
2603 * s/cygwin.h (LINKER):
2604 * s/darwin.h (ORDINARY_LINK):
2605 * s/gnu.h (ORDINARY_LINK):
2606 * s/netbsd.h (LINKER):
2607 * s/usg5-4.h (ORDINARY_LINK):
2608 Move to configure.
2609
7f34aec3
GM
2610 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2611
754790b6
CY
26122010-05-18 Chong Yidong <cyd@stupidchicken.com>
2613
2614 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2615 prevent stack overflow if number of arguments is too large
2616 (Bug#6214).
2617
161e44d1
JB
26182010-05-18 Juanma Barranquero <lekktu@gmail.com>
2619
2620 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2621
be4ff9da
GM
26222010-05-18 Glenn Morris <rgm@gnu.org>
2623
9539dc5d
GM
2624 * s/gnu-linux.h: Combine two conditionals.
2625
2626 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2627 $(POST_ALLOC_OBJ).
2628
40dc6bf4
GM
2629 * Makefile.in (RALLOC_OBJ): New, set by configure.
2630 (rallocobj): Replace with the previous variable.
2631 (otherobj): Use $RALLOC_OBJ.
2632
2633 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2634 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2635
be4ff9da
GM
2636 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2637 (gmallocobj, vmlimitobj): Replace with previous two variables.
2638 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2639
16455a85
GM
26402010-05-17 Glenn Morris <rgm@gnu.org>
2641
2642 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2643 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2644
5fdb7468
GM
26452010-05-16 Glenn Morris <rgm@gnu.org>
2646
7ca1f3f9
GM
2647 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2648
7541dad5
GM
2649 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2650
da53fab9
GM
2651 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2652 trailing "/".
2653
b02a6645
GM
2654 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2655 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2656
8877ca0f
GM
2657 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2658 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2659 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2660 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2661 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2662
5fdb7468
GM
2663 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2664 Remove ${STARTFLAGS}, nothing ever sets it.
2665
95adb4b1
DN
26662010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2667
2668 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2669
676b6304
GM
26702010-05-16 Glenn Morris <rgm@gnu.org>
2671
9beab9ce
GM
2672 * Makefile.in (LIBX_BASE): Always define.
2673
8a95f0e7
GM
2674 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2675
676b6304
GM
2676 * Makefile.in (LIBXT): Always define.
2677
6e546d18
GM
26782010-05-15 Glenn Morris <rgm@gnu.org>
2679
4235ca47 2680 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2681
6e546d18
GM
2682 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2683 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2684
8c5ff6dd
KR
26852010-05-15 Ken Raeburn <raeburn@raeburn.org>
2686
560bb7ae 2687 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2688 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2689
8b4eb796
KR
2690 * emacs.c (main): Initialize initial-environment and
2691 process-environment before generating from env, not after.
2692
8c5ff6dd
KR
2693 Handle --version reasonably in CANNOT_DUMP configuration.
2694 * emacs.c (emacs_version, emacs_copyright): New string variables.
2695 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2696 (syms_of_emacs): Defvar them, and initialize them from the C
2697 string variables.
2698 (main): If initialization hasn't been done, print initial version
2699 info from the C strings, instead of starting an interactive session.
2700
dbd3f723
EZ
27012010-05-15 Eli Zaretskii <eliz@gnu.org>
2702
d20e1419
EZ
2703 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2704 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2705 (bidi_paragraph_init): Remove redundant assertion that we are at
2706 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2707
2708 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2709 (syms_of_xdisp): Defsubr it.
2710
d36fe237
EZ
2711 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2712
dbd3f723
EZ
2713 * Makefile.in: Fix MSDOS-related comments.
2714
02be533b
GM
27152010-05-15 Glenn Morris <rgm@gnu.org>
2716
1a82cca9
GM
2717 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2718 (really-lwlib, really-oldXMenu): Always define.
2719 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2720
3df7b338
GM
2721 * Makefile.in: Simplify cpp conditional.
2722
2b5f541b
GM
2723 * Makefile.in (${ns_appdir}): Simplify using umask.
2724
02be533b
GM
2725 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2726
4e2db1fe
SM
27272010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2728
2729 * eval.c (specbind): Remove left-over duplicate test.
2730 Disallow let-binding frame-local vars. Add comment.
2731
4b292a22
EZ
27322010-05-14 Eli Zaretskii <eliz@gnu.org>
2733
2fe72643 2734 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2735 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2736 (bidi_init_it): Call it.
2737 (bidi_cache_iterator_state): Enlarge the cache if needed.
2738
4e2db1fe 2739 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2740 bidi_get_next_char_visually. All callers changed.
2741
82ebc97b
KH
27422010-05-14 Kenichi Handa <handa@m17n.org>
2743
2744 * dispextern.h (struct composition_it): New member reversed_p.
2745
2746 * composite.c (composition_compute_stop_pos): Search backward if
2747 ENDPOS < CHARPOS.
2748 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2749 Set CMP_IT->reversed_p.
b4b6e17e 2750 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2751
4e2db1fe
SM
2752 * xdisp.c (set_iterator_to_next):
2753 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2754 scanning backward. Call composition_compute_stop_pos if scan
2755 direction is changed.
2756 (next_element_from_buffer): Call composition_compute_stop_pos with
2757 negative ENDPOS if we are scanning backward.
2758 (next_element_from_composition): Pay attention to
2759 IT->cmp_it.reversed_p.
2760
0e5d7800
KH
27612010-05-14 Kenichi Handa <handa@m17n.org>
2762
560bb7ae 2763 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2764
cb027b32
GM
27652010-05-14 Glenn Morris <rgm@gnu.org>
2766
177b0288
GM
2767 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2768
fbc00890
GM
2769 * Makefile.in (mktime, X11, register): Move undefs to configure.
2770
f14d1dfd
GM
2771 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2772 (MSDOS_X_OBJ): New variable.
2773 (MSDOS_SUPPORT_REAL): New constant.
2774 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2775 (obj): Use MSDOS_X_OBJ.
2776 (lisp): Use MSDOS_SUPPORT as a variable.
2777
11842bd8
GM
2778 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2779 (GPM_MOUSE_SUPPORT): Now it's a constant.
2780 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2781 not cpp.
2782
489d31a4 2783 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2784 (ns_appresdir): Remove, unused.
e20f1f07 2785
489d31a4
GM
2786 * Makefile.in (SHELL): Move outside cpp section.
2787
cb027b32
GM
2788 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2789
5a903aa9
GM
27902010-05-13 Glenn Morris <rgm@gnu.org>
2791
3369c79f
GM
2792 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2793 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2794
d5e982a6
GM
2795 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2796 HAVE_WINDOW_SYSTEM must be too.
2797
6192e163
GM
2798 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2799 (lisp): Remove WINNT_SUPPORT.
2800
472c5d6b
GM
2801 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2802 Let configure set these variables (to empty) in this case as well.
2803
0116466b
GM
2804 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2805 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2806
5a903aa9
GM
2807 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2808 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2809 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2810 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2811 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2812 the values output by configure.
5a903aa9
GM
2813 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2814
1a0d7c06
GM
28152010-05-12 Glenn Morris <rgm@gnu.org>
2816
b5457f14
GM
2817 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2818 (LINKER_WAS_SPECIFIED): Remove.
2819
1a0d7c06
GM
2820 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2821 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2822 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2823 * s/cygwin.h (LIB_GCC):
2824 * s/freebsd.h (LIB_GCC):
2825 * s/gnu-linux.h (LIB_GCC):
2826 * s/msdos.h (LIB_GCC):
2827 * s/netbsd.h (LIB_GCC):
2828 Move to configure.
2829
3ffd4615 28302010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2831
2832 * ftfont.c: Fix incorrect parentheses of #if condition for
2833 definining M17N_FLT_USE_NEW_FEATURE.
2834
acddf8ae
GM
28352010-05-11 Glenn Morris <rgm@gnu.org>
2836
2837 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2838 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2839
ae5e04fa
EZ
28402010-05-10 Eli Zaretskii <eliz@gnu.org>
2841
2842 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2843 unibyte buffers. See
2844 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2845
7490175b
GM
28462010-05-10 Glenn Morris <rgm@gnu.org>
2847
97efb629
GM
2848 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2849 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2850 (LIBES): Use LIBS_SYSTEM as a variable.
2851 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2852 * s/aix4-2.h (LIBS_SYSTEM):
2853 * s/freebsd.h (LIBS_SYSTEM):
2854 * s/hpux10-20.h (LIBS_SYSTEM):
2855 * s/sol2-6.h (LIBS_SYSTEM):
2856 * s/unixware.h (LIBS_SYSTEM):
2857 Move to configure.
2858
7490175b
GM
2859 * s/aix4-2.h (MAIL_USE_LOCKF):
2860 * s/bsd-common.h (MAIL_USE_FLOCK):
2861 * s/darwin.h (MAIL_USE_FLOCK):
2862 * s/gnu-linux.h (MAIL_USE_FLOCK):
2863 * s/irix6-5.h (MAIL_USE_FLOCK):
2864 * s/template.h (MAIL_USE_FLOCK):
2865 Move to configure.
2866
0235128c 28672010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2868
2869 * Version 23.2 released.
2870
0235128c 28712010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2872
2873 * composite.c (autocmp_chars): Save point as marker before calling
2874 auto-composition-function (Bug#5984).
2875
2876 * lisp.h (restore_point_unwind): Add prototype.
2877
2878 * fileio.c (restore_point_unwind): Remove static attribute.
2879
0235128c 28802010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2881
2882 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2883 new feature of libotf and m17n-flt.
0235128c
SM
2884 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2885 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2886 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2887 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2888 that OUT is NULL. Use OTF_drive_gsub_with_log and
2889 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2890 OTF_drive_gpos.
2891 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2892 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2893 Setup mflt_enable_new_feature and mflt_try_otf.
2894
4721152c
J
28952010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2896
2897 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2898
2899 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2900 box and toolbar (Bug #6139).
2901 (xg_create_tool_bar): Remove comment (Bug #6139).
2902 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2903 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2904
ee0a16cf
JB
29052010-05-08 Juanma Barranquero <lekktu@gmail.com>
2906
2907 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2908 Update dependencies.
2909
96d79611
EZ
29102010-05-08 Eli Zaretskii <eliz@gnu.org>
2911
2912 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2913 R2L lines.
2914
40c17879
GM
29152010-05-08 Glenn Morris <rgm@gnu.org>
2916
7b42b29f
GM
2917 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2918
40c17879
GM
2919 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2920 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2921 (termcapobj): Replace with TERMCAP_OBJ.
2922 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2923 (LIBES): Use LIBS_TERMCAP as a variable.
2924
2925 * s/freebsd.h (osreldate.h): No longer include, since this file
2926 does not use __FreeBSD_version any more.
2927
2928 * s/aix4-2.h (TERMINFO):
2929 * s/cygwin.h (TERMINFO):
2930 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2931 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2932 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2933 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2934 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2935 * s/irix6-5.h (TERMINFO):
2936 * s/netbsd.h (LIBS_TERMCAP):
2937 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2938 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2939 * s/usg5-4.h (TERMINFO):
2940 Move to configure.
2941
94b612ad
SM
29422010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2943
2944 * eval.c (unbind_to): Don't unbind a local binding into the global
2945 binding when the local binding disappeared. Inversely, don't unbind
2946 a global binding into a newly created local binding.
2947 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2948 can specify the frame to use, when applicable. Adjust callers.
2949
15e12598 29502010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2951 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2952
2953 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2954
f724825e
EZ
29552010-05-07 Eli Zaretskii <eliz@gnu.org>
2956
5cba3209
EZ
2957 * w32fns.c: Include w32.h.
2958 (Fw32_shell_execute): Decode the error message before passing it
2959 to `error'. (Bug#6126)
2960
d16bdfc3
EZ
2961 * msdos.c (dos_set_window_size):
2962 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2963 instead of `XSYMBOL (foo)->value'.
2964
59d93e87
EZ
29652010-05-07 Eli Zaretskii <eliz@gnu.org>
2966
9fdec8bc
EZ
2967 Fix the MS-DOS build, broken by autoconfiscation.
2968
2969 * Makefile.in: Don't use Make-style comments past the "start of
2970 cpp stuff" line.
2971 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2972
2973 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2974 edited directly by msdos/sed1v2.inp).
f724825e 2975
2f86b22b
GM
29762010-05-07 Glenn Morris <rgm@gnu.org>
2977
2978 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2979 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2980 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2981 move out of cpp section.
2982 * s/freebsd.h (LD_SWITCH_SYSTEM):
2983 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2984 * s/netbsd.h (LD_SWITCH_SYSTEM):
2985 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2986
49ebbd65
DN
29872010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2988
2989 Define LIB_STANDARD and START_FILES using autoconf.
2990 * s/usg5-4.h (LIB_STANDARD):
2991 * s/netbsd.h (START_FILES):
2992 * s/irix6-5.h (LIB_STANDARD):
2993 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2994 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2995 * s/freebsd.h (START_FILES):
2996 * s/darwin.h (START_FILES):
2997 * s/cygwin.h (START_FILES):
2998 * s/aix4-2.h (LIB_STANDARD):
2999 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3000 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3001 autoconf, not cpp.
3002
d43c06d6
DN
30032010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3004
28823648
DN
3005 Remove NEED_BSDTTY and NEED_UNISTD_H.
3006 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3007 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3008 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3009 <sys/ptyio.h> and <unistd.h>.
3010
aca00430
DN
3011 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3012
d43c06d6
DN
3013 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3014 * s/gnu.h (START_FILES): Remove empty definition.
3015
3e56b11d
JD
30162010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3017
3018 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3019
e3cf0cde
GM
30202010-05-06 Glenn Morris <rgm@gnu.org>
3021
3022 * Makefile.in (CPP, LN_S): Remove unused variables.
3023
774b9a60
SM
30242010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3025
3026 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3027
4ab92842
LM
30282010-05-05 Lawrence Mitchell <wence@gmx.li>
3029
3030 * m/sparc.h: Fix typo in earlier change.
3031
178f2507
SM
30322010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3033
3034 Misc tweaks.
3035 * eval.c (Fdefvaralias): Remove unintended nested if.
3036 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3037
80f00217 30382010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3039
3040 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3041
ef03a4e6
DN
30422010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3043
58eb6cf0
DN
3044 Remove BSD_PGRPS.
3045 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3046 * s/gnu-linux.h (BSD_PGRPS): Remove.
3047 * term.c (dissociate_if_controlling_tty):
3048 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3049 (init_sys_modes, reset_sys_modes):
3050 * emacs.c (main):
3051 * callproc.c (Fcall_process, child_setup): Remove code depending
3052 on BSD_PGRPS.
3053
ef03a4e6
DN
3054 Remove POSIX_SIGNALS.
3055 * s/usg5-4.h (POSIX_SIGNALS):
3056 * s/netbsd.h (POSIX_SIGNALS):
3057 * s/msdos.h (POSIX_SIGNALS):
3058 * s/ms-w32.h (POSIX_SIGNALS):
3059 * s/hpux11.h (POSIX_SIGNALS):
3060 * s/gnu.h (POSIX_SIGNALS):
3061 * s/gnu-linux.h (POSIX_SIGNALS):
3062 * s/freebsd.h (POSIX_SIGNALS):
3063 * s/darwin.h (POSIX_SIGNALS):
3064 * s/cygwin.h (POSIX_SIGNALS):
3065 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3066 * s/unixware.h:
3067 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3068 * process.c (create_process):
3069 * syssignal.h:
3070 * sysdep.c (wait_for_termination, init_signals):
3071 * process.c (create_process):
3072 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3073 remove all code that assumes the contrary.
3074
49628785
GM
30752010-05-04 Glenn Morris <rgm@gnu.org>
3076
27a2cdfc
GM
3077 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3078 variable.
3079 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3080 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3081 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3082 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3083 LD_SWITCH_SYSTEM_tmp.
3084 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3085 New variables, set by configure.
3086
eb21eab5
GM
3087 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3088 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3089 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3090 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3091 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3092
49628785
GM
3093 * s/aix4-2.h (C_SWITCH_SYSTEM):
3094 * m/alpha.h (C_SWITCH_MACHINE):
3095 Move to configure.in.
3096 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3097 New variables, set by configure.
3098 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3099 $c_switch_machine and $c_switch_system.
3100
7dff330b
DN
31012010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3102
3103 * s/hpux10-20.h (LIB_STANDARD): New definition.
3104 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3105 on it, not used anymore.
3106
53967e09
CY
31072010-05-03 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * eval.c (internal_condition_case_n): Rename from
3110 internal_condition_case_2.
3111 (internal_condition_case_2): New function.
3112
3113 * xdisp.c (safe_call): Use internal_condition_case_n.
3114
3115 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3116 (internal_delete_file, Frename_file): Callers changed.
3117
3118 * buffer.c (Fkill_buffer):
3119 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3120
3121 * lisp.h: Update prototypes.
3122
3dee6fdb
GM
31232010-05-03 Glenn Morris <rgm@gnu.org>
3124
3125 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3126 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3127 (LIBXT): Set with configure, not cpp.
3128 (LIBX): Remove.
3129 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3130
a101e0fb
DN
31312010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3132
3133 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3134 The FreeBSD is not needed, the default works, Solaris version is
3135 not needed, and the remaining case is not supported by configure.
3136
f63d0028
JD
31372010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3138
3139 * xsmfns.c (CHDIR_OPT): New define.
3140 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3141 restarting emacs.
3142
3143 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3144 shut_down_emacs.
3145
3146 * emacs.c (USAGE1): Mention --chdir.
3147 (main): Handle --chdir.
3148 (standard_args): Add --chdir.
3149 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3150 #5552).
3151
e4814a9f
DN
31522010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3153
cd03c74a
DN
3154 Remove LD_SWITCH_MACHINE.
3155 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3156 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3157
c3a398a1
DN
3158 Clean up IRIX code.
3159 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3160 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3161
87e7285c
DN
3162 Clean up AIX code.
3163 * m/ibmrs6000.inp: Remove file, unused.
3164 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3165 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3166 definition ...
3167 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3168
80f00217
JB
3169 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3170 unused.
e4814a9f 3171
59ca28de
EZ
31722010-05-01 Eli Zaretskii <eliz@gnu.org>
3173
197daef4
EZ
3174 Emulate POSIX_SIGNALS on MS-Windows.
3175
3176 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3177 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3178
3179 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3180 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3181 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3182
80f00217
JB
3183 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3184 New stubs.
197daef4 3185
af7c7572
EZ
3186 Miscellaneous fixes of bidi display.
3187
59ca28de
EZ
3188 * xdisp.c (find_row_end): New function, refactored from display_line.
3189 (display_line): Use it.
017ea819
EZ
3190 (extend_face_to_end_of_line): In almost-filled rows, extend only
3191 if the row is R2L and not continued.
166e930d 3192 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3193 Preserve overlay and string info in row->end.
166e930d
EZ
3194 (insert_left_trunc_glyphs): Support addition of left truncation
3195 glyphs to R2L rows.
b47e0dcf 3196 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3197 glyph between adjacent windows. Fix a crash when a display string
3198 is continued to the next line. Don't return zero if cursor was
3199 found by `cursor' property of a display string.
b47e0dcf
EZ
3200 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3201 test for that explicitly.
59ca28de 3202
7acac9f4
GM
32032010-05-01 Glenn Morris <rgm@gnu.org>
3204
3205 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3206 for clarity.
3207 (OTHER_OBJ): Remove.
3208 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3209 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3210
45841e65
KK
32112010-05-01 Karel Klíč <kklic@redhat.com>
3212
3213 * fileio.c (Ffile_selinux_context): Context functions may return null.
3214
afc61943
DN
32152010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3216
80f00217 3217 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3218
5a1bb006
GM
32192010-04-30 Glenn Morris <rgm@gnu.org>
3220
3221 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3222 (OTHER_OBJ): Define as a separate variable, for clarity.
3223
210af043
J
32242010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3225
3226 * xsettings.c: include limits.h and update file comment.
3227
0a7df391
GM
32282010-04-30 Glenn Morris <rgm@gnu.org>
3229
d5096f16
GM
3230 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3231 Set with configure, not cpp.
3232 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3233
7eb1ac33
GM
3234 * Makefile.in (mallocobj): Remove.
3235 (otherobj): Simplify using @OTHER_OBJ@.
3236
517d086b
GM
3237 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3238 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3239 Don't bother making nsgui.h dependency platform-specific.
3240
0a7df391
GM
3241 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3242
d6d23852
SM
32432010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3244
d2630aef
SM
3245 * process.c (read_process_output, exec_sentinel): Don't burp if the
3246 sentinel/filter kills the current buffer (bug#6060).
3247
f9dddf52 3248 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3249 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3250 Remove unused var `args'.
3251 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3252 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3253 * doc.c (store_function_docstring): Use XSETCAR.
3254
f1e3642a
GM
32552010-04-28 Glenn Morris <rgm@gnu.org>
3256
faf535f8
GM
3257 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3258 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3259
c40f9449
GM
3260 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3261
658f86ca
GM
3262 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3263 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3264
bc0b5f61
GM
3265 * Makefile.in (FONT_OBJ): New, set by configure.
3266 (FONT_DRIVERS): Use $FONT_OBJ.
3267
294c50a0
GM
3268 * Makefile.in (LIBXMU): Set with configure, not cpp.
3269 * s/aix4-2.h (LIBXMU):
3270 * s/hpux10-20.h (LIBXMU):
3271 Remove definition, now set in configure.
3272
e6ec4e99
GM
3273 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3274
f1e3642a
GM
3275 * m/amdx86-64.h [i386]: Move this test to configure.in.
3276
c6ea2936
GM
32772010-04-27 Glenn Morris <rgm@gnu.org>
3278
8fdac2c3
GM
3279 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3280 * s/unixware.h (NEED_LIBW): Remove definition.
3281
986fb647
GM
3282 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3283 (TOOLKIT_LIBW): New, set by configure.
3284 (@X_TOOLKIT_TYPE@): No longer define it.
3285
c6ea2936
GM
3286 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3287 (MOTIF_LIBW): Set with configure, not cpp.
3288 * s/aix4-2.h (LIB_MOTIF):
3289 * s/gnu-linux.h (LIB_MOTIF):
3290 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3291
aaa36002
DN
32922010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3293
3294 Reduce CPP usage.
3295 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3296 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3297 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3298 definitions and undefs. Inline definitions in the only user.
3299 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3300
b678dd8b
GM
33012010-04-27 Glenn Morris <rgm@gnu.org>
3302
76cda504
GM
3303 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3304 since the defaults (set by the system file) are fine in most cases.
3305 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3306 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3307 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3308 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3309 Remove definitions, since they are set correctly in s/gnu-linux.h.
3310 * s/freebsd.h (START_FILES, LIB_STANDARD):
3311 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3312 * s/hpux10-20.h (START_FILES):
3313 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3314 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3315
b678dd8b
GM
3316 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3317 (MOTIF_LIBW): Use $LIBXP.
3318 (otherobj): Use $WIDGET_OBJ.
3319
9452ded1
DN
33202010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3321
7e10844c
DN
3322 * Makefile.in (LIBS_MACHINE): Remove, unused.
3323
9452ded1
DN
3324 Use autoconf instead of cpp for LIB_MATH.
3325 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3326 * s/cygwin.h (LIB_MATH): Likewise.
3327 * Makefile.in (LIB_MATH): Do not define with cpp.
3328 (LIBES): Use autoconf for LIB_MATH.
3329
fcebfc6a
KH
33302010-04-26 Kenichi Handa <handa@m17n.org>
3331
3332 * composite.c (Ffind_composition_internal): Fix the return value
3333 for an automatic composition.
3334
39e2ad1b
DN
33352010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3336
3337 Remove all NO_ARG_ARRAY uses.
3338 * fns.c (concat2, concat3, nconc2):
3339 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3340 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3341 * m/xtensa.h (NO_ARG_ARRAY):
3342 * m/template.h (NO_ARG_ARRAY):
3343 * m/sparc.h (NO_ARG_ARRAY):
3344 * m/sh3.h (NO_ARG_ARRAY):
3345 * m/mips.h (NO_ARG_ARRAY):
3346 * m/macppc.h (NO_ARG_ARRAY):
3347 * m/iris4d.h (NO_ARG_ARRAY):
3348 * m/intel386.h (NO_ARG_ARRAY):
3349 * m/ibms390x.h (NO_ARG_ARRAY):
3350 * m/ibms390.h (NO_ARG_ARRAY):
3351 * m/ibmrs6000.h (NO_ARG_ARRAY):
3352 * m/ia64.h (NO_ARG_ARRAY):
3353 * m/hp800.h (NO_ARG_ARRAY):
3354 * m/arm.h (NO_ARG_ARRAY):
3355 * m/amdx86-64.h (NO_ARG_ARRAY):
3356 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3357
adf4f59c
EZ
33582010-04-25 Eli Zaretskii <eliz@gnu.org>
3359
6bdf5d65
EZ
3360 * xdisp.c (display_line): Don't assume 2nd call to
3361 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3362 (iterate_out_of_display_property): New function, body from pop_it.
3363 (pop_it): Use it.
adf4f59c 3364
dfbbda83
GM
33652010-04-24 Glenn Morris <rgm@gnu.org>
3366
3367 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3368 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3369 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3370 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3371
2d4018aa
EZ
33722010-04-24 Eli Zaretskii <eliz@gnu.org>
3373
a49884a6
EZ
3374 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3375 use `get_next_display_element' and `set_iterator_to_next' to
3376 advance to the next character, when looking for the character that
3377 begins the next row.
3378
76db6fcc 3379 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3380 definition of "struct Lisp_Symbol".
3381
70eab5c1
GM
33822010-04-24 Glenn Morris <rgm@gnu.org>
3383
3384 * Makefile.in (CRT_DIR): New variable, set by configure.
3385 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3386 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3387
1ad4cc3d
DN
33882010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3389
e769f484
DN
3390 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3391
4196ff33
DN
3392 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3393
879b0ee4
DN
3394 Remove redundant flags.
3395 * s/freebsd.h (C_SWITCH_SYSTEM):
3396 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3397 * s/netbsd.h (C_SWITCH_SYSTEM):
3398 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3399 of these.
3400
03cbbcb8
DN
3401 Simplify m/intel386.h.
3402 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3403 user: ecrt0.c.
3404 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3405 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3406 the only user: s/unixware.h.
3407 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3408 from m/intel386.h.
3409 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3410 moved here from m/intel386.h.
3411
1ad4cc3d
DN
3412 * m/mips.h: Remove #if 0 code.
3413
8785b888
EZ
34142010-04-23 Eli Zaretskii <eliz@gnu.org>
3415
728588cc
EZ
3416 Fix display of composed characters from L2R scripts in bidi buffers.
3417 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3418 After advancing IT past the composition, resync the bidi iterator
3419 with IT's position. (Bug#5977)
3420
a63f80b4
DN
34212010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3422
3423 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3424 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3425
ff5dec5c
SM
34262010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3427
3428 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3429
8785b888
EZ
34302010-04-23 Eli Zaretskii <eliz@gnu.org>
3431
58ccf243 3432 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3433 * xdisp.c (pop_it): When the stack is popped after displaying
3434 from a string, bidi-iterate to exit from the text portion covered
3435 by the `display' property or overlay. (Bug#5988, bug#5920)
3436
feeb1604
DN
34372010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3438
8e324eb6
DN
3439 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3440 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3441
809fcaba
DN
3442 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3443 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3444
ed710380
DN
3445 Simplify STARTFILES definition.
3446 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3447 relying on Makefile.in to define it.
3448 * s/cygwin.h (START_FILES): Likewise.
3449 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3450
feeb1604
DN
3451 Clean up Solaris code.
3452 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3453 (LIB_MOTIF): Remove, configure takes care of this.
3454 (NOT_USING_MOTIF): Remove, unused.
3455 * xrdb.c: Remove #if 0-ed #include.
3456 (SYSV): Remove conditional for old SysV.
3457 * sysdep.c (closedir): Remove conditional code for Solaris,
3458 Solaris has closedir.
3459
a0d0b563
JD
34602010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3461
3462 * xsettings.c (read_and_apply_settings): Check if current_font is
3463 NULL before strcmp (Bug#6001).
3464
56bae7c7
DN
34652010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3466
3467 Clean up HP-UX files.
3468 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3469 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3470 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3471 * s/hpux10-20.h: ... to the only user, here.
3472
372b7a95
EZ
34732010-04-21 Eli Zaretskii <eliz@gnu.org>
3474
3475 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3476 use buffer-local values of paragraph-start and paragraph-separate.
3477 <paragraph_start_re, paragraph_separate_re>: Rename from
3478 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3479 (Bug#5992)
3480
f904c0f9
JD
34812010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3482
3483 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3484 current_tool_bar_style are new.
3485 (store_config_changed_event): Rename from store_font_changed_event.
3486 (XSETTINGS_TOOL_BAR_STYLE): New define.
3487 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3488 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3489 HAVE_XFT.
3490 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3491 store_config_changed_event.
f904c0f9
JD
3492 (parse_settings): Rename from parse_xft_settings. Read
3493 non-xft xsettings outside #ifdef HAVE_XFT.
3494 (read_settings): Renamed from read_xft_settings.
3495 (apply_xft_settings): Take current settings as parameter. Do not
3496 call read_(xft)_settings.
3497 (read_and_apply_settings): New function.
3498 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3499 read_and_apply_settings if there are settings to be read.
3500 (init_xsettings): Renamed from init_xfd_settings.
3501 Call read_and_apply_settings unconditionally.
3502 (xsettings_initialize): Call init_xsettings.
3503 (Ftool_bar_get_system_style): New function.
3504 (syms_of_xsettings): Define Qmonospace_font_name and
3505 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3506 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3507 dynamic-setting.
31a01b90 3508 Move misplaced HAVE_GCONF
f904c0f9
JD
3509
3510 * xsettings.h (Ftool_bar_get_system_style): Declare.
3511
3512 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3513 Qtext, Qboth, Qboth_horiz are new.
3514 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3515 Vtool_bar_style, tool_bar_max_label_size.
3516
3517 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3518
3519 * keyboard.c: QClabel is new.
3520 (parse_tool_bar_item): Take out QClabel from tool bar items.
3521 Try to construct a label if ther is no QClabel.
3522 (syms_of_keyboard): Intern :label as QClabel.
3523
3524 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3525 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3526 New.
3527
3528 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3529 dynamic-setting.el.
3530
3531 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3532 (xg_make_tool_item, xg_show_toolbar_item): New function.
3533 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3534 Call xg_make_tool_item to make a tool bar item.
3535 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3536
3537 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3538 into account for toolbars.
3539
c632dfda
JD
35402010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3541
3542 * data.c (make_blv): Declarations before code (Bug#5993).
3543
10efe302
GM
35442010-04-21 Glenn Morris <rgm@gnu.org>
3545
3546 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3547 Define using autoconf, not cpp.
3548 (LIBXSM): New variable, set by autoconf.
3549 (LIBXT): Use $LIBXSM.
3550
4285ac5a
DN
35512010-04-21 Dan Nicolaescu <local_user@dannlt>
3552
3ec759e7
DN
3553 Remove NOMULTIPLEJOBS, unused.
3554 * s/template.h (NOMULTIPLEJOBS):
3555 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3556
4285ac5a
DN
3557 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3558 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3559 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3560 detects -znocombreloc and passes it to the linker
3561 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3562
2807228d
GM
35632010-04-21 Glenn Morris <rgm@gnu.org>
3564
3565 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3566
574c05e2
KK
35672010-04-21 Karel Klíč <kklic@redhat.com>
3568
3569 * Makefile.in (LIBSELINUX_LIBS): New.
3570 (LIBES): Add $LIBSELINUX_LIBS.
3571 * eval.c, lisp.h (call7): New function.
3572 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3573 (Ffile_selinux_context, Fset_file_selinux_context):
3574 New functions.
3575 (Fcopy_file): New parameter preserve-selinux-context.
3576 (Frename_file): Preserve selinux context when renaming by copy-file.
3577
91eac4bb 35782010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3579 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3580
50426a04
JB
3581 Don't depend on cm.c or termcap.c on Windows, use stubs.
3582 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3583 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3584 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3585 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3586 (sys_tputs, sys_tgetstr): New stubs.
3587 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3588 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3589
938efb77
JB
35902010-04-20 Juanma Barranquero <lekktu@gmail.com>
3591
3592 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3593
b4bf28b7
SM
35942010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3595
8b1e1112
SM
3596 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3597 Just signal a warning rather than an error when inside a let.
3598 (Fmake_variable_frame_local): Add the same test.
3599
933ac235
SM
3600 * font.c (syms_of_font): Make the style table vars read-only.
3601
b4bf28b7
SM
3602 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3603 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3604
3605 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3606
93d68d0c
EZ
36072010-04-20 Eli Zaretskii <eliz@gnu.org>
3608
3609 Fix R2L paragraph display on TTY.
3610
3611 * xdisp.c (unproduce_glyphs): New function.
3612 (display_line): Use it when produced glyphs are discarded from R2L
3613 glyph rows.
3614 (append_composite_glyph): In R2L rows, prepend the glyph rather
3615 than appending it.
3616
3617 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3618 rather than append it. Set up the resolved_level and bidi_type
3619 attributes of the appended glyph.
283ccc18
EZ
3620 (produce_special_glyphs): Mirror the backslash continuation
3621 character in R2L lines.
93d68d0c 3622
283ccc18 3623 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3624
283ccc18
EZ
3625 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3626 append_stretch_glyph.
3627 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3628 off-by-one error in computing x at end of text in the row.
3629 (append_stretch_glyph): In reversed row, prepend the glyph rather
3630 than append it. Set resolved_level and bidi_type of the glyph.
3631 (extend_face_to_end_of_line): If the row is reversed, prepend a
3632 stretch glyph whose width is such that the rightmost glyph will be
3633 drawn at the right margin of the window. Fix off-by-one error on
3634 TTY frames in testing whether a line needs face extension. Fix
3635 face extension at ZV. If this is the last glyph row, use
3636 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3637 region face.
3638 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3639 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3640 row->continuation_lines_width.
283ccc18
EZ
3641 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3642 are at ZV. Fixes a crash when reseated to ZV by
3643 try_window_reusing_current_matrix.
45903529
EZ
3644 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3645 which happens with R2L glyph rows. Fixes a crash when inserting a
3646 character at end of an R2L line.
283ccc18
EZ
3647 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3648 treat them as having zero-width characters. Improve comments.
3649 Don't reverse pos_before and pos_after for reversed glyph rows.
3650 Set cursor.x to negative value when the cursor might be on the
3651 left fringe.
3652 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3653 left fringe, not the right one.
f951a506
EZ
3654 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3655 (erase_phys_cursor): For reversed cursor_row, support cursor on
3656 the left fringe.
3657
283ccc18
EZ
3658 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3659 of continuation indicators on the fringes.
3660 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3661 left fringe.
3662
f951a506
EZ
3663 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3664 draw cursor on the left fringe.
3665
3666 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3667 cursor on the left fringe.
3668
f951a506
EZ
3669 * dispnew.c (update_text_area): Handle reversed desired rows when
3670 the cursor is on the left fringe.
3671 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3672 below, not by 0, for when the cursor is on the left fringe.
3673
3bb49aaf
JD
36742010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3675
3676 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3677 widget is a scrollbar.
3678
c0be27fd
KH
36792010-04-20 Kenichi Handa <handa@m17n.org>
3680
3681 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3682 only when the arg CHARSET_LIST is nil.
3683
ce5b453a
SM
36842010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3685
3686 Make variable forwarding explicit rather the using special values.
3687 Basically, this makes the structure of buffer-local values and object
3688 forwarding explicit in the type of Lisp_Symbols rather than use
3689 special Lisp_Objects for that. This tends to lead to slightly more
3690 verbose code, but is more C-like, simpler, and makes it easier to make
3691 sure we handled all cases, among other things by letting the compiler
3692 help us check it.
3693 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3694 Removing forwarding objects.
3695 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3696 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3697 explicit rather than hiding them inside Lisp_Object "values".
3698 (XFWDTYPE): New macro.
3699 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3700 (XBUFFER_LOCAL_VALUE): Remove.
3701 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3702 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3703 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3704 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3705 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3706 Remove the Lisp_Misc_* header.
3707 (struct Lisp_Buffer_Local_Value): Redefine.
3708 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3709 (struct Lisp_Misc_Any): Add filler to get the right size.
3710 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3711 Lisp_Intfwd.
3712 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3713 (DEFVAR_KBOARD): Allocate a forwarding object.
3714 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3715 (let_shadows_global_binding_p): New function.
3716 (union Lisp_Val_Fwd): New type.
3717 (make_blv): New function.
3718 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3719 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3720 (swap_in_symval_forwarding, find_symbol_value, Fset)
3721 (let_shadows_buffer_binding_p, set_internal, default_value)
3722 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3723 (Fkill_local_variable, Fmake_variable_frame_local)
3724 (Flocal_variable_p, Flocal_variable_if_set_p)
3725 (Fvariable_binding_locus):
3726 * xdisp.c (select_frame_for_redisplay):
3727 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3728 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3729 * frame.c (store_frame_param):
3730 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3731 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3732 value structure.
3733 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3734 (clone_per_buffer_values): Only adjust markers into the current buffer.
3735 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3736 (Fbuffer_local_value, set_buffer_internal_1)
3737 (swap_out_buffer_local_variables):
3738 Adapt to the new symbol value structure.
3739 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3740 (defvar_per_buffer): Take a new arg for the fwd object.
3741 (buffer_lisp_local_variables): Return a proper alist (different fix
3742 for bug#4138).
3743 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3744 (Fgarbage_collect): Don't handle buffer_defaults specially.
3745 (mark_object): Handle new symbol value structure rather than the old
3746 special Lisp_Misc_* objects.
3747 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3748 * term.c (set_tty_color_mode):
3749 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3750 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3751 a buffer_local_flags.
3752 * print.c (print_object): Get rid of impossible forwarding objects.
3753
fd3998ff
EZ
37542010-04-19 Eli Zaretskii <eliz@gnu.org>
3755
3756 * bidi.c (bidi_get_type, bidi_get_category)
3757 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3758 (bidi_type_of_next_char, bidi_level_of_next_char):
3759 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3760
e42cd1a7
JB
37612010-04-19 Juanma Barranquero <lekktu@gmail.com>
3762
3763 * dired.c (Ffile_attributes): Fix typo in docstring.
3764
6e104790 37652010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3766
3767 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3768 NSInteger (Bug#5811).
3769
6e104790 37702010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3771
3772 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3773 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3774
6e104790 37752010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3776
3777 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3778
6e104790
SM
37792010-04-19 Chong Yidong <cyd@stupidchicken.com>
3780
3781 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3782 terminal frames (Bug#5837).
3783
37dcfea0
EZ
37842010-04-19 Eli Zaretskii <eliz@gnu.org>
3785
d1da276f
EZ
3786 * .gdbinit (xsubchartable): New command.
3787
37dcfea0
EZ
37882010-04-19 Eli Zaretskii <eliz@gnu.org>
3789
3790 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3791 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3792 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3793 and
3794 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3795
e9515805
SM
37962010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3797
3798 * alloc.c (Fpurecopy): Hash-cons if requested.
3799 (syms_of_alloc): Update purify-flag docstring.
3800
22aa44a8
JD
38012010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3802
3803 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3804 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3805
ebb5722e
EZ
38062010-04-17 Eli Zaretskii <eliz@gnu.org>
3807
3808 Fix a crash when an NSM character is inserted at BEGV.
3809
3810 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3811 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3812 NEUTRAL_B or UNKNOWN_BT.
3813
0f4442ef
EZ
38142010-04-16 Eli Zaretskii <eliz@gnu.org>
3815
3816 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3817 other rows with cursor unless they are different from this row and
3818 this row is part of a continued line. (Bug#5943)
3819
7d4e45f8
DN
38202010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3821
3822 * s/freebsd.h: Restore osreldate.h include.
3823 Suggested by Naohiro Aota.
3824
5ba5ec85
J
38252010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3826
3827 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3828
20af301d
CY
38292010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3830
3831 * s/cygwin.h: Avoid linking against static libgcc.
3832
a4b000fb
JL
38332010-04-15 Juri Linkov <juri@jurta.org>
3834
3835 * window.c: Add Qscroll_command.
3836 Remove Vscroll_preserve_screen_position_commands.
3837 (window_scroll_pixel_based, window_scroll_line_based): Check the
3838 `scroll-command' property on the last command instead of searching
3839 the last command in Vscroll_preserve_screen_position_commands.
3840 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3841 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3842 (scroll-preserve-screen-position): Doc fix.
3843 (Vscroll_preserve_screen_position_commands): Remove variable.
3844
bc319ba4
DN
38452010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3846
6bb24457
DN
3847 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3848
19d4c244
DN
38492010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3850
3851 Reduce cpp use in Makefile.in.
3852 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3853 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3854 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3855 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3856 (CRT0_COMPILE): Remove, inline it in the only user.
3857
32129746
JL
38582010-04-14 Juri Linkov <juri@jurta.org>
3859
3860 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3861 `scroll-up-command' and `M-v' from `scroll-down' to
3862 `scroll-down-command'.
3863
9013a7f8
JL
38642010-04-14 Juri Linkov <juri@jurta.org>
3865
3866 * window.c (Vscroll_preserve_screen_position_commands): New variable
3867 with the default value as the list of Qscroll_down and Qscroll_up.
3868 (window_scroll_pixel_based, window_scroll_line_based): Search the
3869 last command in the list Vscroll_preserve_screen_position_commands
3870 instead of comparing with Qscroll_up and Qscroll_down.
3871
4bef8d26
JD
38722010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3873
92848133
JD
3874 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3875 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3876 does that.
3877
4bef8d26
JD
3878 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3879 to zero.
3880
58b963f7
SM
38812010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3882
84164a0d
SM
3883 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3884
2b0a91e7
SM
3885 Try to solve the problem of spurious EOF chars in long lines of text
3886 sent to interactive subprocesses.
3887 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3888 (system_process_attributes): Remove unused var `ttotal'.
3889 * process.c (send_process): Don't bother breaking long line with EOF
3890 chars when talking to ttys any more.
3891 (wait_reading_process_output): Output a warning when called in such
3892 a way that it could block without being interruptible.
3893
58b963f7
SM
3894 Try to detect file modification within the same second.
3895 * buffer.h (struct buffer): New field modtime_size.
3896 * buffer.c (reset_buffer): Initialize it.
3897 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3898 (Fverify_visited_file_modtime): Check it.
3899 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3900 (Fset_visited_file_modtime): Set (or clear) it.
3901
01f5787b
SM
39022010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3903
3904 * process.c (status_notify): Remove unused var `ro'.
3905
83725342
JD
39062010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3907
3908 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3909 more than one visual (Bug#5938).
3910
b9465836
DN
39112010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3912
50426a04
JB
3913 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3914 Undefine.
b9465836 3915
8d9c8ece
DN
39162010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3917
b1f52161
DN
3918 Remove C_SWITCH_SYSTEM_TEMACS.
3919 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3920 (malloc, realloc, free): Use emacs, not temacs for conditional
3921 definition.
3922
3923 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3924 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3925
8d9c8ece
DN
3926 Use autoconf, not cpp for some variables.
3927 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3928 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3929 (ALL_CFLAGS): Use them as make variables.
3930 (really-lwlib, really-oldXMenu): Do not pass them.
3931
1ecb2d3f
JD
39322010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3933
3934 * xmenu.c (apply_systemfont_to_dialog): New.
3935 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3936
3a4fa2f2
SM
39372010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3938
97e53006
SM
3939 * process.c (exec_sentinel): Preserve current-buffer.
3940
3a4fa2f2
SM
3941 * process.c (read_process_output): Move the save-current-buffer to
3942 apply to both the filter and the non-filter branches.
3943
88df7221
DN
39442010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3945
3946 * s/msdos.h (UNEXEC): New definition.
3947
5634ff85
YM
39482010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3949
6eff5c3d
YM
3950 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3951 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3952
3953 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3954 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3955 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3956 TRY_WINDOW_CHECK_MARGINS.
3957
3958 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3959 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3960 width only when it is for padding.
5634ff85 3961
b13aef54
J
39622010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3963
3964 * xfns.c (Fx_show_tip): Call try_window in a loop until
3965 fonts_changed_p is zero (Bug#2423).
3966
21d28484
EZ
39672010-04-08 Eli Zaretskii <eliz@gnu.org>
3968
3969 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3970 the end of TEXT_AREA. (Bug#5856)
3971
0269ef77
JD
39722010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3973
3974 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3975 HAVE_GCONF.
3976
5930fe97
EZ
39772010-04-08 Eli Zaretskii <eliz@gnu.org>
3978
3979 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3980 prev.orig_type, for resolving type of NSM. (Bug#5858)
3981
99852628
JD
39822010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3983
3984 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3985 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3986 in current_font.
3987 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3988 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3989 New functions.
3990 (syms_of_xsettings): Initialize current_font.
3991 defsubr Sfont_get_system_normal_font.
99852628 3992
686b968e
JB
3993 * xsettings.h (Ffont_get_system_normal_font)
3994 (xsettings_get_system_normal_font): Declare.
99852628
JD
3995
3996 * xfns.c (extern xlwmenu_default_font): Remove.
3997 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3998 to xlwmenu.c.
3999
4000 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4001 menu items in UTF-8.
4002
4003 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4004 (apply_systemfont_to_menu): New function.
4005 (set_frame_menubar, create_and_show_popup_menu): Call
4006 apply_systemfont_to_menu.
4007
7fc874c4
J
40082010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4009
4010 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4011 FRAME_LINE_TO_PIXEL_Y.
4012
4013 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4014 pixelwidth/height.
4015
863bf481
DN
40162010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4017
5e5a3b92
DN
4018 Simplify code for HP machines.
4019 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4020 for GNU_LINUX, not needed.
4021 (UNEXEC, NEED_BSDTTY): Move definitions...
4022 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4023
863bf481
DN
4024 * m/iris4d.h (UNEXEC): Move definition ...
4025 * s/irix6-5.h (UNEXEC): ... here.
4026
3e6bec3b
JD
40272010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4028
4029 * xfns.c (set_machine_and_pid_properties): New function.
4030 (Fx_create_frame): Call set_machine_and_pid_properties.
4031
2912322b
SM
40322010-04-03 Eli Zaretskii <eliz@gnu.org>
4033
1502b819
EZ
4034 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4035 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4036 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4037
2912322b
SM
4038 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4039 in this function. (Bug#5703)
4040
40412010-04-03 Chong Yidong <cyd@stupidchicken.com>
4042
4043 * nsterm.h: Fix last change.
4044
c435b432
DN
40452010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4046
a568f507
DN
4047 * m/intel386.h (NO_REMAP): Move definition ...
4048 * s/msdos.h (NO_REMAP): ... here.
4049
4cd9f6c2
DN
4050 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4051
c435b432
DN
4052 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4053 used on those platforms.
4054
42a2c622
DN
40552010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4056
4057 Remove extern errno declarations.
4058 * xterm.c:
4059 * xrdb.c:
4060 * w32term.c:
4061 * unexec.c:
4062 * unexaix.c:
4063 * sysdep.c:
4064 * process.c:
4065 * lread.c:
4066 * keyboard.c:
4067 * floatfns.c:
4068 * filelock.c:
4069 * fileio.c:
4070 * emacs.c (main):
4071 * ecrt0.c:
4072 * dispnew.c:
4073 * callproc.c:
4074 * buffer.c: Remove errno extern declarations.
4075 * s/netbsd.h (NEED_ERRNO): Remove.
4076
8224f93d
DN
40772010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4078
4079 Remove all uses of LIBX11_SYSTEM.
4080 * Makefile.in (LIBX11_SYSTEM): Remove.
4081 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4082 instead.
4083
814062c7
EZ
40842010-04-01 Eli Zaretskii <eliz@gnu.org>
4085
ed68db4d
EZ
4086 Remove support for DJGPP v1.x (bug#5813).
4087
4088 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4089 * s/msdos.h:
4090 * unexec.c (make_hdr, copy_text_and_data):
4091 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4092 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4093 (IT_set_terminal_modes, __write, _rename, gethostname)
4094 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4095 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4096 the value of __DJGPP__.
ed68db4d
EZ
4097 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4098 compatibility code.
8224f93d
DN
4099 * lread.c:
4100 * gmalloc.c (memalign):
4101 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4102 * emacs.c (main):
4103 * dosfns.c (init_dosfns):
ed68db4d
EZ
4104 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4105
52f4d8d5
EZ
41062010-04-01 Eli Zaretskii <eliz@gnu.org>
4107
814062c7
EZ
4108 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4109 string with `cursor' property comes from an `after-string'
4110 overlay. (Bug#5816)
4111
0dc2e11d
GM
41122010-04-01 Glenn Morris <rgm@gnu.org>
4113
4114 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4115 Define as Makefile variables.
4116 (LIBX): Use above variables rather than directly using autoconf.
4117
1d29df59
DN
41182010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4119
4120 Clean up BSD_SYSTEM use.
4121 * xterm.c:
4122 * process.c:
4123 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4124 for including <sys/ioctl.h>.
4125 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4126 code is only used for MSDOS.
4127
1546c559
JL
41282010-03-31 Juri Linkov <juri@jurta.org>
4129
4130 * image.c: Add `Qextension_data'.
4131 (syms_of_image): Initialize and staticpro `Qextension_data'.
4132 (Fimage_metadata): Rename from `Fimage_extension_data'.
4133 (gif_load): Put GIF extension data to the property
4134 `Qextension_data'.
4135
6521c534
CY
41362010-03-31 Chong Yidong <cyd@stupidchicken.com>
4137
4138 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4139 * nsterm.h: Fix prototype.
4140
52c30783
EZ
41412010-03-31 Eli Zaretskii <eliz@gnu.org>
4142
4143 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4144 trailing whitespace in right-to-left rows.
4145
855a0da7
SM
41462010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4147
4148 Get rid of the direct_output optimizations.
4149 * keyboard.c (nonundocount): Remove extern declaration.
4150 (command_loop_1): Remove brittle optimisation for cheap and
4151 common operations.
4152 * xdisp.c (redisplay_internal): Don't bother checking
4153 redisplay_performed_directly_p any more.
4154 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4155 any more.
4156 * dispnew.c (redisplay_performed_directly_p)
4157 (direct_output_for_insert, direct_output_forward_char):
4158 * dispextern.h (redisplay_performed_directly_p)
4159 (direct_output_for_insert, direct_output_forward_char): Remove.
4160 * cmds.c (nonundocount): Make it static.
4161
85738751 41622010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4163
4164 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4165
85738751 41662010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4167
4168 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4169 invisible (Bug#5766).
4170
85738751 41712010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4172
855a0da7
SM
4173 * xdisp.c (x_consider_frame_title, update_window_cursor):
4174 Remove HAVE_NS conditionals.
194d44e7 4175 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4176
4177 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4178 filename for the title.
4179 (ns_set_doc_edited): Do nothing if the selected window is a
4180 minibuffer window.
4181
4182 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4183 ns_set_doc_edited.
4184
4185 * nsterm.m: Remove unneeded prototype.
4186
85738751 41872010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4188
4189 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4190 in the DOC file. (Bug#5336)
4191
85738751 41922010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4193
4194 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4195
75d1428c
SM
41962010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4197
4198 * window.c (keys_of_window): Remove redundant/overridden bindings.
4199
82043cfb
EZ
42002010-03-30 Eli Zaretskii <eliz@gnu.org>
4201
4202 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4203 Restore original behavior when the iterator is not bidi_p.
4204
b5dd0ae7
DN
42052010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4206
4207 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4208
bd924a5d
EZ
42092010-03-30 Eli Zaretskii <eliz@gnu.org>
4210
4211 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4212 are outside the range of cached character positions.
4213
3580374b
JB
42142010-03-30 Juanma Barranquero <lekktu@gmail.com>
4215
4216 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4217
a7b02820
EZ
42182010-03-30 Eli Zaretskii <eliz@gnu.org>
4219
4220 Initial support for bidirectional editing.
4221
4222 * Makefile.in (obj): Include bidi.o.
4223 (bidi.o): New target.
4224
4225 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4226 ($(BLD)/bidi.$(O)): New target.
4227
4228 * bidi.c: New file.
4229
4230 * buffer.h (struct buffer): New members bidi_display_reordering
4231 and bidi_paragraph_direction.
4232
4233 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4234 and bidi_paragraph_direction.
4235 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4236 and bidi-paragraph-direction.
4237 (Fbuffer_swap_text): Swap the values of
4238 bidi_display_reordering and bidi_paragraph_direction.
4239
4240 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4241 (bidi_type_t, bidi_dir_t): New types.
4242 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4243 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4244 prev_stop, base_level_stop, and eol_pos.
4245 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4246 (IT_STACK_SIZE): Enlarge to 5.
4247 (struct glyph_row): New member reversed_p.
4248 <string_buffer_position>: Update prototype.
4249 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4250 glyph_row if bidi_it.paragraph_dir == R2L.
4251 (struct glyph): New members resolved_level and bidi_type.
4252
4253 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4254 processing or buffer's direction is right-to-left.
4255 (prepare_desired_row): Preserve the reversed_p flag.
4256 (row_equal_p): Compare the reversed_p attributes as well.
4257
4258 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4259 bidi_init_it and set it->paragraph_embedding from the current
4260 buffer's value of bidi_paragraph_direction.
4261 (reseat_1): Initialize bidi_it.first_elt.
4262 (set_iterator_to_next, next_element_from_buffer): Use the value of
4263 paragraph_embedding to determine the paragraph direction.
4264 (set_iterator_to_next): Under bidi reordering, call
4265 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4266 new_paragraph flag is set in the bidi iterator.
4267 (next_element_from_buffer): If bidi_it.first_elt is set,
4268 initialize paragraph direction and find the first character to
4269 display in the visual order. If reseated to a middle of a line,
4270 prime the bidi iterator starting at the line's beginning. Handle
4271 the situation where we overstepped stop_charpos due to
4272 non-linearity of the bidi iteration. Likewise for when we back up
4273 beyond the previous stop_charpos. When moving across stop_charpos,
4274 record it in prev_stop.
4275 (display_line): Set row->end and it->start for the next row to the
4276 next character in logical order. Always extend reversed_p rows to
4277 the end of line, even if they end at ZV. Copy the reversed_p flag
4278 to the next glyph row. Keep calling set_cursor_from_row for
4279 bidi-reordered rows even if we already have a possible candidate
4280 for cursor position. Set row_end after all the row's glyphs have
4281 been produced, by looping over the glyphs. Record the position
4282 after EOL in it->eol_pos, and use it to set end_pos of the last
4283 row produced for a continued line.
4284 <Qright_to_left, Qleft_to_right>: New variables.
4285 (syms_of_xdisp): Initialize and staticpro them.
4286 (string_buffer_position_lim): New function.
4287 (string_buffer_position): Most of code moved to
4288 string_buffer_position_lim. Last argument and return value are
4289 now EMACS_INT; all callers changed.
4290 (set_cursor_from_row): Rewritten to support bidirectional text and
4291 reversed glyph rows.
4292 (text_outside_line_unchanged_p, try_window_id): Disable
4293 optimizations if we are reordering bidirectional text and the
4294 paragraph direction can be affected by the change.
4295 (append_glyph, append_composite_glyph)
4296 (produce_image_glyph, append_stretch_glyph): Set the
4297 resolved_level and bidi_type members of each glyph.
4298 (append_glyph): If the glyph row is reversed, prepend the glyph
4299 rather than appending it.
4300 (handle_stop_backwards): New function.
4301 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4302 (reseat): call handle_stop_backwards to recompute prev_stop and
4303 base_level_stop for the new position.
4304 (handle_invisible_prop): Under bidi iteration, skip invisible text
4305 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4306 paragraph direction. Update IT->prev_stop after skipping
4307 invisible text.
4308 (move_it_in_display_line_to): New variables prev_method
4309 and prev_pos. Compare for strict equality in
4310 BUFFER_POS_REACHED_P.
4311 (try_cursor_movement): Examine all the candidate rows that occlude
4312 point, to return the best match. If rows are bidi-reordered
4313 and point moved backwards, back up to the row that is not a
4314 continuation line, and start looking for a suitable row from
4315 there.
4316
4317 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4318 rather than appending, if the glyph_row's reversed_p flag is set.
4319 Set the resolved_level and bidi_type members of each glyph.
4320
4321 * .gdbinit (pbiditype): New command.
4322 (pgx): Use it to display bidi level and type of the glyph.
4323 (pitx): Display some bidi information about the iterator.
4324 (prowlims, pmtxrows): New commands.
4325
32a8894e
DN
43262010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4327
4328 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4329 * s/usg5-4.h (LIBS_DEBUG):
4330 * s/irix6-5.h (C_DEBUG_SWITCH):
4331 * s/gnu-linux.h (LIBS_DEBUG):
4332 * s/darwin.h (LIBS_DEBUG):
4333 * s/bsd-common.h (LIBS_DEBUG):
4334 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4335 * m/iris4d.h (LIBS_DEBUG):
4336 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4337
4338 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4339 (LIBS_DEBUG): Remove definition.
4340
649dbf36
CY
43412010-03-27 Chong Yidong <cyd@stupidchicken.com>
4342
4343 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4344 Windows.
4345
cad4261f
YM
43462010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4347
4348 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4349 `connect' (Bug#5723).
4350
cd591dbc
HE
43512010-03-25 Helmut Eller <eller.helmut@gmail.com>
4352
4353 * process.c (Fmake_network_process): Call `select' for interrupted
4354 `connect' rather than creating new socket (Bug#5173).
4355
e867cb5d 43562010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4357
4358 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4359
4360 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4361
4362 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4363
e867cb5d 43642010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4365
4366 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4367 XLoadQueryFont.
4368
e867cb5d 43692010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4370
4371 * coding.c (decode_coding_ccl): Fix previous change for the
4372 multibyte case.
fb608df3
KH
4373 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4374 case that the output buffer is fullfilled.
4375 (encode_coding): Setup ccl program here.
fbdc1721 4376
5845f0ed
DN
43772010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4378
814fb708
DN
4379 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4380
5845f0ed
DN
4381 Simplify LIBS_MACHINE definitions.
4382 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4383 * m/iris4d.h (LIBS_MACHINE): Likewise.
4384 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4385 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4386 * s/netbsd.h: Remove commented out code.
5845f0ed 4387
b7064064
DN
43882010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4389
df7734b2
DN
4390 Remove dead code dealing with POSIX_SIGNALS.
4391 * atimer.c (set_alarm): Remove dead code, all USG systems define
4392 POSIX_SIGNALS.
4393 * data.c (arith_error): Likewise.
4394 * keyboard.c (input_available_signal, handle_user_signal)
4395 (interrupt_signal): Likewise.
4396 * process.c (sigchld_handler): Likewise.
4397 (create_process): Remove if 0 code. Remove HPUX conditional when
4398 !defined (POSIX_SIGNALS), it cannot be true.
4399 * syssignal.h: Remove USG5_4 and USG conditionals when
4400 !POSIX_SIGNALS, they cannot be true.
4401
b7064064
DN
4402 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4403 NO_SOCK_SIGIO, not used anymore.
4404
55da5ee3
DN
44052010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4406
0be96e3a
DN
4407 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4408 support vax on BSDs.
4409
55da5ee3
DN
4410 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4411 * s/aix4-2.h (ORDINARY_LINK): ... here.
4412
c0282183
AS
44132010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4414
82c3d67a
AS
4415 * Makefile.in (abs_builddir): Define.
4416 (bootstrap_exe): Use it.
4417 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4418
3613edce
SM
44192010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4420
4421 * Makefile.in (bootstrap_exe): Use an absolute name.
4422
7f110ddc
DN
44232010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4424
22e87574
DN
4425 Remove support for old GNU/Linux using libc version 5.
4426 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4427 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4428
05a670e6
DN
4429 Consolidate redundant definitions in s/bsd-common.h.
4430 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4431 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4432 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4433 doing it in all files that include this one.
4434 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4435 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4436 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4437 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4438 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4439 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4440 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4441 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4442 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4443
2968f561
DN
4444 Consolidate redundant definitions.
4445 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4446 it's undefined in all files that include this one.
4447 (POSIX_SIGNALS): Define here instead of doing it in all files that
4448 include this one.
4449 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4450 (POSIX_SIGNALS): Do not define.
4451 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4452 (POSIX_SIGNALS): Do not define.
4453 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4454 (POSIX_SIGNALS): Do not define.
4455
15d25dc0
DN
4456 Remove support for old UNIX System V systems.
4457 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4458 * s/usg-5-4-2.h: Remove.
4459
07e339e4
DN
4460 Remove support for Solaris on PPC and for old versions.
4461 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4462 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4463 that cancel each other.
4464 * s/sol2-3.h:
4465 * s/sol2-4.h:
4466 * s/sol2-5.h: Remove.
4467 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4468 (NO_REMAP): Remove, unused.
4469 (UNEXEC): Move definition ...
4470 * s/aix4-2.h (UNEXEC): ... here.
4471
7f110ddc
DN
4472 * s/openbsd.h: Remove support for non-ELF and for systems that do
4473 not support shared libraries.
4474 * s/netbsd.h:
4475 * s/freebsd.h: Likewise.
4476
605f35cd
DN
44772010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4478
4479 Remove non-working support for lynxos 3.0.
4480 * s/lynxos.h: Remove file.
4481
4482 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4483 COFF_BSD_SYMBOLS, nothing defines it anymore.
4484
aed71cf4
DN
44852010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4486
4487 Remove obsolete uses of HAVE_SHM.
4488 * emacs.c (standard_args):
4489 (Fdump_emacs):
4490 (syms_of_emacs): Remove code depending on HAVE_SHM.
4491
4492 * alloc.c: Remove HAVE_SHM dependent definition.
4493
4494 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4495
aded53ff
GM
44962010-03-18 Glenn Morris <rgm@gnu.org>
4497
17284745
GM
4498 * emacs.c (USAGE4): Hard-code bug address.
4499 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4500 (bug_reporting_address): Remove.
4501 (main): Don't call bug_reporting_address.
4502
aded53ff
GM
4503 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4504 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4505
303500aa
CY
45062010-03-15 Chong Yidong <cyd@stupidchicken.com>
4507
4508 * xfns.c (Fx_create_frame):
4509 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4510 on left.
4511
cef3058f
CY
45122010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4513
4514 * editfns.c (Fformat): Account for string precision when computing
4515 field width (Bug#5710).
4516
a647d59d
CY
45172010-03-12 Chong Yidong <cyd@stupidchicken.com>
4518
4fa42018
CY
4519 * xfns.c (Fx_create_frame): Set default to Qright.
4520
a647d59d
CY
4521 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4522 all window systems.
4523
6da23aaa
EZ
45242010-03-12 Eli Zaretskii <eliz@gnu.org>
4525
a96f6398 4526 These changes remove termcap.c from the build on Posix platforms.
83d02def 4527 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4528 (MSDOS_OBJ): ...to here.
4529 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4530 now identical to when LIBS_TERMCAP is defined.
4531
4532 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4533
4534 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4535
a96f6398 4536 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4537
288f9fc0
CY
45382010-03-10 Chong Yidong <cyd@stupidchicken.com>
4539
4540 * Branch for 23.2.
4541
d48cd3f4
SM
45422010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4543
4544 Cleanup setup of gl_state in various parts of the code.
4545 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4546 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4547 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4548 (skip_chars):
4549 * regex.c (regex_compile): Use it.
4550 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4551 it's now set in regex_compile when/if we need it.
4552
618db430
SM
45532010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4554
c0335e02
SM
4555 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4556 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4557 (QUIT): Use it to consolidate code and remove redundancy.
4558 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4559
254c06a8
SM
4560 * regex.c (regex_compile): Setup gl_state as well.
4561
618db430
SM
4562 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4563 (in_classes): Use CONSP before XCAR/XCDR.
4564
233f0c9f
CY
45652010-03-03 Chong Yidong <cyd@stupidchicken.com>
4566
4567 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4568 definitions, so that keyboard macros are correctly handled
4569 (Bug#5481).
4570
75f80e63
EZ
45712010-03-02 Eli Zaretskii <eliz@gnu.org>
4572
4573 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4574 text that could be relocated inside the call to emacs_mule_char.
4575 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4576 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4577
dcfb9bc4
KH
45782010-03-02 Kenichi Handa <handa@m17n.org>
4579
fc9a17bc
KH
4580 * character.c (parse_str_as_multibyte): Fix handling of the
4581 multibyte form of raw-bytes.
4582 (str_as_multibyte): Likewise.
4583
dcfb9bc4
KH
4584 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4585 form of raw-bytes.
4586
412c01b6
CY
45872010-02-28 Chong Yidong <cyd@stupidchicken.com>
4588
4589 * charset.c (load_charset_map_from_file)
4590 (load_charset_map_from_vector): Zero out allocated
4591 charset_map_entries before using them.
4592
df7e1ea0
AS
45932010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4594
4595 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4596
fe69a722
CY
45972010-02-27 Chong Yidong <cyd@stupidchicken.com>
4598
4ed28cf4
CY
4599 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4600 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4601
7379cfce
KH
46022010-02-26 Kenichi Handa <handa@m17n.org>
4603
f88cc4d6
KH
4604 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4605
7379cfce
KH
4606 * xdisp.c (reseat_to_string): Fix previous change.
4607
cf2fdcfb
CY
46082010-02-26 David Reitter <david.reitter@gmail.com>
4609
4610 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4611 Lisp_Object (Bug#4736).
4612
cc6c7c75
KH
46132010-02-25 Kenichi Handa <handa@m17n.org>
4614
4615 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4616
32e737d7
JD
46172010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4618
4619 * xterm.c (XTflash): Move declarations before statements.
4620
4621 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4622 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4623 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4624 (xg_create_tool_bar): Remove unused variables.
4625 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4626 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4627
676cae9f
CY
46282010-02-21 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4631
886cc2b8
SM
46322010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4633
4634 * term.c (fatal): Add a final \n if needed (bug#5596).
4635
ddb2d8e2
CY
46362010-02-18 Chong Yidong <cyd@stupidchicken.com>
4637
4638 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4639
2a4f8d3d
GM
46402010-02-18 Glenn Morris <rgm@gnu.org>
4641
4642 * callint.c (Finteractive): Doc fix.
4643
ebaf11b6
KH
46442010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4645
886cc2b8
SM
4646 * coding.c (record_conversion_result):
4647 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4648 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4649 memory allocation error.
4650
d0396581
KH
46512010-02-17 Kenichi Handa <handa@m17n.org>
4652
886cc2b8
SM
4653 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4654 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4655 (decode_coding): Setup ccl program here. Keep looping when the
4656 decoder stopped because the output buffer is
4657 fullfilled (bug#5534).
4658
4659 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4660
98599f74
JD
46612010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4662
471e4f04 4663 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4664 bug #5571.
886cc2b8 4665 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4666 overdrawn.
98599f74 4667
182659ae
JD
46682010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4669
4670 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4671 doing_interact here.
4672 (ice_connection_closed): New function.
4673 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4674 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4675 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4676 returns I/O error.
4677 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4678 bug #5512.
4679
9be32c4e 46802010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4681
4682 * nsfont.m (nsfont_open): The system's value for the font descent
4683 is negative, so round it down to avoid clipping.
4684
a2f3eb19
CY
46852010-02-06 Chong Yidong <cyd@stupidchicken.com>
4686
4687 * charset.c (load_charset_map_from_file)
4688 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4689 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4690
3088147c
CY
46912010-02-05 Chong Yidong <cyd@stupidchicken.com>
4692
4693 * charset.c (load_charset_map_from_file): Allocate large
4694 charset_map_entries structure on the heap rather than the stack.
4695 (Bug#5526).
4696
b57d9029
KH
46972010-01-31 Kenichi Handa <handa@m17n.org>
4698
4699 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4700 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4701
c67d885b
CY
47022010-01-31 Chong Yidong <cyd@stupidchicken.com>
4703
4704 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4705 <deactivated@gmail.com> (Bug#3605).
4706
8fab2362
CY
47072010-01-31 David De La Harpe Golden <david@harpegolden.net>
4708
4709 * fileio.c (Frename_file): Correctly rename symlinks to
4710 directories (Bug#5496).
4711
cb2a62f2
CY
47122010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4713
4714 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4715
944c7a26
AS
47162010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4717
4718 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4719
c024ac08
CY
47202010-01-29 Chong Yidong <cyd@stupidchicken.com>
4721
4722 * frame.c (DEFAULT_ROWS): Change default to 35.
4723
4724 * xfns.c (x_default_font_parameter): Change default XFT font to
4725 monospace-10 (Bug#3643).
4726
af93af83
EZ
47272010-01-29 Eli Zaretskii <eliz@gnu.org>
4728
4729 * w32inevt.c (key_event): Remove unnecessary comparison of
4730 event->uChar.AsciiChar with 128.
4731
ca0eb708
CY
47322010-01-28 Chong Yidong <cyd@stupidchicken.com>
4733
b242dbfc
CY
4734 * fileio.c (Frename_file): Fix last change (Bug#5487).
4735
ca0eb708
CY
4736 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4737
4738 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4739
45d45af5
JD
47402010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4741
4742 * xfns.c (Fx_create_frame): Remove window size matching code from
4743 2010-01-15.
a73f9c9d 4744 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4745
7e233730
JR
47462010-01-27 Jason Rumney <jasonr@gnu.org>
4747
4748 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4749 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4750
86e893e3
KH
47512010-01-27 Kenichi Handa <handa@m17n.org>
4752
4753 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4754 pattern string (Bug#4209).
86e893e3 4755
8719abec
CY
47562010-01-27 David De La Harpe Golden <david@harpegolden.net>
4757
4758 * fileio.c (Frename_file): Call copy-directory and
4759 delete-directory for directories, in order to handle cross-device
4760 renaming (Bug#3353).
4761
844794c8
JD
47622010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4763
aa3e13b5 4764 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4765 sizes 24 and 10. Bug #3643.
844794c8 4766
bd4b5750
SM
47672010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4768
8dc1adf6 4769 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4770 * keymap.c (shadow_lookup): Add `remap' arg.
4771 (describe_map, describe_vector): Update calls to shadow_lookup.
4772 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4773 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4774 perform remapping during shadow_lookup check of remapped_sequences.
4775
285d07e2
CY
47762010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4777
4778 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4779 png_check_sig, which has been removed in libpng 1.4.
4780
c6d09b8d
CY
47812010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4782
4783 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4784 lacks this header file).
4785
3d782998
YM
47862010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4787
4788 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4789 as in Emacs 22.
4790
2aff7c53
YM
47912010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4792
4793 * lisp.h (make_pure_string): String pointer arg now points to const.
4794
4795 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4796 args now point to const.
4797
74327f7a
EZ
47982010-01-22 Eli Zaretskii <eliz@gnu.org>
4799
4800 * lread.c (Fload): Don't treat files without .elc extension as
4801 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4802 them. (bug#5303)
4803
4d1e6632
KH
48042010-01-20 Kenichi Handa <handa@m17n.org>
4805
4806 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4807 treat the source as actual byte sequence.
4808
1fdede8f
AM
48092010-01-19 Alan Mackenzie <acm@muc.de>
4810
4811 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4812 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4813 `signal_after_change_p' to `coherent_change_p', and make the
4814 invocation of `modify_region' conditional on it.
4815
67477f30
JD
48162010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4817
4818 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4819 for debug purpose.
4820 (syms_of_xsettings): Declare xft-settings.
4821
244b023e
CY
48222010-01-18 Chong Yidong <cyd@stupidchicken.com>
4823
4824 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4825
617364fe
CY
48262010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4827
4828 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4829
4fe22cdf
CY
48302010-01-16 Chong Yidong <cyd@stupidchicken.com>
4831
4832 * emacs.c (standard_args): Adjust arg priorities to reflect how
4833 they are processed in startup.el.
4834
e118d2be
AS
48352010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4836
4837 * Makefile.in (lisp, shortlisp): Update.
4838
523ae620
SM
48392010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4840
4841 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4842 code, link the new kboard into all_kboard before running Lisp code,
4843 and protect the new terminal with GCPRO (Bug#5365).
4844 (x_term_init): Remove unused var `atom'.
4845 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4846
f0d13888
JD
48472010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4848
4849 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4850 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4851 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4852 this. Bug #3643.
f0d13888 4853
cc320f07
KH
48542010-01-15 Kenichi Handa <handa@m17n.org>
4855
4856 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4857
7ffdf101
CY
48582010-01-15 Chong Yidong <cyd@stupidchicken.com>
4859
4860 * nsterm.m (Qnone): Define.
4861
4862 * nsfns.m (Qnone): Move definition to nsterm.m.
4863
d12bd917
KH
48642010-01-14 Kenichi Handa <handa@m17n.org>
4865
4866 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4867 systems.
4868
d9a7c140
KH
48692010-01-14 Kenichi Handa <handa@m17n.org>
4870
4871 Make auto-composition work on all buffers even if they are
4872 fundamental mode.
4873
4874 * composite.c (Vauto_composition_mode): New variable.
4875 (composition_compute_stop_pos): Check Vauto_composition_mode
4876 instead of Vauto_composition_function.
4877 (composition_adjust_point, Ffind_composition_internal): Likewise.
4878 (syms_of_composite): Declare Lisp variable
4879 "auto-composition-mode" here.
4880
63286bb2
CY
48812010-01-13 Chong Yidong <cyd@stupidchicken.com>
4882
4883 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4884 during call to vendor-specific-keysyms (Bug#5365).
4885
c2623ee7
YM
48862010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4887
4888 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4889 Call SIGNAL_THREAD_CHECK (Bug#5333).
4890
4891 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4892 Call SIGNAL_THREAD_CHECK.
4893
0b5397c2
SM
48942010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4895
4896 Try to fix bug#5314. This is probably not the final word, tho.
4897 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4898 recent-auto-save-p as a side-effect.
4899 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4900 * buffer.c (Fkill_buffer, reset_buffer):
4901 * editfns.c (Fsubst_char_in_region):
4902 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4903 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4904
dc954cb2
KH
49052010-01-13 Kenichi Handa <handa@m17n.org>
4906
4907 Display buffer name, etc. in mode line by composing correctly.
4908
4909 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4910 STRING is not nil.
0b5397c2 4911 (display_mode_element): Adjust for the change of
dc954cb2
KH
4912 decode_mode_spec and display_line.
4913 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4914 (display_string): Handle the case that STRING is non-null and
4915 LISP_STRING is not nil.
4916
0b5397c2
SM
4917 * xterm.c (x_draw_composite_glyph_string_foreground):
4918 Pay attention to s->face->overstrike.
dc954cb2
KH
4919
4920 * composite.c (composition_reseat_it): Don't check PT if STRING is
4921 non nil.
4922
4a00eaca
YM
49232010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4924
4925 * keyboard.c (read_char): Don't apply previous change when current
4926 buffer is unchanged by command execution.
4927
60abb287
JD
49282010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4929
4930 * keyboard.c (read_char): Return after executing from special map.
4931
893db5bc
GM
49322010-01-12 Glenn Morris <rgm@gnu.org>
4933
4934 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4935 bug-gnu-emacs rather than emacs-pretest-bug.
4936
4d03ece0
CY
49372010-01-11 Chong Yidong <cyd@stupidchicken.com>
4938
4939 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4940 initializing the Lisp variables that depend on them.
4941
1df47e38
YM
49422010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4943
4944 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4945 Clear areas that will not be updated after change of menu bar lines.
4946 Clear the menu bar window's current matrix when the window gets empty.
4947
2f1c6384
CY
49482010-01-09 Chong Yidong <cyd@stupidchicken.com>
4949
e398c61c
CY
4950 * intervals.h, textprop.c (extend_property_ranges): Return value
4951 and args changed. Discard properties that begin at or after the
4952 new end (Bug#5306).
4953
4954 * editfns.c (Fformat): Caller changed.
4955
e5a29a10
CY
4956 * nsterm.m (ns_set_default_prefs): Delete function.
4957 (syms_of_nsterm): Initialize ns_command_modifier,
4958 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4959 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4960
2f1c6384
CY
4961 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4962 position (Bug#4040).
4963
d427a9fa
EZ
49642010-01-09 Eli Zaretskii <eliz@gnu.org>
4965
4966 * editfns.c (Ffloat_time): Doc fix.
4967
21b9df2f
JD
49682010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4969
4970 * xfns.c (Fx_create_frame): Don't create frame larger than display
4971 by default bug#3643.
4972
4b00d3b1
YM
49732010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4974
4975 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4976 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4977 windows above internal border.
4978
4979 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4980 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4981 windows above internal border.
4982
4983 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4984 tool bar windows specially.
4985
4986 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4987
4988 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4989 specially.
4990 (XTflash): Take account of menu bar height.
4991
4992 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4993 specially.
4994
5075d853
JD
49952010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4996
ac146f82 4997 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4998 also be true before we can return early (bug #5339).
4999
474217c8
CY
50002010-01-06 David Reitter <david.reitter@gmail.com>
5001
5002 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5003 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5004 (Bug#3233).
5005
c0e6d47d
JD
50062010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5007
d0cf45b7
JD
5008 * font.c (font_open_entity): Enable chache and call cached_font_ok
5009 for the driver if defined.
5010 (QCuser_spec): New symbol.
5011 (font_spec_from_name): Save name as user-spec.
5012 (font_load_for_lface): Keep user-spec instead of name.
5013 (font_open_by_name): Save name as user-spec.
5014 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5015 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5016
5017 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5018 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5019 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5020
5021 * font.h (struct font_driver): Add cached_font_ok.
5022
c0e6d47d
JD
5023 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5024
7c583cd8
JD
50252010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5026
5027 * xterm.c (x_new_font): Move code for setting rows/cols before
5028 resizing ...
ac146f82 5029 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5030
5031 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5032 (xg_frame_resized, xg_frame_set_char_size):
5033 Call xg_clear_under_internal_border.
7c583cd8 5034 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5035
03f77f0a
CY
50362010-01-05 Chong Yidong <cyd@stupidchicken.com>
5037
5038 * keyboard.c (read_key_sequence): Catch keyboard switch after
5039 making a new tty frame (Bug#5095).
5040
2a1ef5be
KH
50412010-01-05 Kenichi Handa <handa@m17n.org>
5042
5043 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5044
e3eb1dae
SM
50452010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5046
5047 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5048 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5049 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5050
777013f2
MA
50512010-01-03 Michael Albinus <michael.albinus@gmx.de>
5052
5053 * dbusbind.c (xd_add_watch): Improve debug message.
5054 (xd_remove_watch): Improve debug message. If DATA is the session
5055 bus, unset D-Bus session environment.
5056 (Fdbus_init_bus): Pass the bus as argument to
5057 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5058
8932b1c2
CY
50592010-01-01 Chong Yidong <cyd@stupidchicken.com>
5060
87231e2c
CY
5061 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5062
4801c5fa
CY
5063 * lread.c (syms_of_lread): Make it clearer that these are the
5064 names of loaded files (Bug#5068).
5065
8932b1c2
CY
5066 * eval.c (run_hook_with_args): Handle the case where the global
5067 value has the obsolete single-function form (Bug#5026).
5068
11e3c684
CY
50692009-12-27 Chong Yidong <cyd@stupidchicken.com>
5070
5071 * minibuf.c (Fall_completions): Minor optimization.
5072
5b28ce35
EZ
50732009-12-26 Eli Zaretskii <eliz@gnu.org>
5074
5ce6e4f4
JB
5075 * .gdbinit (pgx): Fix display of composite glyphs.
5076 Display cmp.from and cmp.to as well.
5077 (pitx): Fix last change.
5b28ce35 5078
bcffff46
KH
50792009-12-25 Kenichi Handa <handa@m17n.org>
5080
5081 * composite.h (composition_adjust_point): Update prototype.
5082
5083 * composite.c (composition_reseat_it): Don't make a composition
5084 spanning over point.
5085 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5086 composable characters.
5087 (composition_adjust_point): New arg NEW_PT. Callers changed.
5088
5089 * keyboard.c (command_loop_1): Force redisplay if the last point
5090 was within a composition.
5091 (adjust_point_for_property): Don't adjust point for automatic
5092 composition when called after buffer modification.
5093
3f670e9a
EZ
50942009-12-19 Eli Zaretskii <eliz@gnu.org>
5095
5ce6e4f4
JB
5096 * .gdbinit (pitx): Don't use enum names, use their values.
5097 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5098 (pgx): Don't use enum names, use their values.
5099 (pitmethod): New helper command.
5100 (pitx): Use it to display iteration method.
5101 (pgrowit): New command.
5102
ad903955
EZ
5103 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5104
3f670e9a
EZ
5105 Update dependencies in Makefile.in.
5106
5107 * Makefile.in (alloc.o): Depend on termhooks.h.
5108 (atimer.o): Depend on blockinput.h.
5109 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5110 and frame.h.
5111 (callint.o): Depend on systime.h, coding.h, and composite.h.
5112 (callproc.o): Depend on buffer.h.
5113 (casefiddle.o): Don't depend on charset.h.
5114 (casetab.o): Depend on character.h.
5115 (ccl.o): Depend on composite.h.
5116 (chartab.o): Depend on ccl.h.
5117 (cm.o): Depend on dispextern.h.
5118 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5119 (coding.o): Don't depend on $(INTERVALS_H).
5120 (composite.o): Don't depend on dispextern.h explicitly (it's in
5121 $(INTERVALS_H)). Depend on ccl.h.
5122 (data.o): Depend on systime.h, coding.h, composite.h,
5123 dispextern.h, font.h, and ccl.h.
5124 (dired.o): Depend on composite.h.
5125 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5126 composite.h (it's in $(INTERVALS_H)).
5127 (doc.o): Depend on systime.h, coding.h, and composite.h.
5128 (editfns.o): Don't depend explicitly on dispextern.h.
5129 (emacs.o): Depend on frame.h and coding.h.
5130 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5131 (fileio.o): Depend on frame.h and commands.h. Don't depend
5132 explicitly on dispextern.h.
5133 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5134 composite.h.
5135 (fns.o): Don't depend on termhooks.h.
5136 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5137 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5138 coding.h, $(INTERVALS_H), window.h, xterm.h.
5139 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5140 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5141 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5142 fontset.h, ccl.h, and ftfont.h.
5143 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5144 (gtkutil.o): Depend on dispextern.h and composite.h.
5145 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5146 termhooks.h, and ccl.h.
5147 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5148 (intervals.o): Depend on systime.h and coding.h.
5149 (keyboard.o): Depend on composite.h and coding.h.
5150 (keymap.o): Depend on coding.h and frame.h.
5151 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5152 (macros.o): Depend on systime.h, coding.h, and composite.h.
5153 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5154 and atimer.h.
5155 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5156 dispextern.h explicitly.
0b5397c2
SM
5157 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5158 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5159 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5160 (regex.o): Don't depend on charset.h.
5161 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5162 (search.o): Don't depend explicitly on composite.h.
5163 (sound.o): Depend on atimer.h and systime.h.
5164 (syntax.o): Don't depend explicitly on composite.h.
5165 (sysdep.o): Depend on coding.h and composite.h.
5166 (term.o): Depend on xterm.h and buffer.h.
5167 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5168 (textprop.o): Don't depend on dispextern.h explicitly.
5169 (undo.o): Depend on dispextern.h.
5170 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5171 dispextern.h and composite.h explicitly.
5172 (xdisp.o): Depend on ccl.h.
5173 (xfaces.o): Depend on coding.h and ccl.h.
5174 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5175 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5176 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5177 ftfont.h.
5178 (xgselect.o): New dependency.
5179 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5180 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5181 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5182 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5183 (xsmfns.o): Depend on frame.h and dispextern.h.
5184 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5185 sysselect.h.
5186
7a6f7fea
AS
51872009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5188
5189 * font.c (Fclear_font_cache): Pass correct cache argument to
5190 font_clear_cache.
5191
f4c21026
AS
51922009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5193
5194 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5195 twice.
5196
f7ab0997
CY
51972009-12-15 Chong Yidong <cyd@stupidchicken.com>
5198
5199 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5200 calling file-remote-p. Reported by Jim Meyering.
5201
fa8e045a
MA
52022009-12-15 Michael Albinus <michael.albinus@gmx.de>
5203
5204 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5205 avoid compiler warnings. (Bug #5217)
fa8e045a 5206
a63dba42
KH
52072009-12-14 Kenichi Handa <handa@m17n.org>
5208
5209 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5210 in 8-bit encoding.
5211
5ce6e4f4 52122009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5213
5214 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5215 tooltip windows.
5216
223e5fc6
JD
52172009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5218
36acb2a7
JD
5219 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5220 Xatom_net_window_type.
5221
5222 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5223 Xatom_net_window_type.
5224
b8f00677
JD
5225 * xterm.c (my_log_handler): New function.
5226 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5227 so we can filter out buggy messages. (Bug #5120).
b8f00677 5228
e5f0bc9a
JD
5229 * xterm.c (xg_scroll_callback): Parameter list changed,
5230 use parameter GtkScrollType to determine scroll/line/page.
5231 Only allow dragging if a button < 4 is grabbed (bug #5177).
5232 (xg_end_scroll_callback): New function.
5233 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5234 xg_create_scroll_bar.
5235
5236 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5237 (scroll_end_callback): Remove.
5238 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5239 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5240 bug #5177.
e5f0bc9a
JD
5241 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5242 bug #5177.
5243
5244 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5245 (xg_create_scroll_bar): Add GCallback end_callback.
5246
223e5fc6
JD
5247 * xftfont.c (QClcdfilter): New variable.
5248 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5249 (syms_of_xftfont): Initialize QClcdfilter.
5250
3c055b77
JD
52512009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5252
5253 * xsettings.c (struct xsettings): Add member seen.
5254 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5255 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5256 (apply_xft_settings): Only update Xft settings with what member seen
5257 indicates as new.
5258
05fe33ff
EZ
52592009-12-12 Eli Zaretskii <eliz@gnu.org>
5260
c4cc8b9a 5261 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5262 (struct glyph): Use EMACS_INT for charpos.
5263 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5264 region_beg_charpos, region_end_charpos,
5265 redisplay_end_trigger_charpos, and also for
5266 iterator_stack_entry.end_charpos and
5267 iterator_stack_entry.stop_charpos.
5268
e8d7886a
JD
52692009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5270
5ce6e4f4 5271 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5272 (xg_create_scroll_bar): Call scroll_end_callback on button release
5273 event (bug #5177).
5274 (xg_event_is_for_scrollbar): != replaced with ==.
5275
d0db2ec8
KH
52762009-12-12 Kenichi Handa <handa@m17n.org>
5277
5278 * ftfont.c (struct ftfont_info): New member matrix.
5279 (ftfont_open): Setup xftfont_info->matrix.
5280 (MFLTFontFT): New member matrix.
5281 (FLOOR, CEIL, ROUND): New macros.
5282 (ftfont_get_metrics): Handle matrix transformation.
5283 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5284
5285 * xftfont.c (struct xftfont_info): New member matrix.
5286 (xftfont_open): Setup xftfont_info->matrix.
5287
52882009-12-10 Kenichi Handa <handa@m17n.org>
5289
5290 * xdisp.c (append_space_for_newline): Consider face-remapping.
5291
2cc7b62f
AS
52922009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5293
b87dd913
AS
5294 * xsettings.c: Include "keyboard.h".
5295
eba5eb94
AS
5296 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5297
2cc7b62f
AS
5298 Fix implicit function declarations.
5299 * cmds.c: Include "frame.h".
5300 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5301 * frame.h: Move declaration of delete_frame outside of
5302 HAVE_WINDOW_SYSTEM.
5303
a4ef73c8
CY
53042009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5305
5306 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5307
5308 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5309 GTK builds.
5310
944a300c
AS
53112009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5312
5313 * unexelf.c (unexec): Don't search for .data twice.
5314
022eef62
CY
53152009-12-05 Chong Yidong <cyd@stupidchicken.com>
5316
426ac949
CY
5317 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5318 if push failed.
5319 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5320 of push_display_prop (Bug#5000).
5321
022eef62
CY
5322 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5323 value of font_list_entities (Bug#5085).
5324
be95bee9
JB
53252009-12-04 Juanma Barranquero <lekktu@gmail.com>
5326
5327 Fix `string-to-number' to deal consistently with integers and floats.
5328 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5329 trailing characters, not just whitespace.
5330 (read1): Pass new arg 0 to keep old behavior.
5331 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5332 trailing chars, as it is already done for integers. Doc fixes.
5333 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5334
24c2d7ce
EZ
53352009-12-04 Eli Zaretskii <eliz@gnu.org>
5336
0b5397c2
SM
5337 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5338 Delete unused enumeration value.
24c2d7ce 5339
7e694795
EZ
53402009-12-03 Eli Zaretskii <eliz@gnu.org>
5341
5342 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5343
84b31826
SM
53442009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5345
5346 * process.c (Fmake_network_process): Fix up the tests for
5347 "connectionless socket", so they DTRT for seqpacket sockets as well.
5348
f00c449b
SM
53492009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5350
5351 * process.c (Qseqpacket): New symbol.
5352 (HAVE_SEQPACKET): New macro.
5353 (Fmake_network_process): Accept new :type `seqpacket'.
5354 (init_process): Add `seqpacket' feature when applicable.
5355 (syms_of_process): Initialize Qseqpacket.
5356
8096a0ff
YM
53572009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5358
5359 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5360 if entity is Qnil.
5361
3e0de07f
SM
53622009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5363
5364 * print.c (print_preprocess): Preprocess the key_and_value table of
5365 hashtables, even tho they're "hidden" (bug#5082).
5366
abeafb2a
JD
53672009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5368
5369 * frame.c (frame_make_pointer_invisible)
5370 (frame_make_pointer_visible): Declare f before statements.
5371
4bf47195
EZ
53722009-11-28 Eli Zaretskii <eliz@gnu.org>
5373
5374 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5375 omitted dependencies on lisp.h.
5376
c525b3f2
JD
53772009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5378
ece2d4ed
JD
5379 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5380 is NULL.
5381
5382 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5383
5384 * frame.c (frame_make_pointer_invisible)
3e0de07f 5385 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5386 frame.
5387
c525b3f2
JD
5388 * search.c (simple_search): Remove warning by making *p const.
5389
2f00e299
DN
53902009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5391
5392 * xdisp.c (power_letter): Remove duplicate const.
5393
084b049b
JD
53942009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5395
a1fadc6f
JD
5396 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5397
5ce6e4f4 5398 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5399 defaults (bug #5025).
5400
28259cac
SM
54012009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5402
5403 * insdel.c (adjust_markers_for_delete): Move it in the
5404 right direction! (bug#4803)
5405
e8e14166
YM
54062009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5407
5408 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5409
5410 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5411
86677b58
GM
54122009-11-24 Glenn Morris <rgm@gnu.org>
5413
5414 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5415
581e51e8
JD
54162009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5417
cfc86c7a
JD
5418 * Makefile.in: Must create deps for ecrt0.o in its rule.
5419
581e51e8
JD
5420 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5421 because that is what Gtk+ font dialog understands.
5422
5423 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5424 of Fcopy_sequence.
5425 (font_open_by_name): Put name given into QCname for font-object returned.
5426
5427 * frame.c (x_set_font): Save original font name as frame parameter
5428 font-parameter.
5429
5430 * xsettings.c (set_default_xft_settings): New function.
5431 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5432 is found.
5433
8b264ecb
AS
54342009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5435
5436 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5437 searching backwards through multibyte buffer.
5438
872870b2
JD
54392009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5440
5441 * xterm.c: #include xgselect.h.
5442 (x_initialize): Call xgselect_initialize.
5443
5444 * xsettings.c (something_changedCB): C++ comments => C comments.
5445 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5446 does that now.
5447
5448 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5449 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5450 (scroll_bar_button_cb): Remove.
5ce6e4f4 5451 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5452 event.
5453 (xg_create_scroll_bar): Don't bind button-press-event and
5454 button-release-event.
5455
5456 * process.c: Include xgselect.h if defined (USE_GTK) ||
5457 defined (HAVE_GCONF).
5458 (wait_reading_process_output): Call xg_select for the same condition.
5459
5460 * xgselect.c (xg_select): New function to better integrate with
5461 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5462
5463 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5464
5465 * Makefile.in (XOBJ): Add xgselect.o.
5466
62a6e103
AS
54672009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5468
0b5397c2
SM
5469 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5470 Remove ignored second argument. All callers changed.
62a6e103
AS
5471 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5472 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5473 * xdisp.c (string_char_and_length): Likewise.
5474
b0ca0f33
DN
54752009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5476
5477 * xterm.c (x_new_font):
5478 * print.c (print_object):
5479 * cmds.c (Fself_insert_command): Move declarations before statements.
5480
dd5a6279
CY
54812009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5482
5483 * s/cygwin.h: Remove unneeded linker flags.
5484
4a8e097d
JD
54852009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5486
0d1d0d26
JD
5487 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5488
5489 * xsettings.h: Declare xsettings_get_system_font.
5490
5491 * xsettings.c (xsettings_get_system_font): New function.
5492 (init_gconf): No use initiating gconf unless we have Xft also.
5493 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5494 HAVE_GCONF.
5495
4a8e097d
JD
5496 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5497 add a blank entry so it doesn't collapse into nothing.
5498
8ab1650e
SM
54992009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5500
5501 * lread.c (Funintern): Comment out last change.
5502
82c602f0
RS
55032009-11-19 Richard Stallman <rms@gnu.org>
5504
5505 * lread.c (Funintern): Error if symbol is t or nil.
5506
87e32266
SM
55072009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5508
5509 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5510 representation of Lisp integers.
5511 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5512
1b9ac145
AS
55132009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5514
5515 * lisp.h: Remove declaration of Ffont_get_system_font.
5516 * xfns.c: Move include of "xsettings.h".
5517 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5518
dfb3c4c6
JD
55192009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5520
87e32266
SM
5521 * xsettings.c (something_changedCB, Ffont_get_system_font):
5522 Check use_system_font.
dfb3c4c6
JD
5523 (syms_of_xsettings): DEFVAR font-use-system-font.
5524
9370c1d8
AS
55252009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5526
25fe851a
AS
5527 * xfns.c (x_default_font_parameter): Remove dead assignment.
5528
9370c1d8
AS
5529 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5530
637fa988
JD
55312009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5532
87e32266 5533 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5534 not have FC_LCD_*. #define them if not there.
a6eb20d8 5535
87e32266 5536 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5537
637fa988
JD
5538 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5539
5540 * xterm.c (handle_one_xevent): Call xft_settings_event for
5541 ClientMessage, PropertyNotify and DestroyNotify.
5542 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5543 Call xsettings_initialize.
5544
5545 * xftfont.c (xftfont_fix_match): New function.
5546 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5547 Call xftfont_fix_match after XftFontMatch.
5548
5549 * xfont.c (xfont_driver): Initialize all members.
5550
87e32266
SM
5551 * xfns.c (x_default_font_parameter):
5552 Try font from Ffont_get_system_font.
637fa988
JD
5553 Do not get font from x_default_parameter if we got one from
5554 Ffont_get_system_font.
87e32266 5555 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5556
5557 * w32font.c (w32font_driver): Initialize all members.
5558
5559 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5560
5561 * lisp.h: Declare syms_of_xsettings.
5562
87e32266
SM
5563 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5564 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5565
5566 * ftfont.c (ftfont_filter_properties): New function.
5567
5568 * frame.c (x_set_font): Remove unused variable lval.
5569
87e32266 5570 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5571
5572 * font.c (font_put_extra): Don't return if val is nil, it means
5573 boolean option is off.
5574 (font_parse_fcname): Collect all extra properties in extra_props
5575 and call filter_properties for all drivers with extra_props and
5576 font as parameter.
87e32266
SM
5577 (font_open_entity): Do not use cache, it does not pick up new
5578 fontconfig settings like hinting.
637fa988
JD
5579 (font_load_for_lface): If spec had a name in it, store it in entity.
5580
a73f9c9d 5581 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5582
5583 * config.in: HAVE_GCONF is new.
5584
5585 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5586 xsettings.o is new.
5587
5a942932
KH
55882009-11-17 Kenichi Handa <handa@m17n.org>
5589
5590 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5591 back to the default font in case that no suitable font is found.
5592
b7c7a4d1
SM
55932009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5594
5595 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5596 Suggested by Chad Brown <yandros@mit.edu>.
5597 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5598
072f1e39
JD
55992009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5600
5601 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5602
5d1e70a2
AS
56032009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5604
87e32266 5605 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5606
a53cfbe5
JD
56072009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5608
473a99b7
JD
5609 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5610 has a parent.
5611
a53cfbe5 5612 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5613 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5614
5615 * config.in: Generated (AUTO_DEPEND).
5616
f04bb9b2
MA
56172009-11-13 Michael Albinus <michael.albinus@gmx.de>
5618
b7c7a4d1 5619 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5620 Vdbus_registered_functions_table, because it contains also
5621 properties. Fix docstring.
b7c7a4d1 5622 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5623
8f11f7ec
SM
56242009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5625
5626 * alloc.c (mark_object): Don't reprocess marked strings.
5627 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5628 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5629
8a605fe8
KH
56302009-11-13 Kenichi Handa <handa@m17n.org>
5631
8f11f7ec 5632 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5633 semantics of Vword_combining_categories.
5634 (Vword_combining_categories): Describe the slight change of the
5635 semantics.
5636
241c4680
EZ
56372009-11-13 Eli Zaretskii <eliz@gnu.org>
5638
5639 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5640
5641 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5642
5d58e44c
SM
56432009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5644
5645 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5646
5e13f9d3
JB
56472009-11-12 Juanma Barranquero <lekktu@gmail.com>
5648
5649 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5650
cf54c754
DR
56512009-11-11 David Reitter <david.reitter@gmail.com>
5652
5653 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5654 variables to fix 2009-11-09 change.
5655
a4ada374
DN
56562009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5657
91433552
DN
5658 * process.c (ifflag_def): Make flag_sym constant.
5659 (Fnetwork_interface_info): Use a constant pointer.
5660 (ifflag_table):
5661 * xfns.c (cursor_bits):
5662 * xdisp.c (power_letter):
5663 * termcap.c (speeds, esctab):
5664 * sysdep.c (baud_convert):
5665 * keyboard.c (lispy_accent_codes, modifier_names):
5666 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5667 (jpeg_format, tiff_format, gif_format, svg_format)
5668 (interlace_start, interlace_increment, gs_format):
5669 * gtkutil.c (separator_names):
5670 * fringe.c (swap_nibble):
5671 * fns.c (base64_value_to_char, base64_char_to_value):
5672 * fileio.c (make_temp_name_tbl):
5673 * coding.c (suffixes): Make constant.
5674
f4265f6c
DN
5675 * frame.c (make_initial_frame):
5676 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5677 build_string.
5678 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5679
04420943
DN
5680 * s/freebsd.h:
5681 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5682
0a5d24ae
DN
5683 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5684 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5685
a4ada374
DN
5686 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5687 * xterm.c (syms_of_xterm):
5688 * xfaces.c (syms_of_xfaces):
5689 * xdisp.c (syms_of_xdisp):
5690 * lread.c (syms_of_lread):
5691 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5692 build_string.
91433552 5693
a4ada374
DN
5694 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5695
af98fc7f
SM
56962009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5697
8ab1650e 5698 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5699
e90292a9
JD
57002009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5701
5702 * keyboard.h: Declare timer_check.
5703
5704 * keyboard.c (timer_check_2): New function that does what the old
5705 timer_check did.
5706 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5707 returned, i.e. don't return -1 with timers pending.
5708
5709 * process.c: Remove extern declaration of timer_check.
5710
5711 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5712 even if timer_check returned -1.
5713
af98fc7f
SM
5714 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5715 xg_dialog_data.
e90292a9
JD
5716 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5717 the event loop.
5718 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5719 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5720 Destroy the dialog after xg_dialog_run.
5721
045b83c0
SM
57222009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5723
5724 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5725
1fb99a3a
JD
57262009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5727
5728 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5729
04e452cb
JB
57302009-11-09 Juanma Barranquero <lekktu@gmail.com>
5731
5732 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5733
ef7417fd
SM
57342009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5735
5736 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5737 w32menu.c, and nsmenu.m.
5738 Simplify the obsolete case where position is nil.
5739 (cleanup_popup_menu): New function, moved from nsmenu.m.
5740 (struct skp): Remove slot `notreal'.
5741 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5742 adjust callers.
5743 (single_menu_item): Adjust call to parse_menu_item.
5744 (syms_of_menu): Defsubr x-popup-menu.
5745 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5746 (keymap_panes): Don't export any more.
5747 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5748 (xmenu_show): Declare.
5749 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5750 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5751 * keyboard.h (parse_menu_item): Update declaration.
5752 * xmenu.c (Fx_popup_menu): Remove.
5753 (syms_of_xmenu): Don't defsubr x-popup-menu.
5754 * w32menu.c (Fx_popup_menu): Remove.
5755 (syms_of_w32menu): Don't defsubr x-popup-menu.
5756 * nsmenu.m (cleanup_popup_menu): Remove.
5757 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5758 moved to menu.c's Fx_popup_menu.
5759 (Fx_popup_menu): Remove.
5760 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5761 menu_items (it's done in menu.c already).
5762
424d6179
SM
57632009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5766 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5767
c0df13a6 57682009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5769
5770 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5771 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5772 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5773 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5774
2de9f71c
SM
57752009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5776
5777 Let integers use up 2 tags to give them one extra bit and thus double
5778 their range.
5779 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5780 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5781 New macros.
5782 (enum Lisp_Type): Use them. Give explicit values.
5783 (Lisp_Type_Limit): Remove.
5784 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5785 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5786 Pay attention to USE_2_TAGS_FOR_INTS.
5787 (INTEGERP): Use LISP_INT_TAG_P.
5788 * fns.c (internal_equal): Simplify the default case.
5789 (sxhash): Use case_Lisp_Int.
5790 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5791 any more.
5792 (Ftype_of): Use case_Lisp_Int.
5793 (store_symval_forwarding): Take into account the fact that Ints can
5794 now have more than one tag.
5795 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 5796 (buffer_slot_type_mismatch):
2de9f71c
SM
5797 * xfaces.c (face_attr_equal_p):
5798 * print.c (print_object):
5799 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5800 Use case_Lisp_Int.
5801
323637a2
EZ
58022009-11-06 Eli Zaretskii <eliz@gnu.org>
5803
7ac65b38
EZ
5804 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5805
323637a2
EZ
5806 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5807 warning.
5808
e511451f
JD
58092009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5810
5811 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5812
5813 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5814
5815 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5816 ButtonPressRelease and MotionNotify (bug#4870).
5817
5e2327cf
DN
58182009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5819
5adc433e
DN
5820 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5821
d67b4f80
DN
5822 * xterm.c (syms_of_xterm):
5823 * xselect.c (syms_of_xselect):
5824 * xmenu.c (syms_of_xmenu):
5825 * xfns.c (syms_of_xfns):
5826 * xfaces.c (syms_of_xfaces):
5827 * xdisp.c (syms_of_xdisp):
5828 * window.c (syms_of_window):
5829 * w32fns.c (syms_of_w32fns):
5830 * undo.c (syms_of_undo):
5831 * textprop.c (syms_of_textprop):
5832 * terminal.c (syms_of_terminal):
5833 * syntax.c (syms_of_syntax):
5834 * sound.c (syms_of_sound):
5835 * search.c (syms_of_search):
5836 * print.c (syms_of_print):
5837 * minibuf.c (syms_of_minibuf):
5838 * macros.c (syms_of_macros):
5839 * keymap.c (syms_of_keymap, initial_define_key)
5840 (initial_define_lispy_key):
5841 * keyboard.c (syms_of_keyboard):
5842 * insdel.c (syms_of_insdel):
5843 * image.c (syms_of_image):
5844 * fringe.c (syms_of_fringe):
5845 * frame.c (syms_of_frame):
5846 * fontset.c (syms_of_fontset):
5847 * fns.c (syms_of_fns):
5848 * fns.c (syms_of_fns):
5849 * fileio.c (syms_of_fileio):
5850 * fileio.c (syms_of_fileio):
5851 * eval.c (syms_of_eval):
5852 * doc.c (syms_of_doc):
5853 * dispnew.c (syms_of_display):
5854 * dired.c (syms_of_dired):
5855 * dbusbind.c (syms_of_dbusbind):
5856 * data.c (syms_of_data):
5857 * composite.c (syms_of_composite):
5858 * coding.c (syms_of_coding):
5859 * cmds.c (syms_of_cmds):
5860 * charset.c (define_charset_internal, syms_of_character):
5861 * ccl.c (syms_of_ccl):
5862 * category.c (syms_of_category, init_category_once):
5863 * casetab.c (syms_of_casetab):
5864 * casefiddle.c (syms_of_casefiddle):
5865 * callint.c (syms_of_callint):
5866 * bytecode.c (syms_of_bytecode):
5867 * buffer.c (keys_of_buffer, syms_of_buffer):
5868 * alloc.c (syms_of_alloc):
5869 * process.c (syms_of_process, init_process):
5870 * lread.c (syms_of_lread, init_obarray):
5871 * font.c (build_style_table):
5872 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5873 intern_c_string, calls to make_pure_string with
5874 make_pure_c_string. Use pure_cons instead of Fcons.
5875
5e2327cf
DN
5876 * process.c (socket_options): Make it const.
5877 (set_socket_option, init_process): Use a const pointer.
5878
5879 * lread.c (intern_c_string): New function.
5880 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5881 (defvar_int): Uset it. Make the name const char*.
5882
5883 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5884 (defvar_int): Update prototypes.
5885 (DEFUN, EXFUN): Support for prototypes is now required.
5886 (intern_c_string): New prototype.
5887 (struct Lisp_Subr): Make symbol_name constant.
5888
5889 * font.c (struct table_entry): Remove unused member. Make NAMES
5890 constant.
5891 (weight_table, slant_table, width_table): Make constant.
5892
5893 * emacs.c (struct standard_args): Make name and longname constant.
5894
5895 * character.h (DEFSYM): Use intern_c_string.
5896
a56eaaef
DN
58972009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5898
5899 * alloc.c (make_pure_c_string): New function.
5900
5901 * eval.c (Fautoload): Purecopy all arguments.
5902
f6a07420
KH
59032009-11-05 Kenichi Handa <handa@m17n.org>
5904
5905 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5906 the buffer in case of replace.
5907
5d28d4b1
DN
59082009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5909
5910 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5911
b349d111
SM
59122009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5913
d528b1ce
SM
5914 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5915 when applicable (bug#4851).
5916
b349d111
SM
5917 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5918 (P_): Support for prototypes is now required.
5919
c38eb027
CY
59202009-10-31 Chong Yidong <cyd@stupidchicken.com>
5921
5922 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5923 (Bug#4827).
5924
0405f8d9
EZ
59252009-10-30 Eli Zaretskii <eliz@gnu.org>
5926
d528b1ce 5927 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5928
ca0a881a
DN
59292009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5930
5931 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5932
d528b1ce
SM
5933 * lread.c (Fload): Purecopy the file name when building
5934 Vpreloaded_file_list.
ca0a881a 5935
47e0e0e4
JR
59362009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5937
5938 * w32fns.c (syms_of_w32fns): Change default value of
5939 w32-scroll-lock-modifier to nil. (Bug#2827)
5940
057bce6f
JB
59412009-10-26 Juanma Barranquero <lekktu@gmail.com>
5942
782a943e 5943 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5944
242bc74c
AS
59452009-10-26 Andreas Schwab <schwab@redhat.com>
5946
5947 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5948
522d013a
JB
59492009-10-26 Juanma Barranquero <lekktu@gmail.com>
5950
5951 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5952 For delta < 0, skip check that only makes sense when the mini-window
5953 is going to be enlarged. (Bug#4534)
5954
18060980
CY
59552009-10-25 Chong Yidong <cyd@stupidchicken.com>
5956
5957 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5958 string in menu maps (Bug#4471).
5959
fec8f0fe
CY
59602009-10-24 Chong Yidong <cyd@stupidchicken.com>
5961
5962 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5963 FRAME_NS_VIEW on terminal frames (Bug#4765).
5964
10d66ec0
AS
59652009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5966
1cae01f7
AS
5967 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5968 DBUS_TYPE_UINTnn separately to get proper sign extension.
5969
58a12889
AS
5970 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5971 can properly handle unsigned types.
d528b1ce 5972 (make_uid, make_gid): Remove.
58a12889 5973
987c9327
AS
5974 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5975 types again.
5976
522d013a 5977 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5978 (system_process_attributes): Likewise.
5979
905a9ed3
DN
59802009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5981
5982 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5983
5984 * eval.c (Fautoload): Purecopy the filename. Simplify.
5985
5986 * category.c (Fdefine_category): Purecopy docstring.
5987
a599b3e8
AS
59882009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5989
7b792fc9
AS
5990 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5991
a599b3e8
AS
5992 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5993
b35ac83e
CY
59942009-10-23 Chong Yidong <cyd@stupidchicken.com>
5995
5996 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5997 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5998 (Bug#4775).
5999
e8903e00
SM
60002009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6001
6002 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6003 (init_fileio_once):
6004 * lisp.h (init_fileio_once): Remove.
6005 * emacs.c (main): Don't call init_fileio_once.
6006
8f43cbf3
DN
60072009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6008
6009 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6010
26898943
AS
60112009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6012
6013 * doprnt.c (doprnt): Fix overflow check.
6014
5c646d5a
JD
60152009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6016
3132a7ea
JD
6017 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6018
5c646d5a
JD
6019 * xterm.h (x_wait_for_event): Declare it.
6020
6021 * xterm.c (pending_event_wait): New variable.
6022 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6023 see pending_event_wait.eventtype.
6024 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6025 (x_new_font): Call change_frame_size with new rows/columns before we
6026 try to resize the frame.
5c646d5a 6027 (x_wait_for_event): New function.
d528b1ce
SM
6028 (x_set_window_size_1): Don't change gravity unless change_gravity
6029 is set.
5c646d5a
JD
6030 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6031 don't change frame size, instead wait for the ConfigureNotify.
6032 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6033 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6034 (x_initialize): Initialize pending_event_wait.
6035
6036 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6037 size.
6038
6039 * widget.c (EmacsFrameSetValues): Add comment.
6040 (EmacsFrameSetCharSize): Just call x_set_window_size.
6041
6042 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6043 x_wait_for_event.
d528b1ce 6044 (flush_and_sync): Remove again.
5c646d5a
JD
6045 (xg_get_font_name): Suggest monospace if no previous font is known.
6046
e9c1637d
SM
60472009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6048
6049 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6050 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6051
5a72cccb
YM
60522009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6053
6054 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6055 processing pending events when event is filtered for input method.
ab04798f 6056 (Bug#3681)
5a72cccb 6057
2629aa37
JB
60582009-10-20 Juanma Barranquero <lekktu@gmail.com>
6059
6060 * fns.c: Add #endif accidentally removed in previous change.
6061
c3417a74
DN
60622009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6063
6064 * fns.c: Remove code for unsupported system: MAC_OS.
6065 * image.c: Likewise. Include setjmp.h.
6066
9685cef2
JD
60672009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6068
6069 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6070 pixel -1 (bug #4742).
6071
d7306fe6
DN
60722009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6073
019d2c4c
DN
6074 * process.c (create_pty): Remove conditionals for no longer
6075 supported systems: UNIPLUS and RTU.
6076
ee6bacd4
DN
6077 * xterm.c:
6078 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6079
d7306fe6
DN
6080 * alloc.c: Do not define struct catchtag.
6081 * eval.c: Move struct catchtag definition ...
6082 * lisp.h: ... here.
6083
6084 * image.c: Move png.h #include earlier to avoid warnings.
6085
6086 * xterm.c:
6087 * xsmfns.c:
6088 * xselect.c:
6089 * xrdb.c:
6090 * xmenu.c:
6091 * xftfont.c:
6092 * xfont.c:
6093 * xfns.c:
6094 * xfaces.c:
6095 * xdisp.c:
6096 * window.c:
6097 * widget.c:
6098 * w32xfns.c:
6099 * w32uniscribe.c:
6100 * w32term.c:
6101 * w32select.c:
6102 * w32reg.c:
6103 * w32proc.c:
6104 * w32menu.c:
6105 * w32inevt.c:
6106 * w32heap.c:
6107 * w32font.c:
6108 * w32fns.c:
6109 * w32console.c:
6110 * w32.c:
6111 * w16select.c:
6112 * vm-limit.c:
6113 * unexsol.c:
6114 * unexec.c:
6115 * unexcw.c:
6116 * unexaix.c:
6117 * undo.c:
6118 * tparam.c:
6119 * textprop.c:
6120 * terminfo.c:
6121 * terminal.c:
6122 * termcap.c:
6123 * term.c:
6124 * syntax.c:
6125 * sound.c:
6126 * sheap.c:
6127 * search.c:
6128 * scroll.c:
6129 * region-cache.c:
6130 * regex.c:
6131 * ralloc.c:
6132 * process.c:
6133 * print.c:
b024548b
DN
6134 * nsterm.m:
6135 * nsselect.m:
6136 * nsmenu.m:
6137 * nsimage.m:
6138 * nsfont.m:
6139 * nsfns.m:
d7306fe6
DN
6140 * msdos.c:
6141 * minibuf.c:
6142 * menu.c:
6143 * marker.c:
6144 * macros.c:
6145 * keymap.c:
6146 * keyboard.c:
6147 * intervals.c:
6148 * insdel.c:
6149 * indent.c:
6150 * gtkutil.c:
6151 * ftxfont.c:
6152 * ftfont.c:
6153 * fringe.c:
6154 * frame.c:
6155 * fontset.c:
6156 * font.c:
6157 * fns.c:
6158 * floatfns.c:
6159 * filelock.c:
6160 * fileio.c:
6161 * emacs.c:
6162 * editfns.c:
6163 * dosfns.c:
6164 * doprnt.c:
6165 * doc.c:
6166 * dispnew.c:
6167 * dired.c:
6168 * dbusbind.c:
6169 * data.c:
6170 * composite.c:
6171 * coding.c:
6172 * cmds.c:
6173 * cm.c:
6174 * chartab.c:
6175 * charset.c:
6176 * character.c:
6177 * ccl.c:
6178 * category.c:
6179 * casetab.c:
6180 * casefiddle.c:
6181 * callproc.c:
6182 * callint.c:
6183 * bytecode.c:
6184 * buffer.c:
6185 * atimer.c: Include setjmp.h. (Bug#4643)
6186
fd5f21e6
SM
61872009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6188
4c0354d7
SM
6189 Remove leftover table unibyte_to_multibyte_table.
6190 * character.c (unibyte_to_multibyte_table): Remove.
6191 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6192 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6193 * character.h (UNIBYTE_TO_CHAR): New macro.
6194 (MAKE_CHAR_MULTIBYTE): Use it.
6195 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6196 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6197 (message_dolog, set_message_1):
6198 * search.c (Freplace_match):
6199 * editfns.c (Fcompare_buffer_substrings):
6200 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6201 (concat):
6202 * insdel.c (copy_text, count_size_as_multibyte):
6203 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6204 * term.c (produce_glyphs):
6205 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6206 * regex.c (RE_CHAR_TO_MULTIBYTE):
6207 * cmds.c (internal_self_insert):
6208 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6209
fd5f21e6
SM
6210 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6211
4418646e
DN
62122009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6213
6214 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6215
35f5c1d2
JB
62162009-10-16 Juanma Barranquero <lekktu@gmail.com>
6217
6218 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6219
a0cd8f6b
AR
62202009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6221
6222 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6223 still needed under Tiger.
6224
6225 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6226
6227 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6228 __Apple__.
6229
6230 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6231
01a8d3fa
KH
62322009-10-15 Kenichi Handa <handa@m17n.org>
6233
6234 * print.c (print_object): Escape a symbol like "2E10" too.
6235
bf6c75c9 62362009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6237
6238 Cleanups and changes for 64-bit compile under Snow Leopard.
6239 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6240
6241 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6242
c5959062 6243 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6244 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6245 cast argument.
6246 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6247 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6248
6249 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6250
6251 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6252 where appropriate.
6253
6254 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6255 where appropriate.
6e4780c5
JB
6256 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6257 Use stringWithUTF8String.
bf6c75c9
AR
6258 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6259
6e4780c5
JB
6260 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6261 Add formal protocol mention to inheritance.
bf6c75c9
AR
6262 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6263
6e4780c5
JB
6264 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6265 Fix printf format.
bf6c75c9
AR
6266 (ns_query_color): Use CGFloat where appropriate.
6267 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6268 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6269 argument.
6270
3d87f118
AR
6271 * config.in (NS_HAVE_NSINTEGER): Drop.
6272
a95c8102
AR
6273 * dbusbind.c (dbus-method-return-internal)
6274 (dbus-method-error-internal): Use long format in printf, and cast
6275 argument.
6276
6277 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6278 in printf, and cast argument.
6279
6873acca 6280 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6281 cast argument.
6282
9ec6f100
GM
62832009-10-11 Glenn Morris <rgm@gnu.org>
6284
6285 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6286
5be883cd
JD
62872009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6288
6289 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6290 menu bar with a small width so it doesn't enlarge the frame.
6291
d7a39b51
JB
62922009-10-08 Juanma Barranquero <lekktu@gmail.com>
6293
6294 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6295
0c2b6f8e
GM
62962009-10-06 Glenn Morris <rgm@gnu.org>
6297
6298 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6299 SOME_MACHINE_LISP (this enters indirectly via DOC).
6300
e02131a2
EZ
63012009-10-05 Eli Zaretskii <eliz@gnu.org>
6302
6303 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6304
b4744254
EZ
63052009-10-04 Eli Zaretskii <eliz@gnu.org>
6306
6307 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6308 Doc fix.
6309
dbf64827
JB
63102009-10-03 Martin Rudalics <rudalics@gmx.at>
6311
6312 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6313
e9a0aef8
MA
63142009-10-02 Michael Albinus <michael.albinus@gmx.de>
6315
d528b1ce 6316 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6317 used anymore outside fileio.c.
6318
6319 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6320
64eb2b56
JB
63212009-10-01 Juanma Barranquero <lekktu@gmail.com>
6322
6323 * lisp.h (Qdelete_directory_internal):
6324 Declare, instead of Qdelete_directory.
6325
6326 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6327
9d28c33e
SM
63282009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6329
6330 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6331
9d8f3bd9
MA
63322009-10-01 Michael Albinus <michael.albinus@gmx.de>
6333
9d28c33e 6334 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6335 Fdelete_directory. It is not a command anymore. It has no file
6336 name handler.
6337
9694740b
SM
63382009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6339
6340 * xdisp.c (get_next_display_element): Use an enum in last change.
6341
748e162f
KH
63422009-09-28 Kenichi Handa <handa@m17n.org>
6343
9694740b 6344 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6345 unibyte_display_via_language_environment in handling
6346 Vnobreak_char_display.
6347
17efd58d
AR
63482009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6349
6350 * nsterm.h (ns_app_name): New extern variable.
6351
6352 * nsterm.m (ns_app_name): New variable.
6353 (ns_term_init): Set and use it.
6354 (ns_term_shutdown): Use it.
6355
6356 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6357 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6358
6359 * nsfns.m (ns_set_name_iconic, ns_set_name)
6360 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6361 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6362
9694740b
SM
6363 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6364 Remove double-casting in client_data comparison.
31c2d412 6365
3208cb35
YM
63662009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6367
6368 * keyboard.c (make_lispy_event): Remember last wheel direction.
6369 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6370
b7d552d6
GM
63712009-09-26 Glenn Morris <rgm@gnu.org>
6372
6373 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6374 internal.elc. Add term/pc-win.elc.
6375 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6376 term/x-win.elc.
6377 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6378 term/w32-win.elc.
6379 (NS_SUPPORT): New.
6380 (lisp): Add NS_SUPPORT.
6381 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6382
4ff670a8
DR
63832009-09-25 David Reitter <david.reitter@gmail.com>
6384
6385 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6386 on Mac OS X 10.6+ (bug#4513).
6387
feabfb6c
JB
63882009-09-24 Juanma Barranquero <lekktu@gmail.com>
6389
6390 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6391 some parts of Emacs code (like font selection) don't grok them.
6392 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6393
de59072a
AS
63942009-09-24 Andreas Schwab <schwab@redhat.com>
6395
6396 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6397
a489517b
JB
63982009-09-24 Juanma Barranquero <lekktu@gmail.com>
6399
6400 * dired.c (Fdirectory_files): Fix typo in docstring.
6401
0592970c
AR
64022009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6403
6404 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6405 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6406 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6407 under GNUstep.
6408 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6409
6410 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6411 glyph advancement.
6412
48e8a88b
AR
64132009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6414
6415 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6416 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6417
6418 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6419 deleted (bug #4492).
6420
e14f0a78
AR
6421 * nsfont.m (Vns_reg_to_script): New lisp variable.
6422 (syms_of_nsfont): Declare it.
6423 (ns_registry_to_script): New function.
6424 (ns_get_req_script): Call it.
6425 (ns_findfonts): Don't give up on non-unicode registry.
6426
6427 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6428
5b650faa
SM
64292009-09-20 Tom Tromey <tromey@redhat.com>
6430
6431 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6432 batch mode (bug#4228).
6433
a489517b 64342009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6435
6436 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6437 carefully. (Bug #4339)
0bae4e09 6438
fcfe06f3
CY
64392009-09-18 Chong Yidong <cyd@stupidchicken.com>
6440
d798ba87 6441 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6442
31642728
AR
64432009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6444
6445 * emacs.c (inhibit_x_resources): Update doc string for NS.
6446 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6447 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6448
6449 * nsterm.h (ns_no_defaults): Remove.
6450
6451 * nsterm.m (ns_no_defaults): Remove.
6452 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6453 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6454 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6455 don't update the NSWindow itself.
6456 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6457 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6458
6459 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6460 ns_use_qd_smoothing.
6461
6462 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6463 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6464 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6465 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6466
8686ac71
JB
64672009-09-17 Juanma Barranquero <lekktu@gmail.com>
6468
6469 * emacs.c (inhibit_x_resources): New variable.
6470 (main) [HAVE_NS]: Don't process --quick command line option.
6471 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6472
6473 * lisp.h (inhibit_x_resources): Declare it extern.
6474
6475 * w32reg.c (x_get_string_resource):
6476 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6477
e227ba05
EZ
64782009-09-17 Eli Zaretskii <eliz@gnu.org>
6479
362654a6
JB
6480 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6481 Add lisp/term/internal.elc.
e227ba05 6482
742d40e8
SM
64832009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6484
6485 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6486 (bug#4461).
6487
005bd5a2
DN
64882009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6489
6490 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6491
6492 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6493 (OBJECTS_MACHINE): Remove, unused.
6494
f9af9719
SM
64952009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6496
6497 * frame.c (x_get_resource_string): Remove unused.
6498
0307c7d2
JD
64992009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6500
6501 * xterm.c (x_new_font): Call change_frame_size before calling
6502 x_set_window_size, in case frame size won't change.
6503
6504 * frame.c (x_set_font): Remove dead code.
6505
428b13d6
SM
65062009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6509
5766c380
SM
65102009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6511
6512 * lread.c (Fload): Don't output a message after loading an obsolete
6513 package any more (done in Lisp now).
6514
2fd0161b
CY
65152009-09-12 Chong Yidong <cyd@stupidchicken.com>
6516
6517 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6518
bc5e75b6
SM
65192009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6520
6521 * keymap.c (Fwhere_is_internal): Use nconc2.
6522
c31c985e
AM
65232009-09-11 Alan Mackenzie <acm@muc.de>
6524
6525 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6526 batch mode.
6527
78012bd2
AS
65282009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6529
6530 * xdisp.c (display_mode_element): Detect cycles.
6531
9d889332
SM
65322009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6533
6534 * keymap.c (where_is_internal): Don't erroneously return nil right after
6535 filling the cache.
6536 (where_is_internal_1): Fix up typo.
6537
7ab5d780
GM
65382009-09-11 Glenn Morris <rgm@gnu.org>
6539
6540 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6541 share a common doc-string.
6542
5238a749
SM
65432009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6544
66d77eda
SM
6545 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6546 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6547
5238a749
SM
6548 * keymap.c (QCadvertised_binding): New constant.
6549 (syms_of_keymap): Initialize it.
6550 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6551 if applicable.
6552
19f48442
SM
65532009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6554
50d4ba39
SM
6555 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6556 (parse_menu_item): Streamline since bindings are recomputed all the
6557 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6558 more and don't support lmenu's menu-alias any more either.
6559
a88a5372
SM
6560 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6561 (where_is_internal): Strip it down to only traverse the keymaps.
6562 Move the cache handling from Fwhere_is_internal to here.
6563 (Fwhere_is_internal): Move the handling of remapping and the choice of
6564 the best binding from where_is_internal to here.
6565 Unify the cached/noncached paths, so remapping is also handled
6566 correctly when the cache is used, and so the cache can be used to
6567 speed up remap-handling when applicable.
6568 Give preference to non-remapped bindings.
6569 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6570 non-remapped bindings.
6571 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6572 command remapping.
6573
19f48442
SM
6574 * xdisp.c (display_mode_element): Move list length limit from 50 to
6575 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6576
599498c3 65772009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6578
6579 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6580
f9b7b5ac
SM
65812009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6582
a53af587
JB
6583 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6584 (Bug#4334)
6585
f9b7b5ac
SM
6586 * keymap.c (where_is_internal): Filter out shadowed remappings.
6587 Assume that where_is_internal returns unshadowed bindings to simplify
6588 the code and get rid of the gotos. Use ASIZE.
6589
04f4b72d
JD
65902009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6591
4da146f2
JD
6592 * xterm.c (x_focus_changed): If we get a focusout and pointer
6593 is invisible, make it visible.
6594
04f4b72d
JD
6595 * xterm.h: Remove condition for declaration of
6596 x_*_window_to_frame.
6597
7cef7ce3
SM
65982009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6599
6600 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6601 initial terminal as well.
6602
a54fa5b7
JD
66032009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6604
6605 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6606 x_menubar_window_to_frame.
a54fa5b7 6607
50426a04 6608 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6609 (XTmouse_position): Do not return valid positions
6610 for clicks in the menubar and the toolbar for Gtk+.
6611
6612 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6613 if the widget for the event has the same top level as a frame,
6614 return the frame.
6615 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6616 internal windows, bug #4122.
6617 (x_non_menubar_window_to_frame): Remove.
6618
5a021dd0
GM
66192009-09-02 Glenn Morris <rgm@gnu.org>
6620
6621 * buffer.c (default-major-mode): Move most of the doc from here...
6622 (major-mode): ... to here.
6623
548fe2f3
NR
66242009-08-30 Nick Roberts <nickrob@snap.net.nz>
6625
6626 * process.c (wait_reading_process_output): Keep the descriptor
6627 when pty is used by a non-child process, e.g., in I/O buffer of
6628 GDB this allows inferior to be restarted.
6629
e0840eef
EZ
66302009-08-29 Eli Zaretskii <eliz@gnu.org>
6631
6632 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6633 both branches into one.
6634
82e98df4
SM
66352009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6636
6637 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6638 (main): Use enable-multibyte-characters rather than
6639 default-enable-multibyte-characters. Output a warning message when
6640 running a unibyte session.
6641
890617cb
YM
66422009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6643
6644 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6645 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6646 (copy_data_segment): Also copy __program_vars section.
6647 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6648 (dump_it) [LC_DYLD_INFO]: Use it.
6649
6650 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6651
e7adeadc
EZ
66522009-08-28 Eli Zaretskii <eliz@gnu.org>
6653
6654 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6655 $(SRC)/buildobj.h.
6656 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6657 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6658 $(SRC)/buildobj.h.
6659 (clean): Add buildobj.h.
6660
3ed8bbdc
TZ
66612009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6662
6663 * print.c (print_object): Set escapeflag to 1 when printing
6664 hashtable keys and values.
6665
155a6764
SM
66662009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * lread.c (read_integer): Use doubles (and potentially return a float
6669 number) as we do in string-to-number.
6670 (read1): Use strtol to read integers, signal errors on strtol's
6671 overflow and use floats if strtol's output is too large for
6672 Elisp integers.
6673
877610de
EZ
66742009-08-27 Eli Zaretskii <eliz@gnu.org>
6675
6676 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6677 (make-buildobj-SH): Fix last change.
6678 (SRC): Move to before where it's first used.
6679
ef73e7be
KH
66802009-08-27 Kenichi Handa <handa@m17n.org>
6681
550c8289
KH
6682 * process.c (send_process): Use encode_coding_object instead of
6683 encode_coding_string to perform eol-conversion even if the string
6684 is unibyte.
6685
60afa08d
KH
6686 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6687 character.
6688
ef73e7be 6689 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6690 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6691
7b3a82d7
DN
66922009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6693
5654bf63
DN
6694 * callproc.c (Fcall_process): Remove always true #if.
6695
7b3a82d7
DN
6696 * lisp.h: Replace #if 0 code for checking with text pointing to
6697 the --enable-checking configure flag.
6698
6699 * emacs.c (main): Mention the --enable-profiling configure flag
6700 instead of using CFLAGS.
6701
878bde49
KR
67022009-08-26 Ken Raeburn <raeburn@raeburn.org>
6703
6704 * Makefile.in (buildobj.h): New target.
6705 (doc.o): Depend on it.
6706 (temacs${EXEEXT}): Don't generate buildobj.lst.
6707 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6708 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6709 ($(BLD)/doc.$(O)): Depend on it.
6710 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6711 provided by Eli Zaretskii.)
6712 ($(TEMACS)): Don't generate buildobj.lst.
6713 * doc.c: Include buildobj.h.
6714 (buildobj): New static variable.
6715 (Fsnarf_documentation): Use it, instead of opening and reading
6716 buildobj.lst.
6717
1574224c
MA
67182009-08-25 Michael Albinus <michael.albinus@gmx.de>
6719
6720 * dbusbind.c (Fdbus_call_method)
6721 (Fdbus_call_method_asynchronously): Use English numeric format for
6722 timeout values in doc string.
6723
d9da2f45
KH
67242009-08-25 Kenichi Handa <handa@m17n.org>
6725
ef73e7be
KH
6726 * alloc.c (mark_char_table): New function.
6727 (mark_object): Use mark_char_table for a char-table.
6728
d9da2f45
KH
6729 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6730 (CHAR_TABLE_REF): Use it.
6731
c8edcc01
KR
67322009-08-23 Ken Raeburn <raeburn@raeburn.org>
6733
6734 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6735 before invoking the newly build emacs to check for load-path
6736 shadowing.
6737
7763401b
GM
67382009-08-22 Glenn Morris <rgm@gnu.org>
6739
6740 * Makefile.in (bootstrap_exe): New variable.
6741 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6742 Use ${bootstrap_exe}.
6743
729eadda
EZ
67442009-08-22 Eli Zaretskii <eliz@gnu.org>
6745
6746 * coding.h (encode_coding_string): Don't encode unibyte strings.
6747 (Bug#4047)
6748
eb4c6ace
MA
67492009-08-22 Michael Albinus <michael.albinus@gmx.de>
6750
6751 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6752
6753 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6754 intended as hotfix only.
6755 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6756
36e34d1b
AR
67572009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6758
6759 * nsterm.m (ns_get_color): Update documentation properly for last
6760 change, and clean up loose ends in the code left by it. Fix
6761 longstanding bug with 16-bit hex parsing, and add support for
6762 yet another X11 format (rgb:r/g/b) for compatibility.
6763 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6764 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6765
f983eb8a
SM
67662009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6767
6768 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6769
3f56d3c6
MA
67702009-08-20 Michael Albinus <michael.albinus@gmx.de>
6771
6772 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6773 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6774 (xd_initialize, xd_pending_messages): Check, whether
6775 $DBUS_SESSION_BUS_ADDRESS is set.
6776
fb641d68
YM
67772009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6778
6779 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6780
6781 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6782
cf59a374
GM
67832009-08-20 Glenn Morris <rgm@gnu.org>
6784
6785 * emacs.c (system-type): Doc fix.
6786
1373f3be
SM
67872009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6788
6789 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6790 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6791
058ed861
MA
67922009-08-18 Michael Albinus <michael.albinus@gmx.de>
6793
1373f3be
SM
6794 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6795 New functions.
058ed861
MA
6796 (xd_initialize): Revert change from 2009-08-16.
6797
563a866e 67982009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6799
6800 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6801 font-group vector, return nil.
5fc05db0 6802
e42bdf01
CY
68032009-08-17 Chong Yidong <cyd@stupidchicken.com>
6804
6805 * process.c (status_notify): Don't perform redisplay.
6806 (Fdelete_process, list_processes_1, process_send_signal):
6807 Expliticly perform redisplay.
6808 (wait_reading_process_output): Always check process status, but
6809 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6810
4230ab74
KR
68112009-08-17 Ken Raeburn <raeburn@raeburn.org>
6812
1373f3be 6813 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6814 (XFLOAT_INIT): New macro for storing a float value.
6815 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6816 * fns.c (sxhash): Copy out the value of a float in order to
6817 examine its bytes.
6818 * dbusbind.c (xd_append_arg): Likewise.
6819
4230ab74
KR
6820 * emacs.c (main): Don't call syms_of_data twice.
6821
a0645cdd
MA
68222009-08-16 Michael Albinus <michael.albinus@gmx.de>
6823
6824 * dbusbind.c (xd_initialize): Add connection file descriptor to
6825 input_wait_mask, in order to let select() detect, whether a new
6826 message has been arrived.
ca4f31ea 6827 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6828
485db0ba
MA
68292009-08-15 Michael Albinus <michael.albinus@gmx.de>
6830
1373f3be
SM
6831 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6832 New functions.
485db0ba
MA
6833
6834 * lisp.h (xd_pending_messages): Declare.
6835
6836 * keyboard.c (readable_events): Call xd_pending_messages.
6837
b5b98ff4
CY
68382009-08-15 Chong Yidong <cyd@stupidchicken.com>
6839
1373f3be 6840 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6841
f8354c6e
CY
6842 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6843
b5b98ff4
CY
6844 * buffer.c (set_buffer_internal_1)
6845 (swap_out_buffer_local_variables): Check for unbound local
6846 variables (Bug#4138).
6847
8b9fc636
EZ
68482009-08-14 Eli Zaretskii <eliz@gnu.org>
6849
6850 * process.c (create_pty): Fix last change.
6851
ce959360
CY
68522009-08-13 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6855 (xbm_load_image): Caller changed.
64b807c9 6856 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6857
c7baf7e9
NR
68582009-08-13 Nick Roberts <nickrob@snap.net.nz>
6859
6860 * process.c (create_pty): New function.
6861 (Fstart_process): Use it to allow Emacs to just associate a pty
6862 with the buffer. See associated change in gdb-mi.el.
6863 (list_processes_1): Deal with no program name.
6864 (start_process_unwind): Use pid == -2 to mean no process.
6865
1ac9108a
SM
68662009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6867
6868 * cmds.c (nonundocount): New global variable.
6869 (keys_of_cmds): Initialize it.
6870 (Fself_insert_command): Use it to combine upto 20 sequential chars
6871 into a single undo entry, just like the Qself_insert_command code in
6872 keyboard.c does.
6873 Call frame_make_pointer_invisible, also like the Qself_insert_command
6874 code in keyboard.c does.
6875 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6876 than its own local replacement for it.
6877
e267324c
KR
68782009-08-10 Ken Raeburn <raeburn@raeburn.org>
6879
1ac9108a 6880 * fns.c (concat): Don't re-set string length to its current value.
77437343 6881
1ac9108a
SM
6882 * coding.h (decode_coding_string, encode_coding_string):
6883 Use SBYTES macro.
f0bed503 6884
1ac9108a 6885 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6886 (doprnt): Merge with doprnt1, discarding lispstrings code.
6887 * lisp.h (doprnt_lisp): Don't declare.
6888
416e006d
JL
68892009-08-07 Juri Linkov <juri@jurta.org>
6890
6891 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6892
6f7d5780
DN
68932009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6894
6895 * print.c (syms_of_print): Undo previous change.
6896
f19a0f5b
TZ
68972009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6898
6899 * lread.c (read1, syms_of_lread): Read hashtables back from the
6900 readable format.
6901
6902 * print.c (print_preprocess, print_object): Print hashtables fully
6903 and readably.
6904 (syms_of_print): Provide 'hashtable-print-readable.
6905
b9173dc2
AR
69062009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6907
6908 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6909 no family set.
6910 (nsfont_open): Handle case when entity has no family.
6911
1586503c
AR
69122009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6913
6914 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6915 element, not a list, for match case.
6916
087048cd
KH
69172009-07-28 Kenichi Handa <handa@m17n.org>
6918
6919 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6920 rigidly.
6921
6922 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6923 font_parse_xlfd. Check font properties more rigidly.
6924
780c2506
DN
69252009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6926
31fd7c5c
JB
6927 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6928 bsd-common.h.
780c2506 6929
a8c0cc18
KH
69302009-07-27 Kenichi Handa <handa@m17n.org>
6931
6932 * xfaces.c (face_with_height): Call font_clear_prop.
6933
4fbe2306
CY
69342009-07-26 Chong Yidong <cyd@stupidchicken.com>
6935
111d9af3
CY
6936 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6937
6938 * xterm.c (x_term_init): Use Qx.
6939
4fbe2306
CY
6940 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6941
1ac9108a 6942 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6943 (ns_get_color): Revert 2009-07-16 change.
6944
beb0b7f9
EZ
69452009-07-25 Eli Zaretskii <eliz@gnu.org>
6946
6947 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6948 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6949
2baf5e76
KR
69502009-07-25 Ken Raeburn <raeburn@raeburn.org>
6951
1ac9108a
SM
6952 * coding.h (decode_coding_string, encode_coding_string):
6953 Use SCHARS macro.
8890e5f5 6954
2baf5e76 6955 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6956 (load_depth): Delete.
2baf5e76
KR
6957 (Qload_in_progress): New variable.
6958 (load_unwind): Don't reference load_depth or load_in_progress.
6959 (Fload): Likewise; specbind Qload_in_progress instead.
6960 (init_lread): Don't initialize load_depth.
6961 (syms_of_lread): Initialize and protect Qload_in_progress.
6962
1395c6f5
AR
69632009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6964
6965 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6966
4e2f36cf
AR
69672009-07-23 Yavor Doganov <yavor@gnu.org>
6968
6969 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6970
5dd9a6f7
AR
69712009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6972
6973 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6974 Bugs 3792, 3720, 2402.
6975 (ns_lookup_indexed_color): Check for bad index.
6976 (ns_index_color): Init unused slot to 0.
6977 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6978 Bug 3714, possibly 3082.
5dd9a6f7 6979
c902b920
JR
69802009-07-22 Jason Rumney <jasonr@gnu.org>
6981
1ac9108a
SM
6982 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6983 Position IME window at cursor (Bug#2570).
c902b920
JR
6984 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6985 (globals_of_w32fns): Dynamically load functions required above.
6986
6987 * w32term.c (w32_draw_window_cursor): Send message to reposition
6988 any IME window.
6989
090101cf
CY
69902009-07-21 Chong Yidong <cyd@stupidchicken.com>
6991
6992 * fileio.c: Revert 2009-07-16 changes.
6993 (Vauto_save_include_big_deletions): New variable.
6994 (Fdo_auto_save): Disable auto-save only if
6995 auto-save-include-big-deletions is nil.
6996
e6583e3d
CY
69972009-07-21 Chong Yidong <cyd@stupidchicken.com>
6998
6999 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7000 the overflowed pixels into account (Bug#3879).
7001
ece435a5
KR
70022009-07-21 Ken Raeburn <raeburn@raeburn.org>
7003
7004 * lread.c (load_depth): New variable.
7005 (Fload, load_unwind, init_lread): Set it to the load recursion
7006 depth; set load_in_progress as a simple boolean based on the
7007 current load_depth. (Bug#3892)
7008
40b2d973
AR
70092009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7010
7011 * nsfont.m (ns_has_attribute): Remove.
7012 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7013
10be7e0d
JL
70142009-07-18 Juri Linkov <juri@jurta.org>
7015
7016 * process.c (Fset_process_query_on_exit_flag): Mention killing
7017 a buffer in docstring.
7018
fa055055
KH
70192009-07-17 Kenichi Handa <handa@m17n.org>
7020
7021 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7022
042f7b69
YM
70232009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7024
7025 * nsfns.m (Fns_set_alpha): Remove function.
7026 (syms_of_nsfns): Don't defsubr it.
7027
7028 * nsterm.m (ns_get_color): Remove incompatible color formats.
7029 (ns_color_to_lisp): Generate #rrggbb color format string.
7030
4be941e3
RS
70312009-07-16 Richard Stallman <rms@gnu.org>
7032
7033 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7034 (Fset_buffer_auto_saved): Handle save_length = -2.
7035
4e6b227d
CY
70362009-07-16 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * xterm.c (Qx_gtk_map_stock): New var.
7039
7040 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7041 of calling intern each time.
7042
a1856973
YM
70432009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7044
7045 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7046 does tiling.
7047
7048 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7049
497e54d8
KH
70502009-07-14 Kenichi Handa <handa@m17n.org>
7051
72d36834
KH
7052 * font.c (font_vconcat_entity_vectors): New function.
7053 (struct font_sort_data): New member font_driver_preference.
7054 (font_compare): Check font_driver_preference.
7055 (font_sort_entities): The format of the first argument changed.
7056 (font_delete_unmatched): Likewise.
7057 (font_list_entities): The return type changed.
7058 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7059 (font_find_for_lface): Adjuste for the above changes.
7060 Don't suppress the checking of C even if the repertory supports it.
7061 (Flist_fonts): Adjust for the above changes.
72d36834 7062
1ac9108a
SM
7063 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7064 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7065 Reject a font who has adstyle property that is different from a
7066 langname derived from registry property.
1ac9108a 7067 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7068
b6046155
EZ
70692009-07-13 Eli Zaretskii <eliz@gnu.org>
7070
7071 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7072 local copy of dirfilename.
7073
fb6b6049
KH
70742009-07-13 Kenichi Handa <handa@m17n.org>
7075
e2402a5e
KH
7076 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7077 against max_char.
7078
fb6b6049
KH
7079 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7080 calling XSYMBOL (sym).
7081
65156807
EZ
70822009-07-11 Eli Zaretskii <eliz@gnu.org>
7083
1ac9108a
SM
7084 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7085 New function.
7086 (directory_files_internal) [WINDOWSNT]:
7087 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7088 the filesystem of the directory is fast or slow.
7089
7090 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7091 file name.
7092 (is_slow_fs): New function.
7093 (stat): Use it to determine whether to issue more system calls to
7094 get accurate file attributes, when w32-get-true-file-attributes is
7095 `local'.
7096
e0ab5fcf
JD
70972009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7098
7099 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7100 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7101 parameter font-parameter as default to the font dialog.
7102
784ceded
KH
71032009-07-10 Kenichi Handa <handa@m17n.org>
7104
7105 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7106
fb8edc0b
EZ
71072009-07-09 Eli Zaretskii <eliz@gnu.org>
7108
1ac9108a 7109 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7110
fb8edc0b
EZ
7111 * w32.c (stat): Treat UNC file names as residing on remote
7112 drives. (Bug#3542)
7113
635c75b1
KH
71142009-07-09 Kenichi Handa <handa@m17n.org>
7115
7116 * fontset.c (fontset_find_font): Fix previous change.
7117
c1d5ce94
MA
71182009-07-08 Michael Albinus <michael.albinus@gmx.de>
7119
7120 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7121 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7122 error flag.
7123
edb61b39
KH
71242009-07-08 Kenichi Handa <handa@m17n.org>
7125
374bf7e4
KH
7126 * fontset.c (fontset_find_font): Fix the logic of handling
7127 charset_matched.
7128 (font_for_char): Delete unused var.
7129 (generate_ascii_font_name): Delete it.
7130
edb61b39
KH
7131 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7132
7133 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7134 (encode_coding_sjis): Fix the code range check.
7135
0f3f018c
CY
71362009-07-07 Chong Yidong <cyd@stupidchicken.com>
7137
7138 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7139 (Fexpand_file_name): Copy string data properly (Bug#3772).
7140
fcaf6f3a
JD
71412009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7142
7143 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7144 first MapNotify.
7145
6809ca75
KH
71462009-07-07 Kenichi Handa <handa@m17n.org>
7147
7148 * character.h (unibyte_has_multibyte_table): Delete extern.
7149 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7150
7151 * charset.c (Fset_charset_priority): Update charset_unibyte.
7152 (syms_of_charset): Initialize charset_unibyte.
7153
7154 * character.c (unibyte_has_multibyte_table): Delete it.
7155 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7156 charset_unibyte.
7157 (multibyte_char_to_unibyte_safe): Likewise.
7158 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7159
1ac9108a 7160 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7161 (x_produce_glyphs): Likewise.
7162
7163 * .gdbinit (xcharset): Fix the treating $arg0.
7164
ad9e2d54
EZ
71652009-07-04 Eli Zaretskii <eliz@gnu.org>
7166
7167 Emulation of `getloadavg' on MS-Windows.
50426a04 7168 * w32.c: Include float.h.
ad9e2d54
EZ
7169 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7170 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7171 (get_native_system_info, get_system_times): New functions.
7172 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7173 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7174 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7175 g_b_init_get_system_times, and num_of_processors.
7176
0a3472c7
JR
71772009-07-03 Jason Rumney <jasonr@gnu.org>
7178
7179 * w32term.c (w32_initialize): Use standard types.
7180
80904120
EZ
71812009-07-03 Eli Zaretskii <eliz@gnu.org>
7182
7183 * dired.c (Ffile_attributes): Decode user and group names by the
7184 locale's encoding. (Bug#3443)
7185
6978862d
DN
71862009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7187
f8d23104
DN
7188 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7189 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7190
7191 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7192
7193 * term.c (init_tty): Remove spurious #ifdef.
7194
6978862d
DN
7195 * m/mips.h: Mention this file is also used for netbsd.
7196 * m/pmax.h: Remove file.
7197
e044e4fc
JD
71982009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7199
7200 * xterm.h (struct x_display_info): Add invisible_cursor.
7201 (struct x_output): Add current_cursor.
7202
7203 * xterm.c (XTtoggle_invisible_pointer): New function.
7204 (x_define_frame_cursor): Don't define cursor if invisible or the
7205 same as before. Set current_cursor.
7206 (x_create_terminal): Set toggle_invisible_pointer_hook.
7207
7208 * xfns.c (make_invisible_cursor): New function.
7209 (x_set_mouse_color): Call make_invisible_cursor.
7210 Set current_cursor.
7211 (x_window): Set current_cursor.
7212
7213 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7214
7215 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7216 inserting a character.
7217 (read_avail_input): Call frame_make_pointer_visible.
7218
7219 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7220 (frame_make_pointer_invisible, frame_make_pointer_visible):
7221 New functions.
e044e4fc
JD
7222 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7223
7224 * frame.h: Declare frame_make_pointer_invisible and
7225 frame_make_pointer_visible.
7226 (struct frame): Add pointer_invisible.
7227
574c8efa
JD
72282009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7229
7b507248
JD
7230 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7231 frame isn't visible.
7232 (xg_frame_resized): If width/height is -1, get size of window
7233 from X server.
7234
7235 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7236 for MapNotify.
7237
835bdaa7 7238 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7239 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7240 (flush_and_sync): Reintroduce.
574c8efa 7241
3f1c6666 72422009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7243
31fd7c5c 7244 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7245
7246 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7247 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7248
7249 * frame.h: Declare Qsticky.
7250
cad9ef74
JD
7251 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7252
7253 * nsfns.m (ns_frame_parm_handlers): Ditto.
7254
7255 * frame.c: Declare Qsticky.
7256 (frame_parms): Add sticky.
7257
7258 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7259
7260 * xterm.h: Declare x_set_sticky.
7261
7262 * xterm.c (x_set_sticky): New function.
7263
69b16610
JD
7264 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7265 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7266 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7267
7268 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7269
7270 * frame.c: Qmaximized is new.
7271 (x_set_frame_parameters): Do not handle fullscreen specially.
7272 Only set width and height if explicitly set.
7273 (x_set_fullscreen): Handle Qmaximized.
7274 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7275 (syms_of_frame): Initialize Qmaximized.
7276
1ac9108a
SM
7277 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7278 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7279
7280 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7281 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7282 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7283 set gravity to NorthWestGravity when USE_GTK.
7284 (set_wm_state): New function.
31fd7c5c 7285 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7286 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7287 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7288 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7289 to x_real_positions and x_fullscreen_adjust.
7290
7291 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7292 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7293 flush_and_sync.
7294 (xg_height_changed): New function.
7295 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7296 and gtk_window_set_policy. Set frame gravity after parsing the
7297 geometry string.
3f1c6666
JD
7298 (xg_update_frame_menubar, free_frame_menubar)
7299 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7300 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7301 Remove calls to xg_frame_set_char_size.
7302
fd503d99
KH
73032009-07-01 Kenichi Handa <handa@m17n.org>
7304
7305 * keyboard.c (decode_keyboard_code): New function.
7306 (tty_read_avail_input): Decode the input bytes if necessary.
7307
1ac9108a
SM
7308 * coding.c (setup_coding_system):
7309 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7310 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7311 use Qno_conversion.
7312
24ed93fb
YM
73132009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7314
7315 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7316
99061dfc
CY
73172009-06-30 Chong Yidong <cyd@stupidchicken.com>
7318
1ac9108a 7319 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7320
ff90fbde
JR
73212009-06-30 Jason Rumney <jasonr@gnu.org>
7322
7323 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7324 is already loaded.
7325 Set user model ID if supported (bug#1849).
7326
5f445726
JM
73272009-06-29 Jim Meyering <meyering@redhat.com>
7328
7329 Remove useless if-before-xfree test.
7330 * nsfont.m (nsfont_close): Remove useless test.
7331 * term.c (delete_tty): Likewise.
7332 * w32.c (system_process_attributes): Likewise.
7333 * w32font.c (w32font_close): Likewise.
7334 * xfaces.c (x_free_gc): Likewise.
7335 * xselect.c (buffer): Likewise.
7336
b9607587
AS
73372009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7338
7339 * process.c (send_process): Keep decoded string in a local
7340 variable and protect it from GC. (Bug#3521)
7341
89ba96f4
EZ
73422009-06-28 Eli Zaretskii <eliz@gnu.org>
7343
7344 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7345 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7346
098a1589
CY
73472009-06-28 Chong Yidong <cyd@stupidchicken.com>
7348
485422be
CY
7349 * xdisp.c (start_display, handle_face_prop)
7350 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7351 (redisplay_window, try_window_id, produce_image_glyph):
7352 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7353
098a1589
CY
7354 * xterm.c (x_update_window_begin, x_new_focus_frame)
7355 (x_scroll_bar_handle_click, handle_one_xevent)
7356 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7357 (x_make_frame_visible, x_make_frame_invisible)
7358 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7359 code chunks that are now obsolete.
7360
78c38319
MA
73612009-06-28 Michael Albinus <michael.albinus@gmx.de>
7362
7363 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7364 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7365 for hours, when optimzation is enabled.
7366 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7367 (xd_read_message): Make them static.
7368
4189ed40
CY
73692009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7370
7371 * term.c (turn_on_face): Allow simultaneously bold and dim
7372 terminal faces (Bug#3530).
7373
cd9b5e16
CY
73742009-06-27 Chong Yidong <cyd@stupidchicken.com>
7375
4e23bedb
CY
7376 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7377
cd9b5e16
CY
7378 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7379 truncation glyphs (Bug#3686).
7380
07cc3c35
GM
73812009-06-27 Glenn Morris <rgm@gnu.org>
7382
7383 * m/pmax.h: Restore file, with only netbsd portions.
7384
31fd7c5c 73852009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7386
cd9b5e16 7387 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7388
42d4a64f
KH
73892009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7390
7391 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7392 the arg FORCE_SYMBOL.
7393
930fe55b 73942009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7395
7396 * fontset.c (fontset_find_font): When a usable rfont_def is found
7397 in a fallback font-group, make it the first element of the group.
7398
57ebc3fd
CY
73992009-06-24 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7402
f084f942
KH
74032009-06-24 Kenichi Handa <handa@m17n.org>
7404
7405 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7406 set for C.
7407 (fontset_font): Record the availability of a font for C both in
7408 the realized fontsets of the current one and the default one.
7409
2f686c87
DN
74102009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7411
7412 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7413 conditional, it is always defined on AIX.
7414
666e158e
MB
74152009-06-23 Miles Bader <miles@gnu.org>
7416
7417 * window.c (Vrecenter_redisplay): New variable.
7418 (syms_of_window): Initialize it.
7419 (Qtty): New extern declaration.
7420 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7421
c6da7cd2
JM
74222009-06-23 Jim Meyering <meyering@redhat.com>
7423
1ac9108a
SM
7424 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7425 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7426 pointer dereferences are guaranteed to be valid.
c6da7cd2 7427
678dca3d
KH
74282009-06-23 Kenichi Handa <handa@m17n.org>
7429
74d75424
KH
7430 * emacs.c (main): Call init_font ().
7431
7432 * font.h (Vfont_log): Extern it.
7433 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7434
7435 * font.c (font_sort_entities, font_list_entities)
7436 (font_matching_entity, font_open_entity)
7437 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7438 (Vfont_log): Delete static.
7439 (font_log_env_checked): Delete this variable.
7440 (font_add_log): Don't check font_log_env_checked.
7441 (font_deferred_log): Check Vfont_log.
7442 (init_font): New function.
7443
678dca3d
KH
7444 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7445
7446 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7447
7448 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7449
7450 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7451
7452 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7453 (face_for_char): Don't call font_deferred_log here.
7454 (font_for_char): Likewise.
7455
8a668709
CY
74562009-06-22 Chong Yidong <cyd@stupidchicken.com>
7457
9a01ee33
CY
7458 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7459 rather than its background_width for drawing the overline and
7460 underline (Bug#489).
7461
7462 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7463 rather than its background_width for drawing the overline and
7464 underline (Bug#489).
ec7c9926
CY
7465 (xg_default_icon_file): New variable.
7466 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7467 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7468
8a668709
CY
7469 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7470 (load_overlay_strings): Remove externs.
7471 (fast_find_position): Function deleted.
7472 (mouse_face_from_buffer_pos): New function, based on
7473 fast_find_position. Correctly handle before-strings,
7474 display-strings, and after-strings (Bug#1220).
7475 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7476
4d4c02d8
CY
74772009-06-21 Chong Yidong <cyd@stupidchicken.com>
7478
1ac9108a 7479 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7480 (move_it_in_display_line_to, move_it_in_display_line_to)
7481 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7482
70243478
CY
74832009-06-21 Chong Yidong <cyd@stupidchicken.com>
7484
7485 * Branch for 23.1.
7486
13087e59
JR
74872009-06-21 Jason Rumney <jasonr@gnu.org>
7488
7489 * w32term.c (keyboard_codepage): New static variable.
7490 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7491 (w32_read_socket) [WM_CHAR]: Use it to decode character
7492 input (bug#3237).
7493 (w32_initialize): Initialize it.
7494 (codepage_for_locale): New function.
7495
4735b74e
KR
74962009-06-20 Ken Raeburn <raeburn@raeburn.org>
7497
7498 * process.c (status_message): Pass Faset index argument as a lisp
7499 object, so as to work with USE_LISP_UNION_TYPE.
7500
0e727afa
YM
75012009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7502
7503 * coding.c (Ffind_coding_systems_region_internal):
7504 Cache checked characters.
7505
cf299835
KH
75062009-06-18 Kenichi Handa <handa@m17n.org>
7507
1ac9108a 7508 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7509
90f20d94
AS
75102009-06-18 Andreas Schwab <aschwab@redhat.com>
7511
7512 * xdisp.c (redisplay_internal): Check that the frame is still
7513 live after redisplay of its windows.
7514 (redisplay_windows): Check that the window is still live.
7515
7f1faf1c
KH
75162009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7517
7518 * coding.c (detect_coding_utf_16): Fix previous change.
7519
cc13543e
KH
75202009-06-16 Kenichi Handa <handa@m17n.org>
7521
7522 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7523 UTF-16 by checking the dispersion of Eth and Oth bytes.
7524
977b85f4
AS
75252009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7526
7527 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7528
66bd43d1
KH
75292009-06-15 Kenichi Handa <handa@m17n.org>
7530
7531 * process.c (status_message): Fix previous change. Be sure to
7532 decode a localized string.
7533
cb5ca9c5
YM
75342009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7535
7536 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7537 add comment explaining why.
7538
ec7709ba 75392009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7540
ec7709ba 7541 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7542
4b7f335c
AR
75432009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7544
7545 * nsfont.m (ns_attribute_value): Remove.
7546 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7547 (ns_has_attribute): Shrink the normal range.
7548 (ns_findfonts): Don't worry about requested spec in determining
7549 need for synthItal.
e41820ee 7550 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7551
73b26103
SZ
75522009-06-14 Seiji Zenitani <zenitani@mac.com>
7553
7554 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7555
5753e4da
KH
75562009-06-11 Kenichi Handa <handa@m17n.org>
7557
7558 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7559 overhang for the static composition case.
7560
3561b671
KH
75612009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7562
5753e4da
KH
7563 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7564 overhang for the automatic composition case.
7565
3561b671
KH
7566 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7567 composition case.
7568
852bbd41
CY
75692009-06-10 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * xdisp.c (get_next_display_element): When handling wrap-prefix
7572 and line-prefix, treat \n as a control character (bug#3502).
7573
9903d1e6
KH
75742009-06-10 Kenichi Handa <handa@m17n.org>
7575
7576 * font.c (font_parse_family_registry): Fix for one-char foundry.
7577 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7578
0bcbaaaa
CY
75792009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7580
7581 * process.c (status_message): Fix handling of multibyte signal
7582 string (Bug#3499).
7583
40aa3f13
JM
75842009-06-09 Jim Meyering <meyering@redhat.com>
7585
1f80c7e2
CY
7586 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7587 color name is missing.
40aa3f13 7588
72d51285
KH
75892009-06-09 Kenichi Handa <handa@m17n.org>
7590
7591 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7592 FROM-CODE and TO-CODE are codepoints of CHARSET.
7593
c1d04d84
AR
75942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7595
7596 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7597
75982009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7599
7600 Changes to support :script/:lang/:otf in NS font driver.
7601 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7602 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7603 indicate not part of font driver interface, and change callers.
7604 (ns_get_family): Remove pointless null check.
7605 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7606 ns_spec_to_descriptor, ns_descriptor_to_entity.
7607 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7608 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7609 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7610 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7611 (ns_get_req_script, ns_accumulate_script_ranges)
7612 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7613 New functions.
7614 (nsfont_list, nsfont_match): Use ns_findfonts.
7615 (nsfont_open): Use font descriptor instead of traits.
7616 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7617 (dump_glyphstring): Rename to ns_dump_glyphstring.
7618
c7eb9816
AR
7619 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7620
c1d04d84
AR
7621 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7622
7623 * fontset.c (fontset_from_font): Remove NS-specific code.
7624
ec7709ba 76252009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7626
7627 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7628 nonactive windows.
7629
31fd7c5c 76302009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7631
1ac9108a 7632 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7633
68852c13 76342009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7635
7636 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7637
6756cd1d
CY
76382009-06-07 Chong Yidong <cyd@stupidchicken.com>
7639
7640 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7641 account for the overflowing of newlines into the last glyph on the
7642 display line (Bug#3482).
7643
28bf482a
DR
76442009-06-05 David Reitter <david.reitter@gmail.com>
7645
ec7709ba
JB
7646 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7647 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7648 Fns_selection_exists_p, Fns_selection_owner_p.
7649
fdb55376
JR
76502009-06-03 Jason Rumney <jasonr@gnu.org>
7651
7652 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7653 available. (Bug#3379)
7654
05129fbe
KH
76552009-05-29 Kenichi Handa <handa@m17n.org>
7656
1ac9108a
SM
7657 * coding.c (get_translation_table):
7658 Check Venable_character_translation.
05129fbe 7659
ec7709ba 76602009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7661
ec7709ba
JB
7662 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7663 (x_make_frame_visible): Move frame to front rather than calling
15891144 7664 ns_raise_frame().
ec7709ba 7665 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7666 isn't key window.
ec7709ba 7667 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7668 drawRect may be called by NSView even if the frame is hidden.
7669
ec7709ba
JB
7670 * nsfns.m (Fx_create_frame): Follow other ports in
7671 determining visibility; default to t. Ensure async_visible is set.
15891144 7672
21f73755
EZ
76732009-05-23 Eli Zaretskii <eliz@gnu.org>
7674
7675 * dired.c (Ffile_attributes): Doc fix.
7676
34001e41
CY
76772009-05-22 Chong Yidong <cyd@stupidchicken.com>
7678
7679 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7680
46306a17
SM
76812009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7682
7683 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7684 and xfont_scratch_props.
7685 (syms_of_xfont): Do it here instead.
7686 (xfont_find_ccl_program): Delete, unused.
7687 (xfont_open): Delete unused var `i'.
7688
ef6e0694
KH
76892009-05-21 Kenichi Handa <handa@m17n.org>
7690
7691 * fontset.c (Qlatin): Don't make it static.
7692
46306a17
SM
7693 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7694 New functions.
ef6e0694
KH
7695 (xfont_scripts_cache, xfont_scratch_props): New variables.
7696 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7697 (xfont_list_pattern): Argument changed. Callers changed.
7698 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7699 (xfont_list): Don't reject a font spec with :script property.
7700 (xfont_has_char): Fix setting of encoding.
7701 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7702 xfont_scratch_props.
7703
77042009-05-19 Kenichi Handa <handa@m17n.org>
7705
46306a17 7706 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7707 Callers changed.
7708
77092009-05-18 Kenichi Handa <handa@m17n.org>
7710
7711 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7712
ac71ced7
SM
77132009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7714
7715 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7716 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7717
1c6d1051
YM
77182009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7719
7720 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7721 (x_delete_terminal): Dissociate resource database from display and
7722 then call XrmDestroyDatabase before closing display.
7723
9b9b779c
AR
77242009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7725
7726 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7727 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7728 whether selected frame is viable before raising it (based on patch
7729 by David Reitter), and improve commentary.
7730 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7731
cccd42d5
KH
77322009-05-15 Kenichi Handa <handa@m17n.org>
7733
7734 * font.c (Ffont_spec): Check arguments.
7735
337fbd17
CY
77362009-05-14 Chong Yidong <cyd@stupidchicken.com>
7737
7738 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7739 weight when testing attributes (Bug#3282).
7740
47a6002f
JD
77412009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7742
7743 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7744 what we expect to get in the next ConfigureNotify event.
7745
9cb363db
YM
7746 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7747 before Xft one (Bug#1696).
7748
b9126609
CY
77492009-05-07 David Reitter <david.reitter@gmail.com>
7750
7751 * nsfns.m (Fx_display_planes): Compute bitplanes using
7752 NSBitsPerPixelFromDepth (Bug#3207).
7753
27a69fd9
CY
77542009-05-10 Chong Yidong <cyd@stupidchicken.com>
7755
7756 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7757
00f37552
TTN
77582009-05-10 Ulrich Mueller <ulm@gentoo.org>
7759
7760 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7761
2d82a920
DR
77622009-05-07 David Reitter <david.reitter@gmail.com>
7763
ec7709ba
JB
7764 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7765 Respect mouse face background.
2d82a920 7766
46b0d52d
DR
77672009-05-07 David Reitter <david.reitter@gmail.com>
7768
ec7709ba
JB
7769 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7770 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7771 in ns_update_begin and ns_update_end.
7772
ce1b23bb
SM
77732009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7774
5996e1b7
SM
7775 * nsfns.m (ns_get_screen): Rewrite.
7776 Don't presume selected-frame is of type `ns'.
7777
ba98e3a0
SM
7778 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7779 all drivers.
7780
ce1b23bb
SM
7781 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7782
bcda200f
YM
77832009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7784
7785 * keyboard.h (add_user_signal): Fix typo in extern.
7786
7787 * lisp.h (add_user_signal): Remove extern.
7788
7789 * unexelf.c (unexec): Consider a section to precede the .bss section
7790 if its addresses overlap that of .bss.
7791 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7792 instead of dumping process.
7793
864660a2
SM
77942009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7795
7796 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7797
50da4e56
SM
77982009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7799
7800 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7801
51520a1a
DN
78022009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7803
7804 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7805 any statements.
7806
409ea3a1
AS
78072009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7808
59c4c60f
AS
7809 * process.c (read_process_output): Make sure the current buffer is
7810 always restored.
7811
409ea3a1
AS
7812 * coding.c (record_conversion_result): Don't modify
7813 Vlast_code_conversion_error for successful result.
7814 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7815
56f00ed2
KH
78162009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7817
7818 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7819 (load_charset_map): Remove unnecessary code.
56f00ed2 7820
4491c9d2
DR
78212009-04-30 David Reitter <david.reitter@gmail.com>
7822
35f5b128 7823 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7824 through f24.
7825
6970f632
CY
78262009-04-30 Chong Yidong <cyd@stupidchicken.com>
7827
7828 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7829
7830 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7831 face_at_buffer_position.
7832 (face_before_or_after_it_pos, get_next_display_element)
7833 (note_mouse_highlight): Update face_at_buffer_position call.
7834
7835 * term.c (term_mouse_highlight):
7836 * msdos.c (IT_note_mouse_highlight):
7837 * fontset.c (Finternal_char_font):
35f5b128 7838 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7839
7840 * dispextern.h (face_at_buffer_position): Update prototype.
7841
0c616f63
KH
78422009-04-30 Kenichi Handa <handa@m17n.org>
7843
35f5b128 7844 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7845
ad3aaf33
AS
78462009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7847
7848 * callproc.c (Fcall_process): Fix GC protection. Make sure
7849 current buffer is always restored.
7850
c3c963a0
YM
78512009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7852
7853 * atimer.c (init_atimer): Also clear stopped_atimers.
7854
7855 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7856
7e3386cb
YM
7857 * process.c (create_process): Clean up merger residues of
7858 2008-07-17 change.
7859
91f68422
CY
78602009-04-29 Ulrich Mueller <ulm@gentoo.org>
7861
7862 * lread.c (Vread_circle): New variable.
7863 (read1): Disable recursive read if Vread_circle is nil.
7864
24b34550
KH
78652009-04-29 Kenichi Handa <handa@m17n.org>
7866
7867 * fontset.h (set_default_ascii_font): Delete extern.
7868
7869 * fontset.c (set_default_ascii_font): Delete this unused function.
7870
7871 * frame.c (x_set_font): When ARG is a font-object, check if the
7872 font-object matches with the ASCII font-spec of the frame's
9c358bda 7873 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7874
77bf07e1
AS
78752009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7876
7877 * fns.c (Flocale_info): Protect vector from GC during decoding.
7878
7879 * process.c (Fstart_process): Protect argv strings from GC during
7880 encoding.
7881
2c55aacf
AS
78822009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7883
7884 * sysdep.c: Include <ctype.h>.
7885
b892d3c9
DR
78862009-04-27 David Reitter <david.reitter@gmail.com>
7887
35f5b128 7888 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7889 Remove commented-out code.
7890
9d0644c4
JB
78912009-04-26 Johan Bockgård <bojohan@gnu.org>
7892
7893 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7894
b7053016
JR
78952009-04-25 Jason Rumney <jasonr@gnu.org>
7896
7897 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7898
4e8231f3
YM
78992009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7900
7901 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7902 Swap bytes in short integer if fringe bitmap width > 8.
7903
493dcf2c
KH
79042009-04-23 Kenichi Handa <handa@m17n.org>
7905
7906 * xfaces.c (Fx_list_fonts): If a font size is specified in
7907 PATTERN, set it in returned scalable fonts.
7908
401e9e57
CY
79092009-04-22 Chong Yidong <cyd@stupidchicken.com>
7910
708e05dc
CY
7911 * keyboard.c (Fset_input_meta_mode): Doc fix.
7912
7913 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7914
1ac9108a 7915 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7916
7917 * coding.c (Fterminal_coding_system): Doc fix.
7918
7919 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7920 (Fx_display_pixel_height, Fx_display_planes)
7921 (Fx_display_color_cells, Fx_server_max_request_size)
7922 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7923 (Fx_display_mm_height, Fx_display_mm_width)
7924 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7925 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7926 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7927 (check_x_display_info): Handle terminal objects instead of
7928 terminal ids.
7929
401e9e57
CY
7930 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7931 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7932 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7933 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7934
df80c7f0
KH
79352009-04-21 Kenichi Handa <handa@m17n.org>
7936
5a8f12af 7937 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7938 (font_score): Check AVGWIDTH too.
908567ef 7939
df80c7f0
KH
7940 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7941 worst case.
1ac9108a
SM
7942 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7943 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7944
705af33f
JR
79452009-04-19 Jason Rumney <jasonr@gnu.org>
7946
7947 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7948 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7949
7950 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7951 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7952 get_phys_cursor_geometry.
7953
b71ac3dd 7954 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7955 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7956 using get_phys_cursor_geometry.
7957
7958 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7959 correctly calculated.
7960
dc2933eb
JD
79612009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7962
1ac9108a
SM
7963 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7964 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7965 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7966 is deprecated.
7967
973e7849
AS
79682009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7969
7970 * font.c (font_put_frame_data): Use xfree instead of free.
7971
314d66f4
JB
79722009-04-17 Juanma Barranquero <lekktu@gmail.com>
7973
7974 * w32font.c (Qja, Qko): Remove declarations.
7975 (syms_of_w32font): Don't DEFSYM them.
7976
cf702558
CY
79772009-04-17 Chong Yidong <cyd@stupidchicken.com>
7978
7979 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7980
7981 * font.h (Qja, Qko): Extern them.
7982
7983 * ftfont.c (Qja, Qko): Remove declarations.
7984
7985 * xfont.c (Qja, Qko): Remove declarations.
7986
b50504f5
KH
79872009-04-17 Kenichi Handa <handa@m17n.org>
7988
bde25748
KH
7989 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7990 string from a vector to handle Latin-1 characters correctly.
7991
b50504f5
KH
7992 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7993 entity even if the cache hits.
7994
f4646fff
AS
79952009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7996
7997 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7998 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7999
e7deaab0
AS
8000 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8001 * lisp.h: Adjust prototypes.
8002
0a0e7d49
CY
80032009-04-16 Chong Yidong <cyd@stupidchicken.com>
8004
8005 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8006 change (Bug#3003).
8007
3c908a57
KH
80082009-04-16 Kenichi Handa <handa@m17n.org>
8009
1ac9108a 8010 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8011
8012 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8013 adstyle.
8014
8015 * ftfont.c (Qja, Qko): Don't make them static.
8016 (enum ftfont_cache_for): New enum.
8017 (fc_charset_table): Undo the previous change.
8018 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8019 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8020 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8021 non-scarable font, try to get AVERAGE_WIDTH.
8022 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8023 Change ft_face_cache from a list of a hash-table. Don't check
8024 `ja' and `ko' adstyle here.
8025 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8026 FTFONT_CACHE_FOR_CHARET.
8027 (ftfont_get_charset): Undo the previous change.
1ac9108a 8028 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8029 (ftfont_close): Likewise.
8030 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8031
8032 * font.c (font_sort_entites): Change the meaning of the arg
8033 BEST-ONLY. Don't optimize for VEC of lenght 1.
8034 (font_select_entity): Just return the value of font_sort_entites.
8035
8036 * xfaces.c (merge_face_vectors): Reflect font properties in
8037 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8038 font_clear_prop if a face attribute doesn't change.
8039
3c908a57
KH
8040 * charset.h (charset_ksc5601): Extern it.
8041
8042 * charset.c (charset_ksc5601): New variable.
8043 (Fdefine_charset_internal): Set charset_ksc5601.
8044 (init_charset_once): Initialize charset_ksc5601 to -1.
8045
d65859c3
DN
80462009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8047
8048 * fileio.c (history_delete_duplicates): Remove unused declaration.
8049
8050 * callint.c (history_delete_duplicates): New declaration.
8051 (Fcall_interactively): Remove command history duplicates when
8052 history_delete_duplicates is true.
8053
3ba010e5
EZ
80542009-04-14 Eli Zaretskii <eliz@gnu.org>
8055
8056 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8057
06f19b91
KH
80582009-04-14 Kenichi Handa <handa@m17n.org>
8059
8060 * font.c (Ffont_info): Fix docstring. Fix the second element of
8061 the returned value (bug#2949).
8062
2cce8bfc
CY
80632009-04-14 Chong Yidong <cyd@stupidchicken.com>
8064
8065 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8066
d156542d
KH
80672009-04-14 Kenichi Handa <handa@m17n.org>
8068
8069 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8070 encoding charset is ascii_compatible.
8071
8072 * charset.c (Fdefine_charset_internal): Make charset
8073 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8074 code_offset is 0, and covers all ASCII characters.
8075
86fa089e
SM
80762009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8077
8078 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8079 (ns_string_to_pasteboard_internal):
8080 * nsmenu.m (process_dialog):
8081 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8082 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8083 * lisp.h (Fx_load_color_file): Declare.
8084
a8a3728b
KH
80852009-04-13 Kenichi Handa <handa@m17n.org>
8086
1ac9108a 8087 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8088 (font_select_entity): Suppress the code to optimize for the same
8089 kind of fonts.
8090 (font_load_for_lface): Get a font that supports at least ASCII
8091 characters.
8092
8093 * ftfont.c (Qja, Qko): New variables.
8094 (fc_charset_table): Delete uniquifier data for iso8859-1.
8095 (ftfont_get_latin1_charset): New function.
8096 (get_adstyle_property): New function.
8097 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8098 bitmap fonts.
8099 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8100 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8101 `ko' or `ja'.
8102 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8103 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8104 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8105 property.
8106 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8107 (syms_of_ftfont): DEFSYM Qja and Qko.
8108
483670b5
KH
81092009-04-09 Kenichi Handa <handa@m17n.org>
8110
12b55765
KH
8111 * charset.c (map_charset_chars): For a charset of `superset'
8112 method, fix calculation of code range.
8113
483670b5
KH
8114 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8115 from the list of extra properties.
8116 (font_clear_prop): Be sure to delete `:name' font property.
8117
57d3b93b
KH
81182009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8119
b4b2c2ca
YM
8120 * dispnew.c (redraw_overlapping_rows): Fix detection of
8121 overlapping for topmost and bottommost rows.
8122
1ac9108a 8123 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8124
472c3609
JR
81252009-04-06 Jason Rumney <jasonr@gnu.org>
8126
8127 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8128
ab193662
KH
81292009-04-06 Kenichi Handa <handa@m17n.org>
8130
8131 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8132
8133 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8134
0c26f026
KH
81352009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8136
8137 * ftfont.c (ftfont_open): Fix checking of the return value of
8138 FT_Load_Char. Fix setting font->underline_thickness.
8139
e173bbce
CY
81402009-04-04 Chong Yidong <cyd@stupidchicken.com>
8141
8142 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8143 (Fterminal_parameters, Fterminal_parameter)
8144 (Fset_terminal_parameter): In doc string, refer to terminal
8145 objects rather than terminal ids.
8146
693a2698
EZ
81472009-04-04 Eli Zaretskii <eliz@gnu.org>
8148
8149 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8150 ret_lim_data. (Bug#2867)
8151
d5221487
CY
81522009-04-03 Chong Yidong <cyd@stupidchicken.com>
8153
8154 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8155 so they don't get wider than the window, matching 2006-01-23
8156 change to the partner function in xdisp.c (Bug#2800).
8157
223509a3
KH
81582009-04-03 Kenichi Handa <handa@m17n.org>
8159
8160 * print.c (print_object): Make each lowest sub_char_table start a
8161 new line (Bug#2866).
8162
74fcd0b1
KH
81632009-04-02 Kenichi Handa <handa@m17n.org>
8164
8165 * fontset.c (fontset_font): Record no-font when a fontset
8166 explicitly tells not to try another font-specs.
8167
c542407d
SM
81682009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8169
8170 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8171
e3869731
KH
81722009-03-30 Kenichi Handa <handa@m17n.org>
8173
d8d2f142
KH
8174 * fontset.c (fontset_from_font): Specify only registry in a
8175 font-spec for all characters supported by that registry.
8176
e3869731
KH
8177 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8178 even if HAVE_M17N_FLT is not defined.
8179
5da5f805
CY
81802009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8181
8182 * ftfont.c: Conditionalize prototyping and use of
8183 ftfont_variation_glyphs.
8184
ab226c50
SM
81852009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8186
9628fed7
SM
8187 * frame.c (delete_frame): Work around compiler bug.
8188
8189 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8190 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8191 Some more EMACS_INT.
8192 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8193
8194 * xdisp.c (dump_glyph): Fix typo.
8195
ae19ba7c
SM
8196 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8197 (adjust_markers_gap_motion, adjust_markers_for_delete)
8198 (adjust_markers_for_insert, adjust_point)
8199 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8200 (make_gap, copy_text, count_size_as_multibyte, insert)
8201 (insert_and_inherit, insert_before_markers)
8202 (insert_before_markers_and_inherit, insert_1)
8203 (count_combining_before, count_combining_after, insert_1_both)
8204 (insert_from_string, insert_from_string_before_markers)
8205 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8206 (insert_from_buffer_1, adjust_after_replace)
8207 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8208 (replace_range_2, del_range, del_range_1, del_range_byte)
8209 (del_range_both, del_range_2, modify_region)
8210 (prepare_to_modify_buffer, signal_before_change)
8211 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8212 for buffer positions and sizes.
8213 * lisp.h: Adjust prototypes accordingly.
8214
8215 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8216 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8217 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8218
ab226c50
SM
8219 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8220
46dfb8fb
JD
82212009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8222
8223 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8224 lines and columns so we keep the same pixel height and width.
8225
8226 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8227 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8228 (x_handle_net_wm_state): New function to update frame parameter
8229 fullscreen.
8230 (x_term_init): Initialize atoms for _NET_WM_STATE.
8231
8232 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8233
d347e494
SM
82342009-03-27 Kevin Ryde <user42@zip.com.au>
8235
8236 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8237 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8238 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8239 (Fgpm_mouse_stop): Pass that new parameter.
8240 * termhooks.h (close_gpm): Adjust prototype.
8241
84db11d6
SM
82422009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8243
c95a5008
SM
8244 * lisp.h (Fx_focus_frame): Declare.
8245
84db11d6
SM
8246 * callint.c (Fcall_interactively): For '^' just delegate the work to
8247 handle-shift-selection.
8248 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8249
0a1958d6
CY
82502009-03-24 Chong Yidong <cyd@stupidchicken.com>
8251
0bfdff23
CY
8252 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8253
0a1958d6
CY
8254 * data.c (Qinteractive_form): New variable.
8255 (Finteractive_form): Use it.
8256
8257 * eval.c (Fcommandp): Use Qinteractive_form.
8258
58aec0d6
JR
82592009-03-24 Jason Rumney <jasonr@gnu.org>
8260
8261 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8262 Calculate total size precisely. Decode environment variables
8263 before substituting. (Bug#38)
8264
553dd618
KH
82652009-03-24 Kenichi Handa <handa@m17n.org>
8266
8267 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8268 encoding (Bug#2722).
553dd618 8269
c39ea606
JD
82702009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8271
8272 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8273 that gdpy is set.
8274
bc9b2b5e
AM
82752009-03-22 Alan Mackenzie <acm@muc.de>
8276
8277 * callint.c (Finteractive): Clarify the doc string - even
8278 promptless elements need \n separators.
8279
9f995a76
JR
82802009-03-22 Jason Rumney <jasonr@gnu.org>
8281
8282 * w32term.c (syms_of_w32term): Doc fix for
8283 x-use-underline-position-properties.
8284
22749e9a
EZ
82852009-03-21 Eli Zaretskii <eliz@gnu.org>
8286
8287 * w32.c (getpwuid): Change argument type to unsigned.
8288 (struct w32_id): Change type of `rid' member to unsigned.
8289 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8290 argument ID to unsigned. All callers changed.
8291 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8292
e00553bf
EZ
82932009-03-20 Eli Zaretskii <eliz@gnu.org>
8294
8295 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8296 negative, produce a float value.
8297
8298 * dired.c (make_uid, make_gid): New functions.
8299 (Ffile_attributes): Use them to avoid negative UID and GID.
8300
f761d6b6
JB
83012009-03-20 Juanma Barranquero <lekktu@gmail.com>
8302
8303 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8304 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8305 Fix typos in docstrings.
8306
d507f8d7
KH
83072009-03-19 Kenichi Handa <handa@m17n.org>
8308
8309 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8310 changed, use font_load_for_lface to get a new font object.
8311 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8312
8313 * frame.c (x_set_font): Handle the case that ARG is a cons.
8314
c68845e0
GM
83152009-03-19 Glenn Morris <rgm@gnu.org>
8316
8317 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8318
bfa49dd1
CY
83192009-03-19 Chong Yidong <cyd@stupidchicken.com>
8320
8321 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8322
8458d4c1
KH
83232009-03-19 Kenichi Handa <handa@m17n.org>
8324
8325 * charset.c (load_charset_map_from_file): When a mapfile can't be
8326 loaded, signal an error.
8327
78e7d1fe
EZ
83282009-03-18 Eli Zaretskii <eliz@gnu.org>
8329
8330 * dired.c (Ffile_attributes): Make sure UID and GID are always
8331 positive, even if the value is too large for a positive EMACS_INT.
8332 Doc fix.
8333
8334 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8335
5da9fdfa
YM
83362009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8337
8338 * xmenu.c (xdialog_show): Move Fredisplay call ...
8339 (Fx_popup_dialog): ... here.
8340
7519c40d
SM
83412009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8342
8343 * dired.c (file_name_completion): Disable the first optimization just
8344 installed, since it is not implemented correctly.
8345
2cd298e2
SM
83462009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8347
8348 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8349 only if the entry can affect bestmatch.
2cd298e2
SM
8350 Stop the search early, as Ftry_completion already does.
8351
48d37adf
CY
83522009-03-17 Chong Yidong <cyd@stupidchicken.com>
8353
e10c9c93 8354 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8355
9286b16a
CY
83562009-03-15 Chong Yidong <cyd@stupidchicken.com>
8357
8358 * keyboard.c (parse_menu_item): Don't display remappings as menu
8359 equivalent bindings (Bug#788).
8360
f7b146dc
JR
83612009-03-15 Jason Rumney <jasonr@gnu.org>
8362
8363 * w32term.h (WM_EMACS_PAINT): New message.
8364 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8365 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8366 before passing to lisp thread. (Bug#950)
8367
f761d6b6 83682009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8369
d93f9575
CY
8370 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8371 variable as it was never reset.
8372 (ns_term_init): Remove initialization of Lisp-settable defaults
8373 and ns_expand_space.
8374 (-setPanelFromDefaultValues): Remove ns_expand_space.
8375 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8376 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8377 i.e. no additional spacing, similar to Carbon port.
8378
d93f9575
CY
8379 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8380 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8381
305018ec
JD
83822009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8383
8384 * sound.c (alsa_configure): Remove call to deprecated
8385 snd_pcm_sw_params_set_xfer_align.
8386
f761d6b6 83872009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8388
8389 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8390 after clicking in a detached tool bar.
8391 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8392
46e722a9
SM
83932009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8394
348db3dd
SM
8395 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8396 int/Lisp_Object mixup).
46e722a9 8397
a3d16f39
KH
83982009-03-13 Kenichi Handa <handa@m17n.org>
8399
8400 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8401 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8402 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8403 (set_fontset_font): Change ARG to a vector. Handle range_list in
8404 ARG correctly.
8405 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8406 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8407 the above change.
8408 (fontset_from_font): Fix previous change.
fe24f56a 8409 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8410 entry. If FONTSET is the default fontset, don't set the extra
8411 slot of the returning char-table.
8412
b066e6b6
JB
84132009-03-12 Juanma Barranquero <lekktu@gmail.com>
8414
8415 * nsfns.m (Fx_close_connection): Doc fix.
8416 (Fns_do_applescript): Reflow docstring.
8417 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8418 (Fx_display_pixel_width, Fx_display_pixel_height)
8419 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8420 Fix typos in docstrings.
8421 (Fns_set_alpha): Fix typos in error messages.
8422
d472514e 84232009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8424
d472514e 8425 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8426 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8427 were used for such events.
8428
d472514e
JB
8429 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8430 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8431
d472514e 8432 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8433 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8434
fb930676
KH
84352009-03-11 Kenichi Handa <handa@m17n.org>
8436
ff85581a
KH
8437 * font.h (font_open_by_spec): Extern it.
8438
c50b7e98
KH
8439 * font.c (font_open_by_spec): New function.
8440 (font_open_by_name): Use font_open_by_spec.
8441
fb930676
KH
8442 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8443 fontset of the frame.
8444
8445 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8446 modify the default font of frames that use this fontset.
8447 (num_auto_fontsets): New variable.
8448 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8449 name. Be sure to set FONTSET_ASCII to the correct font name.
8450 (update_auto_fontset_alist): New function.
8451
df4e8455
JB
84522009-03-11 Juanma Barranquero <lekktu@gmail.com>
8453
8454 * makefile.w32-in: Update dependencies.
8455
0a375797
AR
84562009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8457
8458 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8459
61313fa3
SM
84602009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8461
8462 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8463
b55103fb
CY
84642009-03-10 Chong Yidong <cyd@stupidchicken.com>
8465
8466 * lread.c (Feval_buffer): Doc fix.
8467
dde2559c
KH
84682009-03-09 Kenichi Handa <handa@m17n.org>
8469
8470 * charset.c (Qfile_name_handler_alist): Extern it.
8471 (load_charset_map_from_file): Temporarily bind
8472 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8473
df4e8455 84742009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8475
47f588bb
GM
8476 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8477 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8478
4ddf94bd
AR
84792009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8480
4c9bdfc2
AR
8481 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8482 (x_set_window_size): Change back to calculated method of setting
8483 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8484 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8485 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8486
fe41ae9e
AR
8487 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8488
4c9bdfc2
AR
8489 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8490 accelerator in parens under GNUstep.
8491
825d0875
KH
84922009-03-06 Kenichi Handa <handa@m17n.org>
8493
8494 These changes are to detect incorrect composition sequence without
f3b3be74 8495 looking ahead the source. (Bug#2370)
825d0875
KH
8496
8497 * coding.h: Include "composite.h".
8498 (enum compisition_state): New enum.
8499 (struct compisition_status): New struct.
8500 (struct iso_2022_spec): New member cmp_status.
8501 (struct emacs_mule_spec): New struct.
8502 (struct coding_system): New members ctext_extended_segment_len and
8503 embedded_utf_8. Change the union member
8504 spec.emacs_mule_full_support to spec.emacs_mule.
8505
8506 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8507 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8508 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8509 (ADD_COMPOSITION_DATA): New arg nbytes.
8510 (emacs_mule_char): New arg cmp_status.
8511 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8512 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8513 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8514 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8515 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8516 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8517 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8518 (EMACS_MULE_COMPOSITION_END): New macro.
8519 (emacs_mule_finish_composition): New function.
8520 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8521 (decode_coding_emacs_mule): Avoid long looking ahead while
8522 handling composition.
8523 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8524 (ENCODE_COMPOSITION_RULE): New macro.
8525 (finish_composition): New function.
8526 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8527 (DECODE_COMPOSITION_START): New implementation.
8528 (DECODE_COMPOSITION_END): Likewise.
8529 (STORE_COMPOSITION_RULE): New macro.
8530 (decode_coding_iso_2022): Avoid long looking ahead while handling
8531 composition, CTEXT extended segment, and embedded UTF-8.
8532 (setup_coding_system): For a coding of type iso-2022, reset
8533 CODING_ISO_EXTSEGMENT_LEN (coding) and
8534 CODING_ISO_EMBEDDED_UTF_8 (coding).
8535 (get_translation): Delete arguments last_block, from_nchars,
8536 to_nchars. Callers changed.
8537 (produce_chars): Don't modify charbuf. Adjusted for the change of
8538 get_translation.
98a326f7 8539 (produce_composition): Adjust for the new annotation sequence.
825d0875 8540 (handle_composition_annotation): Likewise.
98a326f7 8541 (consume_chars): Adjust for the change of get_translation.
825d0875 8542
ccbc4452
AR
85432009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8544
4ddf94bd 8545 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8546
988a7ddb
KH
85472009-03-05 Kenichi Handa <handa@m17n.org>
8548
8549 * font.c (font_select_entity): New function.
8550 (font_find_for_lface): Use font_select_entity to select a font.
8551
8552 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8553 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8554 font with C restriction.
8555
98a326f7 85562009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8557
be1bce46 8558 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8559
10ea2b82
JR
85602009-03-04 Jason Rumney <jasonr@gnu.org>
8561
2c93b248 8562 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8563 characters that have already been read. (Bug#2569)
2c93b248 8564
10ea2b82
JR
8565 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8566 Log an error message if check_image_size failed.
8567 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8568 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8569
71a0c011
EZ
85702009-03-02 Eli Zaretskii <eliz@gnu.org>
8571
8572 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8573 when decoding process output.
8574
2f63bba8
RS
85752009-03-01 Richard M Stallman <rms@gnu.org>
8576
8577 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8578
8579 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8580
0a9564cb
EZ
85812009-02-28 Eli Zaretskii <eliz@gnu.org>
8582
8583 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8584 (decode_coding_emacs_mule, decode_coding_iso_2022)
8585 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8586 (decode_coding_raw_text, decode_coding_charset)
8587 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8588 Honor inhibit-eol-conversion. (Bug #2186)
8589
449148b3
JR
85902009-02-28 Jason Rumney <jasonr@gnu.org>
8591
8592 * coding.c (detect_coding_charset): If not checking latin extra,
8593 fail on characters between 0x80 and 0xA0. (Bug#2354)
8594
a4aee864
EZ
85952009-02-28 Eli Zaretskii <eliz@gnu.org>
8596
8597 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8598 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8599
d88bee5a
GM
86002009-02-27 Glenn Morris <rgm@gnu.org>
8601
8602 * callint.c (Finteractive): Doc fix.
8603
a808f22d
KH
86042009-02-27 Kenichi Handa <handa@m17n.org>
8605
8606 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8607
caf8d60c
CY
86082009-02-27 Chong Yidong <cyd@stupidchicken.com>
8609
8610 * font.c (font_style_to_value): Set value for unknown symbols to
8611 100 instead of 255.
b61137ea
CY
8612 (weight_table, slant_table, width_table): Treat "unspecified" as
8613 the default value.
caf8d60c 8614
1a0de25c
JB
86152009-02-26 Juanma Barranquero <lekktu@gmail.com>
8616
8617 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8618
8fc45744
JB
86192009-02-25 Juanma Barranquero <lekktu@gmail.com>
8620
107bd7d1
JB
8621 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8622 error as soon as a recursive load is detected.
8fc45744 8623
f097e223
AR
86242009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8625
8626 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8627 before caching.
8628
8810a12f
KH
86292009-02-24 Kenichi Handa <handa@m17n.org>
8630
8631 * fontset.c (fontset_find_font): Fix the condition for checking
8632 unavailable font.
8633
2c7d1565
GM
86342009-02-24 Glenn Morris <rgm@gnu.org>
8635
8636 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8637 whitespace that confuses documentation.
8638
a20878b6
MB
86392009-02-23 Miles Bader <miles@gnu.org>
8640
8641 * process.c (Flist_system_processes, Fprocess_attributes)
8642 (syms_of_process): Rename `system-process-attributes' to
8643 `process-attributes'.
8644
b3b58c01
AS
86452009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8646
1b3b981b
AS
8647 * coding.h (struct coding_system): Make safe_charsets a pointer to
8648 unsigned char.
8649 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8650 being 255.
8651 (SAFE_CHARSET_P): Likewise.
8652 (setup_iso_safe_charsets): Properly setup safe_charsets.
8653 (Fdefine_coding_system_internal): Likewise.
8654 (setup_coding_system): Likewise. Remove unneeded casts.
8655 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8656 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8657 unneeded casts.
8658
b3b58c01
AS
8659 * insdel.c (del_range_2): Don't modify gap contents when called
8660 from decode_coding_object. (Bug#1809)
8661
0b6f228c
CY
86622009-02-21 Chong Yidong <cyd@stupidchicken.com>
8663
8664 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8665 Qfont_object.
8666 (Ftype_of): Recognize font objects.
8667
8668 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8669
8670 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8671 moved to data.c.
8672
52f8870b
AR
86732009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8674
8675 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8676 async_iconified. Based on a patch by Christian Lynbech
8677 <christian.lynbech@tieto.com>.
8678 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8679
7087d5e9
GM
86802009-02-20 Glenn Morris <rgm@gnu.org>
8681
8682 * syntax.c (Fskip_chars_forward): Fix doc typo.
8683
41d2ceef
CY
86842009-02-20 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8687
1a3b7ca6
CY
86882009-02-19 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8691
73cce38d
KH
86922009-02-19 Kenichi Handa <handa@m17n.org>
8693
8694 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8695 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8696
a51092ee
DN
86972009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8698
8699 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8700
c423ecca
KH
87012009-02-18 Kenichi Handa <handa@m17n.org>
8702
8703 * font.c (font_check_otf_features): Fix handling of `nil' element.
8704 (Ffont_spec): Describe :lang and :otf in the docstring.
8705
4c1958f4
AS
87062009-02-16 Andreas Schwab <schwab@suse.de>
8707
8708 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8709 string.
8710
5704f39a
KH
87112009-02-16 Kenichi Handa <handa@m17n.org>
8712
8713 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8714 (Bug#1723)
5704f39a 8715
8f0085aa
CY
87162009-02-14 Chong Yidong <cyd@stupidchicken.com>
8717
a057d86a 8718 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8719
8720 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8721 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8722
aff01dd9
EZ
87232009-02-14 Eli Zaretskii <eliz@gnu.org>
8724
8725 * msdos.c (MAX_SCREEN_BUF): New macro.
8726 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8727 Encode the entire run of glyphs sharing the same face, instead of
8728 doing that one glyph at a time (fixes a bug with displaying
8729 double-size characters).
8730
ba301db3
AR
87312009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8732
8733 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8734
8735 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8736 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8737 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8738
8739 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8740 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8741
51d861de
SM
87422009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8743
ac146f82 8744 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8745 invisible areas.
8746
7fed8996
JR
87472009-02-12 Jason Rumney <jasonr@gnu.org>
8748
631ea4fb
JR
8749 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8750 (add_font_entity_to_list): Call check_face_name even when family
8751 is unspecified.
8752
cb4a3e42
JR
8753 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8754 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8755 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8756
7fed8996 8757 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8758 raster fonts. (Bug#2219)
7fed8996 8759
895416e3
KH
87602009-02-12 Kenichi Handa <handa@m17n.org>
8761
8762 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8763 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8764 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8765 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8766 (find_automatic_composition): While looking forward and backward,
8767 check static composition. Fix where to stop looking forward.
8768 (composition_adjust_point): Fix checking of static composition.
8769 (Fcomposition_get_gstring): Pay attention to
1dacf998 8770 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8771
8772 * lisp.h (fast_looking_at): Extern it.
8773
8774 * search.c (fast_looking_at): New function.
8775
51d861de 8776 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8777 <struct glyph>.u.cmp.to.
8778 (append_composite_glyph): Likewise.
8779
51d861de 8780 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8781 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8782 composition.
51d861de 8783 (append_composite_glyph): Adjust for the change of
895416e3
KH
8784 <strcut glyph>.u.cmp.to.
8785
8510724d
JB
87862009-02-11 Juanma Barranquero <lekktu@gmail.com>
8787
8788 * casetab.c (init_casetab_once):
8789 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8790 * font.c (font_update_lface):
8791 * fontset.c (Fnew_fontset):
8792 * ftfont.c (ftfont_drive_otf):
8793 * xfont.c (xfont_open):
8794 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8795
294fa707
SM
87962009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8797
8798 * fileio.c (Fwrite_region): !NILP -> CONSP.
8799
b5bfebec
AS
88002009-02-10 Andreas Schwab <schwab@suse.de>
8801
8802 * process.c (send_process): Properly relocate pointer into data
adab88bd 8803 when using encoded data. (Bug#2272)
b5bfebec 8804
cb84a2be
KH
88052009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8806
8807 * coding.c (detect_coding_charset): Fix previous change.
8808
89e09428
JR
88092009-02-08 Jason Rumney <jasonr@gnu.org>
8810
8811 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8812 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8813
4470a277
AS
88142009-02-07 Andreas Schwab <schwab@suse.de>
8815
8816 * unexelf.c (unexec): Fix error message.
8817
3175b12a
AR
88182009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8819
8820 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8821 when modal window is active. (Bug #2152)
3175b12a
AR
8822 (applicationShouldTerminate:): Remove now-unneeded while loop
8823 around NSRunAlertPanel.
8824
8825 * nsmenu.m (popupSession): New file-global variable.
8826 (pop_down_menu): End the popupSession before closing dialog.
8827 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8828 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8829 don't query NSApp for events (just sleep instead).
8830
8434d0b8
EZ
88312009-02-07 Eli Zaretskii <eliz@gnu.org>
8832
51d861de
SM
8833 * coding.c (syms_of_coding) <translation-table-for-input>:
8834 Modify doc string to discourage use for character code unification.
8434d0b8 8835
aa82edfd
CY
88362009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8837
8838 * atimer.c (run_timers): Update pending_atimers.
8839
2d283c7c
CY
88402009-02-06 Chong Yidong <cyd@stupidchicken.com>
8841
eb306cab
CY
8842 * image.c (svg_load_image): Fix last change.
8843
2d283c7c
CY
8844 * xfns.c (Fx_create_frame): Signal an error if no font is
8845 found (Bug#2147).
8846
4d8e170e
JB
88472009-02-05 Juanma Barranquero <lekktu@gmail.com>
8848
8849 * character.c (syms_of_character) <script-representative-chars>:
8850 Fix typo in docstring.
8851
c96169a0
AR
88522009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8853
8854 * nsmenu.m (pop_down_menu): New function.
8855 (ns_popup_dialog): Call it on unwind.
8856 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8857 call timer_check() (Bug#2154).
8858 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8859 handling_signal is set.
8860 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8861
31fd7c5c 8862 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8863
8864 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8865
8866 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8867
51d861de
SM
8868 * keyboard.c (poll_for_input_1, handle_async_input):
8869 Set handling_signal under HAVE_NS.
c96169a0 8870
aacd8ba1
GM
88712009-02-04 Glenn Morris <rgm@gnu.org>
8872
8873 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8874
4cb75c4b
KH
88752009-02-04 Kenichi Handa <handa@m17n.org>
8876
8877 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8878
8879 * charset.c (Fchar_charset): New optional arg restriction.
8880
8881 * coding.h (coding_system_charset_list): Extern it.
8882
8883 * coding.c (coding_system_charset_list): New function.
8884
8885 * composite.c: Include coding.h and termhooks.h.
8886 (composition_gstring_p): Fix for the terminal case.
8887 (composition_gstring_width): Likewise.
8888 (fill_gstring_body): Likewise.
8889 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8890 the frame.
8891 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8892 is within a composition.
867d4bb3 8893 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8894
8895 * term.c (encode_terminal_code): Fix handling of composition.
8896 (produce_composite_glyph): For static composition, get pixel_width
8897 from struct composition.
8898
826ba17e
AS
88992009-02-02 Andreas Schwab <schwab@suse.de>
8900
8901 * unexelf.c (unexec): Handle unaligned bss offset.
8902
8ad093db
AR
89032009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8904
8905 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8906 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8907
8ad093db
AR
8908 * keyboard.c (handle_interrupt): Don't call
8909 quit_throw_to_read_char() under NS.
d0a76a6e 8910
8ad093db
AR
8911 * blockinput.h: Remove NS-specific code.
8912
4d18a7a2
DN
89132009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8914
db878925
DN
8915 * dispnew.c (window_change_signal): Don't try to get the size of a
8916 suspended tty frame.
8917 * term.c (Fresume_tty): Resize if the size has changed while the
8918 tty was suspended.
8919
4d18a7a2
DN
8920 * alloc.c (mark_stack): Properly conditionalize previous change.
8921
8984df7c
JB
89222009-01-30 Juanma Barranquero <lekktu@gmail.com>
8923
8924 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8925 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8926 Remove; this code is not used on Windows.
8927
75f4f1ac
EZ
89282009-01-30 Eli Zaretskii <eliz@gnu.org>
8929
8930 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8931 EOLs that also has stray ^M characters.
8932
07a1e794
JB
89332009-01-30 Juanma Barranquero <lekktu@gmail.com>
8934
8935 * atimer.c (run_timers, alarm_signal_handler):
8936 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8937 * w32inevt.c (w32_console_read_socket):
8938 * w32term.c (w32_read_socket):
8939 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8940
a8b11cc9
CY
89412009-01-30 Chong Yidong <cyd@stupidchicken.com>
8942
8943 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8944 Initialize it as a relative filename pattern.
8945 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8946 (Fcall_process_region): Simplify temp file creation using
8947 temporary-file-directory.
8948
c279587b
EZ
89492009-01-29 Eli Zaretskii <eliz@gnu.org>
8950
8951 * msdos.c: Rename pending_signals to msdos_pending_signals.
8952 (sig_suspender, sigprocmask): Adjust.
8953
a8fe3242
CY
89542009-01-29 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * keyboard.c (pending_signals): New var.
8957 (poll_for_input, input_available_signal, init_keyboard): Set it.
8958 (process_pending_signals): New function.
8959
8960 * lisp.h (QUIT): Check pending_signals instead of
8961 interrupt_input_pending. Use process_pending_signals.
8962
51d861de 8963 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8964
51d861de 8965 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8966
8967 * sysdep.c (emacs_write): Use process_pending_signals.
8968
8969 * xterm.c (XTread_socket): Update pending_signals.
8970
8971 * w32term.c (w32_read_socket): Update pending_signals.
8972
8973 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8974
6570a1c4
KH
89752009-01-29 Kenichi Handa <handa@m17n.org>
8976
8977 * xftfont.c (xftfont_has_char): New function.
8978 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8979
d72a4afa
AR
89802009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8981
8982 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8983 under GNUstep.
8984 (ns_query_color): New declaration.
8985
8986 * nsterm.m (ns_confirm_quit): New variable.
8987 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8988 (EmacsApp-applicationShouldTerminate:): Use it.
8989 (EmacsPrefsController): Let user set it.
8990 (ns_query_color): New function.
8991 (ns_defined_color): Use it.
8992 (ns_initialize): Drop.
8993 (ns_term_init): Add two lines from ns_initialize(), and set
8994 input_interrupt_mode to nil.
8995
8996 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8997 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8998
9fe78804
KH
89992009-01-28 Kenichi Handa <handa@m17n.org>
9000
9001 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9002 (fontset_get_font_group): Remember that no font-group is specified
9003 for C.
9fe78804 9004
fa57de36
CY
90052009-01-27 Chong Yidong <cyd@stupidchicken.com>
9006
930600e9
CY
9007 * fns.c (concat): Check for string overflow (bug#1787).
9008
fa57de36
CY
9009 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9010 Quadruple undo limits (bug#1501).
9011
7179ce7b
KH
90122009-01-27 Kenichi Handa <handa@m17n.org>
9013
9014 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9015 directly use GT_Get_Char_index.
9016
9017 * xftfont.c (struct xftfont_info): New member `index'.
9018
9019 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9020 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9021
5be8fcc0
CY
90222009-01-26 Kenichi Handa <handa@m17n.org>
9023
9024 * fontset.c (fontset_find_font): Fix handling of non-cons return
9025 value of fontset_get_font_group.
9026 (fontset_font): Revert last change.
9027
19ae3e61
JR
90282009-01-26 Jason Rumney <jasonr@gnu.org>
9029
9030 * w32font.c (w32font_list_internal): Return quickly if registry is
9031 unknown. Simplify final return.
9032 (add_font_entity_to_list): Break complex logic down into more
9033 manageable chunks. Move unknown registry check to
9034 w32font_list_internal.
9035
8612b71a
AR
90362009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9037
9038 Changes to remove Feval calls from GUI under NS.
9039
d8038940
JB
9040 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9041 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9042 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9043
9044 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9045 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9046 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9047 instead of NON_ASCII_KEYSTROKE_EVENT.
9048 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9049 (EmacsApp-applicationShouldTerminate:): Query user.
9050 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9051 instead of Feval.
9052
9053 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9054
9055 * keyboard.c (kbd_buffer_get_event): Check for it.
9056 (keys_of_keyboard): Define lispy keys for
9057 ns-put/unput-working-text.
9058
9059 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9060 versions.
9061 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9062
6288ae55
CY
90632009-01-25 Chong Yidong <cyd@stupidchicken.com>
9064
9065 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9066 setting current_buffer directly. (Bug#2044)
6288ae55 9067
289e7f8f
CY
90682009-01-24 Chong Yidong <cyd@stupidchicken.com>
9069
5ce87308 9070 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9071 any work. (Bug#1952, bug#1990).
5ce87308 9072
64cc3cf6 9073 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9074
b3243e6f
AR
90752009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9076
9077 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9078 (ns_no_defaults): New declaration.
9079 (main): Use it.
e0d2e69a 9080
d900b2af 9081 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9082
d900b2af 9083 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9084
d900b2af
AR
9085 * nsterm.m (ns_no_defaults): New variable.
9086 (ns_initialize): Don't read defaults when ns_no_defaults.
9087 (EmacsView-readSelectionFromPasteboard:)
9088 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9089 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9090 (ns_dumpglyphs_stretch): New function.
9091 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9092 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9093
e0d2e69a
AR
9094 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9095
3ac71f5d
CY
90962009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9097
9098 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9099 call for Sparc64.
9100
3fe53a83
AR
91012009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9102
9103 * nsfns.m:
9104 * nsgui.h:
9105 * nsmenu.m:
9106 * nsselect.m:
9107 * nsterm.h:
9108 * nsterm.m: Remove '23' comments that indicated code added during
9109 update from emacs-20 -> emacs-23.
9110
10f87c6f 91112009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9112
9113 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9114 ns_alternate_modifier. (Bug#1217)
a3b53a85 9115
c7cef62d
AR
9116 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9117 Display all shortcuts, including those w/o super modifier.
9118
575fb8bd
AR
9119 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9120
918b848b
CY
91212009-01-22 Chong Yidong <cyd@stupidchicken.com>
9122
9123 * fileio.c (Vwrite_region_post_annotation_function)
9124 (Vwrite_region_annotation_buffers): New vars.
9125 (build_annotations_unwind): Just reset
9126 Vwrite_region_annotation_buffers.
9127 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9128 Call write-region-post-annotation-function.
9129 (build_annotations): Add to Vwrite_region_annotation_buffers if
9130 buffer changes.
9131
a39e2539
AR
91322009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9133
9134 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9135 Tiger.
51d861de
SM
9136 * nsfns.m (ns_do_applescript):
9137 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9138
35ed44db
AR
91392009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9140
9141 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9142
cbe0b5bf
AR
91432009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9144
9145 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9146
6049d3a0
AR
9147 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9148
9149 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9150 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9151 handle Ctrl-tab. (Bug#1841)
9152 (ns_get_color): Use unsigned long long for scanned hex string value.
9153 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9154 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9155 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9156 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9157 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9158 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9159 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9160
d3810c21 9161 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9162 DPI. (Bug#1316)
d3810c21
AR
9163 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9164 values in onTiger section.
4c7077c3 9165
e301e634
CY
91662009-01-19 Chong Yidong <cyd@stupidchicken.com>
9167
7f82490b
CY
9168 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9169 Check return value of font_spec_from_name.
64cc3cf6 9170 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9171
9172 * font.c (font_spec_from_name): Return Qnil if font name could not
9173 be parsed.
9174 (font_parse_name): Treat a `?' character as part of an XLFD.
9175
e301e634
CY
9176 * fns.c (Fsubstring): Doc fix.
9177
1c0db158
KH
91782009-01-19 Kenichi Handa <handa@m17n.org>
9179
51d861de 9180 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9181 (ftfont_list): Likewise.
9182
acf20901
JB
91832009-01-18 Juanma Barranquero <lekktu@gmail.com>
9184
fff4e459
JB
9185 * dbusbind.c (Fdbus_register_signal):
9186 * process.c (conv_sockaddr_to_lisp):
9187 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9188
acf20901
JB
9189 * callproc.c (Fgetenv_internal): Doc fix.
9190
e7abcdfb
CY
91912009-01-16 Chong Yidong <cyd@stupidchicken.com>
9192
9193 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9194 it is not even used.
9195
b60861e6
GM
91962009-01-16 Glenn Morris <rgm@gnu.org>
9197
9198 * font.c (Ffont_variation_glyphs): Silence compiler.
9199
8db52afe
JB
92002009-01-15 Juanma Barranquero <lekktu@gmail.com>
9201
9202 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9203 Reported by David Robinow <drobinow@gmail.com>.
9204
4cddb209
KH
92052009-01-15 Kenichi Handa <handa@m17n.org>
9206
51d861de 9207 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9208
f247f67b
JR
92092009-01-14 Jason Rumney <jasonr@gnu.org>
9210
9211 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9212 never a fontset. (Bug#1562)
f247f67b 9213
f56a4450
KH
92142009-01-14 Kenichi Handa <handa@m17n.org>
9215
9216 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9217 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9218
4e99855e
CY
92192009-01-13 Chong Yidong <cyd@stupidchicken.com>
9220
9221 * font.c (font_clear_prop): If clearing the family, clear the font
9222 width index too.
9223
fff4e459 9224 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9225
24f01470
JB
92262009-01-12 Juanma Barranquero <lekktu@gmail.com>
9227
9228 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9229 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9230 functions, use sizeof.
9231
a41240a3
MR
92322009-01-12 Martin Rudalics <rudalics@gmx.at>
9233
9234 * keyboard.c (read_char): Fix case where last_nonmenu_event
9235 returned a bad value with submenus. (Bug#447)
9236
944636b8
CY
92372009-01-12 Chong Yidong <cyd@stupidchicken.com>
9238
9239 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9240 family, clear the font width index too.
9241
0dad7c6f
JR
92422009-01-11 Jason Rumney <jasonr@gnu.org>
9243
9244 * keyboard.c (cmd_error_internal): Exit when errors occur before
9245 frame creation and not in daemon mode. (Bug#1836)
9246
7c2363af
CY
92472009-01-10 Chong Yidong <cyd@stupidchicken.com>
9248
9249 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9250 of a display vector, backtrack.
9251 (try_window_reusing_current_matrix): Check glyph type before
9252 referencing charpos member.
9253
97b1b294
EZ
92542009-01-10 Eli Zaretskii <eliz@gnu.org>
9255
9256 Fix Bug #876:
9257
9258 * coding.c (inhibit_null_byte_detection): New variable.
9259 (detect_coding, detect_coding_system): Don't pay attention to null
9260 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9261 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9262 <inhibit-iso-escape-detection>: Doc fix.
9263
4624b6e3
JR
92642009-01-09 Jason Rumney <jasonr@gnu.org>
9265
9266 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9267 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9268 Only report Unicode Plane 2 fonts as unicode-sip.
9269
323b840c
CY
92702009-01-09 Chong Yidong <cyd@stupidchicken.com>
9271
51d861de
SM
9272 * xfaces.c (Fx_font_family_list): Delete function.
9273 Move compatibility version to faces.el.
323b840c 9274
51d861de 9275 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9276
eba7400d
MR
92772009-01-09 Martin Rudalics <rudalics@gmx.at>
9278
9279 * frame.c (x_set_frame_parameters): Remember requested value for
9280 fullscreen before it's reset by the parameter handler.
9281
4b09796d
GM
92822009-01-09 Glenn Morris <rgm@gnu.org>
9283
9284 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9285 (last_command_event): ... and update all users.
4b09796d
GM
9286 (last_input_char): For clarity, rename to...
9287 (last_input_event): ... and update all users.
9288 (last-command-char, last-input-char): Move to subr.el as aliases.
9289 * cmds.c, commands.h: Update for last_command_char rename.
9290
14ccea62
CY
92912009-01-08 Chong Yidong <cyd@stupidchicken.com>
9292
51d861de 9293 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9294
5f004711
JR
92952009-01-08 Jason Rumney <jasonr@gnu.org>
9296
9297 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9298 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9299 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9300 Don't declare.
fff4e459 9301 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9302 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9303
b71f6f73
KH
93042009-01-07 Kenichi Handa <handa@m17n.org>
9305
50b06221 9306 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9307 remember the coding system used for decoding in
50b06221
KH
9308 coding_system (Bug#1039).
9309
b71f6f73 9310 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9311 breaking the loop. (Bug#870)
b71f6f73
KH
9312 (decode_coding_utf_16, decode_coding_emacs_mule)
9313 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9314 (decode_coding_charset): Likewise.
9315
56f668f7
MR
93162009-01-05 Martin Rudalics <rudalics@gmx.at>
9317
9318 * frame.c (x_set_frame_parameters): Make sure height (width) get
9319 applied when fullwidth (fullheight) is set. (Bug#1522)
9320
5da9424d
JB
93212009-01-04 Juanma Barranquero <lekktu@gmail.com>
9322
9323 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9324 (utc_base): Declare as ULONGLONG, not long double.
9325 (convert_time_raw): Delete.
9326 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9327 (initialize_utc_base): New function.
9328 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9329 (convert_from_time_t): Use initialize_utc_base; compute result with
9330 64-bit arithmetic.
9331 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9332
c4605e09
EZ
93332009-01-03 Eli Zaretskii <eliz@gnu.org>
9334
9acef61c 9335 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9336 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9337 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9338 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9339 [!subprocesses]: Define.
9340 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9341 (Flist_system_processes, Fsystem_process_attributes)
9342 [!subprocesses]: Call list_system_processes and
9343 system_process_attributes instead of returning Qnil.
9344
9acef61c
JB
9345 * dosfns.c (system_process_attributes, list_system_processes):
9346 New functions.
c4605e09
EZ
9347
9348 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9349
9350 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9351 Don't use the default (no-op) implementation.
9352
8b7d0a16
JR
93532009-01-03 Jason Rumney <jasonr@gnu.org>
9354
a6d46bc1
JR
9355 * keyboard.c (parse_modifiers_uncached): Wheel events are
9356 clicks (bug#687).
9357
8b7d0a16
JR
9358 * w32term.c (x_query_colors, x_query_color): New functions.
9359
9360 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9361 (svg_load_image): Cast returned pointers from dynamically loaded
9362 functions. Eliminate W32 specific code.
9363
bfe11752
DN
93642009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9365
89e2438a
DN
9366 * nsfns.m (x_set_foreground_color, x_set_background_color)
9367 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9368 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9369 x_ prefix instead of ns_. Update references.
9370 (syms_of_nsfns): Add a FIXME comment.
9371
9372 * nsterm.m (x_set_cursor_type): New prototype.
9373 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9374
bfe11752
DN
9375 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9376 for Solaris instead of incorrectly providing Qutime and Qcutime.
9377
031da700
EZ
93782009-01-02 Eli Zaretskii <eliz@gnu.org>
9379
9380 * w32.c (process_times): Compute sum of utime and stime.
9381 (system_process_attributes): Add Qtime to the alist.
9382
9383 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9384 and add them to the alist.
9385
9386 * process.c (top level) <Qtime, Qctime>: New variables.
9387 (syms_of_process): staticpro them.
9388 (Fsystem_process_attributes): Add their documentation to the doc
9389 string.
9390
9391 * process.h: Declare Qtime and Qctime.
9392
df23bf08
JR
93932009-01-02 Jason Rumney <jasonr@gnu.org>
9394
9acef61c 9395 * image.c (Qgobject): New symbol.
df23bf08
JR
9396 (syms_of_image): Initialize it.
9397 (init_svg_functions): Load some functions from gobject library.
9398
5bbdf7aa
DN
93992009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9400
9401 * frame.c (make_terminal_frame): Remove redundant code and useless
9402 block.
9403
63136da6
AS
94042009-01-01 Andreas Schwab <schwab@suse.de>
9405
9406 * process.c (conv_sockaddr_to_lisp): Add workaround for
9407 getsockname bug on BSD.
9408
9ef69046
CY
94092009-01-01 Chong Yidong <cyd@stupidchicken.com>
9410
d6fafbe0
CY
9411 * xfns.c (x_create_tip_frame): Set border width of the X window.
9412
51d861de 9413 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9414
f9c34147
JR
94152009-01-01 Jason Rumney <jasonr@gnu.org>
9416
9acef61c 9417 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9418 Don't block input, as per earlier xterm.c changes.
9419
f5497e45
AR
94202008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9421
9422 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9423 (ns_appkit_version_int): New function.
9424 (x-server-version): Use ns_appkit_version_int and follow 21+
9425 convention of returning 3 integers.
9426
c19cab20
KH
94272008-12-30 Kenichi Handa <handa@m17n.org>
9428
9429 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9430 (CHAR_SURROGATE_PAIR_P): New macro.
9431
9432 * font.h (struct font_driver): New member get_variation_glyphs.
9433
9acef61c 9434 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9435 (Ffont_variation_glyphs): New function.
9436 (syms_of_font): Defsubr it.
9437
9438 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9439 ftfont_variation_glyphs.
9440 (setup_otf_gstring): New function.
9441 (ftfont_drive_otf): Use it.
9442 (ftfont_shape_by_flt): Handle variation selector.
9443 (ftfont_variation_glyphs): New function.
9444
28cd591f
MR
94452008-12-30 Martin Rudalics <rudalics@gmx.at>
9446
9447 * frame.c (Vemacs_iconified): Remove.
9448
7f714baf
JR
94492008-12-30 Jason Rumney <jasonr@gnu.org>
9450
9451 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9452 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9453
9d2d22ab
CY
94542008-12-30 Chong Yidong <cyd@stupidchicken.com>
9455
9456 * indent.c (Fvertical_motion): Don't advance iterator if we have
9457 reseated to the desired position.
9458
9459 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9460 checking for pos match.
9461
545312c2
KH
94622008-12-30 Kenichi Handa <handa@m17n.org>
9463
1ede3eb6
KH
9464 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9465 just get the low 8-bit of the code.
9466
545312c2
KH
9467 * font.c (font_intern_prop): Validate str as multibyte.
9468
bd7bbf29
DN
94692008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9470
31e0750e
DN
9471 * dispextern.h (struct face): Move lface and hash from the middle
9472 of bitfields.
9473
bd7bbf29
DN
9474 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9475
b5672e7c
DN
94762008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9477
9478 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9479 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9480 instead of intervals.h.
9481
d704470f
AS
94822008-12-26 Andreas Schwab <schwab@suse.de>
9483
9484 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9485 cons.
9486
54b33868
MR
94872008-12-26 Martin Rudalics <rudalics@gmx.at>
9488
9489 * textprop.c (Qminibuffer_prompt): New variable.
9490 (syms_of_textprop): Initialize it.
9491 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9492 in minibuffer-prompt face. (Bug#1662)
9493
40b615d6
JR
94942008-12-25 Jason Rumney <jasonr@gnu.org>
9495
9496 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9497
baae5c2d
JR
94982008-12-24 Jason Rumney <jasonr@gnu.org>
9499
9500 * ralloc.c (r_alloc_reset_variable): New function.
9501
9502 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9503 record of what points where. (Bug#716)
baae5c2d 9504
a9051c88
DN
95052008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9506
9507 * minibuf.c (read_minibuf): Follow the non-interactive case when
9508 running as a daemon, before detaching.
9509
8b146312
AS
95102008-12-22 Andreas Schwab <schwab@suse.de>
9511
9512 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9513 * gtkutil.c (free_widget_value): Use xfree instead of free.
9514
56f2de10
MR
95152008-12-22 Martin Rudalics <rudalics@gmx.at>
9516
9517 * frame.c (delete_frame): New function derived from
9518 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9519 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9520 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9521 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9522 * frame.h: Extern delete_frame.
9523 * window.c (window_loop):
9524 * terminal.c (delete_terminal):
9525 * xterm.c (x_connection_closed):
9526 * xfns.c (Fx_hide_tip):
9acef61c 9527 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9528
1fc200d6
JR
95292008-12-21 Jason Rumney <jasonr@gnu.org>
9530
9531 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9532 when character maps to .notdef character.
9533
5e252df2
SM
95342008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9535
9536 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9537
99b72cc4
JR
95382008-12-20 Jason Rumney <jasonr@gnu.org>
9539
9540 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9541 a graphical frame on Windows. (Bug#1325)
99b72cc4 9542
acc49a52
JD
95432008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9544
9545 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9546
6ea15123
CY
95472008-12-20 Chong Yidong <cyd@stupidchicken.com>
9548
9549 * minibuf.c (Fread_buffer): Doc fix.
9550
b2dab6c8
JR
95512008-12-20 Jason Rumney <jasonr@gnu.org>
9552
54ea0c87 9553 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9554 server name in UNC paths. (Bug#719)
54ea0c87 9555
b2dab6c8 9556 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9557 charbuf. (Bug#1035)
b2dab6c8 9558
6d1921be
DN
95592008-12-19 Daniel Engeler <engeler@gmail.com>
9560
9561 * sysdep.c (serial_configure): Fix typo.
9562
53934c98
DN
95632008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9564
9565 * sysdep.c: Include alloca.h.
f4f634e8
DN
9566 (system_process_attributes): Add implementation for Solaris.
9567
9568 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9569
06e111a6
DN
95702008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9571
9572 Reorganize implementation of Flist_system_processes and
9573 Fsystem_process_attributes. No functional changes.
9574 * process.c: Don't #include pwd.h, grp.h and limits.h.
9575 (Flist_system_processes): Just call list_system_processes.
9576 (Fsystem_process_attributes): Just call system_process_attributes.
9577 (procfs_list_system_processes, time_from_jiffies)
9578 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9579 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9580
9581 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9582 (list_system_processes): Rename from
9583 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9584 Provide a do nothing implementation.
9585 (system_process_attributes): Rename from
9586 procfs_list_system_processes.
9587 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9588 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9589
9590 * w32.c (list_system_processes): Rename from
9591 w32_list_system_processes.
9592 (system_process_attributes): Rename from
9593 w32_system_process_attributes.
9594
9595 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9596
9597 * process.h (w32_list_system_processes)
9598 (w32_system_process_attributes): Remove.
362654a6
JB
9599 (list_system_processes, system_process_attributes):
9600 New prototypes.
06e111a6 9601
6a705b23
KH
96022008-12-19 Kenichi Handa <handa@m17n.org>
9603
9604 * xfont.c (xfont_decode_coding_xlfd): New function.
9605 (xfont_encode_coding_xlfd): New function.
9606 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9607 (xfont_list): Decode and encode XLFD by iso-8859-1.
9608 (xfont_match): Likewise.
9609 (xfont_list_family): Likewise.
9610 (xfont_open): Likewise.
9611
d66c0241 9612 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9613 names are utf-8.
9614
d66c0241 9615 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9616 names are utf-8.
9617
5a130941
JD
96182008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9619
9620 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9621 changed.
bfd20325
JD
9622 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9623 clicked on a detached tool bar button.
5a130941 9624
fd95644b
DN
96252008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9626
9627 * emacs.c (main): Print and error and exit when no data is read
9628 from the pipe.
9629
e6eee6ae
JR
96302008-12-17 Jason Rumney <jasonr@gnu.org>
9631
9632 * w32font.c (w32font_has_char): Always return -1.
9633
a35dd56b
KH
96342008-12-16 Kenichi Handa <handa@m17n.org>
9635
9636 * font.c (font_open_entity): Fix previous change.
9637
0e3635c2
DN
96382008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9639
9640 * process.c: Include <limits.h>.
9641
d4835507 96422008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9643
9644 * font.c (font_update_drivers): Fix mistake in reconstructing the
9645 driver list.
9646
96472008-12-16 Chong Yidong <cyd@stupidchicken.com>
9648
9649 * font.c (font_clear_cache): Fix format of font cache data.
9650
e2cbc401
CY
96512008-12-15 Chong Yidong <cyd@stupidchicken.com>
9652
9653 * xftfont.c (xftfont_open): Free Xft font pattern if
9654 XftFontOpenPattern fails.
9655
9656 * xterm.c (x_free_frame_resources): Remove extraneous call to
9657 free_frame_faces.
9658
b131d535
CY
96592008-12-13 Chong Yidong <cyd@stupidchicken.com>
9660
9661 * xterm.c (x_delete_display): Move xim_close_dpy call to
9662 x_delete_terminal.
9663 (x_delete_terminal): Call xim_close_dpy.
9664
e6df5336
JR
96652008-12-13 Jason Rumney <jasonr@gnu.org>
9666
9667 * w32font.c (intern_font_name): New function.
9668 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9669 (w32font_open_internal, Fx_select_font): Decode font name.
9670 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9671
9672 * w32font.h (intern_font_name): Declare new function.
9673
9674 * w32uniscribe.c (add_opentype_font_name_to_list):
9675 Use intern_font_name.
9676
20d68145
CY
96772008-12-13 Chong Yidong <cyd@stupidchicken.com>
9678
9f2554de
CY
9679 * frame.c (Fdelete_frame): Call free_font_driver_list.
9680
3d9bec9a
CY
9681 * font.c (free_font_driver_list): Implement missing function.
9682
20d68145
CY
9683 * w32term.c (w32_term_init): Don't initialize the image cache
9684 here; it will be done in init_frame_faces.
9685
9686 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9687 (struct x_display_info): Remove unused member null_pixel. New
9688 member xim_callback_data.
9689
9690 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9691 (xim_initialize): Save pointer to callback function data.
9692 (xim_close_dpy): Free callback function data. Call XCloseIM,
9693 reverting 2008-11-04 change by David Smith.
9694 (x_term_init): Don't initialize the image cache here; it will be
9695 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9696 (x_delete_display): Free x_dnd_atoms member.
9697
96f9306b
KH
96982008-12-13 Kenichi Handa <handa@m17n.org>
9699
6dec9044
JB
9700 * font.c (font_rescale_ratio): Moved from xfaces.c.
9701 Argument type changed. Handle a font-spec too.
96f9306b 9702 (font_score): Check Vface_font_rescale_alist.
6dec9044 9703 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9704
9705 * xfaces.c (font_rescale_ratio): Moved to font.c.
9706
8d5b4964
CY
97072008-12-13 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9710
e6df5336
JR
97112008-12-12 Jason Rumney <jasonr@gnu.org>
9712
9713 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9714 Vwindow_system_version to the real w32 major version.
9715
97c6058a
DN
97162008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9717
9718 * term.c (init_tty): Move setting the terminal name before the
9719 potential user: maybe_fatal.
9720
ec4e88d7
CY
97212008-12-11 Chong Yidong <cyd@stupidchicken.com>
9722
d4835507
JB
9723 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9724 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9725
b4233ec9
JR
97262008-12-11 Jason Rumney <jasonr@gnu.org>
9727
8ec71e23 9728 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9729 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9730
b4233ec9 9731 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9732 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9733
011a0143
JB
97342008-12-11 Juanma Barranquero <lekktu@gmail.com>
9735
9736 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9737
3c309f34
JB
97382008-12-11 Juanma Barranquero <lekktu@gmail.com>
9739
9740 * process.c (Fsystem_process_attributes, syms_of_process):
9741 Fix typo in name of Ssystem_process_attributes.
9742 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9743
fedc6ab5
JB
97442008-12-11 Juanma Barranquero <lekktu@gmail.com>
9745
9746 * syntax.c (Fmodify_syntax_entry): Doc fix.
9747
ba3de0e8
JB
97482008-12-10 Juanma Barranquero <lekktu@gmail.com>
9749
9750 * font.c (Ffont_spec): Move usage to end of docstring.
9751
174f1c74
JR
97522008-12-10 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32font.c (Qcham): New symbol.
9755 (font_supported_scripts): Add cham, and comments for other new
9756 scripts in bitfield from OpenType spec.
9d32f818
JR
9757 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9758 contain characters beyond the bmp.
174f1c74 9759
7b649478
KH
97602008-12-10 Kenichi Handa <handa@m17n.org>
9761
9762 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9763 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9764 Qunicode_sip.
9765
2133e2d1
JB
97662008-12-10 Juanma Barranquero <lekktu@gmail.com>
9767
9768 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9769 (Fcoding_system_put): Use QCdefault_char.
9770 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9771
9af886ee
CY
97722008-12-09 Chong Yidong <cyd@stupidchicken.com>
9773
74d819eb
CY
9774 * xftfont.c (syms_of_xftfont): Fix typo.
9775
4ccfa1c0 9776 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9777
7c19d3ae
DN
97782008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9779
9780 * emacs.c (main): Close daemon_pipe on exec.
9781
567826bb
CY
97822008-12-08 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * termchar.h (struct tty): New members termcap_term_buffer and
9785 termcap_strings_buffer.
9786
9787 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9788 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9789 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9790 All callers changed.
9791 (init_tty): Store termcap data and string buffers in new struct
9792 tty members termcap_term_buffer and termcap_strings_buffer.
9793 (delete_tty): Free them.
4ccfa1c0 9794 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9795
aa96c42b
SZ
97962008-12-07 Seiji Zenitani <zenitani@mac.com>
9797
9798 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9799 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9800
b7e1d896
CY
98012008-12-06 Chong Yidong <cyd@stupidchicken.com>
9802
9803 * coding.c (make_conversion_work_buffer): Disable buffer
9804 modification hooks in the work buffer.
9805
b5ec91a5
EZ
98062008-12-05 Eli Zaretskii <eliz@gnu.org>
9807
9808 * process.c (procfs_system_process_attributes): If `nread' has a
9809 negative value, assign zero to it.
9810
a5d2a52b
CY
98112008-12-05 Chong Yidong <cyd@stupidchicken.com>
9812
68c5540b 9813 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9814
7bf1bb21
KH
98152008-12-05 Kenichi Handa <handa@m17n.org>
9816
9817 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9818 second character is a combining character.
9819
2fdc7d00
EZ
98202008-12-05 Eli Zaretskii <eliz@gnu.org>
9821
9822 * process.c (procfs_system_process_attributes): Don't use cmd,
9823 cmdsize, and q without initializing them first.
9824
bf6bfba8
JR
98252008-12-04 Jason Rumney <jasonr@gnu.org>
9826
9827 * w32font.c (w32font_draw): Initialize orig_clip before getting
9828 it, and delete it when finished.
9829
a3b1a468
DN
98302008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9831
9832 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9833 case when running as a daemon before detaching.
9834
8b8be8eb
JB
98352008-12-03 Juanma Barranquero <lekktu@gmail.com>
9836
805f2638 9837 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9838
b1bde622
KH
98392008-12-03 Kenichi Handa <handa@m17n.org>
9840
e500c47d
KH
9841 * font.c (font_at): Set `multibyte' at first.
9842
ca516334
KH
9843 * coding.c (decode_coding_charset): Check type of an element of
9844 vector VALIDS.
7bf1bb21 9845 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9846
4ccfa1c0 9847 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9848 (font_for_char): Likewise.
9849
1e5ecd37
CY
98502008-12-03 Chong Yidong <cyd@stupidchicken.com>
9851
d5b01609 9852 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9853 (font_update_lface): Handle fonts with corrupted size specs,
9854 i.e. non-int and non-float.
d5b01609 9855
11e3a6e4 9856 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9857 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9858 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9859
ab06788b
CY
9860 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9861
1e5ecd37 9862 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9863 underline_minimum_offset for underline position.
1e5ecd37 9864
63c125ab
DN
98652008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9866
9867 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9868
9869 * character.c (c_string_width): Specify the type for LEN.
9870
3a8406e1
KH
98712008-12-03 Kenichi Handa <handa@m17n.org>
9872
4ccfa1c0 9873 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9874 (decode_coding_utf_8): Likewise.
4ccfa1c0 9875 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9876 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9877
651df7d9
CY
98782008-12-02 Chong Yidong <cyd@stupidchicken.com>
9879
9880 * keyboard.c (make_lispy_position): Only use PT if the selected
9881 window is current.
9882
1f625c6c
AS
98832008-12-02 Andreas Schwab <schwab@suse.de>
9884
f7741ce9
AS
9885 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9886
1f625c6c
AS
9887 * doprnt.c (doprnt1): Fix size of charbuf.
9888
92bc2678
CY
98892008-12-02 Chong Yidong <cyd@stupidchicken.com>
9890
9891 * keyboard.c (timer_check): Revert last change.
9892
93b9e8cc
JB
98932008-12-02 Juanma Barranquero <lekktu@gmail.com>
9894
9895 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9896
fd7a37d5
JB
98972008-12-01 Juanma Barranquero <lekktu@gmail.com>
9898
9899 * makefile.w32-in: Update dependencies.
9900 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9901
c115043b
AS
99022008-12-01 Andreas Schwab <schwab@suse.de>
9903
9904 * font.c (register_font_driver): Use xmalloc.
9905 (font_put_frame_data): Likewise.
9906
f5668d2a
CY
99072008-12-01 Chong Yidong <cyd@stupidchicken.com>
9908
860d96be
CY
9909 * xfaces.c (realize_x_face): Make abort condition clearer.
9910
f5668d2a
CY
9911 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9912
379c17e7
CY
99132008-11-30 Chong Yidong <cyd@stupidchicken.com>
9914
9915 * keyboard.c (timer_check): After a timer runs, ensure that the
9916 selected window's buffer is current.
9917
35f36d65
JB
99182008-11-30 Juanma Barranquero <lekktu@gmail.com>
9919
f952c61c
JB
9920 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9921 It was accidentally restored by the Unicode merge.
9922
35f36d65
JB
9923 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9924
b23077df
JB
99252008-11-29 Juanma Barranquero <lekktu@gmail.com>
9926
9927 * w32proc.c: Include "coding.h".
9928 (Fw32_short_file_name): Encode filename passed to Windows API.
9929 (Fw32_long_file_name): Encode filename passed to Windows API and
9930 decode back the result. (Bug#1433)
9931
b8ebe9dd
KH
99322008-11-29 Kenichi Handa <handa@m17n.org>
9933
8cc53f96
KH
9934 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9935 not before accessing it.
9936
b8ebe9dd
KH
9937 * charset.c (Fdefine_charset_internal): After calculating
9938 min_char, max_char, and fastmap, copy the charset structure again.
9939 (encode_char): Fix the previous change.
9940
59bc82c0
SZ
99412008-11-28 Seiji Zenitani <zenitani@mac.com>
9942
9943 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9944
9945 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9946
9947 * nsterm.m (x_set_frame_alpha): New function.
9948
32247e3d
EZ
99492008-11-27 Eli Zaretskii <eliz@gnu.org>
9950
9951 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9952
b003e5ff
JB
99532008-11-27 Juanma Barranquero <lekktu@gmail.com>
9954
9955 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9956 pointer to check_face_name.
9957
708550f5
KH
99582008-11-27 Kenichi Handa <handa@m17n.org>
9959
9960 * category.h (SET_CATEGORY_SET): Call set_category_set.
9961 (set_category_set): Extern it.
9962
9963 * category.c (hash_get_category_set): New function.
9964 (Fmodify_category_entry): Adjusted for the change of
9965 char_table_ref_and_range. Call hash_get_category_set to get a
9966 category set to store in the table.
9967
9968 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9969 Funify_charset.
9970
2ae37cf0 9971 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9972 (DECODE_CHAR): Check if the decoder vector is ready.
9973 (ENCODE_CHAR): Check if the encoder char-table is ready.
9974 (maybe_unify_char): Extern it.
9975
9976 * charset.c (Vchar_unified_charset_table): Delete it.
9977 (inhibit_load_charset_map): New variable.
9978 (temp_charset_work): New variable.
9979 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9980 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9981 New macros.
9982 (load_charset_map): Meaning of control_flag changed. If
9983 inhibit_load_charset_map is nonzero, setup a table in
9984 temp_charset_work.
9985 (load_charset): New argument control_flag.
9986 (map_charset_for_dump): New function.
9987 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9988 map_charset_for_dump.
9989 (Fdefine_charset_internal): If the charset method is MAP, load
9990 mapping tables by calling load_charset.
9991 (Funify_charset): Don't load a mapping table but directly set
9992 Vchar_unify_table.
9993 (maybe_unify_char): New function.
9994 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9995 Handle the case of inhibit_load_charset_map being nonzero.
9996 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9997 Handle the case of inhibit_load_charset_map being nonzero.
9998 (Fclear_charset_maps): Just free temp_charset_work.
9999 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10000 variable.
10001
10002 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10003 change of char_table_ref_and_range.
10004 (char_table_ref_and_range): Change the meaning of argument FROM
10005 and TO. Now the caller must provide initial values for *FROM
10006 and *TO.
10007
10008 * fontset.c (fontset_add): Adjusted for the change of
10009 char_table_ref_and_range.
10010 (fontset_get_font_group): Likewise.
10011 (Ffontset_info): Likewise.
10012
10013 * keymap.c (describe_vector): Adjusted for the change of
10014 char_table_ref_and_range. For char-table, put boundary between
10015 non-ASCII and 8-bit characters.
10016
10017 * print.c (print_object): For bool-vector, delete unnecessary
10018 check of ASCII_BYTE_P.
10019
9196133b
JR
100202008-11-26 Jason Rumney <jasonr@gnu.org>
10021
10022 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10023 leading in font height. (Bug#879)
9196133b 10024
9f688acf
GM
100252008-11-26 Glenn Morris <rgm@gnu.org>
10026
10027 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10028 redefinition with ifdef. (Bug#1383)
10029
90d19aff
AR
100302008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10031
10032 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10033
4ccfa1c0 100342008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10035
10036 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10037 New EmacsView methods.
10038 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10039 Fixes bug #1048,1357,1414.
10040
100412008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10042
10043 Fix bug #1362.
10044 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10045 is not an indexed color.
10046 * nsterm.m (free_indexed_color): Add argument checking.
10047 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10048
e7d5ecb3
CY
100492008-11-24 Chong Yidong <cyd@stupidchicken.com>
10050
10051 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10052 Document confirm-after-completion value for
10053 minibuffer-completion-confirm.
10054
c285743c
JR
100552008-11-24 Jason Rumney <jasonr@gnu.org>
10056
10057 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10058 warning.
10059
b0857706
JR
100602008-11-23 Jason Rumney <jasonr@gnu.org>
10061
10062 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10063 restored before returning.
10064
10065 * w32font.c (check_face_name): New function.
10066 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10067 fonts. (Bug#642)
b0857706 10068
ee50ff07
MR
100692008-11-22 Martin Rudalics <rudalics@gmx.at>
10070
10071 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10072 confirm-nonexistent-file-or-buffer in doc-string.
10073
b8ff72fa
SM
100742008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10075
10076 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10077 Fix copy/paste typo. Add checks.
10078
cee53ed4
KH
100792008-11-21 Kenichi Handa <handa@m17n.org>
10080
10081 * coding.c (detect_coding_iso_2022): Reject invalid composition
10082 sequence.
10083 (DECODE_COMPOSITION_START): If the current source is the last
10084 block, and the current composition doesn't end, regard this
10085 sequence as invalid.
10086 (decode_coding_iso_2022): Handle invalid composition sequence.
10087
f6ef1e65
MR
100882008-11-20 Martin Rudalics <rudalics@gmx.at>
10089
10090 * window.c (coordinates_in_window): Don't return
10091 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10092 line when the window is not the rightmost one. (Bug#1372)
10093
e08b1705
MR
100942008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10095
10096 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10097
ad98e89f
EZ
100982008-11-15 Eli Zaretskii <eliz@gnu.org>
10099
10100 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10101 and bright_bg if noninteractive is non-zero.
10102
fb098a4b
CY
101032008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10104
10105 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10106 x_draw_glyph_string_background.
10107
10108 * w32term.c (x_draw_glyph_string): Likewise.
10109
ce952b6e
CY
101102008-11-15 Chong Yidong <cyd@stupidchicken.com>
10111
10112 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10113 the next glyph string once past the overhang width.
10114
10115 * nsterm.m (ns_draw_glyph_string): Likewise.
10116
10117 * w32term.c (x_draw_glyph_string): Likewise.
10118
26ea7079
CY
101192008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10120
10121 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10122 double file close.
10123
1c33c906
MR
101242008-11-14 Martin Rudalics <rudalics@gmx.at>
10125
10126 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10127 dedicated status of window before attempting to display another
10128 buffer in it.
10129
8fc29035
JB
101302008-11-14 Juanma Barranquero <lekktu@gmail.com>
10131
10132 * msdos.c (Fmsdos_long_file_names):
10133 (syms_of_msdos) <dos-unsupported-char-glyph>:
10134 * dosfns.c (Fint86): Fix typos in docstrings.
10135
55fb4286
EZ
101362008-11-14 Eli Zaretskii <eliz@gnu.org>
10137
10138 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10139
3fda0315
KY
101402008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10141
10142 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10143
7e849c17
CY
101442008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10145
10146 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10147
10148 * frame.h: Negative alpha means "don't touch".
10149
10150 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10151
10152 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10153
b9fd67bd
DN
101542008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10155
10156 * hftctl.c:
10157 * chpdef.h:
10158 * acldef.h: Remove files used only for systems no longer supported.
10159
10160 * Makefile.in: Fix .o alphabetical ordering.
10161 (hftctl.o): Remove dependency, file removed.
10162 (keymap.o, print.o): Depend on charset.h.
10163
d5998e03
KH
101642008-11-10 Kenichi Handa <handa@m17n.org>
10165
2ae37cf0 10166 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10167
be70e183
CY
101682008-11-08 Chong Yidong <cyd@stupidchicken.com>
10169
10170 * dired.c (file_name_completion): If completion_ignore_case is
10171 enabled, ignore case when checking completion-regexp-list.
10172
7cf94eac
EZ
101732008-11-08 Eli Zaretskii <eliz@gnu.org>
10174
10175 * vm-limit.c (get_lim_data): Fix last change.
10176
ee107a89
KH
101772008-11-08 Kenichi Handa <handa@m17n.org>
10178
10179 * character.c (Fget_byte): New function.
10180 (syms_of_character): Defsubr Fget_byte.
10181
5fd15622
CY
101822008-11-07 Chong Yidong <cyd@stupidchicken.com>
10183
10184 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10185 cursor position is valid after scrolling.
10186
13d62fad
JB
101872008-11-06 Juanma Barranquero <lekktu@gmail.com>
10188
10189 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10190
a1dd2936
GM
101912008-11-06 Glenn Morris <rgm@gnu.org>
10192
10193 * xterm.c (handle_one_xevent): Don't let popup menus cause
10194 mouse-autoselect-window related window switching. (Bug#1261)
10195
860cd236
CY
101962008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10197
10198 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10199
653a3150
AS
102002008-11-04 Andreas Schwab <schwab@suse.de>
10201
10202 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10203
870f5cac
CY
102042008-11-03 Chong Yidong <cyd@stupidchicken.com>
10205
10206 * xfns.c (Fx_wm_set_size_hint): New function.
10207
1e02f3cb
MR
102082008-11-03 Martin Rudalics <rudalics@gmx.at>
10209
10210 * textprop.c (Fprevious_single_char_property_change): Return 0
10211 when there's no change in a string. (Bug#1301)
10212
e630dfc6
MR
102132008-11-02 Martin Rudalics <rudalics@gmx.at>
10214
10215 * frame.c (do_switch_frame): New argument NORECORD passed to
10216 Fselect_window.
10217 (Fselect_frame): New argument NORECORD passed to
10218 do_switch_frame.
10219 (Fset_frame_selected_window): New argument NORECORD passed to
10220 Fselect_frame.
10221 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10222 in call of do_switch_frame.
10223 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10224 Handle NORECORD argument in call of Fselect_frame.
10225 * lisp.h (do_switch_frame, Fselect_frame)
10226 (Fset_frame_selected_window): Adjust declarations.
10227 * window.c (select_frame_norecord): New function.
10228 (run_window_configuration_change_hook): Use it and call
10229 Fselect_frame with NORECORD set.
10230 (Fselect_window): Pass NORECORD to Fselect_frame.
10231 (Fset_window_configuration): Handle NORECORD argument in call of
10232 do_switch_frame.
10233 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10234 Fset_frame_selected_window.
10235 * keyboard.c (command_loop_1): Handle NORECORD in call of
10236 Fselect_frame (currently ifdefd).
10237
9020b223
GM
102382008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10239
10240 * emacs.c (USAGE2): Untabify.
10241
793ffee8
SM
102422008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10243
10244 * composite.c (fill_gstring_header): Fix copy/paste typo.
10245
ab6d1131
MR
102462008-10-31 Martin Rudalics <rudalics@gmx.at>
10247
10248 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10249 (Fother_window): Rename argument and rewrite doc-string.
10250 (select_window_norecord): Fix return value. (Bug#1276)
10251
601a9cf1
JB
102522008-10-30 Juanma Barranquero <lekktu@gmail.com>
10253
10254 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10255 new frames overriding foreground for tooltips. Based on similar patch
10256 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10257
813b0652
CY
102582008-10-29 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * emacs.c (Fdaemon_initialized): Initialize nfd.
10261
4414f58f
MR
102622008-10-29 Martin Rudalics <rudalics@gmx.at>
10263
10264 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10265 (Fwindow_text_height): Clarify doc-strings.
10266 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10267 doc-string of window-scroll-functions.
10268
ecdcaa09
RS
102692008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10270
10271 * category.c (syms_of_category): Fix typo in docstring.
10272
23fe745a
JB
102732008-10-28 Juanma Barranquero <lekktu@gmail.com>
10274
10275 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10276 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10277 Fix typos in docstrings.
10278
ff808935
DN
102792008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10280
10281 * emacs.c (daemon_pipe): Make non-static.
10282 (IS_DAEMON): Move definition ...
10283 * lisp.h (IS_DAEMON): ... here.
10284 (daemon_pipe): Declare.
10285 (is_daemon): Remove.
10286 * dispnew.c (init_display): Use IS_DAEMON.
10287
fc012771
SM
102882008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10291 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10292
10293 * emacs.c (is_daemon): Remove.
10294 (main): Don't set is_daemon.
10295 (IS_DAEMON): New macro.
10296 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10297 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10298 parent exits.
10299 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10300
d8bdbe6f
CY
103012008-10-27 Chong Yidong <cyd@stupidchicken.com>
10302
d1a072bf
CY
10303 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10304 over-sized glyph, draw it with the default glyph width.
10305
e2e325aa
CY
10306 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10307 glyph, draw it with the default glyph width.
10308
10309 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10310 glyph, draw it with the default glyph width.
10311
d8bdbe6f
CY
10312 * xdisp.c (try_scrolling): When computing the distance from the
10313 scroll margin to PT, try moving some distance past the window
10314 bottom before giving up.
10315
7bfac547
MR
103162008-10-27 Martin Rudalics <rudalics@gmx.at>
10317
10318 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10319 (Fset_window_buffer): Explain in doc-string that a window can be
10320 "strongly" dedicated to its buffer.
10321
4ff029f6
DN
103222008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10323
10324 * emacs.c (daemon_name): New variable.
10325 (main): Deal with --daemon=SERVER_NAME.
10326 (Fdaemonp): Return a name if one was passed to --daemon.
10327
5790ef40
DN
103282008-10-26 Romain Francoise <romain@orebokech.com>
10329
f9bd0df9 10330 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10331 (main): Create a pipe before forking, make the parent exit only after
10332 the child has closed its end of the pipe. Move closing the
10333 descriptors ...
10334 (Fdaemon_initialized): ... here. New function.
10335
f5385255
SM
103362008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10337
4d632321
SM
10338 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10339 the previous unoptimized table.
10340
f5385255
SM
10341 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10342 the distinction between non-nil and non-t value of `dedicated'.
10343
6c56a0f3
CY
103442008-10-25 Chong Yidong <cyd@stupidchicken.com>
10345
10346 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10347 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10348
fec89261
MR
103492008-10-25 Martin Rudalics <rudalics@gmx.at>
10350
10351 * window.c (Fget_buffer_window, Fdelete_windows_on)
10352 (Freplace_buffer_in_windows): Make buffer argument optional and
10353 rename to buffer_or_name.
10354
34fcddd0
CY
103552008-10-24 Chong Yidong <cyd@stupidchicken.com>
10356
f5385255
SM
10357 * xdisp.c (handle_single_display_spec, handle_display_prop):
10358 Undo 2005-05-16 change.
34fcddd0
CY
10359 (handle_stop): Pop iterator if it's loaded with an empty string.
10360 (get_overlay_strings_1): Don't save iterator if it's loaded with
10361 an empty string (bug#1201).
10362
064766f2
KH
103632008-10-24 Kenichi Handa <handa@m17n.org>
10364
10365 * ftfont.c (ftfont_otf_features): Fix previous change.
10366 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10367 calling ftfont_otf_features.
10368
f9bd0df9 103692008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10370
10371 * font.c (font_match_p): Fix for the case that a vector of
10372 characters is in script-representative-chars.
10373
1dae9197
MA
103742008-10-24 Michael Albinus <michael.albinus@gmx.de>
10375
10376 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10377 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10378 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10379 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10380 macro. (Bug#1186)
1dae9197 10381
f9bd0df9 103822008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10383
10384 * s/sol2-10.h: New file.
10385
878a4584
JB
103862008-10-23 Juanma Barranquero <lekktu@gmail.com>
10387
10388 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10389 poor beast has survived 9+ years and the jump from xterm.c!).
10390
cd265ca6
MR
103912008-10-23 Martin Rudalics <rudalics@gmx.at>
10392
10393 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10394 Reword doc-string.
f5385255 10395 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10396
472a4dc9
JB
103972008-10-23 Juanma Barranquero <lekktu@gmail.com>
10398
10399 * character.c (syms_of_character) <script-representative-chars>:
10400 <unicode-category-table>: Doc fixes.
10401
159bd5a2
NF
104022008-10-23 Noah Friedman <friedman@splode.com>
10403
10404 * coding.c (make_conversion_work_buffer): Check that
10405 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10406 Fget_buffer_create.
10407
49f9c344
KH
104082008-10-23 Kenichi Handa <handa@m17n.org>
10409
10410 * font.c (font_add_log): Check the values of extra properties.
10411
12bb3111
MR
104122008-10-22 Martin Rudalics <rudalics@gmx.at>
10413
10414 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10415 Reword doc-string.
10416 (Fset_window_parameter): Use NILP.
10417 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10418 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10419
bbeb4e99
JB
104202008-10-22 Juanma Barranquero <lekktu@gmail.com>
10421
10422 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10423
104242008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10425
10426 * nsfns.m (ns_appkit_version): New function.
10427 (x-server-version): Use it.
10428 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10429 (x-server-vendor): Don't check_ns().
10430
10431 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10432
a9b555d3
JB
104332008-10-22 Juanma Barranquero <lekktu@gmail.com>
10434
10435 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10436 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10437
4626499f
KH
104382008-10-22 Kenichi Handa <handa@m17n.org>
10439
e3681952
KH
10440 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10441 scripts.
10442
4626499f
KH
10443 * category.c (word_boundary_p): Check scripts instead of charset.
10444 Handle nil value in word-separating-categories and
10445 word-combining-categories.
10446 (syms_of_category): Fix docstrings of word-separating-categories
10447 and word-combining-categories.
10448
1560f91a
EZ
104492008-10-21 Eli Zaretskii <eliz@gnu.org>
10450
10451 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10452 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10453
f4668441
MR
104542008-10-21 Martin Rudalics <rudalics@gmx.at>
10455
10456 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10457 Rename arg "buffer" to "buffer_or_name".
10458 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10459 it optional.
10460 (no_switch_window): Remove since the return value is not used.
a9b555d3 10461 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10462 Consider window as dedicated when Fwindow_dedicated_p returns a
10463 non-nil value.
10464 * lisp.h: Remove prototype for no_switch_window.
10465
fd75ddb2
JD
104662008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10467
10468 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10469 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10470
07295713
KH
104712008-10-21 Kenichi Handa <handa@m17n.org>
10472
10473 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10474 check Vlatin_extra_code_table.
10475
712adc82
EZ
104762008-10-20 Eli Zaretskii <eliz@gnu.org>
10477
10478 * fileio.c (Fset_file_modes): Doc fix.
10479
f549eb0b
MA
104802008-10-19 Michael Albinus <michael.albinus@gmx.de>
10481
10482 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10483 in arrays.
10484
aac0c6e3
MR
104852008-10-19 Martin Rudalics <rudalics@gmx.at>
10486
10487 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10488 Mention kill-buffer in doc-string.
10489 (Fset_window_buffer): Reinsert tem check removed in last commit.
10490 (Fenlarge_window, Fshrink_window): Have argument names and
10491 doc-string follow Elisp manual more closely.
10492
104932008-10-18 Eli Zaretskii <eliz@gnu.org>
10494
10495 * fileio.c (Fset_file_modes): Doc fix.
10496
104972008-10-18 Martin Rudalics <rudalics@gmx.at>
10498
10499 * window.c (Fwindow_width, Fset_window_start)
10500 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10501 (Fdelete_windows_on, Freplace_buffer_in_windows):
10502 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10503 (Fwindow_dedicated_p): Make window argument optional.
10504 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10505 (Fset_window_buffer): Respect any non-nil dedicated value for
10506 window. Rename "buffer" argument to "buffer_or_name".
10507
105082008-10-18 Ulrich Mueller <ulm@gentoo.org>
10509
10510 * m/sh3.h: New file, machine description for SuperH.
10511
105122008-10-17 Martin Rudalics <rudalics@gmx.at>
10513
10514 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10515
105162008-10-17 Kenichi Handa <handa@m17n.org>
10517
10518 * ftfont.c (ftfont_otf_features): Fix indexing
10519 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10520
105212008-10-16 Magnus Henoch <mange@freemail.hu>
10522
10523 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10524 (Fdbus_call_method_asynchronously): Ditto.
10525 This change makes C-h f display the argument list.
10526
105272008-10-16 Chong Yidong <cyd@stupidchicken.com>
10528
10529 * fileio.c (Fexpand_file_name): Doc fix.
10530
10531 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10532 of :foreground and :background equivalent to unspecified (20.x
10533 compatibility).
10534
105352008-10-15 Eli Zaretskii <eliz@gnu.org>
10536
10537 * buffer.c (syms_of_buffer): Doc fix.
10538
105392008-10-14 Kenichi Handa <handa@m17n.org>
10540
10541 * font.c (font_clear_prop): When clearing font width, clear the
10542 average width field too.
10543
105442008-10-12 Andreas Schwab <schwab@suse.de>
10545
10546 * ftfont.c (ftfont_shape_by_flt): Make static.
10547 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10548
10549 * font.c: Don't include <m17n-flt.h>.
10550
105512008-10-10 Eli Zaretskii <eliz@gnu.org>
10552
10553 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10554
105552008-10-09 Eli Zaretskii <eliz@gnu.org>
10556
10557 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10558 away code.
10559
105602008-10-09 Chong Yidong <cyd@stupidchicken.com>
10561
10562 * dispnew.c (update_text_area): Avoid looping due to large glyph
10563 overhangs (bug#1070).
10564
105652008-10-09 Kenichi Handa <handa@m17n.org>
10566
10567 * fontset.c (face_for_char): If face->fontset is negative, just
10568 return ascii_face.
10569
f5385255
SM
10570 * font.c (font_delete_unmatched): Fix previous change.
10571 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10572
105732008-10-09 Martin Rudalics <rudalics@gmx.at>
10574
10575 * frame.c (Fraise_frame): On text-only terminals select frame in
10576 order to make it visible. (Bug#1061)
10577
105782008-10-08 Chong Yidong <cyd@stupidchicken.com>
10579
10580 * fontset.c (fontset_find_font): Check frame validity.
10581
105822008-10-07 Chong Yidong <cyd@stupidchicken.com>
10583
a9b555d3 10584 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10585 (xg_display_close): Allow Emacs to close all displays (bug#985).
10586
105872008-10-06 Andreas Schwab <schwab@suse.de>
10588
f5385255 10589 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10590
105912008-10-06 Chong Yidong <cyd@stupidchicken.com>
10592
f5385255 10593 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10594
a9b555d3 10595 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10596
10597 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10598 during initialization.
10599
106002008-10-04 Eli Zaretskii <eliz@gnu.org>
10601
10602 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10603 whole thing on MSDOS frames as well as on a TTY.
10604
10605 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10606 well as for TTY.
10607 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10608 well as on a TTY.
10609
10610 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10611 as well as for TTY.
10612
10613 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10614
10615 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10616 MSDOS frames as well.
10617
106182008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10619
10620 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10621 correct arguments.
b71ac3dd 10622 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10623
106242008-10-03 Glenn Morris <rgm@gnu.org>
10625
10626 * emacs.c (USAGE1): Add --daemon.
10627
106282008-10-02 Eli Zaretskii <eliz@gnu.org>
10629
10630 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10631 100, so it's in percents as advertised.
10632
106332008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10634
10635 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10636 (ns_output.current_cursor, ns_output.desired_cursor)
10637 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10638 (FRAME_NEW_CURSOR_COLOR): Remove.
10639
10640 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10641 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10642 enumeration (HOLLOW_BOX_CURSOR, etc.).
10643
10644 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10645 (draw_window_cursor): Simplify code.
f5385255
SM
10646 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10647 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10648 updates manually.
a9b555d3
JB
10649 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10650 Use core Emacs cursor types.
aac0c6e3 10651
b8ff72fa 10652 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10653
106542008-10-02 Martin Rudalics <rudalics@gmx.at>
10655
10656 * process.c (Faccept_process_output): Fix doc-string.
10657
106582008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10659
10660 * gmalloc.c (__sbrk): Also define for uClibc.
10661
10662 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10663 for uClibc.
10664
106652008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10666
10667 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10668 styles.
10669 (nsfont_open): Reenable the cache.
10670
106712008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10672
10673 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10674 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10675
106762008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10677
10678 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10679 a suspended terminal.
10680
106812008-09-30 Michael Albinus <michael.albinus@gmx.de>
10682
10683 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10684
106852008-09-30 Eli Zaretskii <eliz@gnu.org>
10686
10687 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10688
106892008-09-30 Chong Yidong <cyd@stupidchicken.com>
10690
10691 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10692 in a continued line coincides with a line beginning.
10693
106942008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10695
10696 * nsfont.m (nsfont_trait_distance): Fix bug.
10697 (nsfont_list): Return a list rather than a vector (syncs with Handa
10698 changes of 2008-05-14).
10699 (nsfont_open): Improve logging.
10700
107012008-09-29 Andreas Schwab <schwab@suse.de>
10702
10703 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10704
107052008-09-28 Martin Rudalics <rudalics@gmx.at>
10706
10707 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10708 name as char-resolve-modifiers.
10709 Reported by: Markus Triska <markus.triska@gmx.at>
10710
107112008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10712
10713 * dispnew.c (init_display): Return earlier when running as a daemon.
10714
107152008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10716
10717 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10718
107192008-09-27 Eli Zaretskii <eliz@gnu.org>
10720
10721 * composite.c (Fcomposition_get_gstring)
10722 (Fcompose_region_internal, Fcompose_string_internal)
10723 (Ffind_composition_internal): Doc fix.
10724 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10725 (syms_of_composite) <auto-composition-function>: Doc fix.
10726 (syms_of_composite) <composition-function-table>: Doc fix.
10727
107282008-09-25 Chong Yidong <cyd@stupidchicken.com>
10729
10730 * search.c (wordify): New argument for lax word-ends.
10731 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10732
107332008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10734
10735 * lisp.h (is_daemon): Declare.
10736 * dispnew.c (init_display): Do not try to initialize the terminal
10737 when running as a daemon.
10738
107392008-09-22 Chong Yidong <cyd@stupidchicken.com>
10740
10741 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10742 x_display_pixel_height.
10743
107442008-09-22 Martin Rudalics <rudalics@gmx.at>
10745
10746 * undo.c (record_point): Don't call Fundo_boundary for first
10747 change. (Bug#731)
10748
107492008-09-22 Juanma Barranquero <lekktu@gmail.com>
10750
10751 * emacs.c (Fdaemonp): Doc fix.
10752
107532008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10754
10755 * emacs.c (main): Place #ifdef in the proper place.
10756
107572008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10758
10759 * emacs.c (standard_args): Add --daemon.
10760 (main): Disconnect from the terminal when --daemon is passed.
10761 (is_daemon): New variable.
10762 (Fdaemonp): New function.
10763 (syms_of_emacs): Defsubr it.
10764
107652008-09-20 Chong Yidong <cyd@stupidchicken.com>
10766
10767 * xdisp.c (get_next_display_element): Handle string display
10768 correctly when checking for the end of a box run.
10769
107702008-09-20 Glenn Morris <rgm@gnu.org>
10771
10772 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10773 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10774 (Frename_file): Avoid copying to trash if a rename involves
10775 a delete. (Bug#964).
10776
107772008-09-20 Eli Zaretskii <eliz@gnu.org>
10778
10779 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10780 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10781 frames as well as termcap frames.
10782 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10783 get_named_tty.
10784
107852008-09-19 Eli Zaretskii <eliz@gnu.org>
10786
10787 * process.c (procfs_system_process_attributes): Fix cmdline in
10788 case /proc/PID/cmdline is empty.
10789
10790 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10791 x_display_pixel_height.
10792
107932008-09-19 Juanma Barranquero <lekktu@gmail.com>
10794
10795 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10796
10797 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10798 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10799
108002008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10801
10802 * dispextern.h (struct it): Move line_wrap away from the middle of
10803 bitfields. Move voffset in struct iterator_stack_entry after the
10804 bitfields. Move tab_width near after another short.
10805
108062008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10807
10808 * frame.h (struct frame): Move alpha from the middle of bitfields.
10809
10810 * window.h (struct window): Move frozen_window_start_p after the
10811 rest of the bitfields to reduce padding.
10812
108132008-09-18 Chong Yidong <cyd@stupidchicken.com>
10814
10815 * xterm.h (x_display_info): Remove `height' and `width' members.
10816
10817 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10818
10819 * w32term.h (w32_display_info): Remove `height', `width',
10820 `height_in', and `width_in' members.
10821
b8ff72fa
SM
10822 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10823 New functions.
aac0c6e3
MR
10824 (x_calc_absolute_position): Use them.
10825 (x_term_init): Omit removed `height' and `width' members.
10826
b8ff72fa
SM
10827 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10828 New functions.
aac0c6e3
MR
10829 (w32_read_socket, x_calc_absolute_position): Use them.
10830 (w32_initialize_display_info, w32_term_init): Omit removed members
10831 of w32_display_info.
10832
b8ff72fa
SM
10833 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10834 New functions.
10835 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10836
b8ff72fa
SM
10837 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10838 New functions.
aac0c6e3
MR
10839 (x_calc_absolute_position): Use them.
10840 (x_term_init): Omit removed `height' and `width' members.
10841
10842 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10843 (compute_tip_xy):
10844 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10845 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10846 x_display_pixel_width.
10847
108482008-09-18 Kenichi Handa <handa@m17n.org>
10849
10850 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10851 (composition_compute_stop_pos): Fix handling of static composition.
10852 (Fcomposition_get_gstring): Check FROM and TO at first.
10853
108542008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10855
46e722a9 10856 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10857 mixup (YAILOM).
10858
108592008-09-17 Chong Yidong <cyd@stupidchicken.com>
10860
10861 * indent.c (Fvertical_motion): Use position reported by iterator
10862 instead of PT for determining screen motion (bug#943).
10863
108642008-09-17 Romain Francoise <romain@orebokech.com>
10865
10866 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10867
108682008-09-17 Kenichi Handa <handa@m17n.org>
10869
10870 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10871
10872 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10873 if necessary.
10874
108752008-09-16 Kenichi Handa <handa@m17n.org>
10876
10877 * coding.c (make_conversion_work_buffer): Avoid calling
10878 Fget_buffer_create if it is not necessary.
10879
108802008-09-15 Martin Rudalics <rudalics@gmx.at>
10881
10882 * window.c (Fselect_window): Don't update window_select_count and
10883 use_time when norecord is not nil.
10884
108852008-09-14 Kenichi Handa <handa@m17n.org>
10886
10887 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10888 specpdl_ptr.
10889
108902008-09-12 Kenichi Handa <handa@m17n.org>
10891
10892 * indent.c (scan_for_column): Don't handle automatic composition
10893 if the current buffer is not associated with a window.
10894
10895 * composite.c (composition_reseat_it): If the current buffer is
10896 not associated with a window, ignore the automatic composition.
10897 (find_automatic_composition): Likewise.
10898
108992008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10900
10901 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10902 (Fgpm_mouse_stop): Use it.
10903 * termhooks.h (close_gpm): Declare.
10904 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10905 connection if Gpm_GetEvent fails.
10906
10907 * window.c (set_window_buffer): Always preserve current-buffer.
10908
109092008-09-12 Glenn Morris <rgm@gnu.org>
10910
10911 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10912
109132008-09-11 Glenn Morris <rgm@gnu.org>
10914
10915 * charset.c (charset-map-path): Doc fix.
10916
109172008-09-10 Kenichi Handa <handa@m17n.org>
10918
10919 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10920
10921 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10922 compose a grapheme cluster with the preceding base glyph.
10923
10924 * composite.c (composition_compute_stop_pos): Fix previous change.
10925 Reset cmp_it->id to -1 at first.
10926
109272008-09-10 Glenn Morris <rgm@gnu.org>
10928
10929 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10930
109312008-09-09 Chong Yidong <cyd@stupidchicken.com>
10932
10933 * keyboard.c (read_key_sequence): Reapply translation maps when
10934 switching keyboards.
10935
109362008-09-09 Kenichi Handa <handa@m17n.org>
10937
10938 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10939 characters.
10940
10941 * composite.c (FORWARD_CHAR): Fix calculation
10942 of (POSITION).pos_byte.
10943 (composition_compute_stop_pos): Limit the search of composition to
10944 at most 500 characters ahead. If we reach the limit or find a
10945 newline, set cmp_it->ch to -2 and return 0.
10946 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10947
109482008-09-08 Kenichi Handa <handa@m17n.org>
10949
10950 * indent.c (Fvertical_motion): Be sure to set
10951 it_overshoot_expected if it.cmp_it.id is non-negative.
10952
109532008-09-07 Andreas Schwab <schwab@suse.de>
10954
10955 * callproc.c (Fcall_process): Don't hold references to string data
10956 across garbage collection. Move initialisation of new_argv down
10957 to avoid compiler bug.
10958
109592008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10960
10961 * process.c (Fsystem_process_attributes): Doc fix.
10962
109632008-09-07 Chong Yidong <cyd@stupidchicken.com>
10964
10965 * callproc.c (Fcall_process): Canonicalize current directory name.
10966
10967 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10968 iterator advances to the next line if the current line ends in a
10969 continued tab.
10970
109712008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10972
10973 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10974 member to point to cmp_from.
10975
10976 * xdisp.c: Doc fix for references to gidx data member.
10977
109782008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10981
109822008-09-07 Kenichi Handa <handa@m17n.org>
10983
10984 * composite.c (FORWARD_CHAR): Check STOP after
10985 incrementing (POSITION).pos.
10986
109872008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10988
10989 * process.c (Fsystem_process_attributes): Doc fix.
10990
109912008-09-06 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * keyboard.c (Ftop_level): Doc fix.
10994
109952008-09-06 Eli Zaretskii <eliz@gnu.org>
10996
10997 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10998 minibuffer, don't let lower part of menu invade the echo area.
10999
11000 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11001 "char *q" to access menu text and advance through it. Revert the
11002 change that displayed ">" instead of ASCII character 0x10.
11003
110042008-09-05 Eli Zaretskii <eliz@gnu.org>
11005
11006 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11007 toggle boxes and radio buttons on MS-DOS as well.
11008
110092008-09-05 Kenichi Handa <handa@m17n.org>
11010
11011 * composite.c (autocmp_chars): Check lookback count.
11012 (composition_compute_stop_pos): Set cmp_it->lookback.
11013 (composition_reseat_it): Check lookback count.
11014 (struct position_record): New struct.
11015 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11016 (find_automatic_composition): New function.
11017 (composition_adjust_point): Use find_automatic_composition.
11018
11019 * dispextern.h (struct composition_it): New member lookback.
11020
110212008-09-02 Chong Yidong <cyd@stupidchicken.com>
11022
11023 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11024 if moving by a single line.
11025
110262008-09-02 Andreas Schwab <schwab@suse.de>
11027
11028 * xterm.c (x_delete_display): Fix merge error.
11029
11030 * fileio.c (Fexpand_file_name): Remove unused variables.
11031
110322008-09-02 Eli Zaretskii <eliz@gnu.org>
11033
11034 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11035 storage on all platforms, not just on DOS_NT.
11036
110372008-09-02 Jason Rumney <jasonr@gnu.org>
11038
b8ff72fa
SM
11039 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11040 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11041
110422008-09-01 Chong Yidong <cyd@stupidchicken.com>
11043
11044 * xfaces.c (Finternal_set_alternative_font_family_alist)
11045 (Finternal_set_alternative_font_registry_alist): Properly copy
11046 entire alist structure.
11047
110482008-09-01 Kenichi Handa <handa@m17n.org>
11049
d66c0241 11050 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11051 representative chars of the script is a vector.
d66c0241
JB
11052 (ftfont_list): Handle the case where the representative chars of
11053 the script is a vector.
aac0c6e3
MR
11054
11055 * character.c (syms_of_character): Docstring of
11056 script-representative-chars fixed.
11057
110582008-08-31 Eli Zaretskii <eliz@gnu.org>
11059
11060 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11061 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11062 the menu. Allocate larger buffer for `text', to account for
11063 possible ^C characters.
11064
110652008-08-31 Martin Rudalics <rudalics@gmx.at>
11066
11067 * xdisp.c (prepare_menu_bars): Don't call
11068 Vwindow_size_change_functions with arg Qt.
11069
110702008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11071
11072 * font.h (font_range):
11073 * fileio.c (report_file_error):
46e722a9
SM
11074 * composite.c (composition_update_it): Yet another int/Lisp_Object
11075 mixup (YAILOM).
aac0c6e3
MR
11076
110772008-08-30 Glenn Morris <rgm@gnu.org>
11078
11079 * data.c (Fmake_variable_frame_local): Doc fix.
11080
11081 * frame.c (Fmodify_frame_parameters): Doc fix.
11082
110832008-08-30 Eli Zaretskii <eliz@gnu.org>
11084
11085 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11086 needed by GetTokenInformation.
11087 (w32_system_process_attributes): Check return values of all system
11088 APIs.
11089
11090 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11091 only when the state changes.
11092 (IT_update_begin, IT_update_end): Add termscript trace.
11093
11094 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11095 clipboard is unavailable. Set dst to NULL if it doesn't point to
11096 malloc'ed data.
11097 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11098 passing random values to xfree.
11099
11100 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11101 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11102
111032008-08-29 Jason Rumney <jasonr@gnu.org>
11104
11105 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11106
111072008-08-29 Eli Zaretskii <eliz@gnu.org>
11108
11109 * composite.c (fill_gstring_body): Avoid compiler warnings.
11110
11111 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11112 LGLYPH_SET_CODE to avoid compiler warnings.
11113
2ae37cf0 11114 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11115
11116 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11117
11118 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11119 LGLYPH_SET_CODE.
11120
111212008-08-29 Kenichi Handa <handa@m17n.org>
11122
11123 * fileio.c (report_file_error): Don't downcase the first character
11124 of errstring if it is still unibyte.
11125
111262008-08-29 Kenichi Handa <handa@m17n.org>
11127
11128 These changes are to re-implement the automatic composition so
11129 that it doesn't use text properties.
11130
11131 * Makefile.in (ftfont.o): Depend on composite.h.
11132 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11133
11134 * character.h (Vunicode_category_table): Extern it.
11135
11136 * character.c (Vunicode_category_table): New variable.
11137 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11138
11139 * chartab.c (optimize_sub_char_table): Perform more greedy
11140 optimization.
11141
b8ff72fa
SM
11142 * composite.h (enum composition_method):
11143 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11144 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11145 (Vcomposition_function_table): Extern it.
11146 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11147 (composition_gstring_put_cache, composition_gstring_from_id)
11148 (composition_gstring_p, composition_gstring_width)
11149 (composition_compute_stop_pos, composition_reseat_it)
11150 (composition_update_it, composition_adjust_point): Extern them.
11151 (Fcomposition_get_gstring): EXFUN it.
11152
d66c0241 11153 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11154 (Vcomposition_function_table)
11155 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11156 (gstring_hash_table, gstring_work, gstring_work_headers):
11157 New variables.
aac0c6e3
MR
11158 (gstring_lookup_cache, composition_gstring_put_cache)
11159 (composition_gstring_from_id, composition_gstring_p)
11160 (composition_gstring_width, fill_gstring_header)
11161 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11162 (composition_reseat_it, composition_update_it)
b8ff72fa 11163 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11164 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11165 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11166 Defsubr composition_get_gstring.
aac0c6e3
MR
11167
11168 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11169 cmp_id.
11170 (struct glyph_string): Delete the member gidx. New members
11171 cmp_id, cmp_from, and cmp_to.
11172 (enum it_method): Delete GET_FROM_COMPOSITION.
11173 (struct composition_it): New struct.
11174 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11175 Delete c, len, cmp_id, cmp_len in u.comp.
11176
11177 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11178 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11179 (enum lglyph_indices): Likewise.
b8ff72fa 11180 (font_range): Adjust extern.
aac0c6e3
MR
11181 (font_fill_lglyph_metrics): Extern it.
11182
11183 * font.c (QCf): New variable.
11184 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11185 (font_prepare_composition): Delete this function.
11186 (font_range): Type and arguments changed.
11187 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11188 (font_fill_lglyph_metrics): New function.
b8ff72fa 11189 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11190 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11191 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11192 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11193
11194 * fontset.h (font_for_char): Extern it.
11195
11196 * fontset.c (font_for_char): New function.
11197
11198 * ftfont.c: Include composite.h.
11199 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11200 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11201
11202 * indent.c: Include composite.h and dispextern.h.
11203 (check_composition): Delete this function.
11204 (scan_for_column): Handle composition by
11205 composition_compute_stop_pos, composition_reseat_it, and
11206 composition_update_it.
11207 (compute_motion): Likewise.
11208 (Fvertical_motion): Fix checking of composition.
11209
11210 * keyboard.c (adjust_point_for_property): Check composition by
11211 composition_adjust_point.
11212
b8ff72fa 11213 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11214 struct glyph_string.
11215
b8ff72fa
SM
11216 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11217 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11218 struct glyph.
11219 (produce_composite_glyph): Likewise.
11220
b8ff72fa
SM
11221 * w32term.c (x_draw_composite_glyph_string_foreground):
11222 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11223 (x_draw_glyph_string): Likewise.
11224
11225 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11226 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11227
11228 * xdisp.c: Include font.h.
11229 (it_props): Delete the entry for Qauto_composed.
11230 (init_iterator): Initialize it->cmp_it.id to -1.
11231 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11232 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11233 (handle_auto_composed_prop): Delete it.
11234 (handle_composition_prop): Handle only static composition.
11235 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11236 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11237 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11238 (pop_it): Likewise.
11239 (get_next_element): Delete next_element_from_composition.
11240 (CHAR_COMPOSED_P): New macro.
11241 (get_next_display_element): For automatic composition, get a face
11242 from the font in the glyph-string.
11243 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11244 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11245 (next_element_from_string): Check if the character at the current
11246 position is composed by CHAR_COMPOSED_P.
11247 (next_element_from_buffer): Likewise.
d66c0241
JB
11248 (next_element_from_composition): Adjust for the change of struct it.
11249 Update it->cmp_it.
b8ff72fa
SM
11250 (dump_glyph): Adjust for the change of struct glyph.
11251 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11252 it and struct glyph. Don't handle automatic composition here.
11253 (fill_gstring_glyph_string): New function.
11254 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11255 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11256 (BUILD_GSTRING_GLYPH_STRING): New macro.
11257 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11258 automatic composition.
b8ff72fa 11259 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11260 struct glyph.
b8ff72fa 11261 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11262
b8ff72fa 11263 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11264 the change of struct glyph_string.
11265 (x_draw_glyph_string): Likewise.
11266
112672008-08-29 Glenn Morris <rgm@gnu.org>
11268
11269 * buffer.c (word-wrap): Doc fix.
11270 * xdisp.c (truncate-partial-width-windows): Doc fix.
11271 Increase default to 50.
11272
112732008-08-29 Chong Yidong <cyd@stupidchicken.com>
11274
11275 * xdisp.c (update_tool_bar_unwind): New function.
11276 (update_tool_bar): Temporarily set selected frame before building
11277 tool-bar items.
11278
112792008-08-28 Michael Albinus <michael.albinus@gmx.de>
11280
11281 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11282 snprintf, respectively.
11283 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11284
112852008-08-28 Chong Yidong <cyd@stupidchicken.com>
11286
11287 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11288 LDFLAGS to GNUstep CC invocation.
11289
112902008-08-27 Chong Yidong <cyd@stupidchicken.com>
11291
11292 * indent.c (Fvertical_motion): Revert last change. Handle the
11293 general case where we are moving forward, and PT spans multiple
11294 screen lines.
11295
11296 * eval.c (find_handler_clause): Temporarily increase
11297 max-lisp-eval-depth while printing the backtrace buffer, to
11298 guarantee that help-mode code can run.
11299
113002008-08-27 Eli Zaretskii <eliz@gnu.org>
11301
11302 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11303 colors under -rv.
11304 (IT_set_frame_parameters): Don't swap foreground and background
11305 colors if `(reverse . t)' is present in the frame properties.
11306 (internal_terminal_init): Call init_frame_faces only for the
11307 initial frame.
11308
113092008-08-27 Andreas Schwab <schwab@suse.de>
11310
11311 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11312
113132008-08-27 Andreas Schwab <schwab@suse.de>
11314
11315 * search.c (search_buffer): Set char_base to zero only at the end.
11316
113172008-08-27 Kenichi Handa <handa@m17n.org>
11318
b8ff72fa 11319 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11320
113212008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11322
11323 * xterm.c (x_term_init): Temporarily hide the partially
11324 initialized terminal while calling vendor-specific-keysyms.
11325
113262008-08-26 Eli Zaretskii <eliz@gnu.org>
11327
11328 * msdos.c (internal_terminal_init): Most initializations done only
11329 once, especially initial_screen_colors[] and termscript open.
11330
113312008-08-26 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * eval.c (Fcondition_case): Doc fix.
11334
11335 * widgetprv.h (EmacsFramePart): Change font member to the new font
11336 struct.
11337
11338 * widget.c: Include character.h and font.h for XSETFONT.
11339 (setup_frame_gcs): Compute X font id from font struct, just once.
11340
113412008-08-26 Eli Zaretskii <eliz@gnu.org>
11342
11343 * term.c (get_named_tty): Fix last change.
11344
113452008-08-26 Chong Yidong <cyd@stupidchicken.com>
11346
11347 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11348 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11349
113502008-08-25 Eli Zaretskii <eliz@gnu.org>
11351
11352 * frame.c (do_switch_frame): Mark previously displayed frame as
11353 obscured for FRAME_MSDOS_P frames as well.
11354
113552008-08-24 Eli Zaretskii <eliz@gnu.org>
11356
11357 * frame.c (make_terminal_frame): Initialize f->terminal,
11358 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11359 Set the top frame to newly created frame.
11360 (Fmake_terminal_frame): Reuse the_only_display_info.
11361
11362 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11363 estimating available memory.
11364
b97439ce 113652008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11366
11367 * nsterm.m (ns_draw_window_cursor): Don't call
11368 NSDisableScreenUpdates and NSEnableScreenUpdates on
11369 non-NS_IMPL_COCOA systems.
11370
113712008-08-23 Andreas Schwab <schwab@suse.de>
11372
11373 * process.c (procfs_system_process_attributes): Fix use of
11374 uninitialized variables.
11375
113762008-08-23 Eli Zaretskii <eliz@gnu.org>
11377
11378 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11379
11380 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11381 calling tty-set-up-initial-frame-faces.
11382
b8ff72fa
SM
11383 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11384 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11385
11386 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11387 addition to output_termcap.
11388
11389 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11390
11391 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11392 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11393 highlight.
11394
11395 * process.c [!subprocesses]: Define QCname.
11396 (syms_of_process): Intern and staticpro it.
11397
11398 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11399 Adjust for changes in encoding/decoding routines.
11400 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11401 encode_coding and decode_coding.
11402
b8ff72fa 11403 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11404
11405 * dosfns.c: Include frame.h before termhooks.h.
11406 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11407 variable termscript.
11408
11409 * s/msdos.h (USER_FULL_NAME): Define.
11410 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11411
11412 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11413 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11414 pw->pw_gecos.
11415
11416 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11417 SELECTED_FRAME as additional (1st) argument.
11418 (tty_read_avail_input): Handle output_msdos_raw in
11419 addition to output_termcap.
11420
11421 * msdos.c: Include frame.h before termhooks.h.
11422 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11423 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11424 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11425 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11426 (IT_set_terminal_modes, IT_reset_terminal_modes)
11427 (IT_set_frame_parameters): Use tty->termscript instead of a global
11428 variable termscript.
11429 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11430 global variable terminal_coding. Don't refer to
11431 Vnonascii_translation_table.
11432 (internal_terminal_init): Set Vwindow_system in current_kboard.
11433 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11434 Announce date and time of session start, if termscript is open.
11435 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11436 term.c:init_tty). Open termscript only of not already open.
11437 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11438 here instead of dos_ttraw. Don't initialize display if this is an
11439 initial tty. Don't set FRAME_FONT.
11440 (Vwindow_system_version): Bump to 23.
11441 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11442 is available, set up mouse_position_hook.
11443 (dos_ttraw, IT_set_terminal_modes): If called with initial
11444 terminal, do nothing.
11445 (IT_set_frame_parameters): Handle the Qtty_type frame
11446 parameter by calling internal_terminal_init.
11447 (dos_set_window_size, show_mouse_face)
11448 (clear_mouse_face, IT_note_mode_line_highlight)
11449 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11450 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11451 (initialize_msdos_display): New function.
11452 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11453 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11454 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11455 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11456 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11457 (request_sigio, unrequest_sigio): Don't define, now defined on
11458 sysdep.c.
11459 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11460
11461 * term.c [MSDOS]: Include msdos.h.
11462 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11463 conditional to DOS_NT. Allow only one call to this function in a
11464 session. Don't allocate a new struct tty_display_info; instead,
11465 reuse the_only_display_info. Call get_tty_size to get screen
11466 dimensions. Call init_baud_rate to set bad_rate.
11467 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11468 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11469 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11470 (get_tty_terminal, get_named_tty, Ftty_type)
11471 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11472 output_termcap.
b8ff72fa
SM
11473 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11474 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11475 only when subprocesses are supported.
aac0c6e3
MR
11476
11477 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11478 f->output_data.x.
11479 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11480 terminal devices.
11481
5582fbc7 11482 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11483 x_output.
11484 (FRAME_FONT): Use output_data.tty.
11485 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11486 (struct x_display_info): Rename from display_info. Update all users in
11487 msdos.c.
aac0c6e3 11488 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11489 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11490 (dos_ttraw): Update prototype.
11491
11492 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11493 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11494
114952008-08-23 Jason Rumney <jasonr@gnu.org>
11496
11497 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11498 (fn_TIFFSetDirectory): New library function used.
11499 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11500 (tiff_load): Use :index to select among multiple images. Set count
11501 property when multiple images exist.
11502 (gif_format): Use :index, not :image.
11503
115042008-08-23 Chong Yidong <cyd@stupidchicken.com>
11505
11506 * xdisp.c (try_scrolling): Check INT_MAX instead of
11507 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11508 to obtain INT_MAX.
11509
115102008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11511
11512 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11513
115142008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11515
11516 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11517 GNUstep library location.
11518
115192008-08-21 Chong Yidong <cyd@stupidchicken.com>
11520
11521 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11522 before using it.
11523
11524 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11525
115262008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11527
11528 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11529 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11530 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11531 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11532 (EmacsApp-cursor_blink_handler): Remove declaration.
11533 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11534 match 01 Feb 2008 changes in xterm.c.
11535 (ns_read_socket): Add cast to avoid warning.
11536 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11537 GNUstep.
11538
115392008-08-20 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * xselect.c (x_get_foreign_selection): Return nil if desired
11542 selection could not be obtained, instead of signalling an error.
11543
115442008-08-20 David Reitter <david.reitter@gmail.com>
11545
11546 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11547 * nsterm.m: Remove ns-specific code for cursor blinking.
11548 (ns_draw_window_cursor): Clear cursor properly rather than
11549 redrawing the area. Respect width of bar cursors.
11550 These changes enable the use of generic blink-cursor-mode and
11551 generic cursor types in NS and support smooth cursor movements (do
11552 not blink off after command).
11553 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11554 Nextstep, too.
11555
115562008-08-19 Kenichi Handa <handa@m17n.org>
11557
11558 * font.c (Vfont_log_deferred): New variable.
11559 (font_add_log): Check Vfont_log_deferred.
11560 (font_deferred_log): New function.
11561
11562 * font.h (font_deferred_log): Extern it.
11563
11564 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11565 for sorting.
11566 (face_for_char): Use deferred log.
11567
115682008-08-18 Kenichi Handa <handa@m17n.org>
11569
11570 * fontset.c (face_for_char): Add font log.
11571
11572 * font.c (font_add_log): Add the font properties :script, :lang,
11573 and :otf in the log.
11574
115752008-08-17 Chong Yidong <cyd@stupidchicken.com>
11576
11577 * xdisp.c: Remove dead code.
11578 (handle_invisible_prop, next_overlay_string): Defer call to
11579 setup_for_ellipsis.
11580 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11581
115822008-08-15 Chong Yidong <cyd@stupidchicken.com>
11583
11584 * xfaces.c (lookup_derived_face): Properly handle possible zero
11585 return value of get_lface_attributes.
11586 (merge_faces): Don't tell lookup_derived_face to signal an error
11587 if face is not found.
11588
11589 * dired.c (Fdirectory_files): Doc fix.
11590
11591 * process.c (make_process): Initialize kill_without_query struct
11592 member.
11593
115942008-08-15 Eli Zaretskii <eliz@gnu.org>
11595
11596 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11597 Alternative calculation of totphys for Visual Studio 6.
11598
11599 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11600
11601 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11602 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11603 All users changed.
11604 (stat): Only root directory passed to GetDriveType. Allow RAM
11605 disk as well as local fixed disk when w32-get-true-file-attributes
11606 is set to `local'.
11607 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11608 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11609 (w32_cached_id, w32_add_to_cache): New functions.
11610 (get_name_and_id): Look account names in the cache before calling
11611 lookup_account_sid.
11612 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11613 New initialization flags.
11614 (globals_of_w32): Initialize them to zero.
11615 (w32_system_process_attributes): Use w32_cached_id and
11616 w32_add_to_cache.
11617
116182008-08-14 Lawrence Mitchell <wence@gmx.li>
11619
11620 * lread.c (Fread_char, Fread_char_exclusive): If no character
11621 event is read before timeout is reached, return nil, rather than
11622 converting to a number.
11623
116242008-08-14 Chong Yidong <cyd@stupidchicken.com>
11625
11626 * fns.c (use_dialog_box): Doc fix.
11627
11628 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11629 on OS X.
11630
116312008-08-13 Chong Yidong <cyd@stupidchicken.com>
11632
11633 * frame.c (Qns_parse_geometry): New var.
11634 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11635
116362008-08-11 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11639 space character in calculating tabs.
11640
116412008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11642
11643 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11644
116452008-08-10 Glenn Morris <rgm@gnu.org>
11646
11647 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11648 silence gcc "limited range of data type" warnings in some
11649 make_fixnum_or_float calls.
11650
116512008-08-09 Eli Zaretskii <eliz@gnu.org>
11652
11653 * w32.c (w32_system_process_attributes): If the process does not
11654 exist, return nil.
11655
11656 * w32.c: Include thelp32.h, psapi.h and coding.h.
11657 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11658 declarations.
11659 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11660 (Process32Next_Proc): New typedefs.
11661 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11662 (g_b_init_process32_next, g_b_init_open_thread_token)
11663 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11664 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11665 (g_b_init_get_process_working_set_size)
11666 (g_b_init_global_memory_status_ex): New static variables.
11667 (globals_of_w32): Initialize them.
11668 (create_toolhelp32_snapshot, process32_first, process32_next)
11669 (open_thread_token, impersonate_self, revert_to_self)
11670 (get_process_memory_info, get_process_working_set_size)
11671 (global_memory_status, global_memory_status_ex): New wrapper
11672 functions.
11673 (w32_list_system_processes, w32_system_process_attributes)
11674 (enable_privilege, restore_privilege, ltime, process_times):
11675 New functions.
11676 (convert_time_raw): New function.
11677 (convert_time): Remove conversion of FILETIME into time in 100
11678 nsec units, call convert_time_raw instead.
11679
11680 * process.h (w32_list_system_processes, w32_system_process_attributes):
11681 Add prototypes.
11682 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11683 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11684 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11685 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11686
11687 * process.c (Fsystem_process_attributes): Doc fix.
11688
116892008-08-08 Chong Yidong <cyd@stupidchicken.com>
11690
11691 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11692 a continued multi-char glyph; if so, advance to the actual glyph.
11693
116942008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11695
11696 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11697
11698 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11699 (.m.o): Use it.
11700 * config.in: Regenerate.
11701
117022008-08-07 Chong Yidong <cyd@stupidchicken.com>
11703
11704 * xdisp.c (redisplay_window): Revert last change.
11705 (try_window): Check bottom scroll margin too.
11706
117072008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11708
11709 * config.in: Regenerate.
11710
11711 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11712 -list-load-path-shadows'.
11713 (nsgui.h): Reduce number of things depending on it.
11714
117152008-08-06 Chong Yidong <cyd@stupidchicken.com>
11716
11717 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11718 instead of window-end which does the wrong thing at eob.
11719 (try_cursor_movement): Minor optimization.
11720 (redisplay_window): If scroll margin is defined, don't assume
11721 window doesn't need scrolling.
11722
117232008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11724
11725 * config.in: Regenerate.
11726
11727 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11728 (mostlyclean): Don't delete *.d under NS.
11729
11730 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11731
117322008-08-06 Kenichi Handa <handa@m17n.org>
11733
11734 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11735
117362008-08-06 Andreas Schwab <schwab@suse.de>
11737
11738 * config.in: Regenerate.
11739
117402008-08-05 Chong Yidong <cyd@stupidchicken.com>
11741
11742 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11743 forcing a window start.
11744
11745 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11746 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11747
117482008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11749
11750 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11751 argument.
11752
117532008-08-05 Juanma Barranquero <lekktu@gmail.com>
11754
11755 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11756 <scroll-down-aggressively, before-change-functions>:
11757 <after-change-functions>: Reflow docstrings.
11758
117592008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11760 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11761
11762 Dock menu customization, based on a patch by Ken Raeburn, plus some
11763 other fixes.
11764 * nsmenu.m (dockMenu): New variable.
11765 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11766
11767 * nsterm.h (dockMenu): Declare.
11768
11769 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11770 (ns_term_init): Initialize dockMenu.
11771 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11772 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11773 left.
11774
11775 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11776
117772008-08-04 Chong Yidong <cyd@stupidchicken.com>
11778
11779 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11780
11781 * config.in: Regenerate.
11782
117832008-08-04 Seiji Zenitani <zenitani@mac.com>
11784
11785 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11786
117872008-08-04 Chong Yidong <cyd@stupidchicken.com>
11788
11789 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11790
117912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11792
11793 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11794
11795 * keyboard.h: Comment an #endif.
11796
11797 * lisp.h (have_menus_p): Adjust comment.
11798
11799 * menu.c (find_and_return_menu_selection): Fix comparison with
11800 client_data.
11801
11802 * nsmenu.m (popup_activated_flag): New variable.
11803 (popup_activated): New function.
11804 (menu-or-popup-active-p): New exported lisp definition.
11805 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11806 when popup done.
11807 (ns_popup_dialog): Set popup_activated_flag.
11808
11809 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11810 version for GNUstep (handled by conditional typedef in nsterm.m).
11811 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11812 in rgb.txt).
11813
11814 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11815
11816 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11817
11818 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11819
11820 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11821 shortcircuit if popup_activated like GTK and X toolkit.
11822
11823 * m/inter386.h: Change DARWIN to DARWIN_OS.
11824
11825 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11826 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11827 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11828 comment on NO_SOCK_SIGIO.
11829
118302008-08-03 Chong Yidong <cyd@stupidchicken.com>
11831
11832 * nsterm.m (windowDidResize): Remove stopModal call.
11833
118342008-08-03 Andreas Schwab <schwab@suse.de>
11835
11836 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11837 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11838
118392008-08-02 Chong Yidong <cyd@stupidchicken.com>
11840
11841 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11842 Don't use uninitialized pointer variable when using getrlimit.
11843
118442008-08-02 Jason Rumney <jasonr@gnu.org>
11845
11846 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11847
118482008-08-02 Eli Zaretskii <eliz@gnu.org>
11849
11850 * alloc.c (NSTATICS): Bump to 0x640.
11851
11852 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11853
11854 * lisp.h: Add prototype for directory_files_internal.
11855
11856 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11857 New functions.
11858 (syms_of_process): Defsubr them. Add initializations for various
11859 Q* symbols used in procfs_system_process_attributes.
11860 (procfs_list_system_processes, procfs_system_process_attributes)
11861 [HAVE_PROCFS]: New functions.
11862 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11863 (procfs_get_total_memory): New functions.
11864
118652008-08-01 Juanma Barranquero <lekktu@gmail.com>
11866
11867 * xfaces.c (Fx_load_color_file): Fix previous change;
11868 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11869
118702008-08-01 Michael Albinus <michael.albinus@gmx.de>
11871
11872 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11873
118742008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11875
11876 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11877
118782008-08-01 Chong Yidong <cyd@stupidchicken.com>
11879
11880 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11881
11882 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11883 define NSApplicationDelegateReplySuccess.
11884 (EmacsView -converstationIdentifier): Use long instead of
11885 NSInteger for GNUstep, since it doesn't have NSInteger.
11886
11887 * xmenu.c: Revert last change.
11888
11889 * keyboard.h: Fix last change.
11890
118912008-08-01 Juanma Barranquero <lekktu@gmail.com>
11892
11893 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11894 on Windows.
11895
118962008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11897
11898 Warning clearing and clean-up in NS port.
11899 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11900 Add prototypes.
11901 * nsgui.h (FACE_DEFAULT): Remove, unused.
11902 (XGCValues): Change colors to unsigned long.
11903 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11904 nsterm.m.
11905 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11906 (ns_list_fonts): Remove, unused.
11907 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11908 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11909 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11910 (nsfont_draw): Compare face colors to 0, not nil.
11911 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11912 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11913 (-addSubmenuWithTitle:): Use NSMenuItem class.
11914 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11915 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11916 (ns_clip_to_row): Make gc arg a BOOL.
11917 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11918 ns_clip_to_row() call.
11919 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11920 used). Cast FRAME_FONT assignments.
11921 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11922 (ns_string_to_lispmod): Change arg to const char.
11923 (ns_term_init): Use NSMenuItem class.
11924 (EmacsApp -openFile:): Move to different section of file.
11925 (EmacsApp -application:openFiles:): Don't return a value, call
11926 -replyToOpenOrPrint:.
11927 (EmacsView -keyDown:): Fix up cast.
11928 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11929 (EmacsView -menuDown:): Cast tag in call to
11930 find_and_call_menu_selection().
11931 (ns_list_fonts): Remove, unused.
11932 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11933 (ns_fontname_to_xlfd): Make static.
11934 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11935 Remove prototypes (now in keyboard.h).
11936 (next_menubar_widget_id): Remove, unused.
11937 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11938 Remove prototypes (now in keyboard.h).
11939 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11940
119412008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11942
11943 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11944 (floatfns.o): Depend on syssignal.h.
11945 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11946
11947 * systty.h: Fix previous change that removed BSD_TERMIOS.
11948 Add comments to #ifdefs.
11949
119502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11951
11952 * w32fns.c (w32-load-color-file): Remove.
11953 (x-open-connection): Use renamed Fx_load_color_file.
11954 * xfaces.c (x-load-color-file): Add.
11955 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11956 Emacs.clr.
11957 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11958
119592008-07-31 Michael Albinus <michael.albinus@gmx.de>
11960
11961 * dbusbind.c (Fdbus_call_method_asynchronously)
11962 (Fdbus_method_error_internal): New defuns.
11963 (xd_read_message): Handle also reply messages.
11964 (Vdbus_registered_functions_table): Extend docstring.
11965
119662008-07-31 Juanma Barranquero <lekktu@gmail.com>
11967
11968 * keyboard.c (gobble_input): Fix previous change.
11969
119702008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11971
11972 * bitmaps/README:
11973 * xfns.c:
11974 * termcap.c:
11975 * term.c:
11976 * syswait.h:
11977 * systty.h:
11978 * systime.h:
11979 * syssignal.h:
11980 * sysdep.c:
11981 * process.h:
11982 * process.c:
11983 * print.c:
11984 * ndir.h:
11985 * lread.c:
11986 * keyboard.c:
11987 * getpagesize.h:
11988 * floatfns.c:
11989 * fileio.c:
11990 * emacs.c:
11991 * doc.c:
11992 * dispnew.c:
11993 * dired.c:
11994 * data.c:
11995 * callproc.c:
11996 * buffer.c:
11997 * README:
11998 * Makefile.in:
11999 * s/template.h:
12000 * s/msdos.h:
12001 * m/vax.h: Remove VMS support.
12002 * s/vms.h:
12003 * vlimit.h:
12004 * uaf.h:
12005 * temacs.opt:
12006 * param.h:
12007 * ioctl.h: Remove file.
12008
120092008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12010
12011 * s/ms-w32.h (MULTI_KBOARD): Remove.
12012 * xterm.c:
12013 * xselect.c:
12014 * xfns.c:
12015 * window.c:
12016 * w32term.c:
12017 * w32fns.c:
12018 * terminal.c:
12019 * termhooks.h:
12020 * term.c:
12021 * sysdep.c:
12022 * keyboard.h:
12023 * keyboard.c:
12024 * frame.h:
12025 * frame.c:
12026 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12027 * config.in: Regenerate.
12028
120292008-07-30 Jason Rumney <jasonr@gnu.org>
12030
12031 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12032
12033 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12034 (w32font_open_internal): Get unicode version of textmetrics.
12035 Don't enable or disable glyph indices here.
12036 (w32font_open): Disable use of glyph indices.
12037
12038 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12039
120402008-07-30 Chong Yidong <cyd@stupidchicken.com>
12041
12042 * minibuf.c (Vread_buffer_function): Doc fix.
12043
120442008-07-30 John Paul Wallington <jpw@pobox.com>
12045
12046 * minibuf.c (read_buffer_completion_ignore_case): New var.
12047 (Fread_buffer): Use it.
12048
120492008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12050
12051 * systty.h (sensemode): Remove empty #if. Remove reference to
12052 BSD_TERMIOS, unused.
12053
12054 * sysdep.c: Remove reference to DGUX.
12055 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12056
12057 * config.in: Regenerate.
12058
120592008-07-30 Jason Rumney <jasonr@gnu.org>
12060
12061 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12062
120632008-07-29 Jason Rumney <jasonr@gnu.org>
12064
12065 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12066 is populated.
12067 (uniscribe_encode_char): Always use uniscribe.
12068 Avoid using context if cache is populated.
12069
120702008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12071
12072 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12073 open menu.
12074
12075 * gtkutil.c (menu_nav_ended): Remove.
12076 (create_menus): Remove signal connect for menu_nav_ended.
12077
120782008-07-28 Chong Yidong <cyd@stupidchicken.com>
12079
12080 * xdisp.c (redisplay_window): Check return value of
12081 compute_window_start_on_continuation_line before forcing a window
12082 start.
12083
120842008-07-28 Jason Rumney <jasonr@gnu.org>
12085
12086 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12087
12088 * w32term.c (w32_enable_unicode_output, cleartype_active):
12089 Remove obsolete display options.
12090 (x_draw_glyph_string_background): Don't use old cleartype_active
12091 workaround.
12092 (w32_initialize): Remove cleartype_active initialization.
12093 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12094
120952008-07-28 Andreas Schwab <schwab@suse.de>
12096
12097 * lisp.h (init_weak_hash_tables, syms_of_font)
12098 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12099 (remove_hash_entry): Don't declare.
12100 * eval.c (maybe_call_debugger): Make static and move before use.
12101 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12102 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12103 * xterm.h (x_set_frame_alpha): Declare.
12104
121052008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12106
12107 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12108 (create_menus): Connect selection-done to menu_nav_ended.
12109
121102008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12111
12112 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12113 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12114 parameter with read of 'alpha' one.
12115 (Qns_frame_parameter): Remove.
5582fbc7 12116 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12117 (next-selection-coding-system, Vselection_coding_system)
12118 (Vnext_selection_coding_system): Drop.
12119
121202008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12121
12122 * nsfns.m (do-applescript, do_applescript): Rename to
12123 ns-do-applescript, ns_do_applescript, and move within file.
12124
121252008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12126
12127 Remove support for Mac Carbon.
12128 * mactoolbox.c:
12129 * macterm.h:
12130 * macterm.c:
12131 * macselect.c:
12132 * macmenu.c:
12133 * macgui.h:
12134 * macfns.c:
12135 * mac.c: Remove file.
12136 * s/darwin.h:
12137 * m/intel386.h:
12138 * xfaces.c:
12139 * xdisp.c:
12140 * window.c:
12141 * tparam.c:
12142 * termhooks.h:
12143 * termcap.c:
12144 * term.c:
12145 * syssignal.h:
12146 * sysselect.h:
12147 * sysdep.c:
12148 * process.c:
12149 * lread.c:
12150 * lisp.h:
12151 * keyboard.c:
12152 * image.c:
12153 * fringe.c:
12154 * frame.h:
12155 * frame.c:
12156 * fontset.c:
12157 * font.h:
12158 * font.c:
12159 * fns.c:
12160 * fileio.c:
12161 * emacs.c:
12162 * dispnew.c:
12163 * dispextern.h:
12164 * config.in:
12165 * atimer.c:
2ae37cf0 12166 * Makefile.in: Remove code for Carbon.
aac0c6e3 12167
f0131492 121682008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12169
12170 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12171
121722008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12173
12174 * macterm.h (kCGBitmapByteOrder32Host): New define for
12175 non-universal SDKs.
12176
12177 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12178 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12179
12180 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12181 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12182
121832008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12184
12185 * w32inevt.c: Include dispextern.h.
12186
121872008-07-26 Andreas Schwab <schwab@suse.de>
12188
12189 * print.c (print_object): Fix off-by-one in last change.
12190
121912008-07-25 Juanma Barranquero <lekktu@gmail.com>
12192
12193 * term.c (syms_of_term): Don't initialize default_orig_pair,
12194 default_set_foreground and default_set_background on Windows.
12195
121962008-07-25 Jason Rumney <jasonr@gnu.org>
12197
12198 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12199 ScriptItemize. Clean up return value checking. Remove unused
12200 variables.
12201 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12202 shaping engine.
12203
12204 * w32font.c (w32font_has_char): Handle the case where we can't
12205 determine the script for a character.
12206
122072008-07-25 Chong Yidong <cyd@stupidchicken.com>
12208
12209 * term.c (syms_of_term): Initialize default_orig_pair,
12210 default_set_foreground, and default_set_background.
12211
12212 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12213 clash (bug#86).
12214 (getloadavg): Callers changed.
12215
12216 * image.c (svg_load_image): Fix last change.
12217 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12218 image size is valid. Use g_object_unref instead of deprecated
12219 rsvg_handle_free to free rsvg handle.
12220 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12221
122222008-07-25 Jason Rumney <jasonr@gnu.org>
12223
12224 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12225 surrogates before looking up glyph index.
12226 (w32font_text_extents): Encode as surrogates if falling back to
12227 functions that need UTF-16 wide chars.
12228
12229 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12230 BMP as surrogates before looking up glyph index.
12231
122322008-07-25 Chong Yidong <cyd@stupidchicken.com>
12233
12234 * image.c (svg_load_image): Check for failure in return value of
12235 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12236
122372008-07-25 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32font.c (Fx_select_font): Reverse sense of second arg.
12240
122412008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12242
12243 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12244 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12245
12246 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12247 (PURESIZE): Use it.
12248
122492008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12250
12251 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12252 * m/alpha.h (TEXT_END):
12253 * m/ibmrs6000.h (TEXT_END):
12254 * m/macppc.h (TEXT_END):
12255 * s/darwin.h (TEXT_END):
12256 * s/msdos.h (TEXT_END): Remove, unused.
12257 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12258 * s/cygwin.h: Remove comment.
12259
12260 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12261 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12262 * m/intel386.h (DOT_GLOBAL_START):
12263 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12264 (USG): Remove, file not used on USG platforms.
12265
12266 * Makefile.in (HAVE_X11): Remove empty #else.
12267
122682008-07-24 Andreas Schwab <schwab@suse.de>
12269
12270 * fileio.c (Finsert_file_contents): Properly adjust undo list
12271 after format conversion.
12272
122732008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12274
12275 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12276 (menu_nav_ended): Remove.
12277 (create_menus): Remove signal connect for menu_nav_ended.
12278 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12279 create_menus.
12280 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12281
122822008-07-23 Jason Rumney <jasonr@gnu.org>
12283
12284 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12285 with opened font.
12286 (w32font_open): Set font type to gdi.
12287
12288 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12289
122902008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12291
12292 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12293 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12294 defines it.
12295 * unexec.c (ADDR_CORRECT): Define unconditionally.
12296
12297 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12298
12299 * unexec.c: Remove code depending on !COFF and USG, the file is
12300 not used for such systems.
12301
12302 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12303 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12304 (LD_SWITCH_SYSTEM_1): Remove, update users.
12305
12306 * s/darwin.h (DATA_END):
12307 * m/intel386.h (DATA_END):
12308 * m/ibmrs6000.h (DATA_END):
12309 * m/alpha.h (DATA_END): Remove, unused.
12310
12311 * config.in: Regenerate.
12312 * s/ms-w32.h (subprocesses): Define unconditionally.
12313 * s/template.h (subprocesses): Update comment.
12314 * s/vms.h (subprocesses):
12315 * s/usg5-4.h (subprocesses):
12316 * s/hpux10-20.h (subprocesses):
12317 * s/gnu-linux.h (subprocesses):
12318 * s/cygwin.h (subprocesses):
12319 * s/bsd-common.h (subprocesses):
12320 * s/aix4-2.h (subprocesses):
12321 * s/darwin.h (subprocesses): Do not define, defined by default now.
12322
12323 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12324 Remove all references.
12325 (temacs): Add GNUstep specific ld flags.
12326
12327 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12328 similarly to what X does.
12329
123302008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12331
12332 * nsfns.m (x-list-fonts): Remove.
12333 (syms_of_nsfns): Drop the x-list-fonts declaration.
12334 * nsterm.m: Get rid of remaining "//" comments.
12335
123362008-07-22 Chong Yidong <cyd@stupidchicken.com>
12337
12338 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12339
12340 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12341 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12342 (Fns_own_selection_internal, Fx_disown_selection_internal)
12343 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12344
12345 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12346 ... */' style of docstrings. Doc fixes.
12347
123482008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12349
12350 * terminfo.c (UP, BC, PC): Undo previous change.
12351
12352 * nsfns.m: Rename ns prefixed functions/variables to the
12353 corresponding x versions. Update references.
12354
123552008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12356
12357 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12358
123592008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12360
12361 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12362 Remove forwarding functions.
12363 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12364 non-static.
12365 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12366 non-static.
12367 (ns_frame_parm_handlers): Use the new names.
12368 (syms_of_nsfns): Move to the end of file.
12369
12370 * nsterm.m (syms_of_nsterm): Move to the end of file.
12371
12372 * dispnew.c (init_display): Remove code for X10.
12373
123742008-07-22 Jason Rumney <jasonr@gnu.org>
12375
12376 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12377 bare drive.
12378
123792008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12380
12381 * nsterm.m (syms_of_nsterm): Remove debugging println.
12382
123832008-07-22 David Reitter <david.reitter@gmail.com>
12384
12385 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12386 Carbon implementation of the same functionality: execute arbitrary
12387 AppleScript code.
12388
123892008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12390
12391 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12392 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12393 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12394 (Fx_display_mm_height, Fx_display_mm_width)
12395 (Fx_display_backing_store, Fx_display_visual_class)
12396 (Fx_display_save_under, Fx_open_connection)
12397 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12398 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12399 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12400 (Fx_display_pixel_width, Fx_display_pixel_height)
12401 (Fx_display_usable_bounds, Fx_display_planes)
12402 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12403 ... */' style of docstrings.
12404
124052008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12406
12407 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12408 on this platform.
12409 (mips):
12410 * m/iris4d.h (mips): Do not define.
12411 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12412
12413 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12414
12415 * image.c:
12416 * nsfns.m:
12417 * nsselect.m:
12418 * nsterm.h:
12419 * nsterm.m: Rename ns prefixed functions/variables to the
12420 corresponding x versions. Update references.
12421
12422 * m/ibms390x.h (NO_REMAP): Do not undefine.
12423
12424 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12425
124262008-07-21 Chong Yidong <cyd@stupidchicken.com>
12427
12428 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12429 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12430 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12431 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12432 (Fns_display_mm_height, Fns_display_mm_width)
12433 (Fns_display_backing_store, Fns_display_visual_class)
12434 (Fns_display_save_under, Fns_open_connection)
12435 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12436 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12437 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12438 (Fns_display_pixel_width, Fns_display_pixel_height)
12439 (Fns_display_usable_bounds, Fx_display_planes)
12440 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12441
124422008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12443
12444 * print.c (print_object): Check print_depth before searching for
12445 circularities.
12446
124472008-07-21 Michael Albinus <michael.albinus@gmx.de>
12448
12449 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12450 only sprintf.
12451
124522008-07-21 Kenichi Handa <handa@m17n.org>
12453
12454 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12455
124562008-07-20 Andreas Schwab <schwab@suse.de>
12457
12458 * syntax.c (find_start_pos, find_start_value)
12459 (find_start_value_byte, find_start_begv, find_defun_start)
12460 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12461
124622008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12463
12464 * s/sol2-3.h: Insert contents of s/sol2.h.
12465 (LD_SWITCH_SYSTEM): Remove redundant definition.
12466 * s/sol2.h: Remove, unused.
12467
124682008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12469
12470 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12471
124722008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12473
12474 * Makefile.in (ns_appdir): Fix typo in find command.
12475
124762008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12477
12478 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12479
12480 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12481 added not supported anymore.
12482
12483 * s/usg5-4-2.h (LIBS_SYSTEM):
12484 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12485
12486 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12487 * s/lynxos.h (GETPGRP_NO_ARG):
12488 * s/hpux10-20.h (NO_SIOCTL_H):
12489 * s/gnu.h (GETPGRP_NO_ARG):
12490 * s/gnu-linux.h (NO_SIOCTL_H):
12491 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12492 * s/cygwin.h (GETPGRP_NO_ARG):
12493 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12494 (C_DEBUG_SWITCH): Remove duplicate definition.
12495
12496 * m/ibms390.h: Remove boilerplate comments.
12497
12498 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12499
12500 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12501 (wait_reading_process_output): Remove code for SunOS, platform not
12502 supported anymore. Use SOLARIS2 instead of sun.
12503
125042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12505
12506 * font.c (font_open_by_name): Under NS, default lface height to zero.
12507 (font_open_for_lface): Under NS, set size based on frame fontsize.
12508 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12509 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12510
125112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12512
12513 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12514 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12515 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12516 YES/NO.
12517 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12518 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12519 * Makefile.in (clean): Clear out build destination dir.
12520
125212008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12522
12523 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12524 xterm, xselect.
12525 * lisp.h: Remove declaration of hash_remove.
12526 * nsgui.h: Remove redefinitions of hash_remove.
12527 * fns.c (hash_remove): Rename to hash_remove_from_table.
12528
125292008-07-19 Seiji Zenitani <zenitani@mac.com>
12530
12531 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12532 strdup() the family UTF8String before modifying it.
12533
125342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12535
12536 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12537 NS_FACE_BACKGROUND with 0 instead of nil.
12538 * nsfont.m (nsfont_draw): Same.
12539
125402008-07-19 Chong Yidong <cyd@stupidchicken.com>
12541
12542 * nsfns.m (ns_set_background_color): Fix crash.
12543
125442008-07-18 Chong Yidong <cyd@stupidchicken.com>
12545
12546 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12547
125482008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12549
12550 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12551
125522008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12553
12554 * gtkutil.c: Include <config.h> instead of "config.h".
12555
12556 * lisp.h (Foverlay_buffer): Add EXFUN.
12557
12558 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12559 child process to complete child_setup. Undo 2005-09-21 change.
12560
12561 * s/darwin.h: Mention setsid after vfork.
12562
125632008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12564
12565 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12566 Depend on macgui.h.
12567
12568 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12569 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12570
12571 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12572 and f19.
12573 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12574
12575 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12576 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12577 Remove enumerators.
12578
12579 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12580 Check if FACE_FROM_ID returns NULL.
12581
125822008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12583
12584 * w32inevt.c (change_frame_size): Remove extern declaration.
12585 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12586 change_frame_size.
12587
125882008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12589
12590 * getloadavg.c: Revert last change (2008-07-15).
12591
125922008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12593
12594 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12595 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12596 from configure.
12597
125982008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12599
12600 * s/sol2.h:
12601 * s/sol2-4.h: Reorganize conditionals.
12602
12603 * ecrt0.c: Remove code depending on m68000, not used anymore.
12604
12605 * fns.c (hash_remove): Make static.
12606 * lisp.h (hash_remove): Don't prototype.
12607
12608 * m/ibmrs6000.h:
12609 * m/ibms390x.h:
12610 * m/macppc.h: Remove boilerplate comments.
12611
12612 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12613 Solaris, which does not need them.
12614
12615 * m/vax.h: Remove comments about unsupported systems.
12616
12617 * s/darwin.h: Reorganize ifdefs.
12618
126192008-07-17 Andreas Schwab <schwab@suse.de>
12620
12621 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12622
126232008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12624
12625 Use SDATA. Follow coding convention of placing operators at
12626 beginning of next line rather than end of previous line, and placing
12627 spaces around infix operators.
12628
12629 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12630 in case it was defined already.
12631 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12632 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12633 ns_default.
12634 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12635 Lisp_Objects.
12636 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12637 (ns_defined_color, ns_color_to_lisp): Declare.
12638 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12639 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12640 it's accepted even with USE_LISP_UNION_TYPE.
12641 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12642 (update_frame_tool_bar): Remove apparently obsolete tests for
12643 non-integerness of f->tool_bar_lines.
12644 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12645 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12646 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12647 (nsfont_open): Don't confuse NULL for Qnil.
12648 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12649 * menu.h (find_and_call_menu_selection):
12650 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12651 (find_and_return_menu_selection): Always return something.
12652 * frame.h: Include dispextern.h for Display_Info.
12653 (display_x_get_resource): Declare.
12654
126552008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12656
12657 * syntax.c: Remove stdio.h include accidentally introduced in
12658 Emacs.app commit.
12659 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12660 NS_IMPL_COCOA.
12661 * keyboard.c (handle_async_input, input_available_signal): Remove
12662 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12663
126642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12665
12666 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12667 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12668 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12669 Use SDATA.
12670
12671 * keymap.c: Remove all NS-specific code.
12672 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12673 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12674 where_is_preferred_modifier, return a different value depending on how
12675 preferred is the binding.
12676 (where_is_internal): Adjust accordingly.
12677 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12678 Adjust to new preferred_sequence_p.
12679 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12680 * keyboard.c (parse_solitary_modifier): Not static any more.
12681 * keyboard.h (parse_solitary_modifier): Declare.
12682
126832008-07-16 Andreas Schwab <schwab@suse.de>
12684
12685 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12686 of easymenu.
12687
126882008-07-16 Chong Yidong <cyd@stupidchicken.com>
12689
12690 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12691 that we don't move off the line.
12692
126932008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12694
12695 * keyboard.c (Qsuper): Remove.
12696 (parse_menu_item): Don't call where_is_internal specially for NS.
12697
126982008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12699
12700 * s/gnu-linux.h: Remove boilerplate comments.
12701
12702 * m/alpha.h (__ELF__): Consolidate conditions.
12703
12704 * m/m68k.h (linux): Use GNU_LINUX instead.
12705 Remove boilerplate comments.
12706
12707 * m/intel386.h: Undo refactoring from previous change.
12708 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12709 too, remove dead code.
12710 (linux): Use GNU_LINUX instead.
12711
127122008-07-16 Jason Rumney <jasonr@gnu.org>
12713
12714 * w32gui.h: Repeat 26 June changes lost by last change.
12715
127162008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12717
12718 * systty.h: Remove code for Aix on 386, unsupported platform.
12719
12720 * s/ms-w32.h: Remove boilerplate comments.
12721 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12722
12723 * s/gnu-linux.h (TERM): Remove support.
12724 (HAVE_SYSVIPC): Remove, unused.
12725 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12726 for this system.
12727
12728 * process.c: Remove support for IRIS, unused.
12729 Remove support for TERM, not relevant anymore.
12730
12731 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12732 used with the definition.
12733
12734 * s/aix4-2.h (static): Do not undef.
12735
12736 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12737 only used on Aix.
12738 (HAVE_SYSVIPC): Remove, unused.
12739
12740 * m/hp800.h (CANNOT_DUMP): Do not undef.
12741
12742 * m/alpha.h: Fix comment.
12743
12744 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12745 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12746 used by this configuration.
12747 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12748 * unexec.c: Remove code depending on HPUX and
12749 USG_SHARED_LIBRARIES, not used with this file. Remove code
12750 depending on IRIS, unused. Remove if 0-ed code.
12751
12752 * s/template.h: Remove comments about static.
12753
12754 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12755 Remove if 0-ed code.
12756 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12757 were the same as the default.
12758 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12759 Remove boilerplate comments.
12760 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12761 (HAVE_SYSVIPC): Remove, unused.
12762 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12763
12764 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12765 Remove boilerplate comments.
12766 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12767 Remove boilerplate comments.
12768 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12769 Remove boilerplate comments.
12770 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12771
12772 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12773 USG systems which do not use DATA_SEG_BITS.
12774 Refactor code. Remove boilerplate comments.
12775
12776 * m/ibms390.h:
12777 * m/m68k.h:
12778 * s/bsd-common.h:
12779 * s/cygwin.h:
12780 * s/darwin.h:
12781 * s/freebsd.h:
12782 * s/gnu.h:
12783 * s/msdos.h: Remove boilerplate comments.
12784
12785 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12786 do not use this file.
aac0c6e3
MR
12787 (IRIS_4D): Remove, unused.
12788
12789 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12790 do not use this file.
aac0c6e3
MR
12791 (SIGN_EXTEND_CHAR):
12792 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12793 * unexmips.c: Remove file, unused.
12794
12795 * editfns.c (Fuser_full_name): Replace the only use of
12796 USER_FULL_NAME with its value.
12797 * config.in: Regenerate.
12798
127992008-07-16 David Reitter <david.reitter@gmail.com>
12800
12801 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12802 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12803
128042008-07-16 Glenn Morris <rgm@gnu.org>
12805
12806 * emacs.c (system-type): Doc fix.
12807
128082008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12809
12810 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12811 If the cache doesn't work, let's fix it, rather than work around it.
12812
128132008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12814
12815 * Makefile.in: Correct additions for nsfont.o in last commit.
12816 * nsfont.m: New file (forgot last commit).
12817
128182008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12819
12820 * callproc.c (set_initial_environment): Initialize
12821 Vprocess_environment under CANNOT_DUMP (fixes crash when
12822 batch-compiling for bootstrap).
12823
128242008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12825 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12826
c4cc8b9a
JB
12827 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12828 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12829
128302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12831
12832 Changes and additions for NeXTstep windowing system (Cocoa and
12833 GNUstep) support.
12834
12835 * Makefile.in:
12836 * config.in: Support defines and build commands for NS port.
12837 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12838 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12839 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12840 windowing.
12841 (struct face): Add synth_ital field.
12842 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12843 (init_display): Initialize Vinitial_window_system to "ns" when so
12844 compiled.
12845 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12846 (display_arg): Use under NS.
12847 (main): Under NS, allocate autorelease pool and handle command line
12848 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12849 (standard_args): Add NS-specific args.
12850 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12851 * font.c (DEFAULT_ENCODING): New variable.
12852 (font_find_for_lface): Use it.
12853 (syms_of_font): Load syms_of_nsfont under NS.
12854 * font.h: Declare nsfont_driver when compiled under NS.
12855 * fontset.c: When compiling under NS, include nsterm.h.
12856 (fontset_from_font): Autoconstruct fontset under NS.
12857 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12858 symbol, document and use it.
12859 (do_switch_frame): When for_deletion under Cocoa, add
12860 Fraise_frame(Qnil).
12861 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12862 (x_get_arg): Allow "yes" and "no" as boolean values.
12863 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12864 Qright under Cocoa.
12865 (focus-follows-mouse): Default to 0 under NS.
12866 * frame.h (enum output_method): Add output_ns.
12867 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12868 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12869 (FRAME_WINDOW_P): NS-specific definition.
12870 * fringe.c (max_used_fringe_bitmap): Make public.
12871 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12872 (getloadavg): Use NeXT code under descendant OS's.
12873 * image.c (includes and header section, x_create_bitmap_from_data)
12874 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12875 (image_background_transparent, x_clear_image_1)
12876 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12877 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12878 (x_to_xcolors, x_from_xcolors, x_disable_image)
12879 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12880 other GUIs, including XPM support using code originally written for
12881 Carbon GUI.
12882 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12883 using NS API.
12884 (image_ascent): Use font metrics macros instead of direct struct field
12885 access.
12886 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12887 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12888 Also, handle NS as GTK for menu bar purposes.
12889 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12890 toolkit where they differ.
12891 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12892 use cachelist, still needed under NS.
12893 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12894 (struct widget_value): Define it here for menu.c.
12895 * keymap.c (includes): Include modifier internals.
12896 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12897 NS.
12898 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12899 support for preferring sequences using certain modifiers, specified by
12900 the FIRSTONLY argument.
12901 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12902 under NS GNUstep implementation.
12903 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12904 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12905 * menu.c: Include nsterm.h under NS.
12906 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12907 (free_menubar_widget_tree_value, update_submenu_strings)
12908 (find_and_call_menu_selection): Treat NS as X and NT.
12909 (find_and_return_menu_selection): New function, used for popup menus.
12910 * nsgui.h:
12911 * nsterm.h:
12912 * nsfns.m:
12913 * nsimage.m:
12914 * nsmenu.m:
12915 * nsselect.m:
12916 * nsterm.m: New files.
12917 * process.c (wait_reading_process_output): Under NS, call ns_select()
12918 instead of plain select().
12919 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12920 beginning of buffer.
12921 * sysselect.h (init_process): Rename when compiling under Cocoa to
12922 avoid name conflict.
12923 * termhooks.h (display_info): Add ns_display_info to union.
12924 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12925 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12926 COCOA environment.
12927 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12928 unexec() signature. (Note, this will dump, but the resulting file
12929 crashes; unexosx is used instead; keeping around for reference and
12930 possible aid in getting dump working under GNUstep.)
12931 * w32gui.h (button_type, widget_value): Remove definitions (now in
12932 keyboard.h).
12933 * window.c: Include nsterm.h when compiling under NS.
12934 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12935 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12936 other GUI windowing systems.
12937 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12938 GTK.
12939 (x_consider_frame_title): Under NS, set icon type and frame
12940 modified-state indicator; use ns_set_name_as_filename() when using
12941 formatted title.
12942 (update_window_cursor): Make public when compiling under NS.
12943 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12944 (hourglass_atimer, Vhourglass_delay
12945 * xfaces.c (header section, init_frame_faces, clear_font_table)
12946 (defined_color, unload_color, x_face_list_fonts)
12947 (prepare_face_for_display): Add NS support parallel to other GUIs.
12948 Emulate GCs like other non-X GUIs.
12949 (split_font_name): Don't lowercase font name under NS.
12950 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12951 under NS.
12952 * s/darwin.h: Add support for compilation under NS.
12953
129542008-07-15 Jason Rumney <jasonr@gnu.org>
12955
12956 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12957 (w32_show_hourglass): Rename from show_hourglass.
12958 (w32_hide_hourglass): Rename from hide_hourglass.
12959 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12960 (Vhourglass_delay): Declare extern.
12961 (hourglass_started): Remove.
12962
12963 * xdisp.c (Vhourglass_delay): Remove static.
12964 (hourglass_started, start_hourglass, cancel_hourglass):
12965 Don't include these versions on WINDOWSNT.
12966
129672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12968
12969 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12970 variables (formerly in xfns.c).
12971 (show_hourglass, hide_hourglass): New prototypes (same).
12972 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12973 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12974 in xfns.c).
12975 (syms_of_xdisp): Declare/initialize display-hourglass,
12976 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12977 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12978 formerly in xfns.c.
12979 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12980 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12981 (start_hourglass, cancel_hourglass): Remove.
12982 (show_hourglass, hide_hourglass): Remove prototypes and static
12983 modifiers.
12984 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12985 hourglass_atimer, hourglass_shown_p declaration/initialization.
12986 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12987 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12988 (start_hourglass, cancel_hourglass): Remove.
12989 (show_hourglass, hide_hourglass): Remove prototypes and static
12990 modifiers.
12991 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12992 hourglass_atimer, hourglass_shown_p declaration/initialization.
12993 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12994 (DEFAULT_HOURGLASS_DELAY): Remove.
12995 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12996 hourglass_shown_p declaration/initialization.
12997
129982008-07-14 Jason Rumney <jasonr@gnu.org>
12999
13000 * w32fns.c (w32_get_arg): Remove wrapper function.
13001 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13002 directly.
13003 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13004
130052008-07-14 Kenichi Handa <handa@m17n.org>
13006
13007 * xfont.c (xfont_open): Add workaround for X's bug.
13008
130092008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13010
13011 * fontset.c: Include <stdio.h> unconditionally.
13012
130132008-07-13 Michael Albinus <michael.albinus@gmx.de>
13014
13015 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13016 for filtering.
13017
130182008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13019
13020 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13021
13022 * m/macppc.h:
13023 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13024
c4cc8b9a 13025 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13026 (SPECIAL_EMACS_INT):
13027 * m/ia64.h (SPECIAL_EMACS_INT):
13028 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13029 * s/gnu.h (NLIST_STRUCT):
13030 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13031 * s/gnu-linux.h (LINUX):
13032 * s/msdos.h (HAVE_FACES):
13033 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13034
13035 * systty.h:
13036 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13037 anymore.
13038
130392008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13040
13041 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13042 always defined as int.
13043
13044 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13045 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13046 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13047 * s/freebsd.h (HAVE_WAIT_HEADER):
13048 * s/bsd-common.h (HAVE_UNION_WAIT):
13049 * s/aix4-2.h (HAVE_WAIT_HEADER):
13050 * m/mips.h (HAVE_UNION_WAIT):
13051 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13052 (COFF, static): Do not define, they are undefined later in the file.
13053
13054 * process.c (update_status): Don't use a union.
13055 (status_convert):
13056 (sigchld_handler): Use int instead of WAITTYPE.
13057
130582008-07-12 Chong Yidong <cyd@stupidchicken.com>
13059
13060 * indent.c (Fvertical_motion): Restore hscroll before moving to
13061 goal column.
13062
130632008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13064
13065 * lisp.h: Remove left over code.
13066
130672008-07-11 Andreas Schwab <schwab@suse.de>
13068
13069 * lisp.h: Fix logic in last change.
13070
13071 * menu.h: New file.
13072 * menu.c: Include it.
13073 * xmenu.c: Likewise.
13074 * Makefile.in: Update dependencies.
13075
130762008-07-11 Kenichi Handa <handa@m17n.org>
13077
13078 * fontset.c (fontset_from_font): Cancel the previous change.
13079
130802008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13081
13082 * lisp.h:
13083 * w32heap.c:
13084 * emacs.c:
13085 * alloc.c: Replace all references of NO_UNION_TYPE with
13086 USE_LISP_UNION_TYPE.
13087
13088 * m/xtensa.h (NO_UNION_TYPE):
13089 * m/vax.h (NO_UNION_TYPE):
13090 * m/template.h (NO_UNION_TYPE):
13091 * m/sparc.h (NO_UNION_TYPE):
13092 * m/mips.h (NO_UNION_TYPE):
13093 * m/macppc.h (NO_UNION_TYPE):
13094 * m/m68k.h (NO_UNION_TYPE):
13095 * m/iris4d.h (NO_UNION_TYPE):
13096 * m/intel386.h (NO_UNION_TYPE):
13097 * m/ibms390x.h (NO_UNION_TYPE):
13098 * m/ibms390.h (NO_UNION_TYPE):
13099 * m/ibmrs6000.h (NO_UNION_TYPE):
13100 * m/ia64.h (NO_UNION_TYPE):
13101 * m/hp800.h (NO_UNION_TYPE):
13102 * m/arm.h (NO_UNION_TYPE):
13103 * m/amdx86-64.h (NO_UNION_TYPE):
13104 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13105 defining it the same.
13106
131072008-07-10 Chong Yidong <cyd@stupidchicken.com>
13108
13109 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13110
131112008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13112
13113 * fileio.c:
50426a04 13114 * sysdep.c:
aac0c6e3
MR
13115 * systty.h:
13116 * m/ibmrs6000.h:
13117 * m/iris4d.h:
13118 * s/aix4-2.h:
13119 * s/freebsd.h:
13120 * s/gnu-linux.h:
13121 * s/hpux10-20.h:
13122 * s/hpux11.h:
13123 * s/netbsd.h:
13124 * s/sol2-3.h:
13125 * s/sol2-4.h:
13126 * s/sol2.h:
13127 * s/usg5-4.h:
13128 * s/vms.h: Remove references to unused variables.
13129
131302008-07-10 Andreas Schwab <schwab@suse.de>
13131
13132 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13133 pattern before matching the generic family.
13134
131352008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13136
13137 * unexec.c:
13138 * s/vms.h:
13139 * s/usg5-4-2.h:
13140 * s/sol2-5.h:
13141 * s/freebsd.h:
13142 * s/darwin.h: Remove dead code.
13143
13144 * m/template.h:
13145 * m/sparc.h:
13146 * m/mips.h:
13147 * m/m68k.h:
13148 * m/iris4d.h:
13149 * m/intel386.h:
13150 * m/ibms390x.h:
13151 * m/ibms390.h:
13152 * m/ia64.h:
13153 * m/hp800.h:
13154 * m/arm.h:
13155 * m/amdx86-64.h: Remove dead code and references to unused
13156 and compiler defined symbols.
13157
13158 * unexmips.c:
13159 * unexelf.c: Remove references to desupported systems.
13160
13161 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13162
13163 * m/powermac.h: Remove boilerplate comments.
13164 (NO_REMAP): Remove unused definition.
13165
13166 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13167 define them.
13168
131692008-07-10 Kenichi Handa <handa@m17n.org>
13170
13171 * xfont.c (xfont_open): Log the reason of failure.
13172
131732008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13174
13175 * fontset.c (fontset_get_font_group):
13176 * font.c (font_check_otf): Specify argument types.
13177
131782008-07-09 Kenichi Handa <handa@m17n.org>
13179
13180 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13181 non-ASCII char is found.
13182
13183 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13184 (reorder_font_vector): Change the arg preferred_family to font.
13185 Prefer the spec matching with font.
13186 (fontset_get_font_group): New function.
13187 (fontset_find_font): Change the format of an element of a realized
13188 fontset. Use fontset_get_font_group.
13189 (fontset_font): Try the current fontset, the default fontset, the
13190 fallbacks of the current fontset, and the fallbacks of the default
13191 fontset in this order.
13192 (face_for_char): Delete the shortcut to use the current font.
13193 (fontset_from_font): Don't set fonts for Latin in the fontset.
13194
13195 * font.h (font_make_object, font_match_p): Adjust prototypes.
13196
13197 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13198
13199 * font.c (font_make_object): New arg entity and pixelsize.
13200 (font_check_otf_features, font_check_otf): New functions.
13201 (font_match_p): Check :lang, :script, and :otf properties.
13202
13203 * xfont.c (xfont_open): Adjust it for the change of
13204 font_make_object.
13205 (xfont_text_extents): Fix initial setting of metrics.
13206
13207 * ftfont.c (struct ftfont_info): New member index, delete member
13208 fc_charset_idx. Make the member order compatible with struct
13209 xftfont_info.
13210 (fc_charset_table): Change charset names to registry names.
13211 (ftfont_pattern_entity): Delete the args registry and
13212 fc_charset_idx. Change the value of :font-entity property
13213 to (FONTNAME . INDEX). Always set :registry property to
13214 `iso10646-1'.
13215 (struct ftfont_cache_data): New struct.
13216 (ftfont_lookup_cache): New arg for_face.
13217 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13218 (ftfont_driver): Set the member otf_capability.
13219 (ftfont_get_charset): Adjust it for the change of
13220 fc_charset_table.
13221 (OTF_TAG_SYM): New macro.
13222 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13223 for the change of fc_charset_table.
13224 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13225 ftfont_pattern_entity. Add FC_INDEX to objset.
13226 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13227 and ftfont_pattern_entity.
13228 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13229 font_make_object, struct ftfont_info.
13230 (ftfont_has_char): Use ftfont_get_fc_charset.
13231 (ftfont_otf_features, ftfont_otf_capability): New functions.
13232 (ftfont_shape): Use ftfont_get_otf.
13233 (ftfont_text_extents): Fix initial setting of metrics.
13234
13235 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13236 member order compatible with struct ftfont_info.
13237 (xftfont_open): Add FC_CHARSET to the pattern. Set
13238 xftfont_info->ft_size. Don't unlock the face. Check BDF
13239 properties if appropriate.
13240 (xftfont_close): Unlock the face.
13241 (xftfont_anchor_point, xftfont_shape): Deleted.
13242 (syms_of_xftfont): Don't set members anchor_point and shape of
13243 xftfont_driver.
13244
13245 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13246 font_make_object.
13247
13248 * w32font.c (w32font_open): Adjust it for the change of
13249 font_make_object.
13250 (w32font_open_internal): Don't set properties of font_object here.
13251
132522008-07-08 Chong Yidong <cyd@stupidchicken.com>
13253
13254 * macfns.c (x_create_tip_frame):
13255 * w32fns.c (x_create_tip_frame):
13256 * xfns.c (x_create_tip_frame): Pass parameter argument to
13257 face-set-after-frame-default.
13258
13259 * xfaces.c (Finternal_merge_in_global_face): Save merged
13260 attributes for the default face back into the face vector.
13261
132622008-07-08 Andreas Schwab <schwab@suse.de>
13263
13264 * fontset.h: Declare fontset_from_font. Don't declare
13265 new_fontset_from_font and fontset_from_font_name.
13266 * xterm.c: Include "fontset.h".
13267 * Makefile.in (xterm.o): Update dependencies.
13268
132692008-07-08 Glenn Morris <rgm@gnu.org>
13270
13271 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13272 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13273
132742008-07-07 Chong Yidong <cyd@stupidchicken.com>
13275
13276 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13277 (x_set_frame_parameters): Don't bind it.
13278
132792008-07-07 Juanma Barranquero <lekktu@gmail.com>
13280
13281 * w32fns.c (map_w32_filename): Declare extern.
13282
132832008-07-07 Jason Rumney <jasonr@gnu.org>
13284
13285 * w32term.c (WS_EX_LAYERED): Define if not already.
13286
132872008-07-06 Chong Yidong <cyd@stupidchicken.com>
13288
13289 * xfaces.c (set_font_frame_param): Don't try to set the font
13290 parameter if it is still unspecified in the lface.
13291
132922008-07-05 Chong Yidong <cyd@stupidchicken.com>
13293
13294 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13295 face if it didn't already exist.
13296
13297 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13298
132992008-07-05 Andreas Schwab <schwab@suse.de>
13300
13301 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13302
133032008-07-05 Chong Yidong <cyd@stupidchicken.com>
13304
13305 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13306 word-wrapping.
13307 (IT_DISPLAYING_WHITESPACE): New macro.
13308 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13309 when word-wrapping. Simplify word-wrapping logic. Use correct
13310 pixel positions when saving copies of the iterator.
13311 (display_line): Use proper wrap point if the last character on a
13312 line was preceded by whitespace.
13313
133142008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13315
13316 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13317
133182008-07-04 Kenichi Handa <handa@m17n.org>
13319
13320 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13321
13322 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13323
133242008-07-02 Jason Rumney <jasonr@gnu.org>
13325
13326 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13327 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13328
13329 * xdisp.c (next_element_from_display_vector): Move assignment out
13330 of if statement.
13331
133322008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13333
13334 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13335
13336 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13337 (syms_of_fileio): Initialize and export them.
13338 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13339
13340 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13341 (Fsystem_move_file_to_trash): New function.
13342 (syms_of_w32fns): Export it to lisp.
13343
133442008-07-01 Jason Rumney <jasonr@gnu.org>
13345
13346 * w32font.c (w32font_text_extents): Don't count overhang as part
13347 of width.
13348
133492008-06-30 Miles Bader <miles@gnu.org>
13350
13351 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13352 Add `avoid_cursor_p' field.
13353
13354 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13355 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13356 (append_glyph, append_composite_glyph, produce_image_glyph)
13357 (append_stretch_glyph): Initialize avoid_cursor_p.
13358 (get_it_property): Rename from `get_line_height_property'.
13359 (x_produce_glyphs): Use get_it_property.
13360 (handle_line_prefix, push_display_prop): New functions.
13361 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13362 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13363 New variables.
13364 (syms_of_xdisp): Initialize them.
13365
133662008-06-30 Kenichi Handa <handa@m17n.org>
13367
13368 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13369 XftDefaultSubstitute (they are called in XftFontMatch).
13370 (xftfont_open): Fix args to ftfont_font_format.
13371
13372 * ftfont.c (fc_charset_table): New member lang.
13373 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13374 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13375 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13376 (ftfont_open): Fix args to ftfont_font_format.
13377 (ftfont_font_format): New arg filename.
13378
133792008-06-30 Chong Yidong <cyd@stupidchicken.com>
13380
13381 * xfaces.c (Finternal_merge_in_global_face): If default face was
13382 modified, realize it again. Update the font face attribute.
13383
133842008-06-29 Jason Rumney <jasonr@gnu.org>
13385
13386 * w32term.c (x_set_frame_alpha): Fix logic.
13387
133882008-06-29 Kenichi Handa <handa@m17n.org>
13389
13390 * fontset.c (Finternal_char_font): Return font-object instead of
13391 font-name.
13392
13393 * composite.c (get_composition_id): Fix the width calculation for TAB.
13394
133952008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13396
13397 * indent.c (Fvertical_motion): Properly handle float column arg.
13398
133992008-06-28 Jason Rumney <jasonr@gnu.org>
13400
13401 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13402 (pfnSetLayeredWindowAttributes): New function pointer.
13403 (w32_initialize): Initialize it when supported.
13404 (x_set_frame_alpha): New function.
13405
13406 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13407 (w32_frame_parm_handlers): Set alpha handler.
13408
13409 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13410
134112008-06-27 Jason Rumney <jasonr@gnu.org>
13412
13413 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13414 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13415 (w32_to_x_charset, x_to_w32_charset)
13416 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13417 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13418 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13419 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13420 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13421 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13422 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13423 (Qw32_charset_unicode): Remove.
13424 (syms_of_w32fns): Update for above changes.
13425
13426 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13427 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13428 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13429 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13430 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13431 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13432 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13433 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13434 (syms_of_w32font): Update for above changes.
13435
134362008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13437
13438 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13439 removed #if.
13440 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13441
134422008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13443 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13444
13445 * makefile.w32-in (LOCAL_FLAGS):
13446 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13447
13448 * sysdep.c (_spawnlp, _getpid):
13449 Declare with explicit _cdecl instead of _CRTAPI1.
13450
13451 * editfns.c (Fget_internal_run_time):
13452 Check for WINDOWSNT with #ifdef, not #if.
13453
134542008-06-26 Jason Rumney <jasonr@gnu.org>
13455
13456 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13457
13458 * w32term.c (x_draw_glyph_string_foreground)
13459 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13460 Use FONT_HANDLE macro.
13461 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13462
13463 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13464 (uniscribe_encode_char): Use FONT_HANDLE macro.
13465
13466 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13467 (w32font_text_extents): Use precast w32_font.
13468 (w32font_close): Free cached metrics.
13469 (w32font_open_internal): Allocate space for name on stack.
13470
134712008-06-26 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13474
134752008-06-26 Jason Rumney <jasonr@gnu.org>
13476
13477 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13478 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13479
134802008-06-26 Juanma Barranquero <lekktu@gmail.com>
13481
13482 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13483
134842008-06-26 Jason Rumney <jasonr@gnu.org>
13485
13486 * w32bdf.c, w32bdf.h: Remove obsolete files.
13487
13488 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13489
13490 * w32gui.h: Don't include w32bdf.h.
13491 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13492 Remove obsolete font support.
13493
13494 * w32font.h (struct w32font_info): Remove compat_w32_font.
13495 Add hfont member.
13496 (FONT_COMPAT): Remove obsolete macro.
13497
13498 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13499 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13500 (w32font_open_internal): Remove compat code. Set new hfont member.
13501 (Fx_select_font): Use new hfont member.
13502
13503 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13504 (uniscribe_encode_char): Use new hfont member.
13505
13506 * w32term.c (x_draw_glyph_string_foreground)
13507 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13508 (x_draw_glyph_string): Use metrics in w32font_info.
13509
135102008-06-26 Kenichi Handa <handa@m17n.org>
13511
13512 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13513
135142008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13515
13516 * unexnext.c:
13517 * m/ews4800.h:
13518 * m/hp9000s300.h:
13519 * m/ibm370aix.h:
13520 * m/mips-siemens.h:
13521 * m/ncr386.h:
13522 * m/next.h:
13523 * m/pmax.h:
13524 * m/powerpcle.h:
13525 * m/tandem-s2.h:
13526 * s/386bsd.h:
13527 * s/bsd386.h:
13528 * s/bsd4-1.h:
13529 * s/bsd4-2.h:
13530 * s/bsdos2-1.h:
13531 * s/bsdos2.h:
13532 * s/bsdos3.h:
13533 * s/bsdos4.h:
13534 * s/nextstep.h:
13535 * s/ultrix4-3.h:
13536 * s/usg5-0.h:
13537 * s/usg5-2-2.h:
13538 * s/usg5-2.h:
13539 * s/usg5-4-3.h:
13540 * s/ux4800.h:
13541 * s/uxpds.h:
13542 * s/uxpv.h: Remove support for obsolete systems.
13543 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13544 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13545 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13546 Remove, insert contents in s/aix4-2.h.
13547 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13548 * s/bsd4-3.h: Rename to ...
13549 * s/bsd-common.h: ... this.
13550 * data.c:
13551 * doc.c:
13552 * ecrt0.c:
13553 * emacs.c:
13554 * fileio.c:
13555 * floatfns.c:
13556 * keyboard.c:
13557 * mem-limits.h:
13558 * print.c:
13559 * process.c:
13560 * sysdep.c:
13561 * syssignal.h:
13562 * systty.h:
13563 * syswait.h:
13564 * term.c:
13565 * unexec.c:
13566 * unexelf.c:
13567 * unexhp9k800.c:
13568 * m/hp800.h:
13569 * m/ibmrs6000.h:
13570 * m/mips.h:
13571 * m/vax.h:
13572 * s/darwin.h:
13573 * s/freebsd.h:
13574 * s/gnu.h:
13575 * s/ms-w32.h:
13576 * s/msdos.h:
13577 * s/netbsd.h:
13578 * s/template.h: Remove references to obsolete variables.
13579
13580 * Makefile.in: Add dependencies for all unexec files.
13581 (admindir): Remove unused variable.
13582 (UNEXEC_SRC): Remove references.
13583
135842008-06-25 Chong Yidong <cyd@stupidchicken.com>
13585
13586 * xfns.c (x_default_font_parameter): If Xft is available, first
13587 try Monospace-12 for the default font.
13588
135892008-06-25 Jason Rumney <jasonr@gnu.org>
13590
13591 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13592
135932008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13594
13595 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13596
13597 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13598
135992008-06-25 Juanma Barranquero <lekktu@gmail.com>
13600
13601 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13602 <scroll-conservatively>: Fix typo in docstring.
13603
13604 * xselect.c (Fx_send_client_event): Doc fix.
13605
136062008-06-25 Kenichi Handa <handa@m17n.org>
13607
13608 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13609
13610 * font.c (font_parse_fcname): Remove unused variables.
13611 (font_sort_entites): Delete the arg SPEC. Caller changed.
13612 Fix for the case of ! best_only.
13613 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13614
13615 * lisp.h (Fstring_to_unibyte): EXFUN it.
13616
13617 * character.h (str_to_unibyte): Extern it.
13618
13619 * character.c (str_to_unibyte): New function.
13620
13621 * fns.c (Fstring_to_unibyte): New function.
13622 (syms_of_fns): Defsubr it.
13623
136242008-06-24 Kenichi Handa <handa@m17n.org>
13625
13626 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13627 DPI too.
13628 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13629
136302008-06-24 Andreas Schwab <schwab@suse.de>
13631
13632 * Makefile.in (${lispsource}loaddefs.el): Rename from
13633 ../lisp/loaddefs.el.
13634 (bootstrap-clean): Do what distclean does but don't remove
13635 Makefile.
13636 (distclean): Depend on bootstrap-clean and remove Makefile.
13637
136382008-06-24 Chong Yidong <cyd@stupidchicken.com>
13639
13640 * buffer.h (struct buffer): New member word_wrap.
13641
13642 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13643 word-wrap.
13644 (init_buffer_once): Initialize them.
13645
13646 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13647 line_wrap enum possessing three possible values.
13648
13649 * termopts.h: Replace truncate_partial_width_windows with
13650 Vtruncate_partial_width_windows.
13651
13652 * dispnew.c (direct_output_for_insert): Avoid direct output when
13653 inserting a space with word wrap on.
13654
13655 * indent.c (compute_motion): Obey integer values of
13656 truncate-partial-width-windows.
13657
13658 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13659 replacing truncate_partial_width_windows.
13660 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13661 truncate only if the window width is below that integer.
13662 (start_display, resize_mini_window, produce_stretch_glyph)
13663 (display_string, move_it_in_display_line_to): Use line_wrap.
13664 (back_to_previous_visible_line_start, reseat_1): Reset
13665 string_from_display_prop_p.
13666 (display_line): Extend default face to end of line when wrapping.
13667
136682008-06-24 Kim F. Storm <storm@cua.dk>
13669
13670 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13671 to wrap continued lines at word boundaries.
13672
136732008-06-24 Jason Rumney <jasonr@gnu.org>
13674
13675 * font.c (Ffont_face_attributes): Multiply pixel size before point
13676 conversion to avoid multiplying rounding error.
13677
136782008-06-23 Jason Rumney <jasonr@gnu.org>
13679
13680 * w32term.c (x_draw_glyph_string_background)
13681 (x_draw_glyph_string): Remove old bdf font code.
13682
13683 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13684
136852008-06-22 Kenichi Handa <handa@m17n.org>
13686
13687 * font.c (font_find_for_lface): Try the adstyle specified in
13688 the property of LFACE_FONT of LFACE (if any).
13689
136902008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13691 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13692
13693 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13694
136952008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13696
13697 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13698 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13699 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13700 (witness-emacs): Remove.
13701 (lisp, shortlisp): Move loaddefs.el earlier.
13702 (mostlyclean): Forget about witness-emacs.
13703
137042008-06-22 Glenn Morris <rgm@gnu.org>
13705
13706 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13707 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13708
137092008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13710
13711 * Makefile.in (PRECOMP): Remove.
13712 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13713 (witness-emacs): Run `compile-first'.
13714 (.el.elc): Use the new compile-onefile target.
13715
137162008-06-21 Kenichi Handa <handa@m17n.org>
13717
13718 * xftfont.c (xftfont_open): Handle QCembolden only when
13719 FC_EMBOLDEN is defined.
13720
137212008-06-21 Andreas Schwab <schwab@suse.de>
13722
13723 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13724 (.el.elc): Likewise.
13725
137262008-06-21 Miles Bader <miles@gnu.org>
13727
13728 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13729 build dir, not the lisp source dir.
13730
137312008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13732
13733 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13734 (bootstrapclean): Remove.
13735 (.el.elc): New rule.
13736 (PRECOMP): New var.
13737 (../lisp/subdirs.el): Remove.
13738 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13739 (witness-emacs): New target.
13740 (mostlyclean): Remove witness-emacs as well.
13741 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13742 Add witness-emacs dependency.
13743
137442008-06-20 Chong Yidong <cyd@stupidchicken.com>
13745
13746 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13747 defined by the font.
13748
137492008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13750
13751 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13752 (bootstrap-clean): New target that keeps TAGS around.
13753 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13754 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13755
137562008-06-20 Jason Rumney <jasonr@gnu.org>
13757
13758 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13759 Remove obsolete font code.
13760
13761 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13762 to determine language support.
13763
137642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13765
13766 * sysdep.c (cfsetspeed): New fun extracted from the code.
13767 (cfmakeraw): Move before first use.
13768
137692008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13770
13771 * sysdep.c (cfmakeraw): Provide fallback implementation.
13772 (serial_configure): Provide fallback implementation of cfsetspeed.
13773
137742008-06-20 Kenichi Handa <handa@m17n.org>
13775
13776 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13777 the pattern.
13778
13779 * fontset.c (fontset_from_font): Copy font_spec before changing
13780 the elements.
13781
13782 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13783
137842008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13785
13786 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13787 for explicit `font' parameters.
13788
13789 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13790
137912008-06-19 Kenichi Handa <handa@m17n.org>
13792
13793 * frame.c: Include <ctype.h>.
13794 (x_set_font_backend): Allow spacing characters in the X resource
13795 for FontBackend.
13796
137972008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13798
13799 * w32fns.c, xfns.c (Qfont_param): New var.
13800 (syms_of_w32fns): Initialize it.
13801 (x_default_font_parameter): Record explicit `font' into
13802 `font-parameter'.
13803
138042008-06-18 Kenichi Handa <handa@m17n.org>
13805
13806 * font.c (font_parse_xlfd): Fix previous change.
13807 (font_parse_fcname): Don't use :fc-unknown-spec.
13808 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13809 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13810 (font_add_log): Prepend the driver name to the resulting fonts.
13811
13812 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13813 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13814 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13815
13816 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13817 (QCembolden): New variables.
13818 (syms_of_xftfont): DEFSYM them.
13819 (xftfont_open): Call XftFontMatch. Don't trust the result of
13820 XftTextExtents8 if the pixel_size is less than 5.
13821
138222008-06-18 Andreas Schwab <schwab@suse.de>
13823
13824 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13825 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13826
138272008-06-18 Jason Rumney <jasonr@gnu.org>
13828
13829 * w32font.c (w32font_list, w32font_match): Add logging.
13830
13831 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13832
138332008-06-17 Chong Yidong <cyd@stupidchicken.com>
13834
13835 * font.c (font_parse_fcname): Store divider characters for
13836 unknown-spec list. For known key symbols, intern using correct
13837 symbol name.
13838
138392008-06-17 Kenichi Handa <handa@m17n.org>
13840
13841 * xfaces.c (realize_default_face): If the frame is not on window
13842 system, set the fontset of face to nil.
13843
138442008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13845
13846 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13847
138482008-06-16 Juanma Barranquero <lekktu@gmail.com>
13849
13850 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13851 (build_font_name_from_vector): Delete externs.
13852
13853 * xfaces.c (struct font_name): Don't declare.
13854
138552008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13856
13857 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13858
138592008-06-16 Chong Yidong <cyd@stupidchicken.com>
13860
13861 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13862
138632008-06-16 Juanma Barranquero <lekktu@gmail.com>
13864
13865 * font.c (Ffont_spec): Fix usage in docstring.
13866 (Ffont_face_attributes): Doc fix.
13867
138682008-06-16 Andreas Schwab <schwab@suse.de>
13869
13870 * font.c (Ffont_face_attributes): Fix definition.
13871
138722008-06-16 Jason Rumney <jasonr@gnu.org>
13873
13874 * font.h (font_style_symbolic_from_value): Remove.
13875
13876 * font.c (font_style_symbolic_from_value): Remove.
13877 (font_style_symbolic): Revert to pre 2008-06-13 version.
13878
13879 * w32font.c (w32_to_fc_weight): New function.
13880 (w32font_full_name, logfont_to_fcname): Use it.
13881
138822008-06-16 Kenichi Handa <handa@m17n.org>
13883
13884 * font.c (font_check_object): Delete it.
13885 (font_clear_cache): Check if a font-object is alive.
13886 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13887 font-object to nil.
13888 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13889 (font_at): Don't call font_check_object.
13890 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13891
138922008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13893
13894 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13895
138962008-06-16 Chong Yidong <cyd@stupidchicken.com>
13897
13898 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13899
139002008-06-15 Chong Yidong <cyd@stupidchicken.com>
13901
13902 * font.c (font_parse_fcname): Only one decimal point.
13903 (font_unparse_fcname): Handle data in family and foundry indices
13904 as symbols, not strings.
13905 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13906
13907 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13908
13909 * font.h (font_unparse_gtkname): Add prototype.
13910
139112008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13912
13913 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13914
139152008-06-15 Andreas Schwab <schwab@suse.de>
13916
13917 * font.c (font_update_drivers): Fix crash when no drivers match.
13918
139192008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13920
13921 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13922 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13923
139242008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13925
13926 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13927
139282008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13929
13930 * process.c (Fserial_process_configure, Fprocess_send_eof):
13931 Use EQ to compare Lisp_Objects.
13932
139332008-06-13 Jason Rumney <jasonr@gnu.org>
13934
13935 * w32fns.c (Fw32_select_font): Remove old font API function.
13936
13937 * w32font.c (logfont_to_fcname): New function.
13938 (Fx_select_font): New font dialog function compatible with
13939 GTK/fontconfig version.
13940
13941 * font.c (font_style_symbolic_from_value): New function.
13942 (font_style_symbolic): Use it.
13943
13944 * font.h (font_style_symbolic_from_value): Declare new function.
13945
139462008-06-13 Juanma Barranquero <lekktu@gmail.com>
13947
13948 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13949 <font-width-table>: Fix typos in docstrings.
13950
139512008-06-13 Daniel Engeler <engeler@gmail.com>
13952
13953 These changes add serial port access.
13954 * process.c: Add HAVE_SERIAL.
13955 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13956 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13957 (list_processes_1, select_wrapper, Fstop_process)
13958 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13959 (status_notify): Modify to handle serial processes.
13960 [HAVE_SERIAL] (Fserial_process_configure)
13961 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13962 New functions.
13963 * process.h (struct Lisp_Process): Add `type'.
13964 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13965 New functions.
13966 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13967 serial ports.
b71ac3dd 13968 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13969 * w32.h: Add FILE_SERIAL.
13970 (struct _child_process): Add ovl_read, ovl_write.
13971
139722008-06-13 Kenichi Handa <handa@m17n.org>
13973
13974 * dispextern.h (enum lface_attribute_index): New member
13975 LFACE_FOUNDRY_INDEX.
13976
13977 * font.c (font_score): Delete arg alternate_families. Check only
13978 weight, slant, width, and size. Ignore the difference of alias
13979 style symbols.
13980 (font_sort_entites): Adjust for the above change. Reflect the
13981 order of font-driver to scores.
13982 (font_list_entities): Don't check alternate_familes here.
13983 (font_clear_prop): Handle foundry.
13984 (font_update_lface): Don't parse "foundry-family" form here.
13985 Handle FONT_FOUNDRY_INDEX.
13986 (font_find_for_lface): Likewise. Handle alternate families here.
13987 If registry is nil, try iso8859-1 and ascii-0.
13988 (font_open_for_lface): Pay attention to size in ENTITY.
13989 (font_open_by_name): Simplify by calling font_load_for_lface.
13990 (free_font_driver_list): Delete it.
13991 (font_update_drivers): Preserve the order of backends.
13992 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13993 of font_score and font_sort_entites.
13994 (font_update_sort_order): Likewise.
13995
13996 * xfaces.c (LFACE_FOUNDRY): New macro.
13997 (check_lface_attrs): Check foundry.
13998 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13999 (merge_face_vectors): Check foundry.
14000 (merge_face_ref): Likewise.
14001 (Finternal_set_lisp_face_attribute): Likewise.
14002 (x_update_menu_appearance): Likewise.
14003 (Finternal_get_lisp_face_attribute): Likewise.
14004 (lface_hash): Likewise.
14005 (lface_same_font_attributes_p): Likewise.
14006 (x_supports_face_attributes_p): Likewise.
14007 (tty_supports_face_attributes_p): Likewise.
14008 (Finternal_set_alternative_font_family_alist): Intern strings.
14009 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14010 (realize_default_face): Set LFACE_FOUNDRY (lface).
14011
14012 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14013 font-driver at first.
14014
14015 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14016
140172008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14018
14019 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14020
140212008-06-12 Jim Meyering <meyering@redhat.com>
14022
14023 Make unexec_free handle NULL the same way free does.
14024 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14025
140262008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14027
14028 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14029 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14030 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14031 (WEAK_ALIAS): Simplify.
14032 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14033 when searching a unibyte buffer.
14034
140352008-06-12 Chong Yidong <cyd@stupidchicken.com>
14036
14037 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14038
140392008-06-12 Juanma Barranquero <lekktu@gmail.com>
14040
14041 * w32font.c: Include ctype.h.
14042
140432008-06-11 Jason Rumney <jasonr@gnu.org>
14044
14045 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14046 misreported as space.
14047 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14048 as aliases for registry iso10646-1.
14049
140502008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14051
14052 * buffer.c (clone_per_buffer_values): Skip `name'.
14053
140542008-06-11 Chong Yidong <cyd@stupidchicken.com>
14055
14056 * font.c (font_parse_fcname): Fix last change; accept decimal
14057 points in font size.
14058
140592008-06-10 Jason Rumney <jasonr@gnu.org>
14060
14061 * w32uniscribe.c (add_opentype_font_name_to_list):
14062 Skip non unicode fonts.
14063
140642008-06-10 Chong Yidong <cyd@stupidchicken.com>
14065
14066 * xfns.c (Fx_font_dialog): New function.
14067
14068 * gtkutil.c (xg_dialog_response_cb): Rename from
14069 xg_file_response_callback.
14070 (pop_down_dialog): Rename from pop_down_file_dialog.
14071 (xg_get_file_name): Callers changed.
14072 (xg_get_font_name): New function.
14073
14074 * gtkutil.h (xg_get_font_name): Insert prototype.
14075
140762008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14077
14078 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14079 x_underline_minimum_display_offset.
14080 (syms_of_xdisp): Declare it here rather than in xterm.c.
14081 * dispextern.h (underline_minimum_offset): Declare it.
14082 * w32term.c (x_draw_glyph_string): Use it.
14083 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14084 (syms_of_xterm): Don't declare it any more.
14085 (x_draw_glyph_string): Adjust to the new name.
14086
8719abec 140872008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14088
14089 * xterm.c (x_underline_minimum_display_offset): New var.
14090 (x_draw_glyph_string): Use it.
14091 (syms_of_xterm): Declare it.
14092
140932008-06-10 Chong Yidong <cyd@stupidchicken.com>
14094
14095 * font.c (font_parse_fcname): Accept GTK-style font names too.
14096
140972008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14098
14099 * dired.c (file_name_completion): Don't return t if the match is exact
14100 but with different capitalization.
14101 * minibuf.c (Ftry_completion): Simplify.
14102
14103 * window.c (Vwindow_point_insertion_type): New var.
14104 (set_window_buffer): Use it.
14105 (syms_of_window): Init and export it to Lisp.
14106
141072008-06-10 Kenichi Handa <handa@m17n.org>
14108
14109 * font.h (font_intern_prop): Prototype adjusted.
14110
14111 * font.c (font_intern_prop): New arg force_symbol.
14112 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14113 Adjust for the change of font_intern_prop.
14114
14115 * ftfont.c (ftfont_pattern_entity):
14116 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14117 (w32_registry):
14118 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14119 the change of font_intern_prop.
14120
141212008-06-09 Juanma Barranquero <lekktu@gmail.com>
14122
14123 * w32menu.c (digest_single_submenu): Declare extern.
14124
141252008-06-09 Jason Rumney <jasonr@gnu.org>
14126
14127 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14128
14129 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14130 (parse_single_submenu): Remove.
14131 (digest_single_submenu): Remove.
14132 (syms_of_w32menu): Don't initialise variables that have moved
14133 to menu.c.
14134 (set_frame_menubar): Sync with version in xmenu.c.
14135 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14136
14137 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14138 Make static again.
14139
141402008-06-09 Jason Rumney <jasonr@gnu.org>
14141
14142 Changes to w32 files related to the move of common menu code
14143 to menu.c on 2008-06-08 by Chong Yidong.
14144
14145 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14146 defs to w32gui.h.
14147 (single_keymap_panes, push_menu_item, push_menu_pane):
14148 Make globally visible.
14149
14150 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14151 (local_free, malloc_widget_value, free_widget_value)
14152 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14153 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14154 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14155 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14156 (menu_items, menu_items_allocated, menu_items_used)
14157 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14158 (init_menu_items, finish_menu_items, discard_menu_items)
14159 (grow_menu_items, push_submenu_start, push_submenu_end)
14160 (push_left_right_boundary, push_menu_pane, push_menu_item)
14161 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14162 (free_menubar_widget_tree_value, parse_single_submenu)
14163 (update_submenu_strings): Remove functions.
14164 (xmalloc_widget_value): Remove and declare extern.
14165
14166 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14167 (OBJ1): Build it.
14168
14169 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14170 (local_heap, local_alloc, local_free, malloc_widget_value)
14171 (free_widget_value): Define here.
14172
141732008-06-09 Kenichi Handa <handa@m17n.org>
14174
14175 * font.h (Qascii_0): Extern it.
14176
14177 * font.c (Qascii_0): New variable.
14178 (syms_of_font): DEFSYM it.
14179 (font_open_by_name): If the registry "iso8859-1" fails, try also
14180 "ascii-0".
14181
14182 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14183
141842008-06-08 Kenichi Handa <handa@m17n.org>
14185
14186 * .gdbinit (xfont): New command.
14187
141882008-06-08 Andreas Schwab <schwab@suse.de>
14189
14190 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14191 * Makefile.in (menu.o): Update dependencies.
14192
14193 * Makefile.in (obj): Always add menu.o.
14194 * emacs.c (main): Always call syms_of_menu.
14195 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14196
141972008-06-08 Chong Yidong <cyd@stupidchicken.com>
14198
14199 * Makefile.in: Compile menu.c.
14200
14201 * lisp.h: Declare syms_of_menu.
14202
14203 * emacs.c (main): Call syms_of_menu.
14204
14205 * keyboard.h: Relocate platform-independent menu definitions from
14206 xmenu.c.
14207
14208 * menu.c: New file. Relocate platform-independent menu
14209 definitions from xmenu.c. Suggested by Adrian Robert.
14210
14211 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14212 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14213 (menu_items_used, menu_items_n_panes)
14214 (menu_items_submenu_depth): Move to keyboard.h.
14215 (init_menu_items, finish_menu_items, unuse_menu_items)
14216 (discard_menu_items, restore_menu_items, save_menu_items)
14217 (grow_menu_items, push_submenu_start, push_submenu_end)
14218 (push_left_right_boundary, push_menu_pane, push_menu_item)
14219 (keymap_panes, single_keymap_panes, single_menu_item)
14220 (list_of_panes, list_of_items, find_and_call_menu_selection)
14221 (xmalloc_widget_value, free_menubar_widget_value_tree)
14222 (parse_single_submenu, digest_single_submenu)
14223 (update_submenu_strings): Move to menu.c.
14224
142252008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14226
14227 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14228
142292008-06-06 Miles Bader <miles@gnu.org>
14230
14231 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14232 face, not frame default.
14233
142342008-06-05 Martin Rudalics <rudalics@gmx.at>
14235
14236 * window.c (pop_up_windows, pop_up_frames)
14237 (display_buffer_reuse_frames, Vpop_up_frame_function)
14238 (Vdisplay_buffer_function, Veven_window_heights)
14239 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14240 (Vspecial_display_function, Vsame_window_buffer_names)
14241 (Vsame_window_regexps, split_height_threshold)
14242 (Vsplit_window_preferred_function): Move those vars to window.el.
14243 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14244 (Fdisplay_buffer): Move those functions to window.el.
14245 (syms_of_window): Remove corresponding declarations.
14246 (display_buffer): New function.
14247 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14248 * dispnew.c (Flast_nonminibuf_frame): New function.
14249 * buffer.c (Fpop_to_buffer): Move to window.el.
14250
142512008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14252
14253 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14254
142552008-06-05 Kenichi Handa <handa@m17n.org>
14256
14257 * coding.c (detect_coding): Fix previous change.
14258 (detect_coding_system): Likewise.
14259
142602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14261
14262 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14263
14264 * keymap.c (Vminibuffer_local_filename_must_match_map):
14265 Rename from Vminibuffer_local_must_match_filename_map.
14266 (syms_of_keymap):
14267 * minibuf.c (Fcompleting_read): Adjust accordingly.
14268 * commands.h: Rename declaration as well.
14269
142702008-06-05 Kenichi Handa <handa@m17n.org>
14271
14272 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14273 family name.
14274 (Ffont_put): Likewise.
14275
14276 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14277 current font-spec.
14278
14279 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14280 is unspecified.
14281
14282 * xfaces.c (realize_x_face): If the font-related face attributes
14283 are the same as those of default face, realize a new fontset from
14284 default->fontset.
14285 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14286
142872008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14288
14289 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14290 (move_it_in_display_line): New wrapper.
14291
14292 * window.c (window_scroll_pixel_based_preserve_x)
14293 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14294 (window_scroll_pixel_based, window_scroll_line_based):
14295 Use them to preserve column positions.
14296 (syms_of_window): Initialize them.
14297
14298 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14299 (HPOS . VPOS) pair.
14300
14301 * dispextern.h (move_it_in_display_line): Declare.
14302
143032008-06-05 Juanma Barranquero <lekktu@gmail.com>
14304
14305 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14306 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14307 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14308
143092008-06-04 Juanma Barranquero <lekktu@gmail.com>
14310
14311 * window.c (Fset_window_parameter): Doc fix.
14312 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14313
143142008-06-04 Joakim Verona <joakim@verona.se>
14315
14316 * window.h (struct window): Add new member window_parameters.
14317
14318 * window.c (Fwindow_parameters, Fwindow_parameter)
14319 (Fset_window_parameter): New defuns.
14320 (syms_of_window): Defsubr the new defuns.
14321 (make_window): Initialize window_parameters to nil.
14322
143232008-06-04 John Paul Wallington <jpw@pobox.com>
14324
14325 * eval.c (Fdefmacro): Doc fix.
14326
143272008-06-04 Kenichi Handa <handa@m17n.org>
14328
14329 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14330 Be sure to call setup_coding_system when we find a proper coding system.
14331 (detect_coding_system): Fix handling of coding->head_ascii.
14332
143332008-06-03 Andreas Schwab <schwab@suse.de>
14334
14335 * font.c (font_prop_validate_spacing): Fix last change.
14336
143372008-06-03 Kenichi Handa <handa@m17n.org>
14338
14339 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14340 (font_parse_fcname): Fix handling of unknown key.
14341
14342 * xfont.c (xfont_list): Try an alias.
14343
14344 * charset.c (char_charset): Return NULL if the arg charset_list is
14345 specified and C doesn't belong to any of them.
14346
143472008-06-02 Chip Coldwell <coldwell@redhat.com>
14348
14349 * font.c (font_pixel_size): Don't take cdr of an integer.
14350
143512008-06-02 Jim Meyering <meyering@redhat.com>
14352
14353 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14354 * alloc.c (xfree): Return right away for a NULL arg.
14355 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14356 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14357 * mac.c (create_apple_event_from_event_ref): Likewise.
14358 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14359 Likewise.
14360 * doprnt.c (doprnt1): Likewise.
14361 * frame.c (frame): Likewise.
14362 * keyboard.c (wipe_kboard): Likewise.
14363 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14364 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14365 * term.c (tty_default_color_capabilities, maybe_fatal)
14366 (delete_tty): Likewise.
14367 * w16select.c (string): Likewise.
14368 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14369 * w32bdf.c (w32_free_bdf_font): Likewise.
14370 * w32fns.c (w32_unload_font): Likewise.
14371 * w32font.c (w32font_close): Likewise.
14372 * window.c (size_window): Likewise.
14373 * xselect.c (receive_incremental_selection): Likewise.
14374 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14375 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14376 * w32.c (stat): Likewise.
14377
14378 Remove useless if-before-free tests.
14379 * editfns.c (Fset_time_zone_rule): Likewise.
14380 * lread.c (nosuffix): Likewise.
14381 * ralloc.c (get_bloc): Likewise.
14382 * regex.c (reg_free): Likewise.
14383 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14384 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14385 * xsmfns.c (smc_save_yourself_CB): Likewise.
14386
143872008-06-02 Kenichi Handa <handa@m17n.org>
14388
14389 * font.c (font_find_for_lface): Handle float font size.
14390 (font_open_for_lface): Likewise.
14391
14392 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14393 comparing the properties.
14394
143952008-06-01 Jason Rumney <jasonr@gnu.org>
14396
14397 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14398 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14399 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14400 Don't add empty script list.
14401 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14402
144032008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14404
14405 * Makefile.in (dot, dotdot): Remove, update users.
14406 ".." has been used elsewhere in the file for a long time.
14407 (LIBXT_STATIC): Remove conditional based on unused variable.
14408
144092008-06-01 Miles Bader <miles@gnu.org>
14410
14411 * xfaces.c (Vface_remapping_alist): New variable.
14412 (syms_of_xfaces): Initialize it.
14413 (enum named_merge_point_kind): New type.
14414 (struct named_merge_point): Add `named_merge_point_kind' field.
14415 (push_named_merge_point): Make cycle detection respect different
14416 named-merge-point kinds.
14417 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14418 Remove face-name alias resolution.
14419 (lface_from_face_name): New definition using
14420 `lface_from_face_name_no_resolve'.
14421 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14422 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14423 (get_lface_attributes): New definition that layers face-remapping on
14424 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14425 (lookup_basic_face): New function.
14426 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14427 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14428 `get_lface_attributes'.
14429 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14430 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14431 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14432
14433 * xdisp.c (init_iterator): Pass base_face_id through
14434 `lookup_basic_face' when we actually use it as a face-id.
14435 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14436 DEFAULT_FACE_ID.
14437
14438 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14439 lookup the initial face-id.
14440
14441 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14442
144432008-06-01 Juanma Barranquero <lekktu@gmail.com>
14444
14445 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14446 (Fremove_text_properties): Fix typos in docstrings.
14447
144482008-05-31 Kenichi Handa <handa@m17n.org>
14449
14450 * font.c (font_list_entities): Fix the car part of data to be
14451 stored in the cache.
14452
14453 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14454
144552008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14456
14457 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14458 Add a `test' argument so another predicate than `equal' can be used.
14459 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14460 (map_char_table): Remove unused vars `c' and `i'.
14461 * lisp.h (Foptimize_char_table): Adjust declaration.
14462 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14463
144642008-05-30 Kenichi Handa <handa@m17n.org>
14465
14466 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14467 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14468 defined.
14469
144702008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14471
14472 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14473 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14474 frame-local settings for the same variable.
14475
144762008-05-30 Kenichi Handa <handa@m17n.org>
14477
14478 * fontset.c (Ffont_info): Move to font.c.
14479 (syms_of_fontset): Delete defsubr of Sfont_info.
14480
14481 * font.c (font_style_to_value, font_score): Delete casting of the
14482 args to xstcasecmp.
14483 (register_font_driver): Increment num_font_drivers only when
14484 registering the driver globally.
14485 (Ffont_info): Move from fontset.c. Handle a font object too.
14486 (syms_of_font): Defsubr Sfont_info.
14487
144882008-05-29 Kenichi Handa <handa@m17n.org>
14489
14490 * coding.h (enum define_coding_utf8_arg_index): New enum.
14491 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14492 coding_attr_utf_bom.
14493 (enum utf_bom_type): Rename from utf_16_bom_type.
14494 (struct utf_16_spec): Adjust for the above change.
14495 (struct coding_system): Add utf_8_bom in `spec' union.
14496
14497 * coding.c (CODING_UTF_8_BOM): New macro.
14498 (enum coding_category): Delete coding_category_utf_8, add
14499 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14500 coding_category_utf_8_sig.
14501 (CATEGORY_MASK_UTF_8): Delete it.
14502 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14503 (CATEGORY_MASK_UTF_8_SIG): New macros.
14504 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14505 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14506 CATEGORY_MASK_UTF_8_SIG.
14507 (CATEGORY_MASK_UTF_8): New macro.
14508 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14509 (detect_coding_utf_8): Check BOM.
14510 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14511 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14512 (encode_coding_utf_16): Likewise.
14513 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14514 (detect_coding, detect_coding_system): Handle utf-8-auto.
14515 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14516 (syms_of_coding): Fix setting up of Vcoding_category_table.
14517
145182008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14519
14520 * process.c (Faccept_process_output): If `millisec' is non-nil,
14521 `seconds' default to 0.
14522 (wait_reading_process_output): Also return non-nil if we read output
14523 from a non-running process.
14524
145252008-05-29 Jason Rumney <jasonr@gnu.org>
14526
14527 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14528 `raster' specified.
14529 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14530 in the uniscribe backend, but disallow any font that has no
14531 unicode subrange support.
14532
145332008-05-29 Juanma Barranquero <lekktu@gmail.com>
14534
14535 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14536 Fix typos in docstrings.
14537
145382008-05-29 Kenichi Handa <handa@m17n.org>
14539
14540 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14541 (Fx_family_fonts): Set frame correctly.
14542
145432008-05-28 Jason Rumney <jasonr@gnu.org>
14544
14545 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14546
145472008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14548
14549 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14550 calling build_annotations.
14551
145522008-05-28 Juanma Barranquero <lekktu@gmail.com>
14553
14554 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14555 (Fencode_coding_string):
14556 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14557 <latin-extra-code-table>: Fix typos in docstrings.
14558 (syms_of_coding) <coding-system-alist>: Doc fix.
14559 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14560
145612008-05-28 Kenichi Handa <handa@m17n.org>
14562
14563 * fontset.c (Ffont_info): Don't call font_close_object.
14564
14565 * font.c (font_parse_family_registry): Use Ffont_put to validate
14566 foundry and family.
14567 (font_delete_unmatched): Don't check spacing.
14568 (font_list_entities): Add spacing to the spec to list fonts.
14569
14570 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14571 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14572
14573 * coding.c (encode_coding_raw_text): Fix previous change.
14574 (encode_coding_object): When the dst_object is a buffer and is
14575 different from src_object, move gap to PT.
14576
145772008-05-27 Chong Yidong <cyd@stupidchicken.com>
14578
14579 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14580
145812008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14582
14583 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14584 all branches. Compute it differently.
14585
14586 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14587
145882008-05-27 Juanma Barranquero <lekktu@gmail.com>
14589
14590 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14591 into "else if () ... else ...".
14592
145932008-05-27 Jason Rumney <jasonr@gnu.org>
14594
14595 * w32font.c (w32font_open_internal): Determine if glyph indices
14596 are likely to work here.
14597
145982008-05-27 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14601 draw overlap glyphs with appropriate highlighting.
14602
146032008-05-27 Kenichi Handa <handa@m17n.org>
14604
14605 * xfont.c (xfont_open): Fix calculation of font->average_width.
14606
146072008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14608
14609 * casefiddle.c (casify_object): Try to guess better whether the
14610 argument is a byte or a char.
14611
146122008-05-26 Andreas Schwab <schwab@suse.de>
14613
14614 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14615 Always send multiples of format size.
14616
14617 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14618
146192008-05-26 Jason Rumney <jasonr@gnu.org>
14620
14621 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14622 (compute_metrics): Don't set failure if we just cleared the cache.
14623 (w32_weight_table): Remove unused variable.
14624 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14625 backwards compatibility.
14626
146272008-05-25 Kenichi Handa <handa@m17n.org>
14628
14629 * w32term.c (x_draw_glyph_string):
14630 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14631
14632 * xfaces.c: Delete unused function prototypes.
14633 (xstrlwr, font_frame): Delete them.
14634 (clear_face_cache): Delete unused variable.
14635
14636 * xftfont.c (xftfont_open): Delete unused variable.
14637 If underline_thickness is not 1, adjust underline_position.
14638
14639 * ftxfont.c (ftxfont_open): Delete unused variable.
14640
14641 * fontset.c (face_for_char): Optimize for the case of no charset
14642 property.
14643
14644 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14645 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14646 (otf_open, font_otf_capability, generate_otf_features)
14647 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14648 Comment out by surrounding "#if 0" and "#endif" for the moment.
14649 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14650 (syms_of_font): Codes for accessing above commented out.
14651
146522008-05-24 Eli Zaretskii <eliz@gnu.org>
14653
14654 * w32proc.c: Include dispextern.h.
14655
14656 * w32.c: Include dispextern.h.
14657
146582008-05-23 Juanma Barranquero <lekktu@gmail.com>
14659
14660 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14661 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14662 Fix typos in docstrings.
14663
146642008-05-23 Jason Rumney <jasonr@gnu.org>
14665
14666 * xsmfns.c: Remove includes that are already included by config.h.
14667
146682008-05-23 Kenichi Handa <handa@m17n.org>
14669
14670 * charset.c (Qemacs, charset_emacs): New variables.
14671 (char_charset): Fix for non-Unicode characters.
14672 (syms_of_charset): Define charset_emacs.
14673
14674 * w32term.c (x_draw_glyph_string): Be sure to update
14675 s->underline_thickness and s->underline_position. Be sure to draw
14676 underline within the current line area.
14677
14678 * xterm.c (x_draw_glyph_string): Be sure to update
14679 s->underline_thickness and s->underline_position. Be sure to draw
14680 underline within the current line area.
14681
14682 * fontset.c: Delete unused variables and add casting for char *
14683 throughout the file.
14684 (fontset_font): Try the fallback fonts of the current fontset
14685 before consulting the default fontset.
14686
14687 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14688
14689 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14690
146912008-05-22 Jason Rumney <jasonr@gnu.org>
14692
14693 * font.c: Don't include strings.h.
14694
14695 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14696
14697 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14698 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14699 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14700 to call xstrcasecmp.
14701
14702 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14703
14704 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14705
14706 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14707
14708 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14709
147102008-05-22 Kenichi Handa <handa@m17n.org>
14711
14712 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14713
14714 * font.c (font_prop_validate_style): Adjust for the format
14715 change of font_style_table.
14716
14717 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14718 two args.
14719
14720 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14721 two args.
14722
147232008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14724
14725 * minibuf.c (keys_of_minibuf): Delete.
14726 * lisp.h (keys_of_minibuf): Delete.
14727 * emacs.c (main): Don't call keys_of_minibuf.
14728
147292008-05-22 Kenichi Handa <handa@m17n.org>
14730
14731 * ftfont.c (ftfont_resolve_generic_family): Rename from
14732 ftfont_list_generic_family. Return a single family for each
14733 generic family.
14734 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14735 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14736 Call font_add_log.
14737 (ftfont_match): Call font_add_log.
14738
14739 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14740 (FONT_DEBUG): Define it.
14741 (font_add_log): Extern it.
14742 (font_assert): Rename from xassert.
14743
14744 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14745 (xfont_list_family): Call font_add_log.
14746 (xfont_match): Likewise.
14747 (memq_no_quit): Delete.
14748
14749 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14750 call of Ffont_xlfd_name.
14751
14752 * xfaces.c (struct table_entry, slant_table, weight_table)
14753 (swidth_table): Move to font.c.
14754
14755 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14756 xassert are changed to font_assert. Delete many unused variables.
14757 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14758 New variables.
14759 (struct table_entry): Move from xfaces.c and modified.
14760 (weight_table, slant_table, width_table): Move from xfaces.c and
14761 contents adjusted for the change of struct table_entry.
14762 (font_style_to_value, font_style_symbolic): Adjust for the
14763 format change of font_style_table.
14764 (font_parse_family_registry): Don't overwrite existing foundry and
14765 family of font_spec.
14766 (font_score): Fix calculation of diff for sizes.
14767 (font_sort_entites): Call font_add_log.
14768 (font_delete_unmatched): Return a newly created list.
14769 (font_list_entities): Fix previous change. Call font_add_log.
14770 (font_matching_entity, font_open_entity, font_close_entity):
14771 Call font_add_log.
14772 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14773 (Finternal_set_font_style_table): Delete.
14774 (BUILD_STYLE_TABLE): New macro.
14775 (build_style_table): New function.
14776 (Vfont_log, font_log_env_checked): New variables.
14777 (font_add_log): New function.
14778 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14779 Declare Lisp variables "font-weight-table", "font-slant-table",
14780 "font-width-table", and "font-log". Initialize font_style_table.
14781
147822008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14783
14784 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14785
147862008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14787 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14788
14789 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14790 (Vframe_alpha_lower_limit): New variable.
14791 (x_set_alpha): New function.
14792
14793 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14794
14795 * xfns.c (x-create-frame, Qalpha):
14796 Initialize the frame parameter `alpha'.
14797 * xterm.c (OPAQUE, OPACITY): New.
14798 (x_set_frame_alpha): New function.
14799 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14800
14801 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14802 * w32fns.c (w32_frame_parm_handlers): Likewise.
14803
148042008-05-20 Jason Rumney <jasonr@gnu.org>
14805
14806 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14807 truetype fonts to opentype list.
14808
148092008-05-20 Juanma Barranquero <lekktu@gmail.com>
14810
14811 * fontset.c (Ffontset_info): Doc fix.
14812 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14813 <ignore-relative-composition>: Fix typos in docstrings.
14814
14815 * font.c (syms-of-font) <font-encoding-alist>:
14816 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14817 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14818 (Ffont_otf_alternates): Doc fixes.
14819
148202008-05-20 Kenichi Handa <handa@m17n.org>
14821
14822 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14823 font.h through out the file.
14824 (FONT_DRIVERS): Rename from FONTOBJ.
14825 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14826 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14827
14828 * emacs.c (main): Call syms_of_font unconditionally.
14829
14830 * font.h (find_font_encoding): Extern it.
14831
14832 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14833 fontset.c.
194d44e7 14834 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14835 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14836 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14837 only when HAVE_WINDOW_SYSTEM is defined.
14838 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14839 when HAVE_WINDOW_SYSTEM is defined.
14840
14841 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14842 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14843
14844 * xfaces.c: Include font.h unconditionally.
14845 (merge_face_ref, merge_face_vectors)
14846 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14847
148482008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14849
14850 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14851 indirect_variable.
14852 * eval.c (lisp_indirect_variable): New fun.
14853 (Fuser_variable_p): Use it.
14854
148552008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14856
14857 * lisp.h (indirect_variable):
14858 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14859 Use Lisp_Symbol pointers rather than Lisp_Object.
14860 Adjust callers.
14861 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14862 To this end, change calling-convention.
14863
14864 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14865 if some non-hidden buffers are selected by string&pred.
14866
148672008-05-19 Chong Yidong <cyd@stupidchicken.com>
14868
14869 * process.c (wait_reading_process_output): Always check status
14870 when in batch mode.
14871
148722008-05-19 Kenichi Handa <handa@m17n.org>
14873
14874 * font.c (font_list_entities): Fix handling of cache.
14875 (font_matching_entity): Likewise.
14876
14877 * ftfont.c (cs_iso8859_1): Delete.
14878 (ft_face_cache): New variable.
14879 (struct ftfont_info): New member fc_charset_idx.
14880 (ftfont_build_basic_charsets): Delete.
14881 (fc_charset_table): New variable.
14882 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14883 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14884 Callers changed.
14885 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14886 (ftfont_spec_pattern): New argument fc_charset_idx.
14887 Check registry more rigidly. Change callers.
14888 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14889 change of :font-entity property of the font.
14890
14891 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14892 property of the font.
14893
148942008-05-18 Juanma Barranquero <lekktu@gmail.com>
14895
14896 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14897 (Funencodable_char_position, Fcheck_coding_systems_region)
14898 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14899 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14900 (Ffind_operation_coding_system, Fset_coding_system_priority)
14901 (Fcoding_system_eol_type): Doc fixes.
14902
149032008-05-17 Glenn Morris <rgm@gnu.org>
14904
14905 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14906
149072008-05-16 Eli Zaretskii <eliz@gnu.org>
14908
14909 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14910 and st_gid.
14911
14912 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14913 HAVE_WINDOW_SYSTEM is not defined.
14914
14915 * xfaces.c (merge_face_ref, merge_face_vectors)
14916 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14917 HAVE_WINDOW_SYSTEM is defined.
14918 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14919
149202008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14921
14922 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14923
149242008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14925
14926 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14927
149282008-05-15 Kenichi Handa <handa@m17n.org>
14929
14930 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14931 preference.
14932
149332008-05-15 Glenn Morris <rgm@gnu.org>
14934
14935 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14936
149372008-05-15 Chong Yidong <cyd@stupidchicken.com>
14938
14939 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14940 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14941
14942 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14943
149442008-05-15 Kenichi Handa <handa@m17n.org>
14945
14946 * ftfont.c (ftfont_list): Downcase family name to check generic
14947 families.
14948
14949 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14950 font-spec for QCfont value.
14951
14952 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14953 buffer. Check the return value of it.
14954
149552008-05-14 Jason Rumney <jasonr@gnu.org>
14956
14957 * w32term.c (w32_get_glyph_overhangs): Remove.
14958 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14959
149602008-05-14 Kenichi Handa <handa@m17n.org>
14961
14962 * font.c (font_prop_validate): Make nil a valid value.
14963 (font_clear_cache): Check if the cached vector of entities is nil
14964 or not.
14965
149662008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14967
14968 * emacs.c (main_thread): Conditionalize on
14969 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14970 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14971
14972 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14973 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14974 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14975
149762008-05-14 Kenichi Handa <handa@m17n.org>
14977
14978 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14979 has no corresponding coding system.
14980
149812008-05-14 Jason Rumney <jasonr@gnu.org>
14982
14983 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14984
14985 * w32font.h (w32font_open_internal): Update declaration.
14986
14987 * w32font.c (w32font_open_internal): Change last argument from
14988 w32font_info struct to font object. Fill in font object from
14989 font_entity. Get Outline metrics if possible. Use them to
14990 calculate underline position and thickness. Use xlfd name as name
14991 property. Don't set codepage.
14992 (w32font_open): Pass font_object to w32font_open_internal. Don't
14993 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14994 (w32font_draw): Use s->font.
14995 (clear_cached_metrics): Don't clear non-existent blocks.
14996
14997 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14998 font was not found.
14999 (x_draw_glyph_string): Use underline position and thickness from font.
15000
15001 * w32uniscribe.c (uniscribe_open): Pass font_object to
15002 w32font_open_internal.
15003
150042008-05-14 Kenichi Handa <handa@m17n.org>
15005
15006 These changes are to delete all legacy font-handling codes, and
15007 make Emacs use only font-backends.
15008
15009 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15010 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15011
15012 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15013
15014 * charset.h (Vcharset_non_preferred_head)
15015 (Vcurrent_iso639_language): Extern them.
15016
15017 * charset.c (Vcharset_non_preferred_head): New variable.
15018 (Vcurrent_iso639_language): New variable.
15019 (syms_of_charset): Declare it as a Lisp variable.
15020 (char_charset): Don't check non preferred charsets. As a last
15021 resort, return charset_unicode.
15022 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15023
15024 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15025 conditionals. Don't check enable_font_backend. Delete all codes
15026 used only when USE_FONT_BACKEND is not defined.
15027
15028 * dispextern.h (struct glyph_string): Change type of `font' to
15029 `struct font *'.
15030 (struct glyph_string): New member underline_position and
15031 underline_thickness.
15032 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15033 (struct face): Change type of `font' to `struct font *'. Remove
15034 members `font_name', `font_info_id'.
15035 (per_char_metric, encode_char): Delete externs.
15036 (calc_pixel_width_or_height): Adjust the prototype.
15037
15038 * emacs.c (enable_font_backend): Delete extern.
15039 (main): Don't set enable_font_backend. Don't check the command
15040 line argument "-disable-font-backend".
15041
15042 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15043 (enum font_property_index): New members FONT_DPI_INDEX,
15044 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15045 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15046 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15047 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15048 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15049 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15050 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15051 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15052 (struct font_spec, struct font_entity): New structs.
15053 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15054 (struct font): Many members from old "struct font_info" moved to
15055 here. Members font and entity deleted.
15056 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15057 the new font-related objects.
15058 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15059 (CHECK_FONT_GET_OBJECT): Likewise.
15060 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15061 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15062 (struct font_driver): New members case_sensitive anc check. Type
15063 of the member list and open changed.
15064 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15065 (font_symbolic_width, font_find_object, font_get_spec)
15066 (font_set_lface_from_name): Delete extern.
15067 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15068
15069 * font.c: Include <strings.h>.
15070 (enable_font_backend): Delete it.
15071 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15072 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15073 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15074 (null_string): Delete it.
15075 (null_vector): Make it static.
15076 (font_family_alist): Delete it.
15077 (Qnormal): Extern it.
15078 (QCextra, QClanguage): Delete it.
15079 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15080 (font_make_spec, font_make_entity, font_make_object)
15081 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15082 the string. Callers changed.
15083 (font_pixel_size): Adjusted for the format change of font-related
15084 objects.
15085 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15086 (font_style_to_value, font_style_symbolic): New function.
15087 (build_font_family_alist): Delete it.
15088 (font_registry_charsets): Use Fassoc_string instead of
15089 assq_no_quit.
15090 (font_prop_validate_symbol): Don't return null_string.
15091 (font_prop_validate_style): Adjusted for the change of
15092 style-related values in a font vector.
15093 (font_property_table): Delete entries for QClanguage and
15094 QCantialias, add entries for QCavgwidth.
15095 (get_font_prop_index): Delete the 2nd argument FROM.
15096 (font_prop_validate): Arguments changed.
15097 (font_put_extra): Adjusted for the change of font-related objects.
15098 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15099 (font_parse_fcname, font_unparse_fcname)
15100 (font_prepare_composition): Likewise.
15101 (font_parse_family_registry): Renamed from font_merge_old_spec.
15102 (otf_open): Delete the 1st arg entity.
15103 (font_otf_capability): Adjusted for the above change.
15104 (font_score): New arg alternate_families. Adjusted for the change
15105 of font-related objects.
15106 (font_sort_entites): New arg best_only.
15107 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15108 Delete them.
15109 (font_match_p): Check alternate families.
15110 (font_find_object): Delete it.
15111 (font_check_object): New function.
15112 (font_clear_cache): Adjusted for the change of font-related objects.
15113 (font_delete_unmatched): New arg.
15114 (font_list_entities): Call font_driver->list with a spec that
15115 doesn't specify style-related properties.
15116 (font_matching_entity): Arguments changed. Caller changed.
15117 (font_open_entity): Adjusted for the change of font-related objects.
15118 (font_close_object, font_has_char, font_encode_char)
15119 (font_get_name, font_get_spec): Likewise.
15120 (font_spec_from_name, font_clear_prop, font_update_lface):
15121 New functions.
15122 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15123 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15124 (font_at): Adjusted for the change of font-related objects.
15125 (font_range): New function.
15126 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15127 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15128 (Fcopy_font_spec, Fmerge_font_spec): New function.
15129 (Ffont_family_list): Renamed from list-families.
15130 (Finternal_set_font_style_table): Arguments changed.
15131 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15132 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15133 change of font-related objects.
15134 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15135
15136 * fontset.h (struct font_info): Delete it. Most members go to
15137 struct font.
15138 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15139 (enum FONT_SPEC_INDEX): Delete it.
15140 (font_info, list_fonts_func, load_font_func, query_font_func)
15141 (set_frame_fontset_func, find_ccl_program_func)
15142 (get_font_repertory_func, new_fontset_from_font_name): Delete
15143 externs.
15144 (fontset_from_font_name): Extern it.
15145 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15146 (FONT_INFO_FROM_FACE): Deleted.
15147 (face_for_font): Adjust prototype.
15148
15149 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15150 conditionals. Don't check enable_font_backend. Delete all codes
15151 used only when USE_FONT_BACKEND is not defined.
15152 (get_font_info_func, list_font_func, load_font_func)
15153 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15154 (get_font_repertory_func): Delete them.
15155 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15156 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15157 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15158 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15159 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15160 (fontset_compare_rfontdef): New function.
15161 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15162 rfont-defs by qsort. Adjusted for the change of font-group vector.
15163 (load_font_get_repertory): Deleted.
15164 (fontset_find_font): Use new macros to ref/set elements of
15165 font-def and rfont-def.
15166 (fontset_font): Fix the timing of remembering that no font for C.
15167 (free_face_fontset): Do nothing if the face has no fontset.
15168 (face_suitable_for_char_p): Use new macros to ref/set elements of
15169 rfont-def.
15170 (face_for_char): Likewise. Call face_for_char with font_object.
15171 (fs_load_font): Delete. Delete #pragma surrounding it.
15172 (fs_query_fontset): Use strcasecmp instead of strcmp.
15173 (generate_ascii_font_name): Adjusted for the format change of
15174 font-spec.
15175 (Fset_fontset_font): Likewise. Use new macros to set elements of
15176 font-def.
15177 (Fnew_fontset): Use font_unparse_xlfd to generate
15178 FONTSET_ASCII (fontset).
15179 (new_fontset_from_font_name): Deleted.
15180 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15181 a fontset is already created for the font. FIx updating of
15182 Vfontset_alias_alist.
15183 (fontset_ascii_font): Deleted.
15184 (Ffont_info): Adjusted for the format change of font-spec.
15185 (Finternal_char_font): Likewise.
15186 (Ffontset_info): Likewise.
15187 (syms_of_fontset): Don't check load_font_func.
15188
15189 * fns.c (internal_equal): Handle PREV_FONT.
15190
15191 * frame.h: Delete USE_FONT_BACKEND conditional.
15192
15193 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15194 conditionals. Don't check enable_font_backend. Delete all codes
15195 used only when USE_FONT_BACKEND is not defined.
15196 (x_set_font): Call x_new_font, not x_new_fontset2.
15197 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15198 already set for the frame.
15199
15200 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15201 a font-entity by font_make_entity. Use font_intern_prop instead
15202 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15203 font property. If a font is scalable, set avgwidth property to 0.
15204 Set font-entity property by font_put_extra.
15205 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15206 (ffont_driver): Adjusted for the change of struct font_driver.
15207 (ftfont_spec_pattern): New function.
15208 (ftfont_list): Return a list, not vector.
15209 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15210 (ftfont_list_family): Don't downcase names.
15211 (ftfont_free_entity): Deleted.
15212 (ftfont_open): Return a font-object. Adjusted for the change of
15213 struct font. Get underline_thickness and underline_position from
15214 font property. Don't update dpyinfo->smallest_font_height and
15215 dpyinfo->smallest_char_width.
15216 (ftfont_close): Don't free `struct font'.
15217 (ftfont_has_char): Adjusted for the format change of font-entity.
15218 (ftfont_encode_char, ftfont_text_extents): Likewise.
15219
15220 * ftxfont.c (ftxfont_list): Return a list, not vector.
15221 (ftxfont_open): Return a font-object. Adjusted for the change of
15222 struct font. Get underline_thickness and underline_position from
15223 font property. Don't update dpyinfo->smallest_font_height and
15224 dpyinfo->smallest_char_width.
15225 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15226 (ftxfont_draw): Adjusted for the change of struct font.
15227
15228 * image.c (image_ascent): Don't include "charset.h". Include
15229 "character.h" and "font.h".
15230
15231 * lisp.h (enum pvec_type): New member PREV_FONT.
15232 (Fassoc_string): EXFUN it.
15233
15234 * print.c: Include font.h.
15235 (print_object): Handle font-related objects.
15236
15237 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15238 conditionals. Don't check enable_font_backend. Delete all codes
15239 used only when USE_FONT_BACKEND is not defined.
15240 (handle_auto_composed_prop): Do nothing if it->f is not on a
15241 window system. Check how many following characters can be
15242 displayed by the same font.
15243 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15244 'struct font *'.
15245 (get_char_face_and_encoding): Assign the whole encoding task to
15246 the `encode-char' method of a font driver.
15247 (fill_composite_glyph_string): Adjusted for the change of `struct
15248 face' and `struct glyph_string'.
15249 (fill_glyph_string): Likewise.
15250 (get_per_char_metric): Arguments changed.
15251 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15252 and `struct glyph_string'.
15253 (produce_stretch_glyph, calc_line_height_property)
15254 (x_produce_glyphs): Likewise.
15255
15256 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15257 conditionals. Don't check enable_font_backend. Delete all codes
15258 used only when USE_FONT_BACKEND is not defined. Use
15259 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15260 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15261 (Qp): Extern them.
15262 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15263 Deleted.
15264 (struct font_name): Deleted.
15265 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15266 (compare_fonts_by_sort_order): New function.
15267 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15268 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15269 Deleted.
15270 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15271 compare_fonts_by_sort_order.
15272 (Fx_font_family_list): Call Ffont_family_list.
15273 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15274 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15275 (face_symbolic_slant, face_symbolic_swidth)
15276 (split_font_name_into_vector, build_font_name_from_vector)
15277 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15278 (font_rescale_ratio, split_font_name, build_font_name)
15279 (free_font_names, sort_fonts, x_face_list_fonts)
15280 (face_font_available_p, sorted_font_list, cmp_font_names)
15281 (font_list_1, concat_font_list, font_list, remove_duplicates):
15282 Deleted.
15283 (Fx_list_fonts): Use Ffont_list.
15284 (LFACE_AVGWIDTH): Deleted.
15285 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15286 by FONTP.
15287 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15288 (set_lface_from_font_name): Delete it.
15289 (set_lface_from_font): Renamed from
15290 set_lface_from_font_and_fontset. Caller changed. Don't set
15291 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15292 for face.
15293 (merge_face_vectors): Copy font-spec if necessary.
15294 Clear properties of the font-spec if necessary.
15295 (merge_face_ref): Clear properties of the font-spec if necessary.
15296 (Finternal_set_lisp_face_attribute): Likewise.
15297 (set_font_frame_param): Use font_load_for_lface to load a
15298 font-object, and call Fmodify_frame_parameters with it.
15299 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15300 font name by Ffont_xlfd_name.
15301 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15302 QCslant, and QCwidth.
15303 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15304 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15305 Compare fonts by EQ.
15306 (lookup_non_ascii_face): Deleted.
15307 (face_for_font): The 2nd argument changed.
15308 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15309 Check atomic font properties by case insensitive.
15310 (realize_non_ascii_face): Set face->overstrike correctly.
15311 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15312 (dump_realized_face): Get font name from
15313 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15314
15315 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15316 conditionals. Don't check enable_font_backend. Delete all codes
15317 used only when USE_FONT_BACKEND is not defined.
15318 (xic_create_xfontset): Original code deleted and renamed from
15319 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15320 (x_make_gc): Don't set GCFont in GCs.
15321 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15322 opened by "fixed".
15323 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15324 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15325 get_font_repertory_func.
15326
15327 * xfont.c: Include <stdlib.h> and "ccl.h".
15328 (struct xfont_info): New structure.
15329 (xfont_query_font): Deleted.
15330 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15331 moved from xterm.c.
15332 (xfont_driver): Adjusted for the change of struct font_driver.
15333 (compare_font_names): New function.
15334 (xfont_list_pattern): Sort font names case insensitively. Make
15335 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15336 (xfont_list): Return a list, not vector.
15337 (xfont_match): If the font doesn't have QCname property, generate
15338 a name from the other font properties.
15339 (xfont_open): Return a font-object. Adjusted for the change of
15340 struct font. Get underline_thickness and underline_position from
15341 font property. Don't update dpyinfo->smallest_font_height and
15342 dpyinfo->smallest_char_width.
15343 (xfont_close): Don't free struct font.
15344 (xfont_prepare_face): Adjusted for the change of struct font.
15345 (xfont_done_face): Deleted.
15346 (xfont_has_char): Adjusted for the change of struct font.
15347 (xfont_encode_char, xfont_draw): Likewise.
15348 (xfont_check): New function.
15349
15350 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15351 callback function.
15352 (xftfont_match): Adjusted for the format change of font-entity.
15353 (xftfont_open): Adjusted for the format change of font-entity and
15354 font-object. Adjusted for the change of struct font. Return a
15355 font-object. Don't update dpyinfo->smallest_font_height and
15356 dpyinfo->smallest_char_width.
15357 (xftfont_close): Block input while calling XftFontClose.
15358 (xftfont_prepare_face): Don't block input while calling
15359 xftfont_get_colors. Adjusted for the change of struct font.
15360 (xftfont_shape): Return value of error case fixed.
15361
15362 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15363
15364 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15365 conditionals.
15366 (FONT_WIDTH): Return (f)->max_width.
15367 (struct x_display_info): Delete member `font'.
15368 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15369 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15370 (struct x_output): Change type of `font' to `struct font *'.
15371
15372 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15373 conditionals. Don't check enable_font_backend. Delete all codes
15374 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15375 (x_per_char_metric, x_encode_char): Deleted.
15376 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15377 (x_compute_glyph_string_overhangs): Adjusted for the change of
15378 `struct face'.
15379 (x_draw_glyph_string_foreground)
15380 (x_draw_composite_glyph_string_foreground): Likewise.
15381 (x_draw_glyph_string): Likewise. Use font->underline_position and
15382 font->underline_thickness.
15383 (x_new_font): Renamed from x_new_fontset2.
15384 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15385 (x_check_font): Call `check' method of a font driver.
15386 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15387 (x_query_font, x_get_font_repertory): Deleted.
15388 (x_find_ccl_program): Renamed and moved to xfont.c.
15389 (x_redisplay_interface): Adjusted for the change of `struct
15390 redisplay_interface'.
15391
15392 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15393 conditionals. Don't check enable_font_backend. Delete all codes
15394 used only when USE_FONT_BACKEND is not defined. Surround non-used
15395 code by "#ifdef OLD_FONT" and "endif".
15396 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15397
15398 * w32font.h (struct w32font_info): New member.
15399 (FONT_COMPAT): New macro.
15400 (w32font_open_internal): Prototype adjusted.
15401
15402 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15403 OLD_FONT" and "endif".
15404
15405 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15406 conditionals. Don't check enable_font_backend. Delete all codes
15407 used only when USE_FONT_BACKEND is not defined.
15408 (w32font_open): Return a font-object. Make a font-object by
15409 font_make_object. Adjusted for the change of struct w32font_info.
15410 (w32font_close): Don't free struct font. Adjusted for the change
15411 of struct w32font_info.
15412 (w32font_encode_char, w32font_text_extents, w32font_draw):
15413 Adjusted for the change of struct w32font_info.
15414 (w32font_draw): Likewise.
15415 (w32font_list_internal): Return a list, not vector.
15416 (w32font_open_internal): Change the 4th arg to font-object.
15417 Adjusted for the change of struct w32font_info and font-object format.
15418 (add_font_name_to_list): Don't downcase names.
15419 (w32_enumfont_pattern_entity): Make a font-entity by
15420 font_make_entity. Adjusted for the format change of font-entity.
15421 Use FONT_SET_STYLE to set a style-related font property. If a
15422 font is scalable, set avgwidth property to 0. Set font-entity
15423 property by font_put_extra.
15424 (font_matches_spec): Adjusted for the format change of font-entity.
15425 (w32_weight_table, w32_decode_weight): New variables.
15426 (w32_encode_weight): New function.
15427 (fill_in_logfont): Adjusted for the format change of font-spec.
15428 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15429 weight value.
15430 (w32font_driver): Adjusted for the change of struct font_driver.
15431
15432 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15433 conditionals. Don't check enable_font_backend. Surround non-used
15434 code by "#ifdef OLD_FONT" and "endif".
15435 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15436 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15437
15438 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15439 conditionals. Don't check enable_font_backend. Delete all codes
15440 used only when USE_FONT_BACKEND is not defined. Surround non-used
15441 code by "#ifdef OLD_FONT" and "endif".
15442
15443 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15444 (uniscribe_open): Return value changed to font-object.
15445 Adjusted for the format change of font-object.
15446 (uniscribe_otf_capability): Adjusted for the change of struct font.
15447 (add_opentype_font_name_to_list): Don't downcase names.
15448 (uniscribe_font_driver): Adjusted for the change of struct
15449 font_driver.
15450
154512008-05-13 Chong Yidong <cyd@stupidchicken.com>
15452
15453 * dispnew.c (update_frame_1): Check if tty output is still valid
15454 before flushing it.
15455
154562008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15457
15458 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15459 to Gtk+ menus.
15460
154612008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15462
15463 * dired.c (file_name_completion): Tweak the code so as to always do it
15464 in a single pass. Tighten the scope of some variables.
15465
15466 * dired.c (Qdefault_directory): New var.
15467 (file_name_completion): Use it instead of Fexpand_file_name.
15468 (syms_of_dired): Initialize it.
15469
154702008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15471
15472 * fileio.c (double_dollars): Remove dead code.
15473
154742008-05-10 Eli Zaretskii <eliz@gnu.org>
15475
15476 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15477 Mention w32-get-true-file-attributes in doc string.
15478
15479 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15480
154812008-05-09 Glenn Morris <rgm@gnu.org>
15482
15483 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15484 2008-04-23.
15485
154862008-05-09 Eli Zaretskii <eliz@gnu.org>
15487
15488 Support for reporting owner and group of each file on MS-Windows:
15489 * dired.c (stat_uname, stat_gname): New functions, with special
15490 implementation for w32.
15491 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15492
15493 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15494 (dflt_group_name): New static variable.
15495 (dflt_group): Rename from the_group.
15496 (init_user_info): Init dflt_group fields. Get user's group name
15497 from LookupAccountSid.
15498 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15499 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15500 New initialization states.
15501 (globals_of_w32): Initialize them to zero. Initialize the default
15502 group name to "None".
15503 (GetFileSecurity_Name): New global var, the name of the function
15504 to call for GetFileSecurity.
15505 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15506 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15507 (get_file_security, get_security_descriptor_owner)
15508 (get_security_descriptor_group, is_valid_sid)
15509 (get_file_security_desc, get_rid, get_name_and_id)
15510 (get_file_owner_and_group): New functions.
15511 (stat): Use get_file_security_desc and get_file_owner_and_group to
15512 report the owner and primary group of each file. Don't ignore the
15513 high 32 bits of file's size, now that st_size is 64-bit wide.
15514 Fix test when to get true file attributes.
15515 (init_user_info): Use get_rid instead of equivalent inline code.
15516 (fstat): Don't ignore the high 32 bits of file's size.
15517
155182008-05-09 Chong Yidong <cyd@stupidchicken.com>
15519
15520 * image.c (png_load): Use correct bit-depth for setting background
15521 color.
15522
155232008-05-08 Eli Zaretskii <eliz@gnu.org>
15524
15525 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15526 epa-hook.elc.
15527
155282008-05-08 Juanma Barranquero <lekktu@gmail.com>
15529
15530 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15531
155322008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15533
15534 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15535 because the original parameters are in pure storage now.
15536 (mac_window): Remove unused params. Update callers.
15537
155382008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15539
15540 * lread.c (substitute_object_recurse): Use lower-level primitives.
15541 Don't signal errors when traversing sub-char-tables.
15542 Don't loop over all the possible characters when traversing char-tables.
15543
15544 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15545 just like we do in print.c.
15546
155472008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15548
15549 * minibuf.c (Ftry_completion): Remove code left over from when we used
15550 scmp instead of Fcompare_strings.
15551
155522008-05-04 Juanma Barranquero <lekktu@gmail.com>
15553
15554 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15555
155562008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15557
15558 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15559 Create bitmap context in native byte order.
15560
15561 * macterm.c (XDrawLine)
15562 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15563 context in native byte order.
15564
155652008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15566
15567 * config.in: Regenerate.
15568
15569 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15570 New definitions for Image I/O support.
15571 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15572 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15573 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15574 (mac_data_provider_release_data, image_load_image_io)
15575 [USE_MAC_IMAGE_IO]: New functions.
15576 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15577 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15578 (init_image_func_pointer) [MAC_OSX]: Remove function.
15579 (image_load_quartz2d) [MAC_OSX]: Check availability of
15580 CGImageCreateWithPNGDataProvider at compile time.
15581 Use lowercase `false' for boolean constant.
15582 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15583 Use image_load_image_io.
15584 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15585 Don't check MyCGImageCreateWithPNGDataProvider.
15586 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15587 Don't call init_image_func_pointer.
15588
15589 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15590
15591 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15592 Make variable non-static.
15593 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15594 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15595
15596 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15597 (RED_FROM_ULONG): Mask off higher bits.
15598 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15599
15600 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15601 Include AvailabilityMacros.h.
15602 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15603 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15604
156052008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15606
15607 * chartab.c (Fset_char_table_range): If range is t, really set all
15608 chars to that value.
15609
156102008-05-03 Eli Zaretskii <eliz@gnu.org>
15611
15612 * dired.c (Ffile_attributes): Don't allow the device number become
15613 negative.
15614
156152008-05-02 Daiki Ueno <ueno@unixuser.org>
15616
15617 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15618
156192008-05-02 Juri Linkov <juri@jurta.org>
15620
15621 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15622 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15623 DEFAULT argument as a list of default values in docstrings.
15624
156252008-05-01 Chong Yidong <cyd@stupidchicken.com>
15626
15627 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15628
156292008-05-01 Martin Rudalics <rudalics@gmx.at>
15630
15631 * dispnew.c (change_frame_size_1): Preserve small windows when
15632 shrinking frames by calling set_window_height|width with third
15633 arg 2.
15634
15635 * window.h (struct window): Replace field too_small_ok by field
15636 resize_proportionally.
15637
15638 * window.c (make_window): Initialize resize_proportionally.
15639 (enlarge_window): Temporarily set resize_proportionally to make
15640 sure that shrink_windows does scale the window proportionally.
15641 (shrink_windows): When window has resize_proportionally set try
15642 to shrink it proportionally by stealing from other windows.
15643 (struct saved_window, Fset_window_configuration)
15644 (compare_window_configurations): Handle resize_proportionally.
15645 (WINDOW_TOTAL_SIZE): New macro.
15646 (window_min_size, shrink_windows, size_window): Use it.
15647 (check_min_window_sizes): Remove. Invalid values of
15648 window-min-height|width are handled by window_min_size_2 now.
15649 (size_window, Fsplit_window, enlarge_window)
15650 (adjust_window_trailing_edge, grow_mini_window): Don't call
15651 check_min_window_sizes.
15652 (window_min_size_2, window_min_size_1, window_min_size):
15653 New argument safe_p for retrieving "safe" minimum sizes.
15654 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15655 (adjust_window_trailing_edge, grow_mini_window):
15656 Adjust arguments of window_min_size... functions.
15657 (shrink_windows): Argument min_size removed. New argument
15658 safe_p allows shrinking windows to their safe minimum sizes.
15659 Calculate minimum size and decide whether a window shall be
15660 deleted for each window individually.
15661 (size_window): When nodelete_p equals 2, tell shrink_windows to
15662 delete windows only if their new minimum size is no more safe.
15663 (shrink_window_lowest_first): Call window_min_size_1 to make
15664 sure to preserve modeline of bottom-most window when resizing
15665 the minibuffer.
15666 (Fset_window_configuration, Fcurrent_window_configuration)
15667 (compare_window_configurations): Do not handle
15668 window-min-height|width any more.
15669 (syms_of_window): Clarify window-min-height|width doc-strings.
15670
156712008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15672
15673 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15674 some more. Copy some of the code from Ftry_completions.
15675 Remove special case code that dates back to initial revision when the
15676 slash was only added when necessary and that can't trigger nowadays.
15677
156782008-04-27 Kenichi Handa <handa@m17n.org>
15679
15680 * font.c (font_prop_validate): Signal `error' instead of `font'.
15681
156822008-04-29 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32fns.c (Fw32_battery_status): New defun.
15685 (syms_of_w32fns): Defsubr it.
15686
156872008-04-28 Andreas Schwab <schwab@suse.de>
15688
15689 * dired.c (file_name_completion): Fix another mixing of encoded
15690 and decoded names.
15691
156922008-04-28 Juanma Barranquero <lekktu@gmail.com>
15693
15694 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15695
156962008-04-27 Juanma Barranquero <lekktu@gmail.com>
15697
15698 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15699
157002008-04-27 Andreas Schwab <schwab@suse.de>
15701
15702 * dired.c (file_name_completion): Fix inappropriate mixing of
15703 encoded and decoded names.
15704
15705 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15706
15707 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15708
157092008-04-26 Eli Zaretskii <eliz@gnu.org>
15710
15711 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15712 2008-03-31, it's not needed anymore with `struct stat' definition
15713 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15714 for the same reasons.
15715
157162008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15717
15718 * m/sparc.h: Additional redefinitions for GNU/Linux.
15719
157202008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15721
15722 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15723 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15724 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15725 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15726 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15727 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15728 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15729 Likewise.
15730
15731 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15732 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15733 (mac_ax_number_of_characters): Add externs.
15734 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15735 [USE_MAC_TSM]: Likewise.
15736 (mac_handle_text_input_event) [MAC_OSX]:
15737 Handle kEventTextInputOffsetToPos for no active input area case.
15738 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15739 (mac_handle_document_access_event)
15740 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15741 (install_application_handler) [MAC_OSX]: Register handlers for
15742 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15743 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15744 Register mac_handle_document_access_event.
15745
15746 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15747 Make functions non-static.
15748
157492008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15750
15751 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15752 (read_file_name_completion_ignore_case, insert_default_directory)
15753 (Qdefault_directory): Move to minibuffer.el.
15754 (Fread_file_name): Call the new `read-file-name' instead.
15755
157562008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15757
15758 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15759 Make function non-static.
15760 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15761 Remove function.
15762 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15763 Move to mactoolbox.c.
15764 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15765
15766 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15767 (mac_rect_make): New macro.
15768
15769 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15770 instead of float.
15771 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15772 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15773 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15774 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15775 CGRectMake.
15776 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15777 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15778 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15779 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15780 instead of WindowRef in argument type.
15781 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15782 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15783 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15784 instead of DISPLAY. All uses changed.
15785 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15786 (x_calc_absolute_position): Simplify so as not to use
15787 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15788
15789 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15790 instead of WindowRef in argument type.
15791 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15792 [TARGET_API_MAC_CARBON]: Remove externs.
15793 (create_apple_event, mac_event_parameters_to_lisp)
15794 [TARGET_API_MAC_CARBON]: Add externs.
15795
15796 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15797 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15798 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15799 is clicked.
15800 (x_activate_menubar): Remove extern for saved_menu_event_location.
15801 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15802 Move from mac.c.
15803
158042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15805
15806 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15807 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15808
158092008-04-23 Jason Rumney <jasonr@gnu.org>
15810
15811 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15812 attributes only for local files.
15813
15814 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15815 default to Qlocal.
15816
158172008-04-22 Juri Linkov <juri@jurta.org>
15818
15819 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15820 read-buffer-to-switch instead of using the letter "B".
15821
158222008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15823
15824 * fileio.c (Qdefault_directory): New variable.
15825 (Fread_file_name): Use it to pass `dir' to the completion functions.
15826
158272008-04-20 Chong Yidong <cyd@stupidchicken.com>
15828
15829 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15830
158312008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15832
15833 * keyboard.c (Vpre_help_message): Remove.
15834 (show_help_echo): Remove default C code.
15835
15836 * dired.c (directory_files_internal, file_name_completion):
15837 Only call ENCODE_FILE if the string is indeed decoded.
15838
158392008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15840
15841 * Makefile.in (TOOLKIT_DEFINES): Remove.
15842 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15843
158442008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15845
15846 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15847 (mactoolbox.o): New target.
15848
15849 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15850 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15851
15852 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15853 Use mac_set_frame_window_background instead of XSetWindowBackground.
15854 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15855 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15856 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15857 instead of SetWindowTitleWithCFString.
15858 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15859 Move function to mactoolbox.c.
15860 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15861 Use mac_set_window_modified instead of SetWindowModified.
15862 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15863 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15864 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15865 FrontNonFloatingWindow. Use mac_activate_window instead of
15866 ActivateWindow. Use mac_active_non_floating_window instead of
15867 ActiveNonFloatingWindow.
15868 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15869 Use mac_show_hourglass and mac_hide_hourglass.
15870 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15871 instead of GetGlobalMouse.
15872 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15873 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15874 Use mac_bring_window_to_front instead of BringToFront.
15875 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15876 mactoolbox.c.
15877 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15878 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15879 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15880 mactoolbox.c.
15881
15882 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15883 (XtPointer): Move typedef from macmenu.c.
15884 (enum button_type): Move enum from macmenu.c.
15885 (widget_value): Move typedef from macmenu.c.
15886 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15887 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15888 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15889 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15890 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15891 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15892 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15893 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15894 (Selection): Move typedef from macselect.c.
15895 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15896 macterm.c.
15897 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15898 (mac_is_window_collapsed, mac_bring_window_to_front)
15899 (mac_send_window_behind, mac_hide_window, mac_show_window)
15900 (mac_collapse_window, mac_front_non_floating_window)
15901 (mac_active_non_floating_window, mac_activate_window)
15902 (mac_move_window_structure, mac_move_window, mac_size_window)
15903 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15904
15905 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15906 (enum mac_menu_kind): Move enum to mactoolbox.c.
15907 (min_menu_id): Move variable to mactoolbox.c.
15908 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15909 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15910 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15911 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15912 [TARGET_API_MAC_CARBON]: Likewise.
15913 (XtPointer): Move typedef to macgui.h.
15914 (enum button_type): Move enum to macgui.h.
15915 (widget_value): Move typedef to macgui.h.
15916 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15917 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15918 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15919 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15920 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15921 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15922 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15923 (popup_activated_flag): Make variable non-static.
15924 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15925 (add_menu_item, fill_menu, dispose_menus):
15926 Move functions to mactoolbox.c.
15927 (restore_show_help_function, menu_target_item_handler)
15928 (install_menu_target_item_handler, mac_handle_dialog_event)
15929 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15930 [TARGET_API_MAC_CARBON]: Likewise.
15931 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15932 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15933 (find_and_call_menu_selection, name_is_separator): Make function
15934 non-static.
15935 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15936 to mactoolbox.c.
15937 (set_frame_menubar): Don't call install_menu_quit_handler.
15938 (menu_item_selection): New variable.
15939 (mac_menu_show): Use create_and_show_popup_menu.
15940 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15941 selection but set variable menu_item_selection. All uses changed.
15942 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15943 Call install_menu_quit_handler. Move to mactoolbox.c.
15944
15945 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15946 (Selection): Move typedef to macgui.h.
15947 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15948 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15949 Make variables non-static.
15950 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15951 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15952 Make functions non-static.
15953 (Vmac_service_selection) [MAC_OSX]: Likewise.
15954 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15955 (mac_valid_selection_target_p, mac_clear_selection)
15956 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15957 (mac_put_selection_value, mac_selection_has_target_p)
15958 (mac_get_selection_value, mac_get_selection_target_list)
15959 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15960 Move functions to mactoolbox.c.
15961 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15962 Likewise.
15963 (copy_scrap_flavor_data, mac_handle_service_event)
15964 (install_service_handler) [MAC_OSX]: Likewise.
15965 (syms_of_macselect) <Vmac_dnd_known_types>:
15966 Use mac_dnd_default_known_types.
15967
15968 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15969 Move to mactoolbox.c.
15970 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15971 (Fx_selection_owner_p): Add EXFUN.
15972 (install_window_handler, remove_window_handler, XSetWindowBackground):
15973 Remove externs.
15974 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15975 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15976 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15977 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15978 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15979 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15980 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15981 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15982 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15983 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15984 (mac_valid_selection_target_p, mac_clear_selection)
15985 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15986 (mac_put_selection_value, mac_selection_has_target_p)
15987 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15988 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15989 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15990 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15991 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15992 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15993 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15994 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15995 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15996
15997 * mactoolbox.c: New file.
15998
159992008-04-18 Jason Rumney <jasonr@gnu.org>
16000
16001 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16002
160032008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16004
16005 * character.c (Fmultibyte_char_to_unibyte):
16006 Return latin1 chars unchanged.
16007
16008 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16009 relocated if it points to `name'.
16010
160112008-04-17 Kenichi Handa <handa@m17n.org>
16012
16013 * data.c (Faset): Allow setting a multibyte character in an
16014 ASCII-only unibyte string.
16015
16016 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16017
160182008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16019
16020 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16021 done in config.h.
16022
160232008-04-16 Juanma Barranquero <lekktu@gmail.com>
16024
16025 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16026 (Fchar_direction): Add usage in the docstring.
16027
160282008-04-15 Chong Yidong <cyd@stupidchicken.com>
16029
16030 * keyboard.c (read_key_sequence): Remove always-true checks.
16031
160322008-04-14 Jason Rumney <jasonr@gnu.org>
16033
16034 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16035 compatibility struct, for better underline positioning.
16036
160372008-04-13 David Hansen <david.hansen@gmx.net>
16038
16039 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16040 string.
16041
160422008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16043
16044 * m/hp800.h (XUINT, XSET): Remove.
16045
160462008-04-12 Juanma Barranquero <lekktu@gmail.com>
16047
16048 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16049 previous change.
16050
160512008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16052
16053 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16054 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16055
160562008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16057
16058 * keymap.h (map_keymap_canonical): Declare.
16059 * xmenu.c (single_keymap_panes): Use it.
16060
160612008-04-11 Glenn Morris <rgm@gnu.org>
16062
16063 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16064 set the target's value to that of the alias.
16065
160662008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16067
16068 * term.c (set_tty_color_mode): Left over typo.
16069
160702008-04-10 Michael Albinus <michael.albinus@gmx.de>
16071
16072 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16073 only after check for file name handler functions. Signal, when
16074 native functionality is not supported.
16075 (syms_of_fileio): Declare it unconditionally.
16076
160772008-04-10 Jason Rumney <jasonr@gnu.org>
16078
16079 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16080 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16081
16082 * w32.c (logon_network_drive): Also logon to remote drives that
16083 are mapped to drive letters.
16084
160852008-04-10 Glenn Morris <rgm@gnu.org>
16086
16087 * xdisp.c (truncate-partial-width-windows): Doc fix.
16088
160892008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16090
16091 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16092 Move functions to minibuffer.el.
16093 (syms_of_fileio): Don't declare them.
16094
160952008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16096
16097 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16098 (syms_of_minibuf): Remove its initialization.
16099
16100 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16101
161022008-04-09 Juanma Barranquero <lekktu@gmail.com>
16103
16104 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16105
161062008-04-09 Jason Rumney <jasonr@gnu.org>
16107
16108 * makefile.w32-in (distclean): Delete makefile too.
16109 (maintainer-clean): New target.
16110
16111 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16112
16113 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16114 for new font backend and composite cases.
16115
161162008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16117
16118 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16119 Most of the code moved to run_timers.
16120 (do_pending_atimers): Call run_timers.
16121 (run_timers): New function.
16122
16123 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16124 run atimers.
16125
16126 * process.c (wait_reading_process_output): The same as above.
16127
161282008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16129
16130 * minibuf.c (last_exact_completion): Remove variable.
16131 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16132 (complete_and_exit_1, complete_and_exit_2)
16133 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16134 (Fdisplay_completion_list, display_completion_list_1)
16135 (Fminibuffer_completion_help, Fself_insert_and_exit)
16136 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16137 minibuffer.el.
16138 (syms_of_minibuf): Remove corresponding initializations.
16139
16140 * keyboard.c (Qdeactivate_mark): New var.
16141 (command_loop_1): Use it to call `deactivate-mark'.
16142 (syms_of_keyboard): Initialize it.
16143
16144 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16145 to another frame.
16146 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16147 Don't call set_tty_color_mode.
16148 (store_frame_param): Reset previous_frame rather than call
16149 set_tty_color_mode.
16150 * term.c (set_tty_color_mode): Rewrite.
16151 * dispextern.h (set_tty_color_mode): New type.
16152 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16153
161542008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16155
16156 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16157 for generic chars, which do not exist any more in emacs-unicode.
16158
161592008-04-08 Michael Albinus <michael.albinus@gmx.de>
16160
16161 * coding.c (detect_coding_emacs_mule)
16162 (Ffind_operation_coding_system): Fix typo.
16163
161642008-04-08 Jason Rumney <jasonr@gnu.org>
16165
16166 * w32uniscribe.c (SNAME): Extract only symbol name.
16167
16168 * w32font.h (struct w32_metric_cache): New struct.
16169 (w32font_info): Use it.
16170 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16171 (CACHE_BLOCKSIZE): New constants.
16172
16173 * w32font.c (Qja, Qko, Qzh): New symbols.
16174 (syms_of_w32font): Initialise them.
16175 (font_matches_spec): Use them to filter by language.
16176 (recompute_cached_metrics): Remove function.
16177 (compute_metrics, clear_cached_metrics): New functions.
16178 (w32font_encode_char): Use them to manage metric cache.
16179 (w32font_text_extents): Cache metrics for all glyphs on demand.
16180 Delay converting glyph indices to WORD until needed.
16181 (w32font_open_internal): Initialize metric cache to empty.
16182 (registry_to_w32_charset): Charset should always be a symbol.
16183 (fill_in_logfont, list_all_matching_fonts): Family should
16184 always be a symbol.
16185
161862008-04-06 Jason Rumney <jasonr@gnu.org>
16187
16188 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16189 Give up if glyph indices not supported. Use uniscribe obtained
16190 ABC widths for individual metrics. Map glyph clusters back to
16191 characters using fClusterStart flag. Return number of glyphs
16192 produced, not chars processed.
16193 (uniscribe_shape): Map char at FROM to current glyph.
16194
161952008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16196
16197 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16198 Use SetMenuItemHierarchicalMenu.
16199
162002008-04-05 Jason Rumney <jasonr@gnu.org>
16201
16202 * image.c (pbm_load): Allow color values up to 65535.
16203 Throw an error if max_color_idx is outside the supported range.
16204 Report an error when image size is invalid.
16205 Read two bytes at a time when raw images have max_color_idx above 255.
16206
aac0c6e3
MR
162072008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16208
16209 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16210 append "CCL: Quitted" when the CCL program is quitted.
16211 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16212
16213 * ccl.h (struct ccl_program): New member quit_silently.
16214
162152008-04-05 Chong Yidong <cyd@stupidchicken.com>
16216
16217 * search.c (compile_pattern_1): Treat non-nil and non-string of
16218 search-spaces-regexp as nil.
16219
16220 * minibuf.c (Fassoc_string): Tweak docstring.
16221
162222008-04-05 Eli Zaretskii <eliz@gnu.org>
16223
16224 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16225 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16226 2008-03-14 to force inode be positive.
16227
16228 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16229 _S_* ones, since we now use our own sys/stat.h.
16230 (stat, fstat): Don't mangle the inode number.
16231 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16232
162332008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16234
16235 * frame.h (struct frame): Give one more bit to `visible' since we use
16236 values larger than 1 to indicate obscured frames on ttys.
16237
16238 * keymap.c (Qkeymap_canonicalize): New var.
16239 (Fmap_keymap_internal): New fun.
16240 (describe_map): Use keymap-canonicalize.
16241
16242 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16243 (Fundo_boundary): Set them.
16244 (syms_of_undo): Initialize them.
16245 (record_point): Use them instead of last_point_position*.
16246 (last_undo_buffer): Change type.
16247
162482008-04-04 Jason Rumney <jasonr@gnu.org>
16249
16250 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16251 (recompute_cached_metrics): Don't set ascent and descent per char.
16252
16253 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16254 (uniscribe_check_otf): Add GC protection before consing.
16255 Rearrange loop for counting features.
16256
162572008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16258
16259 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16260 buffer with byte-size of source buffer.
16261
162622008-04-03 Chong Yidong <cyd@stupidchicken.com>
16263
16264 * callint.c (Fcall_interactively): Handle temporary region even
16265 when shift-select-mode is off.
16266
162672008-04-03 Jason Rumney <jasonr@gnu.org>
16268
16269 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16270
162712008-04-03 Kenichi Handa <handa@m17n.org>
16272
16273 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16274 (CATEGORY_MASK_UTF_16): Likewise.
16275 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16276 binary file.
16277 (detect_coding): Add null-byte detection for a binary file.
16278 (detect_coding_system): Likewise.
16279
162802008-04-03 Jason Rumney <jasonr@gnu.org>
16281
16282 * w32uniscribe.c: New file.
16283
16284 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16285
16286 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16287
16288 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16289 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16290 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16291 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16292 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16293 (Qphonetic): New symbols.
16294 (syms_of_w32font): Initialize them.
16295 (font_supported_scripts): Use them.
16296 (w32font_list_family): List all charsets.
16297 (w32font_text_extents, recompute_cached_metrics): Fix metric
16298 calculations.
16299 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16300 Give opentype fonts their own format.
16301 (font_matches_spec): New arguments backend and logfont.
16302 Handle :otf spec for uniscribe backend.
16303 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16304 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16305
16306 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16307 font backend.
16308 (globals_of_w32fns): Initialize uniscribe font backend.
16309
16310 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16311 dependencies.
16312 (w32uniscribe.$(O)): New file to build.
16313 (FONT_OBJ): Include w32uniscribe.$(O).
16314 (LIBS): Add uniscribe libraries.
16315
16316 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16317
163182008-04-02 Chong Yidong <cyd@stupidchicken.com>
16319
16320 * callint.c (Vshift_select_mode): New var.
16321 (Finteractive): Document new ^ spec.
16322 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16323 is present.
16324
16325 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16326 (command_loop_1): Avoid running the direct display versions of
16327 forward-char and backward-char if shift-selection may occur.
16328 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16329 shift-translation takes place.
16330
16331 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16332 avoid clobbering by define-minor-mode.
16333
16334 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16335 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16336
16337 * syntax.c (Fforward_word): Add ^ interactive spec.
16338
16339 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16340 (Fscroll_right): Add ^ interactive spec.
16341
163422008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16343
16344 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16345
16346 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16347
16348 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16349
163502008-03-31 Juri Linkov <juri@jurta.org>
16351
16352 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16353
163542008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16355
16356 * gtkutil.c (xg_set_geometry): Fix indentation.
16357 (xg_resize_outer_widget): Remove.
16358 (x_wm_size_hint_off): Fix indentation.
16359 (xg_frame_set_char_size): Call flush_and_sync after
16360 gtk_window_resize.
16361 (x_wm_set_size_hint): Pass NULL as geometry window to
16362 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16363 Add menu bar and tool bar height to base height.
16364 (xg_update_frame_menubar, free_frame_menubar)
16365 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16366 (update_frame_tool_bar, free_frame_tool_bar):
16367 Change xg_resize_outer_widget to xg_frame_set_char_size.
16368
163692008-03-30 Michael Albinus <michael.albinus@gmx.de>
16370
16371 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16372 (Fdbus_call_method): New parameter TIMEOUT.
16373 (dbus-send-signal): Optimize UNGCPRO call.
16374
163752008-03-29 Juri Linkov <juri@jurta.org>
16376
16377 * window.c (Fdisplay_buffer): Move call to
16378 Vsplit_window_preferred_function out of conditions that check
16379 if window is eligible for vertical splitting.
16380 When Vsplit_window_preferred_function is non-nil, call it and use
16381 its non-nil return value as window. Otherwise, continue doing
16382 vertical splitting using Fsplit_window with arg horflag=nil.
16383 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16384 default value from `split-window' to nil.
16385
163862008-03-29 Juri Linkov <juri@jurta.org>
16387
16388 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16389 for interactive code letters 'b' and 'B'.
16390
163912008-03-29 Eli Zaretskii <eliz@gnu.org>
16392
16393 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16394 multibyte string.
16395
163962008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16397
16398 * keyboard.c (pending_funcalls): New var.
16399 (timer_check): Run it.
16400 (syms_of_keyboard): Initialize it.
16401 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16402 (Vdelete_terminal_functions): New vars.
16403 (syms_of_terminal): Initialize them.
16404 (Fdelete_terminal): Run delete-terminal-functions.
16405 * xdisp.c (safe_eval): Rewrite.
16406 (safe_call2): New fun.
16407 * frame.c (Qdelete_frame_functions): New var.
16408 (syms_of_frame): Initialize it.
16409 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16410 * lisp.h (safe_call2, pending_funcalls): Declare.
16411
164122008-03-28 Andreas Schwab <schwab@suse.de>
16413
16414 * indent.c (Fmove_to_column): Move declaration before statements.
16415
164162008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16417
16418 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16419 (struct frame): Use bit fields for boolean vars.
16420
16421 * process.c (server_accept_connection): Simplify naming.
16422 (emacs_get_tty_pgrp): Use SDATA.
16423
16424 * coding.c (decode_coding_object): Fix last change.
16425
164262008-03-27 Jason Rumney <jasonr@gnu.org>
16427
16428 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16429
164302008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16431
16432 * charset.c (Fdefine_charset_internal): Change the way of
16433 registering charsets in Vcharset_order_list.
16434 (syms_of_charset): Make the charset `eight-bit' supplementary.
16435
164362008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16437
16438 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16439 operations, to avoid having the difference between pointers
16440 overflow.
16441
164422008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16443
16444 * indent.c (check_display_width): New fun.
16445 (scan_for_column): Use it.
16446
16447 * data.c (syms_of_data): Mark most-positive-fixnum and
16448 most-negative-fixnum as constants.
16449
16450 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16451
16452 * indent.c (scan_for_column): Extract from current_column_1.
16453 Merge with the same code from Fmove_to_column.
16454 (current_column_1, Fmove_to_column): Use it.
16455
164562008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16457
16458 * keymap.c (map_keymap_internal): New fun.
16459 (map_keymap): Use it.
16460 (Fmap_keymap_internal): New fun.
16461 (Fmap_keymap): Remove left-out test from before make_save_value.
16462
16463 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16464
16465 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16466 Use XCAR/XCDR.
16467
16468 * process.h (struct Lisp_Process): Remove filter_multibyte.
16469 * process.c (QCfilter_multibyte): Remove.
16470 (setup_process_coding_systems): Don't use filter_multibyte.
16471 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16472 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16473 (Fset_process_filter_multibyte): Change the coding-system to
16474 approximate the previous behavior.
16475 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16476 coding-system.
16477
16478 * coding.c (decode_coding_object): When not decoding into a buffer,
16479 obey the coding system's preference of (uni|multi)byte.
16480
164812008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16482
16483 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16484 every char is changed and has a different byte-length.
16485 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16486 Fix int -> EMACS_INT.
16487
164882008-03-23 David Hansen <david.hansen@gmx.net>
16489
16490 * dbusbind.c (xd_read_message): Remove extra copying of message
16491 strings. Check for NULL `interface' or `member'.
16492
164932008-03-22 Eli Zaretskii <eliz@gnu.org>
16494
16495 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16496 cFileName a file name that includes `?' characters, use the 8+3
16497 alias in cAlternateFileName instead.
16498
164992008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16500
16501 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16502
165032008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16504
16505 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16506 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16507 work on current_buffer only instead (that was already the case
16508 for some of the code anyway).
16509 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16510 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16511 (SET_PT, SET_PT_BOTH): Adjust.
16512 * intervals.h (set_point, temp_set_point, set_point_both)
16513 (temp_set_point_both): Remove redundant declarations.
16514
165152008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16516
16517 * fileio.c (Finsert_file_contents):
16518 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16519 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16520 when buffer != current_buffer anyway.
16521
165222008-03-20 Andreas Schwab <schwab@suse.de>
16523
16524 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16525 as default.
16526
165272008-03-19 Jason Rumney <jasonr@gnu.org>
16528
16529 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16530 (syms_of_w32fns): Initialize them.
16531 (HOURGLASS_ID): New constant.
16532 (x_window_to_frame): Don't check hourglass_window.
16533 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16534 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16535 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16536 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16537 Only change the cursor if hourglass is not active.
16538 (Fx_create_frame): Initialize frame's current_cursor.
16539 (hourglass_atimer): Remove.
16540 (hourglass_started): New function.
16541 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16542 (show_hourglass): Adapt to w32, changing argument to frame.
16543
16544 * w32term.h (struct w32_output): Remove hourglass_window.
16545 Add current_cursor.
16546
16547 * eval.c (call_debugger, Fsignal):
16548 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16549 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16550 (Fexecute_extended_command, cancel_hourglass_unwind):
16551 * minibuf.c (read_minibuf):
16552 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16553
165542008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16555
16556 * window.c (run_funs): New fun.
16557 (run_window_configuration_change_hook): Use it to run the buffer-local
16558 and the global part of the hook.
16559
16560 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16561 (unwind_format_mode_line): Restore selected window.
16562 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16563
165642008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16565
16566 * editfns.c (Fchar_equal): Check they are valid characters.
16567
16568 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16569
165702008-03-17 Andreas Schwab <schwab@suse.de>
16571
16572 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16573 against a charset.
16574
16575 * lisp.h (Fbuffer_list): Declare.
16576
165772008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16578
aac0c6e3
MR
16579 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16580 handlebox_widget is != 0.
16581
165822008-03-16 Juri Linkov <juri@jurta.org>
16583
16584 * callint.c (Fcall_interactively): For interactive code letters
16585 'b' and 'B' put the buffer list into the list of default "future"
16586 values of the minibuffer.
16587
165882008-03-16 Andreas Schwab <schwab@suse.de>
16589
16590 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16591 modifiers.
16592
16593 * regex.c (re_match_2_internal): Correct matching of a charset
16594 against latin-1 characters.
16595
165962008-03-16 Kenichi Handa <handa@m17n.org>
16597
16598 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16599 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16600 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16601 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16602 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16603 CHAR_STRING_ADVANCE.
16604 (produce_chars): Fix for the case that the source and the
16605 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16606 instead of CHAR_STRING_ADVANCE.
16607 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16608 STRING_CHAR_ADVANCE.
16609
166102008-03-15 Andreas Schwab <schwab@suse.de>
16611
16612 * regex.c (re_match_2_internal): Correct matching of eight bit
16613 characters in unibyte strings.
16614
166152008-03-15 Martin Rudalics <rudalics@gmx.at>
16616
16617 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16618 at end of range when it coincides with the end of the buffer.
16619
166202008-03-14 Eli Zaretskii <eliz@gnu.org>
16621
16622 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16623
16624 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16625
166262008-03-14 Jason Rumney <jasonr@gnu.org>
16627
16628 * editfns.c (initial_tz): New variable.
16629 (syms_of_editfns): Initialize it.
16630 (Fset_time_zone_rule): Set it when first called.
16631 Use it when TZSTRING is nil.
16632
16633 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16634 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16635 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16636 (globals_of_w32fns): Initialize them.
16637 (compute_tip_xy): Use them to position tooltips.
16638
166392008-03-14 Glenn Morris <rgm@gnu.org>
16640
16641 * emacs.c (main): Revert previous change.
16642 (standard_args): Revert -internal-script back to -scriptload,
16643 and remove the long-option form.
16644
166452008-03-13 Glenn Morris <rgm@gnu.org>
16646
16647 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16648 Remove option -enable-font-backend.
16649
166502008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16651
16652 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16653
166542008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16655
16656 * xterm.c (x_connection_closed): For GTK: If this is the last
16657 terminal just exit without closing the display.
16658
166592008-03-11 Jason Rumney <jasonr@gnu.org>
16660
16661 * w32font.c (w32font_full_name): Use floor to round.
16662
f0131492 166632008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16664
16665 * sound.c (alsa_configure): Declare vol at beginning of block.
16666
16667 * fontset.c (Ffontset_info): Remove extra semicolon.
16668
166692008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16672 size of resulting string.
16673
166742008-03-10 Jason Rumney <jasonr@gnu.org>
16675
16676 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16677
166782008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16679
16680 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16681 Don't pretend as if characters with display property haven't been
16682 consumed for string-replacing-string case.
16683
166842008-03-08 Kim F. Storm <storm@cua.dk>
16685
16686 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16687 (get_next_display_element, next_element_from_string)
16688 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16689
166902008-03-08 Andreas Schwab <schwab@suse.de>
16691
16692 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16693
166942008-03-06 Jason Rumney <jasonr@gnu.org>
16695
16696 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16697 when charset not specified. Only translate ANSI to unicode when
16698 font_type is truetype.
16699 (w32font_coverage_ok): New function.
16700 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16701
167022008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16703
16704 * lread.c (Fread_char): Resolve modifiers.
16705 (Fread_char_exclusive): Likewise.
16706
16707 * character.c (char_resolve_modifier_mask): New function.
16708 (char_string): Use char_resolve_modifier_mask.
16709 (Fchar_resolve_modifiers): New function.
16710 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16711 function.
16712
167132008-03-04 Jason Rumney <jasonr@gnu.org>
16714
16715 * makefile.w32-in: Always include w32font.c in the build.
16716 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16717
167182008-03-04 Andreas Schwab <schwab@suse.de>
16719
16720 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16721 (versionclean): Likewise.
16722
167232008-03-04 Juanma Barranquero <lekktu@gmail.com>
16724
16725 * .cvsignore: Add oo.
16726
167272008-03-03 Andreas Schwab <schwab@suse.de>
16728
16729 * coding.c (decode_coding_object): Inhibit gap shrinking while
16730 decoding in place.
16731
167322008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16733
16734 * w32term.c: Remove unused include "gnu.h".
16735 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16736
16737 * gnu.h: Rename to ...
16738 * emacs-icon.h: ... this.
16739 * xterm.c: Use emacs-icon.h instead of gnu.h.
16740 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16741
167422008-03-03 Juanma Barranquero <lekktu@gmail.com>
16743
16744 * w32font.c: Include math.h.
16745
167462008-03-03 Jason Rumney <jasonr@gnu.org>
16747
16748 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16749 Compute options separately.
16750 (w32font_open_internal): Set glyph_idx before caching metrics.
16751
16752 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16753 Define if system headers don't.
16754 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16755 (w32font_encode_char): Don't declare here.
16756
16757 * w32font.c (Quniscribe, QCformat): New symbols.
16758 (syms_of_w32font): Define them.
16759 (w32font_has_char): Indicate uncertainty.
16760 (w32font_encode_char): Encode as glyph point. Make static.
16761 (recompute_cached_metrics): New function.
16762 (w32font_open_internal): Use it. Set font to use glyph points
16763 initially. Set format based on type of font.
16764 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16765 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16766 on it. Set format based on information available here.
16767 (add_font_entity_to_list): Identify backend based on opentype_only.
16768
167692008-03-02 Andreas Schwab <schwab@suse.de>
16770
16771 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16772
16773 * coding.c (decode_coding_big5, produce_chars):
16774 Fix typos in last change.
16775
167762008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16777
16778 * gnu.h: New icon.
16779
167802008-03-02 Kenichi Handa <handa@m17n.org>
16781
16782 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16783 `dos', don't decode '\r' if that is the last in the source.
16784 (decode_coding_utf_16, decode_coding_emacs_mule)
16785 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16786 (decode_coding_raw_text, decode_coding_charset): Likewise.
16787 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16788
167892008-03-01 Jason Rumney <jasonr@gnu.org>
16790
16791 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16792
167932008-03-01 Kim F. Storm <storm@cua.dk>
16794
16795 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16796
167972008-03-01 Jason Rumney <jasonr@gnu.org>
16798
16799 * w32font.c (w32font_full_name): New function.
16800 (w32font_open_internal): Use it.
16801
168022008-03-01 Kim F. Storm <storm@cua.dk>
16803
16804 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16805
168062008-03-01 Jason Rumney <jasonr@gnu.org>
16807
16808 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16809
168102008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16811
16812 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16813 xg_frame_resized when the event is for the edit widget.
16814
16815 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16816
16817 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16818 set_char_size.
16819 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16820 operations on widgets here. Just set frame size if needed.
16821 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16822 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16823 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16824 the whole frame.
16825 (xg_create_tool_bar): Move attachment of the tool bar to
16826 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16827 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16828
168292008-03-01 Jason Rumney <jasonr@gnu.org>
16830
16831 * w32fns.c (w32_msg_pump): Disable debug code.
16832
168332008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16834
16835 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16836
168372008-02-29 Chong Yidong <cyd@stupidchicken.com>
16838
16839 * xdisp.c (next_overlay_string): Don't set
16840 overlay_strings_at_end_processed_p if we're currently reading from
16841 a display string.
16842
168432008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16844
16845 * xdisp.c (get_overlay_strings_1): Fix typo.
16846
168472008-02-29 Chong Yidong <cyd@stupidchicken.com>
16848
16849 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16850
168512008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16852
16853 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16854
16855 * xdisp.c (display_mode_element): Cancel the previous change.
16856 (decode_mode_spec): Likewise.
16857 (handle_auto_composed_prop): Don't make composition if it->string
16858 is a string.
16859
168602008-02-27 Kim F. Storm <storm@cua.dk>
16861
16862 * lisp.h (GLYPH): Change type from int to struct with separate char
16863 and face_id members.
16864 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16865 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16866 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16867 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16868 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16869 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16870 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16871 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16872 handle new Lisp glyph code encoding, either an integer or a cons.
16873
16874 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16875 (GLYPH_ALIAS): Delete.
16876 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16877 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16878 (GLYPH_FROM_CHAR): Replace macro by ...
16879 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16880
16881 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16882 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16883 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16884 (GLYPH_INVALID_P): New macro.
16885 (spec_glyph_lookup_face): Update prototype.
16886
16887 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16888 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16889 new glyph code encoding.
16890 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16891 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16892
16893 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16894 Adapt to new glyph type and new glyph code encoding.
16895
16896 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16897
16898 * indent.c (current_column, current_column_1, Fmove_to_column)
16899 (compute_motion): Adapt to new glyph code encoding.
16900
16901 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16902
169032008-02-27 Chong Yidong <cyd@stupidchicken.com>
16904
16905 * process.c (wait_reading_process_output): Check for window
16906 changes caused by timers.
16907 Suggested by Johan Bockgård.
16908
169092008-02-27 Glenn Morris <rgm@gnu.org>
16910
16911 * emacs.c (USAGE1): Add `--disable-font-backend'.
16912
169132008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16914
16915 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16916 is made to the buffer.
16917
169182008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16919
16920 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16921 (face_at_string_position):
16922 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16923 (face_at_string_position):
16924 * xdisp.c (display_string, next_overlay_change):
16925 * buffer.h (overlays_at):
16926 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16927 Update callers.
16928
169292008-02-26 Chong Yidong <cyd@stupidchicken.com>
16930
16931 * editfns.c (Fformat): Doc fix.
16932
169332008-02-26 Juanma Barranquero <lekktu@gmail.com>
16934
16935 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16936 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16937 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16938
169392008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16940
16941 * buffer.c (Fbuffer_swap_text): New function.
16942 (syms_of_buffer): Defsubr it.
16943
169442008-02-25 Chong Yidong <cyd@stupidchicken.com>
16945
16946 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16947
169482008-02-25 Jason Rumney <jasonr@gnu.org>
16949
16950 * w32font.c (w32font_draw): Draw one character at a time when padding.
16951
169522008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16953
16954 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16955 Handle a nil arg. Use run_window_configuration_change_hook.
16956 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16957 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16958 Use run_window_configuration_change_hook.
16959
169602008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16961
16962 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16963 1-pixel width.
16964
169652008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16966
16967 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16968 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16969 if the glyph in the font is zero pixel with.
16970
16971 * dispextern.h (struct glyph_string): New member padding_p.
16972
16973 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16974
16975 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16976
16977 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16978
16979 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16980
16981 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16982
169832008-02-25 Jason Rumney <jasonr@gnu.org>
16984
16985 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16986
169872008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16988
16989 Allow fine-grained image-cache flushing.
16990 * dispextern.h (struct image): Add `dependencies' field.
16991 (clear_image_caches): Change arg to Lisp_Object.
16992 * image.c (make_image): Initialize `dependencies' field.
16993 (clear_image_cache): Change arg to allow fine-grained flushing.
16994 Perform the flush even if image-cache-eviction-delay is nil.
16995 (clear_image_caches): Change arg to Lisp_Object.
16996 (Fclear_image_cache): Expand meaning of the argument.
16997 (mark_image): Mark `dependencies' field.
16998 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16999 (lface_hash): Use XHASH rather than XFASTINT.
17000 (face_at_buffer_position): Fix int -> EMACS_INT position.
17001 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17002 (select_frame_for_redisplay): Remove code duplication.
17003 (redisplay_internal): Adapt arg to call to clear_image_caches.
17004
170052008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17006
17007 * s/vms4-0.h:
17008 * s/vms4-2.h:
17009 * s/vms4-4.h:
17010 * s/vms5-5.h: Remove, unused.
17011
17012 * s/irix5-2.h:
17013 * s/irix6-0.h:
17014 * s/riscos5.h:
17015 * s/mach-bsd4-3.h:
17016 * m/mips4.h: Remove files for obsolete systems.
17017
17018 * Makefile.in:
17019 * filelock.c:
17020 * unexmips.c:
17021 * m/hp9000s300.h:
17022 * m/iris4d.h:
17023 * s/aix3-1.h:
17024 * s/hpux.h:
17025 * s/msdos.h:
17026 * s/usg5-0.h:
17027 * s/usg5-2-2.h:
17028 * s/usg5-2.h:
17029 * s/usg5-3.h: Remove references to obsolete variables.
17030
17031 * s/irix5-0.h: Remove, move all the contents ...
17032 * s/irix6-5.h: ... here. Simplify.
17033 * config.in: Regenerate.
17034
170352008-02-24 Jason Rumney <jasonr@gnu.org>
17036
17037 * w32term.c (x_draw_glyph_string_background): Clear the background
17038 manually when cleartype is in use.
17039 (x_draw_glyph_string_foreground): Draw text transparently when
17040 cleartype is in use.
17041
17042 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17043 a font into it unless we have to.
17044
170452008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17046
17047 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17048 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17049
aac0c6e3
MR
170502008-02-18 Jason Rumney <jasonr@gnu.org>
17051
17052 * w32fns.c (Fw32_shell_execute): Encode parameters.
17053
170542008-02-09 Eli Zaretskii <eliz@gnu.org>
17055
17056 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17057
170582008-02-05 Juanma Barranquero <lekktu@gmail.com>
17059
17060 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17061
170622008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17063
17064 * xterm.c (x_set_offset): Don't change the gravity if
17065 CHANGE_GRAVITY is -1.
17066
170672008-02-23 Chong Yidong <cyd@stupidchicken.com>
17068
17069 * fileio.c (auto_save_error_occurred): New var.
17070 (auto_save_error): Set it.
17071 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17072 error occurred.
17073
170742008-02-23 Eli Zaretskii <eliz@gnu.org>
17075
17076 * w32.c (globals_of_w32): Add initializations for
17077 g_b_init_get_sid_sub_authority and
17078 g_b_init_get_sid_sub_authority_count.
17079
170802008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17081
17082 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17083 (font_parse_xlfd): Use them for sanity check.
17084 (Finternal_set_font_style_table): Make sure the table is bijective.
17085
17086 Consolidate the image_cache to the terminal struct.
17087 * termhooks.h (P_): Remove redundant def.
17088 (struct terminal): New field `image_cache'.
17089 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17090 of FRAME_X_IMAGE_CACHE.
17091 * xterm.h (struct x_display_info): Remove image_cache field.
17092 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17093 * w32term.h (struct w32_display_info): Remove image_cache field.
17094 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17095 * macterm.h (struct mac_display_info): Remove image_cache field.
17096 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17097 * xterm.c (x_term_init):
17098 * w32term.c (w32_term_init):
17099 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17100 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17101 Remove declarations.
17102 (clear_image_caches, mark_image_cache): New declarations.
17103 * xfaces.c (clear_face_cache):
17104 * xdisp.c (redisplay_internal): Use clear_image_caches.
17105 * image.c (clear_image_cache): Don't check that a frame is on
17106 a window-system before checking if it shares the same cache.
17107 (clear_image_caches): New function.
17108 (Fclear_image_cache): Use it.
17109 (mark_image): Move from allo.c.
17110 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17111 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17112 (mark_object): Don't call mark_image_cache for frames.
17113 (mark_terminals): Call mark_image_cache.
17114
17115 * lisp.h (Fdelete_terminal): Declare.
17116
17117 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17118 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17119 wrong_type_argument.
17120
171212008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17122
17123 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17124 malayalam.el, and tamil.el. Add sinhala.el.
17125
171262008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17127
17128 * xterm.c (x_connection_closed): Consolidate identical tests.
17129 (x_delete_terminal): Don't crash if called via x_connection_closed.
17130
171312008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17132
17133 * xdisp.c (decode_mode_spec): New arg string.
17134 (display_mode_element): Adjust for the above change.
17135
171362008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17137
17138 * callint.c (Fcall_interactively): Use AREF.
17139
171402008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17141
17142 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17143
171442008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17145
17146 * xfns.c (Fx_show_tip): Set string to " " if empty.
17147
171482008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17149
17150 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17151 with Qt.
17152
171532008-02-17 Kenichi Handa <handa@m17n.org>
17154
17155 * ftfont.c (ftfont_shape): Return Lispy number.
17156
17157 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17158 for GCs.
17159 (Finternal_set_font_selection_order): Call font_update_sort_order
17160 only when enable_font_backend is set.
17161 (realize_x_face): Set face->font_info to that of default face only
17162 when enable_font_backend is set.
17163
17164 * xdisp.c (handle_composition_prop): Set it->c to the fist
17165 character of the composed region.
17166 (fill_composite_glyph_string): Set base_face->font_info to
17167 s->font_info. Get a face for ascii from base_face->ascii_face.
17168 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17169 with a face already decided.
17170 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17171 non-negative.
17172 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17173 call font_prepare_composition unconditionally.
17174
17175 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17176
17177 * xterm.h (struct x_display_info): New member font.
17178
17179 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17180 (x_set_mouse_face_gc, x_new_font): Likewise.
17181 (x_term_init): Setup display_info->font.
17182 (x_delete_terminal): Free display_info->font.
17183
17184 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17185
17186 * ftxfont.c (ftxfont_default_fid): Delete it.
17187 (ftxfont_open): Set xfont->fid to 0.
17188 (ftxfont_end_for_frame): Clear data specific to the frame and the
17189 font-driver.
17190
17191 * xftfont.c (xftfont_default_fid): Delete it.
17192 (xftfont_open): Set xfont->fid to 0.
17193
17194 * fontset.c (FONTSET_OBJLIST): New macro.
17195 (fontset_find_font): Update font-object list of the fontset.
17196 (free_realized_fontset): New function.
17197 (free_face_fontset): Call free_realized_fontset.
17198 (Ffont_info): Call font_close_object only when enable_font_backend
17199 is set.
17200
17201 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17202 [HAVE_NTGUI]: Include w32term.h.
17203 [MAC_OS]: Include macterm.ch.
17204 (font_otf_ValueRecord): Use make_number.
17205 (font_finish_cache): Fix handling of reference count.
17206 (font_clear_cache): Update num_fonts.
17207 (font_open_entity): Update smallest_char_width and
17208 smallest_font_height of the frame.
17209 (font_close_object): Update num_fonts.
17210 (Fclear_font_cache): Fix finding the target cache data.
17211
172122008-02-16 Glenn Morris <rgm@gnu.org>
17213
17214 * fontset.c (Finternal_char_font): Fix compilation warning.
17215
172162008-02-16 Eli Zaretskii <eliz@gnu.org>
17217
17218 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17219 instead of char arrays. Enlarge the size of array passed to
17220 get_token_information.
17221
17222 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17223 warnings.
17224
172252008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17226
17227 * .gdbinit: Don't set `args', it breaks gdb --args.
17228
172292008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17230
17231 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17232 within a narrowed buffer.
17233
172342008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17235
17236 * coding.c (decode_coding_object, encode_coding_object):
17237 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17238
172392008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17240
17241 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17242 hardcoding 1.
17243 (detect_coding_system):
17244 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17245 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17246 * insdel.c (insert_from_gap):
17247 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17248 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17249 (string_to_multibyte):
17250 * character.c (chars_in_text, multibyte_chars_in_text):
17251 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17252
17253 * character.h (FETCH_STRING_CHAR_ADVANCE)
17254 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17255 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17256 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17257
17258 * casefiddle.c (casify_region): Only call after-change and composition
17259 functions on the part of the region that was changed.
17260
17261 * keyboard.c (read_avail_input):
17262 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17263
172642008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17265
17266 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17267 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17268
172692008-02-11 Juanma Barranquero <lekktu@gmail.com>
17270
17271 * w32menu.c (push_submenu_start, push_submenu_end)
17272 (push_left_right_boundary, push_menu_pane, push_menu_item):
17273 * keyboard.c (read_key_sequence): Don't pass args with side effects
17274 to AREF, it fails when compiling with -DENABLE_CHECKING.
17275
172762008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17277
17278 * Makefile.in (${lispsource}international/charprop.el):
17279 Delete this target.
17280
17281 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17282 emacs-unicode-2.
17283
172842008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17285
17286 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17287
172882008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17289
17290 * frame.c (Qnoelisp): New symbol.
17291 (syms_of_frame): Initialize it.
17292 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17293 harmless Elisp code, from a strong `force' from x_connection_closed.
17294 * frame.h (Qnoelisp): Declare.
17295 * xterm.c (x_connection_closed): Pass `noelisp'.
17296
17297 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17298 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17299 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17300 rather than `int' for the type of `type'.
17301
173022008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17303
17304 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17305
17306 * Makefile.in (GNUC): Remove support for gcc-1.x.
17307
173082008-02-10 Richard Stallman <rms@gnu.org>
17309
17310 * lisp.h (ASET): Use AREF, not ASLOT.
17311
173122008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17313
17314 * lisp.h (ASET): Check bounds.
17315
173162008-02-10 Glenn Morris <rgm@gnu.org>
17317
17318 * buffer.c (mode-name): Doc fix.
17319
173202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17321
17322 * Makefile.in:
17323 * emacs.c:
17324 * gmalloc.c:
17325 * keyboard.c:
17326 * lisp.h:
17327 * m/ibm370aix.h:
17328 * process.c:
17329 * regex.c:
17330 * s/hpux.h:
17331 * sysdep.c:
17332 * sysselect.h:
17333 * systty.h:
17334 * unexec.c:
17335 * w32term.c:
17336 * xsmfns.c:
17337 * xterm.c: Remove code that deals with obsolete variables.
17338
17339 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17340
17341 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17342 nothing else needs it anymore.
17343
173442008-02-09 Eli Zaretskii <eliz@gnu.org>
17345
17346 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17347 instead of unibyte_char_to_multibyte.
17348
173492008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17350
17351 * s/gnu-linux.h: Remove commented out code.
17352
17353 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17354
17355 * Makefile.in: Update what RMS says about using autoconf.
17356 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17357 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17358 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17359 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17360
173612008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17362
17363 * keymap.c (Fkey_description): Move side effect outside of macro call.
17364
17365 * xfaces.c (Finternal_make_lisp_face):
17366 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17367
17368 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17369 (syms_of_fontset): Use ASET.
17370
17371 * fns.c (concat): Move side effect outside of macro call.
17372 (hash_clear): Use ASET.
17373
173742008-02-08 Richard Stallman <rms@gnu.org>
17375
17376 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17377 If FORCE, and frame has a surrogate minibuffer for another frame,
17378 delete the other frame first.
17379
173802008-02-07 Timo Savola <timo.savola@iki.fi>
17381
17382 * xterm.c (x_detect_focus_change): Handle embed client message.
17383 (handle_one_xevent): Ditto.
17384 (handle_one_xevent): If embedded and we get a button press/release,
17385 request focus.
17386 (xembed_set_info, xembed_send_message): New functions.
17387 (x_make_frame_visible): Call xembed_set_info if embedded.
17388 (x_make_frame_invisible): Call xembed_set_info if embedded.
17389 (x_term_init): Initialize Xatom_XEMBED.
17390 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17391 (x_iconify_frame): Ditto.
17392
17393 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17394 (enum xembed_info, enum xembed_message, enum xembed_focus)
17395 (enum xembed_modifier, enum xembed_accelerator): New.
17396 (xembed_set_info, xembed_send_message): Declare.
17397 (FRAME_X_EMBEDDED_P): New.
17398
17399 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17400 gtk_plug_new.
17401
17402 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17403 window ID of a frame.
17404 (x_window): Reparent frame if embedded.
17405 (Fx_create_frame): Don't set border width if embedded.
17406
17407 * emacs.c (USAGE3): Add --parent-id.
17408 (standard_args): Ditto.
17409
174102008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17411
17412 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17413
174142008-02-07 Jim Meyering <meyering@redhat.com>
17415
17416 Use "do...while (0)", not "if (1)...else" in macro definitions.
17417 The latter provokes a warning from gcc about the empty else, when
17418 followed by ";". Also, without that trailing semicolon, it would
17419 silently swallow up any following statement.
17420 * syntax.h (SETUP_SYNTAX_TABLE)
17421 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17422 * buffer.h (DECODE_POSITION): Likewise.
17423 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17424 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17425 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17426 (FETCH_CHAR_ADVANCE): Likewise.
17427 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17428
174292008-02-07 Jim Meyering <meyering@redhat.com>
17430
17431 * lread.c [lint]: Don't include <sys/inode.h>.
17432
174332008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17434
17435 * xselect.c (x_handle_dnd_message):
17436 * xmenu.c (digest_single_submenu, xmenu_show):
17437 * xdisp.c (with_echo_area_buffer_unwind_data)
17438 (format_mode_line_unwind_data, unwind_format_mode_line)
17439 (display_menu_bar):
17440 * eval.c (Ffetch_bytecode):
17441 * doc.c (store_function_docstring):
17442 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17443 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17444 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17445
174462008-02-07 Kenichi Handa <handa@m17n.org>
17447
17448 * ftxfont.c (ftxfont_open): Don't set
17449 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17450
17451 * ftfont.c (ftfont_open): Fix previous change.
17452
174532008-02-06 Jason Rumney <jasonr@gnu.org>
17454
17455 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17456 Use cached metrics for ASCII characters.
17457 (w32font_open_internal): Don't set font's owning_frame.
17458 Cache metrics for ASCII characters.
17459
17460 * w32font.h (struct w32font_info): Add ascii_metrics.
17461 Remove owning_frame.
17462
174632008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17464
17465 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17466 to negative value.
17467
17468 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17469
17470 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17471
17472 * charset.c (syms_of_charset): Set QCtest and Qeq.
17473
174742008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17475
17476 * process.c (Fstart_process):
17477 * callproc.c (Fcall_process): Handle the case where
17478 Funhandled_file_name_directory returns nil.
17479
17480 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17481 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17482 * font.c (check_gstring): Use them and AREF to access the vector before
17483 we know it's really a gstring.
17484 (Ffont_shape_text): Fix typo.
46e722a9 17485 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17486
17487 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17488 Declare.
17489
17490 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17491
174922008-02-05 Jason Rumney <jasonr@gnu.org>
17493
17494 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17495 Set smallest_font_height and smallest_char_width in display info.
17496
174972008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17498
17499 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17500
175012008-02-05 Miles Bader <miles@gnu.org>
17502
17503 * xfaces.c (get_lface_attributes, merge_named_face)
17504 (lookup_named_face, lookup_derived_face, realize_named_face):
17505 Revert 2008-02-01 change by cyd@stupidchicken.com.
17506
175072008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17508
17509 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17510 fallback fonts.
17511 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17512
175132008-02-04 Jason Rumney <jasonr@gnu.org>
17514
17515 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17516 set full_name.
17517 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17518
175192008-02-03 Jason Rumney <jasonr@gnu.org>
17520
17521 * makefile.w32-in (OBJ1): Include font.o here.
17522 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17523
175242008-02-02 Jason Rumney <jasonr@gnu.org>
17525
17526 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17527
175282008-02-01 Jason Rumney <jasonr@gnu.org>
17529
17530 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17531
17532 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17533
175342008-02-01 Andreas Schwab <schwab@suse.de>
17535
17536 * Makefile.in (shortlisp, lisp): Update for rename of
17537 ../lisp/language/myanmar.el.
17538
175392008-02-01 Chong Yidong <cyd@stupidchicken.com>
17540
17541 * xfaces.c (get_lface_attributes): Delete function.
17542 (merge_named_face, lookup_named_face, lookup_derived_face)
17543 (realize_named_face): Call lface_from_face_name directly, and use
17544 the fact that merge_face_vectors does not alter its FROM argument.
17545
175462008-02-01 Jason Rumney <jasonr@gnu.org>
17547
17548 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17549 input in the default locale. Handle non-Unicode multibyte input.
17550
175512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17552
17553 * fontset.c (reorder_font_vector): Exclude nil elements from the
17554 font group. Don't try multiple fonts.
17555 (fontset_font): Adjust for the above change.
17556 (Finternal_char_font): Return nil if the found font doesn't
17557 contain the character ch.
17558
17559 * Makefile.in (lisp, shortlisp): Add cham.el.
17560
175612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17562
17563 * font.h (FONTP): Make it return 1 also for a font-object.
17564
17565 * .gdbinit (xfontset): New function.
17566
17567 * font.c (font_find_for_lface): Check if the character C is
17568 supported or not only for the first font.
17569
17570 * fontset.c (reorder_font_vector): Fix typo.
17571 (fontset_find_font): Don't add a font-spec specifying a script.
17572 Use 0 (not Qt) for the indication of empty font-group. Change the
17573 format of RFONT-DEF. Return Qt if no font in the font-group
17574 support the character.
17575 (fontset_font): Adjust for the above change. If no font was
17576 found the character, remember that.
17577 (face_for_char): Adjust for the change of RFONT-DEF.
17578 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17579 no font for the target.
17580 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17581
175822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17583
17584 * font.c (font_load_for_face): Handle the case that the font in
17585 face->lface is a string.
17586
175872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17588
17589 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17590
175912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17592
17593 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17594 Fix previous change. If the frame is not on a window system,
17595 signal an error.
17596
175972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17598
17599 * coding.c (decode_coding_object, encode_coding_object): Adjust
17600 marker positions after conversion.
17601
17602 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17603
176042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17605
17606 * font.c (font_find_for_lface): Fix the handling of the return
17607 value of font_has_char.
17608 (Ffont_shape_text): Fix previous change.
17609
17610 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17611 (fontset_ref_and_range): Delete it.
17612 (fontset_find_font): Call char_table_ref_and_range instead of
17613 FONTSET_REF_AND_RANGE.
17614 (make_fontset): Don't setup font groups of Latin here.
17615 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17616 (new_fontset_from_font): Make the specified font the default for
17617 all Latin characters.
17618
176192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17620
17621 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17622 is on a window system before accessing the fontset of the frame.
17623
176242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17625
17626 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17627
17628 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17629 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17630
17631 * font.c (Ffont_shape_text): If the font driver doesn't have a
17632 shaper function, make zero-width glyphs to have at least one-pixel
17633 width. Fix setting of `to' field of glyphs.
17634
176352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17636
17637 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17638 glyphs.
17639
17640 * font.h (struct font_driver): Improve docstring of member `shape'.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * composite.c (syms_of_composite): Fix docstring of
17645 auto-composition-function.
17646
17647 * font.h (LGLYPH_SIZE): New macro.
17648
17649 * font.c (Ffont_fill_gstring): Stop filling when a character not
17650 supported by the font is found.
17651 (Ffont_shape_text): When a shape callback function returns nil,
17652 try at most two more times with larger gstring.
17653 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17654
17655 * xdisp.c (handle_auto_composed_prop): Change the argument to
17656 auto-composition-function.
17657
17658 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17659 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17660 Lispy glyph and store it in the lgstring.
17661
17662 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17663
17664 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17665
176662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17667
17668 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17669
17670 * fontset.c (Vfont_encoding_charset_alist): New variable.
17671 (syms_of_fontset): DEFVAR it.
17672 (reorder_font_vector, fontset_find_font): Optimize for the case of
17673 no need of reordering.
17674 (face_for_char): Map the charset property by
17675 Vfont_encoding_charset_alist.
17676
176772008-02-01 Jason Rumney <jasonr@gnu.org>
17678
17679 * w32font.c (logfonts_match): Don't check adstyle here.
17680 (font_matches_spec): Check here against physical font instead.
17681 (add_font_entity_to_list): Avoid some substitutions.
17682
17683 * font.c (font_parse_fcname): Default weight and slant to normal.
17684 (font_score): Prefer normal fonts if weight or slant unspecified.
17685 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17686 match freetype scores.
17687
176882008-02-01 Jason Rumney <jasonr@gnu.org>
17689
17690 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17691 font, as it may have been deleted.
17692 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17693 most common hyphenless variation.
17694 (logfonts_match): Check generic family.
17695 (font_matches_spec): Don't check generic family here.
17696 (fill_in_logfont): Set generic family based on adstyle.
17697
17698 * w32font.h (w32font_get_cache): Update declaration.
17699
177002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17701
17702 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17703
17704 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17705 If none of the new drivers are available, call font_update_drivers
17706 with the old drivers.
17707
17708 * w32font.c (w32font_get_cache): Adjust the argument type.
17709
17710 * xfont.c (xfont_get_cache): Adjust the argument type.
17711
17712 * font.h (struct font_driver): Change argument type of get_cache.
17713
17714 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17715
17716 * font.c (Ffont_get): Fix arguments to Fassoc.
17717 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17718 (font_clear_cache): New function.
17719 (font_list_entities, font_matching_entity): Use font_get_cache.
17720 (font_update_drivers): Call font_clear_cache when finishing a driver.
17721
17722 * fontset.c (fontset_find_font): Fix previous change.
17723
177242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17725
17726 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17727 dpyinfo->font_table.
17728 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17729 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17730
17731 * font.c (font_at): Handle the case that the arg C is negative.
17732 Handle the unibyte case.
17733 (Ffont_at): Call font_at with the arg C -1.
17734
17735 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17736 the position here, and call font_at with the arg C -1.
17737 Don't check the range of the existing composition at the point.
17738
177392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17740
17741 * fontset.c (fontset_add): New args charset_id and family.
17742 Change caller.
17743 (load_font_get_repertory, fontset_find_font): Assume that
17744 font_spec is always a font-spec object.
17745 (Fset_fontset_font): Always store a font-spec object in a fontset.
17746
17747 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17748 instead of get_property_and_range.
17749
177502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17751
17752 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17753 (xftfont_open): Don't keep locking face.
17754 (xftfont_close): Don't unlock face.
17755 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17756
17757 * fontset.c (fontset_find_font): Don't prefer a font of
17758 supplementary charset.
17759
177602008-02-01 Kenichi Handa <handa@m17n.org>
17761
17762 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17763 script, langsys_tag to langsys, new member script.
17764 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17765 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17766 listing to the script specified in that property. Fix arg to
17767 OTF_check_features.
17768
177692008-02-01 Jason Rumney <jasonr@gnu.org>
17770
17771 * w32font.h: New file.
17772
17773 * w32font.c: Include it.
17774 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17775 (w32font_open): Set owning_frame.
17776 (w32font_text_extents): Use owning_frame.
17777 (struct font_callback_data): Add opentype_only field.
17778 (add_font_entity_to_list): Use it to filter fonts.
17779 Don't check against full name.
17780 (w32font_list_internal): New function.
17781 (w32font_list): Use it.
17782 (w32font_match_internal): New function.
17783 (w32font_match): Use it.
17784 (w32font_open_internal): New function.
17785 (w32font_open): Use it.
17786 (w32font_get_cache, w32font_close, w32font_has_char)
17787 (w32font_encode_char, w32font_text_extents, w32font_draw):
17788 Make non-static.
17789
17790 * makefile.w32-in (w32font.o): Depend on w32font.h.
17791
177922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17793
17794 * charset.c (Fdefine_charset_internal): Record a supplementary
17795 charset at the tail of Vcharset_order_list.
17796
17797 * font.c (Ffont_shape_text): Fix the return value.
17798
17799 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17800
17801 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17802
178032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17804
17805 * ftfont.c (struct OpenTypeSpec): New struct.
17806 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17807 (ftfont_get_open_type_spec): New function.
17808 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17809
17810 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17811
178122008-02-01 Jason Rumney <jasonr@gnu.org>
17813
17814 * w32font.c (add_font_entity_to_list): Compare only the beginning
17815 of full name.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17820 Never return HANDLED_RECOMPUTE_PROPS.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 * font.c (font_gstring_produce): Delete it.
17825
17826 * composite.h (COMPOSITION_METHOD):
17827 Handle COMPOSITION_WITH_GLYPH_STRING.
17828
178292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17830
17831 * xfont.c (Qx): Delete.
17832 (syms_of_xfont): Don't initialize Qx.
17833
17834 * composite.h (enum composition_method):
17835 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17836
178372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17838
17839 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17840 (choose_face_font): Accept new form of font-spec.
17841
17842 * frame.h (font_driver_list): Declare it unconditionally.
17843 (struct frame): Define members font_driver_list and font_data_list
17844 unconditionally.
17845
17846 * fontset.c: Include "font.h" unconditionally.
17847 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17848 (Fset_fontset_font): Accept a font-spec object.
17849
17850 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17851 PIXEL_SIZE part a wild card.
17852
17853 * dispextern.h (struct glyph_string): Define members clip and
17854 num_clips unconditionally.
17855 (struct face): Define members font_info and extra unconditionally.
17856
17857 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17858 ftfont_info only when HAVE_LIBOTF is defined.
17859
178602008-02-01 Andreas Schwab <schwab@suse.de>
17861
17862 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17863 and end.
17864
178652008-02-01 Jason Rumney <jasonr@gnu.org>
17866
17867 * w32font.c (w32font_driver): Add new fields.
17868
178692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17870
17871 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17872 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17873 (LIBES): Add @M17N_FLT_CFLAGS@.
17874
17875 * composite.c (compose_text): Don't treat the new style
17876 composition specially.
17877
17878 * emacs.c (main): Call syms_of_font unconditionally.
17879
17880 * font.h (FONT_ENTITY_NOT_LOADABLE)
17881 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17882 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17883 (struct font_driver): New member shape.
17884 (font_registry_charsets): Extern it.
17885 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17886 (font_otf_capability, font_drive_otf): Delete their externs.
17887
17888 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17889 (font_charset_alist, font_registry_charsets): Move from xfont.c
17890 and rename.
17891 (font_prop_validate_otf): New function.
17892 (font_property_table): Register it for QCotf.
17893 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17894 (font_drive_otf): Delete.
17895 (font_prepare_composition): New arg F. Adjust for the change of
17896 lispy gstring.
17897 (font_find_for_lface): New arg C.
17898 (font_load_for_face): Adjust for the change of font_find_for_lface.
17899 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17900 lispy gstring.
17901 (Ffont_shape_text): New function.
17902 (Fopen_font): If the font size is not given, use 12-pixel.
17903 (Ffont_at): New arg STRING.
17904 (syms_of_font): Initalize font_charset_alist.
17905 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17906 conditionally.
17907
17908 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17909 fonts of the same font-spec. Change the format of RFONT-DEF.
17910 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17911 Adjust for the change of RFONT-DEF.
17912 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17913
17914 * ftfont.h: New file.
17915
17916 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17917 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17918 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17919 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17920 font_otf_capability and font_drive_otf, set ftfont_shape.
17921 (ftfont_list): Adjust for the change of :otf property value.
17922 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17923 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17924 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17925 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17926 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17927 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17928
17929 * w32term.c (x_draw_composite_glyph_string_foreground):
17930 Adjust for the change of lispy gstring.
17931
17932 * xdisp.c (handle_composition_prop): Adjust for the change of
17933 lispy gstring. Call a function for auto-composition with the
17934 third arg it->window.
17935 (fill_composite_glyph_string): Adjust for the change of lispy string.
17936 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17937
17938 * xfaces.c (set_font_frame_param): Adjust for the change of
17939 font_find_for_lface.
17940
17941 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17942 (xfont_registry_charsets): Likewise. Change caller.
17943 (syms_of_xfont): Don't handle x_font_charset_alist.
17944
17945 * xftfont.c: Include "ftfont.h".
17946 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17947 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17948 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17949 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17950 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17951 Set xftfont_driver.shape to xftfont_shape.
17952
17953 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17954 the change of lispy gstring.
17955
179562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17957
17958 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17959
179602008-02-01 Jason Rumney <jasonr@gnu.org>
17961
17962 * w32font.c (w32font_draw): Fill background manually.
17963
179642008-02-01 Jason Rumney <jasonr@gnu.org>
17965
17966 * font.c (Qfontp): Remove unused symbol.
17967 (QCantialias): New symbol.
17968 (syms_of_font): Define it.
17969 (font_property_table): Set a validator for QCantialias.
17970
17971 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17972 Define if not already.
17973 (QCfamily): Share with xfaces.c.
17974 (Qstandard, Qsubpixel, Qnatural): New symbols.
17975 (syms_of_w32font): Define them. Don't define QCfamily here.
17976 (w32_antialias_type, lispy_antialias_type): New functions.
17977 (w32_enumfont_pattern_entity): New arg requested_font.
17978 Set antialias parameter if non-default was requested.
17979 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17980
179812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17982
17983 * lread.c (read1): Undo the previous change.
17984
179852008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17986
17987 * frame.c (Fdelete_frame): Call font_update_drivers only when
17988 USE_FONT_BACKEND is defined.
17989
179902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17991
17992 * font.h (struct font_bitmap): New member bits_per_pixel.
17993 (struct font_driver): New members start_for_frame and end_for_frame.
17994 (struct font_data_list): New struct.
17995 (font_put_frame_data, font_get_frame_data): Extern them.
17996
17997 * frame.h (struct frame): New member font_data_list.
17998
17999 * font.c (font_update_drivers): Call driver->start_for_frame and
18000 driver->end_for_frame at proper timings.
18001 (font_put_frame_data, font_get_frame_data): New functions.
18002 (Ffont_spec): Add usage in the docstring.
18003
18004 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18005 (Fdelete_frame): Call font_update_drivers.
18006
18007 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18008 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18009 (xftfont_get_xft_draw): New function.
18010 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18011 (xftfont_end_for_frame): New function.
18012 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18013
18014 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18015 Change argument. Cache GCs in the per-frame data.
18016 (struct ftxfont_frame_data): New struct.
18017 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18018 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18019 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18020 (ftxfont_end_for_frame): New function.
18021 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18022
18023 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18024
180252008-02-01 Kenichi Handa <handa@m17n.org>
18026
18027 * xselect.c (Vselection_coding_system)
18028 (Vnext_selection_coding_system): Delete them.
18029 (syms_of_xselect): Don't declare selection-coding-system and
18030 next-selection-coding-system. They are declared in select.el.
18031
180322008-02-01 Jason Rumney <jasonr@gnu.org>
18033
18034 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18035
18036 * w32fns.c: Include imm.h.
18037 (get_composition_string_fn, get_ime_context_fn): New optional
18038 system functions.
18039 (globals_of_w32fns): Load them from imm32.dll.
18040 (ignore_ime_char): New flag.
18041 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18042 WM_IME_ENDCOMPOSITION messages.
18043
18044 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18045 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18046
180472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18048
18049 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18050 (READCHAR_REPORT_MULTIBYTE): New macro.
18051 (readchar): New 2nd arg MULTIBYTE.
18052 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18053 Make symbol's name multibyte according to the multibyteness of the
18054 source.
18055
180562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18057
18058 * xfaces.c (face_for_overlay_string): Call lookup_face with
18059 correct arguments (fix of synching with the trunk).
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18064 (font_prop_validate_non_neg, font_prop_validate_spacing):
18065 Delete argument prop_index.
18066 (font_property_table): Change arguments to validater. Change Callers.
18067 (font_lispy_object): Delete.
18068 (font_at): Use font_find_object instead fo font_lispy_object.
18069
180702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18071
18072 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18073 and file names.
18074
180752008-02-01 Jason Rumney <jasonr@gnu.org>
18076
18077 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18078 (font_matches_spec): Remove debug output.
18079 (add_font_entity_to_list): Avoid using substituted fonts.
18080
180812008-02-01 Jason Rumney <jasonr@gnu.org>
18082
18083 * doc.c (Fsnarf_documentation):
18084 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18085
180862008-02-01 Miles Bader <miles@gnu.org>
18087
18088 * dispextern.h (struct glyph_row): Only define "clip" field if
18089 HAVE_WINDOW_SYSTEM is defined.
18090
180912008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18092
18093 Fix up multi-tty merge.
18094
18095 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18096 and indentation.
18097
18098 * xfaces.c (free_realized_face, clear_face_gcs):
18099 Include font_done_for_face in the input_blocked section, just in case.
18100
18101 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18102 (get_char_face_and_encoding): Undo last change and remove the *other*
18103 duplicate definition (i.e. keep the one that's better scoped and that
18104 includes code for the font-backend).
18105
18106 * terminal.c (create_terminal): Default keyboard_coding to
18107 `no-conversion' and terminal_coding to `undecided'.
18108
18109 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18110
18111 * fontset.c (free_realized_fontsets): Check that the table entry does
18112 contain a fontset before trying to compare it to `base'.
18113
18114 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18115 syms_of_charset, and syms_of_coding earlier because init_window_once
18116 now needs Vcoding_system_hash_table to be setup.
18117
18118 * coding.h (default_buffer_file_coding): Remove.
18119
18120 * coding.c (default_buffer_file_coding): Remove.
18121 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18122 than ->symbol, and use the terminal-local coding system.
18123 (syms_of_coding): Don't setup the coding-systems that are not
18124 terminal-local.
18125 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18126
18127 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18128 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18129
18130 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18131 in chartab.c and were re-added here by mistake.
18132 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18133
18134 * doc.c (Fsnarf_documentation):
18135 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18136 src to etc.
18137
18138 * ChangeLog.10: Add mistakenly removed entry.
18139
181402008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18141
18142 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18143
181442008-02-01 Miles Bader <miles@gnu.org>
18145
18146 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18147 Add extra args to FACE_FOR_CHAR.
18148
181492008-02-01 Kenichi Handa <handa@m17n.org>
18150
18151 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18152 in sequence.
18153
18154 * chartab.c (map_sub_char_table, map_char_table): If the range
18155 contains just one character, call the function with that character
18156 even if the depth is not 3.
18157
181582008-02-01 Jason Rumney <jasonr@gnu.org>
18159
18160 * w32font.c (w32font_text_extents): Calculate metrics for the
18161 whole string.
18162
181632008-02-01 Jason Rumney <jasonr@gnu.org>
18164
18165 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18166
181672008-02-01 Jason Rumney <jasonr@gnu.org>
18168
18169 * w32term.c (x_set_glyph_string_clipping): Use
18170 get_glyph_string_clip_rects.
18171 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18172 Adjust for the change of struct glyph_string.
18173
18174 * w32font.c (w32font_draw): Do clipping here.
18175
181762008-02-01 Kenichi Handa <handa@m17n.org>
18177
18178 * xftfont.c (xftfont_draw): Adjust for the change of struct
18179 glyph_string.
18180
18181 * xterm.c (x_set_glyph_string_clipping): Use
18182 get_glyph_string_clip_rects.
18183 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18184 Adjust for the change of struct glyph_string.
18185
18186 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18187 the resulting clip(s}.
18188 (expose_overlaps): Add arg r. Change callers. Set it to
18189 row->clip temporarily.
18190 (expose_window): Redraw rows overlapping the exposed area.
18191
18192 * dispextern.h (struct glyph_row): New member clip.
18193 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18194 clip_height, new member clip, and num_clips.
18195
181962008-02-01 Kenichi Handa <handa@m17n.org>
18197
18198 * data.c (Fchar_or_string_p): Fix docstring.
18199
182002008-02-01 Kenichi Handa <handa@m17n.org>
18201
18202 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18203 create a temporary XftDraw object.
18204
182052008-02-01 Kenichi Handa <handa@m17n.org>
18206
18207 * font.c (Ffontp): Fix docstring.
18208
18209 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18210 strong evidence of ISO-2022.
18211
182122008-02-01 Kenichi Handa <handa@m17n.org>
18213
18214 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18215 SYNTAX_ENTRY_FOLLOW_PARENT.
18216
182172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18218
18219 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18220 its type.
18221 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18222 Update to the new type of weak_hash_tables and next_weak.
18223
18224 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18225 a plain C pointer to Lisp_Hash_Table.
18226
18227 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18228 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18229 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18230 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18231 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18232 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18233 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18234 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18235 (GC_EQ): Remove since they've been identical to their non-GC_
18236 alter-egos ever since the markbit was eradicated.
18237
18238 * alloc.c:
18239 * buffer.c:
18240 * buffer.h:
18241 * data.c:
18242 * fileio.c:
18243 * filelock.c:
18244 * fns.c:
18245 * frame.h:
18246 * lisp.h:
18247 * macterm.c:
18248 * print.c:
18249 * process.c:
18250 * w32fns.c:
18251 * w32menu.c:
18252 * w32term.c:
18253 * xfns.c:
18254 * xmenu.c:
18255 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18256
182572008-02-01 Kenichi Handa <handa@m17n.org>
18258
18259 * chartab.c (map_sub_char_table): Make it work for the top-level
18260 char-table. Fix handling of parent char-table.
18261 (map_char_table): Adjust for the above change.
18262
182632008-02-01 Jason Rumney <jasonr@gnu.org>
18264
18265 * w32font.c (Qgdi): Rename from Qw32.
18266
182672008-02-01 Jason Rumney <jasonr@gnu.org>
18268
18269 * w32bdf.c (get_quoted_string): Make function static.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18274 bigger ascent and descent than those of the font, use them as
18275 font's ascent and descent.
18276
182772008-02-01 Kenichi Handa <handa@m17n.org>
18278
18279 * Makefile.in (${lispsource}international/charprop.el): Move this
18280 target within "#ifdef HAVE_UNIDATA" and "#endif".
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18285 (shortlisp): Add ../lisp/language/tai-viet.el.
18286
182872008-02-01 Ulrich Mueller <ulm@gentoo.org>
18288
18289 * Makefile.in (${lispsource}international/charprop.el): Depend on
18290 temacs${EXEEXT}.
18291
182922008-02-01 Jason Rumney <jasonr@gnu.org>
18293
18294 * w32font.c (w32font_close): Delete the GDI font object.
18295
18296 * w32menu.c: Include character.h.
18297
18298 * w32proc.c: Likewise.
18299
18300 * w32select.c: Likewise.
18301
18302 * makefile.w32-in (w32proc.o): Depend on character.h.
18303
183042008-02-01 Jason Rumney <jasonr@gnu.org>
18305
18306 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18307
18308 * w32menu.c (syms_of_w32menu): Likewise.
18309
18310 * w32proc.c (syms_of_ntproc): Likewise.
18311
18312 * w32select.c (syms_of_w32select): Likewise.
18313
18314 * w32term.c (syms_of_w32term): Likewise.
18315
183162008-02-01 Jason Rumney <jasonr@gnu.org>
18317
18318 * w32font.c (w32font_draw): Delete brush after using it.
18319
183202008-02-01 Jason Rumney <jasonr@gnu.org>
18321
18322 * w32font.c (w32font_open): Don't set font_idx.
18323 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18324 to font settings.
18325 (w32font_draw): Fill background explicitly.
18326
183272008-02-01 Jason Rumney <jasonr@gnu.org>
18328
18329 * w32term.c (w32_initialize): Don't call w32font_initialize.
18330
18331 * w32font.c (w32font_info): Remove subranges.
18332 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18333 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18334 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18335 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18336 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18337 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18338 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18339 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18340 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18341 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18342 New symbols.
18343 (font_callback_data): New struct.
18344 (w32font_list, w32font_match): Use it.
18345 (w32font_open): Don't populate subranges.
18346 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18347 (w32font_encode_char): Always return unicode code-point as-is.
18348 (w32font_text_extents): Supply a transformation matrix to
18349 GetGlyphOutline. Never look up by glyph index. Avoid looping
18350 twice. Use unicode version of GetTexExtentPoint32 instead of
18351 glyph index version.
18352 (set_fonts_frame): Remove.
18353 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18354 set frame parameter. Use backward compatible fake foundries.
18355 Save generic family in extra slot under QCfamily. Make width slot
18356 constant. Save QCspacing value. Save list of scripts instead of
18357 binary subranges.
18358 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18359 (add_font_entity_to_list): Use font_callback_data struct. Filter
18360 unwanted fonts.
18361 (add_one_font_entity_to_list): Use font_callback_data struct.
18362 (w32_registry): Default to iso10646_1.
18363 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18364 string font registries. Don't fill in font name if it is a generic
18365 family name, fill family instead. Use spacing, family and script
18366 extra info to fill pitch, family and charset fields.
18367 (list_all_matching_fonts): Use font_callback_data struct.
18368 (unicode_range_for_char): Remove.
18369 (font_supported_scripts): New function.
18370 (w32font_initialize): Remove.
18371 (syms_of_w32font): Update which symbols are defined.
18372
183732008-02-01 Jason Rumney <jasonr@gnu.org>
18374
18375 * font.c (font_pixel_size): Reverse assq_no_quit args.
18376
18377 * w32term.h (FONT_WIDTH): Report max width, not average.
18378 (FONT_MAX_WIDTH): Remove.
18379 (FONT_AVG_WIDTH): New macro.
18380
18381 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18382 redefinition of FONT_WIDTH.
18383
18384 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18385 (w32_cache_char_metrics): Use FONT_WIDTH.
18386
18387 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18388
183892008-02-01 Jason Rumney <jasonr@gnu.org>
18390
18391 * w32font.c (w32font_open): Make lfHeight negative.
18392
18393 * w32fns.c (x_default_font_parameter): Use new style font name.
18394 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18395
183962008-02-01 Jason Rumney <jasonr@gnu.org>
18397
18398 * w32font.c (QCsubranges): New symbol.
18399 (w32font_open, w32font_has_char): Get subranges from subproperty
18400 of extra.
18401 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18402 (syms_of_w32font): Define :subranges symbol.
18403
18404 * font.c (font_put_extra): Expose externally.
18405
18406 * font.h (font_put_extra): Move declaration from font.c.
18407
18408 * font.c (Ffont_get): Use font driver to determine otf capability.
18409 (adjust_anchor): Check if driver defines anchor_point before using.
18410
18411 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18412 (w32font_draw): Use options.
18413 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18414 Fix detection of truetype fonts.
18415 (registry_to_w32_charset): Handle charsets other than iso8859-1
18416 expressed as lisp symbols.
18417 (w32_registry): Express charset as lisp symbol.
18418 (fill_in_logfont): Reverse pixel and point height logic.
18419 Don't set width here. Set quality to default.
18420
18421 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18422 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18423
18424 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18425 Remove redundant loop and allocation.
18426
18427 * makefile.w32-in (font.o, w32font.o): New objects.
18428 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18429 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18430
18431 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18432 STORE_XCHARB a valid l-value.
18433
18434 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18435 calculations for non-Truetype fonts.
18436 (x_draw_glyph_string): Sync with xterm.c.
18437 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18438 Remove redundant code.
18439 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18440
18441 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18442 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18443
18444 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18445 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18446
18447 * w32font.c: New file for w32 font backend.
18448
184492008-02-01 Kenichi Handa <handa@m17n.org>
18450
18451 * term.c: Don't include "buffer.h" twice.
18452
184532008-02-01 Kenichi Handa <handa@m17n.org>
18454
18455 * character.c (Funibyte_string): New function.
18456 (syms_of_character): Defsubr it.
18457
184582008-02-01 Jason Rumney <jasonr@gnu.org>
18459
18460 * w32term.c [USE_FONT_BACKEND]:
18461 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18462 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18463 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18464 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18465 (x_free_frame_resources): Sync with xterm.c.
18466
184672008-02-01 Andreas Schwab <schwab@suse.de>
18468
18469 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18470 char-table size.
18471
184722008-02-01 Kenichi Handa <handa@m17n.org>
18473
18474 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18475
184762008-02-01 Kenichi Handa <handa@m17n.org>
18477
18478 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18479 font_otf_gpos, add font_drive_otf.
18480
18481 * fontset.c (fontset_find_font): Pay attention to font size
18482 specified for a font.
18483 (reorder_font_vector): Check contents of font_def.
18484
18485 * font.c (struct otf_list): Delete it.
18486 (otf_list): Make it a lisp variable.
18487 (otf_open): Use lispy otf_list.
18488 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18489 (check_otf_features): New function.
18490 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18491 New functions.
18492 (font_drive_otf): New function merging font_otf_gsub and
18493 font_otf_gpos.
18494 (font_open_for_lface): New arg spec. Change argument order.
18495 (font_load_for_face): Adjust for the change of font_open_for_lface.
18496 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18497 Ffont_otf_gpos.
18498 (syms_of_font): Staticpro otf_list. Delete defsubr of
18499 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18500
18501 * xfaces.c (set_font_frame_param): Adjust for the change of
18502 font_open_for_lface.
18503
18504 * font.h (font_open_for_lface): Adjust prototype.
18505 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18506 member otf_drive.
18507 (font_otf_gsub, font_otf_gpos): Delete externs.
18508 (font_drive_otf): Extern it.
18509
185102008-02-01 Kenichi Handa <handa@m17n.org>
18511
18512 * font.c (font_at): If the window W is not on a window system,
18513 return Qnil.
18514
18515 * coding.c (produce_chars, encode_coding): Don't call
18516 insert_from_gap if no characters to produce.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18521 Fclear_face_cache.
18522
18523 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18524
185252008-02-01 Miles Bader <miles@gnu.org>
18526
18527 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18528 Parse "--disable-font-backend" option.
18529 (standard_args): Add "--disable-font-backend" option.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * fontset.c (fontset_find_font): New function.
18534 (fontset_font): Use fontset_find_font.
18535 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18536 Register the specified font for all Latin characters.
18537 (new_fontset_from_font): Register the specified font for all Latin
18538 characters.
18539 (dump_fontset): For a realized fontset, include the base fontset
18540 name in the returned vector.
18541
185422008-02-01 Kenichi Handa <handa@m17n.org>
18543
18544 * character.h (CHAR_STRING): Cast C to unsigned on calling
18545 char_string.
18546
18547 * character.c (char_string): Type of arg C changed to unsigned.
18548 Signal an error if C is an invalid character code.
18549
18550 * editfns.c (general_insert_function, Fchar_to_string):
18551 Use CHARACTERP, not INTEGERP.
18552
185532008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18556 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18557
18558 * regex.c (analyse_first): Fix for multibyte characters in "case
18559 charset:" and "case categoryspec:".
18560
185612008-02-01 Andreas Schwab <schwab@suse.de>
18562
18563 * Makefile.in (LIBES): Move standard libraries to the end.
18564
185652008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18568 nonzero, don't shrink the buffer nextb.
18569
18570 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18571
18572 * coding.c (coding_alloc_by_making_gap): New arg offset.
18573 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18574 offset.
18575 (decode_coding_iso_2022): Update coding->safe_charsets.
18576 (decode_coding_gap): Temporarily set
18577 current_buffer->text->inhibit_shrinking to 1.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18582 indexing into elements of s->cmp and s->char2b.
18583
185842008-02-01 Juanma Barranquero <lekktu@gmail.com>
18585
18586 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18587
185882008-02-01 Kenichi Handa <handa@m17n.org>
18589
18590 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18591 target_multibyte instead of multibyte.
18592 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18593 (bcmp_translate): Change the argument name from multibyte to
18594 target_multibyte.
18595
185962008-02-01 Kenichi Handa <handa@m17n.org>
18597
18598 These changes are to compile a regexp into a pattern that can be
18599 used both for multibyte and unibyte targets.
18600
18601 * Makefile.in (search.o): Depend on charset.h.
18602
18603 * character.c (multibyte_char_to_unibyte_safe): New function.
18604
18605 * search.c: Include "charset.h".
18606 (compile_pattern_1): Delete argument multibyte. Don't set
18607 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18608 (compile_pattern): Don't compare cp->buf.target_multibyte.
18609 Compare cp->buf.charset_unibyte.
18610 (compile_pattern): Set cp->buf.target_multibyte.
18611
18612 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18613
18614 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18615
18616 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18617 multibyte. Change callers.
18618 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18619 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18620 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18621 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18622 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18623 (regex_compile): Make the compiled pattern usable both for
18624 multibyte and unibyte targets.
18625 (analyse_first): Make the fastmap usable both for multibyte and
18626 unibyte targets.
18627 (TRANSLATE_VIA_MULTIBYTE): Delete.
18628 (re_match_2_internal): Pay attention to the case that the
18629 multibyteness of bufp and target may be different.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18634 empty box occupy at least one column width.
18635
186362008-02-01 Miles Bader <miles@gnu.org>
18637
18638 * Makefile.in: Remove redundant HAVE_XFT clause.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18647 being nil.
18648
186492008-02-01 Kenichi Handa <handa@m17n.org>
18650
18651 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18656
186572008-02-01 Kenichi Handa <handa@m17n.org>
18658
18659 * search.c (simple_search): Fix previous change.
18660
186612008-02-01 Kenichi Handa <handa@m17n.org>
18662
18663 * xftfont.c (ftfont_font_format): Extern declaration.
18664
18665 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18666
18667 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18668 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18669
18670 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18671 (ftfont_font_format): Fix previous change.
18672
18673 * font.h (Ffont_xlfd_name): EXFUN it.
18674
18675 * font.c (font_parse_xlfd): Fix the array size of `f'.
18676 (register_font_driver): Use EQ to compare driver->type.
18677
18678 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18679 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18680 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18685 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * xfont.c (xfont_open): Set font->format.
18690
18691 * xftfont.c (xftfont_open): Set font->format.
18692
18693 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18694 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18695 (ftfont_open): Set font->format.
18696 (ftfont_font_format): New function.
18697
18698 * font.h (struct font): New member format.
18699
18700 * font.c (Qopentype): New variable.
18701 (syms_of_font): Defsym it.
18702 (Fquery_font): Change the format of the last element of the return
18703 value.
18704
187052008-02-01 Kenichi Handa <handa@m17n.org>
18706
18707 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18708 last resort.
18709
187102008-02-01 Kenichi Handa <handa@m17n.org>
18711
18712 * coding.c (detect_coding_charset): Fix detection of multi-byte
18713 charset.
18714
187152008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18716
18717 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * xdisp.c (get_next_display_element): Set it->face_id for the
18722 first component of a composition.
18723 (x_produce_glyphs): Check if the font is changed or not for composition.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * fontset.c (Qlatin): New variable.
18728 (syms_of_fontset): Define it as a lisp symbol.
18729 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18730
187312008-02-01 Kenichi Handa <handa@m17n.org>
18732
18733 * font.c (font_unparse_fcname): Pay attention to the case that
18734 some of font property is a null string.
18735
187362008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * term.c: Include "composite.h".
18739 (encode_terminal_code): Output all components of composition.
18740 Check the size of encode_terminal_src.
18741 (produce_glyphs): For composition, call produce_composite_glyph.
18742 (append_composite_glyph, produce_composite_glyph): New functions.
18743
18744 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18745 is not found, get font_info from the current ascii face.
18746
187472008-02-01 Kenichi Handa <handa@m17n.org>
18748
18749 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18750 buffer-file-name to Qnil before calling insert_from_buffer.
18751
18752 * font.c (font_unparse_fcname): Pay attention to the case that
18753 foundry is a null string.
18754
187552008-02-01 Kenichi Handa <handa@m17n.org>
18756
18757 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18758
18759 * font.c (Qunicode_sip): New variable.
18760 (syms_of_font): Declare it as a Lisp symbol.
18761
18762 * font.h (Qunicode_sip): Extern it.
18763
187642008-02-01 Kenichi Handa <handa@m17n.org>
18765
18766 * composite.c (get_composition_id): Pay attention to TAB component.
18767
18768 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18769 TAB. Adjust for the change of s->char2b which always points to
18770 the first element of allocated memory.
18771
18772 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18773
18774 * xdisp.c (handle_composition_prop): Set it->c to the first
18775 non-TAB component.
18776 (fill_composite_glyph_string): Change argument.
18777 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18778 (x_produce_glyphs): Fix handling of left/right padding.
18779
187802008-02-01 Kenichi Handa <handa@m17n.org>
18781
18782 * coding.c (detect_coding_system): Fix for handling off
18783 inhibit_iso_escape_detection. Fix for the case that no coding
18784 system is defined for a specific coding category.
18785
187862008-02-01 Kenichi Handa <handa@m17n.org>
18787
18788 * font.c (font_matching_entity): Delete unused local var.
18789
18790 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18791 opening a font.
18792
18793 * fileio.c (Finsert_file_contents): On recovering a file, assume
18794 Unix-like eol.
18795 (choose_write_coding_system): On auto-saving a file, force
18796 Unix-like eol.
18797
18798 * coding.c (setup_coding_system): Fix setting of
18799 coding->common_flags based on eol_type.
18800 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18801 inherit from it.
18802
188032008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * alloc.c (NSTATICS): Increas to 0x600.
18806
188072008-02-01 Kenichi Handa <handa@m17n.org>
18808
18809 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18810 (ftfont_list): Don't check :name property.
18811 (ftfont_match): New function.
18812 (ftfont_pattern_entity): If the pattern doesn't contain
18813 FC_SPACING, don't assume FC_MONO.
18814
18815 * font.h (struct font_driver): New member `match'.
18816 (font_update_drivers): Adjust prototype.
18817
18818 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18819 property of FONT.
18820 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18821 them unconditionally.
18822 (font_matching_entity): New function.
18823 (font_open_by_name): Try font_matching_entity if exact match is
18824 not found.
18825 (font_update_drivers): Delete the arg FONT. Return a list of
18826 actually used backends. Don't free faces, font caches here.
18827 Don't store data in frame parameters. Don't call x_set_font.
18828 (Ffont_spec): Store :name property as is.
18829 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18830 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18831 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18832 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18833 Call font->driver->otf_gsub instead of font_otf_gsub.
18834
18835 * frame.c (x_set_font_backend): Do more works that were done in
18836 font_update_drivers before.
18837
18838 * xfont.c (xfont_match): New function.
18839 (xfont_driver): Set xfont_driver.match to xfont_match.
18840 (xfont_draw): Set font in GC if necessary.
18841
18842 * ftxfont.c (ftxfont_match): New function.
18843 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18844
18845 * xftfont.c (xftfont_match): New function.
18846 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * font.h (struct font): New member scalable.
18851 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18852 (font_otf_gsub): Adjust prototype.
18853
18854 * font.c (font_otf_capability): Fix handling of the default langsys.
18855 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18856 Check the contents of SPEC.
18857 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18858 (check_gstring): New function.
18859 (REPLACEMENT_CHARACTER): New macro.
18860 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18861 glyph codes of GSTRING.
18862 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18863 (font_prepare_composition): Set cmp->glyph_len.
18864 (font_open_entity): Set font->scalable.
18865 (Ffont_get): Handle :otf property.
18866 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18867 functions.
18868 (Fquery_font): Use font->font.full_name.
18869 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18870 Sfont_otf_alternates.
18871
18872 * ftfont.c (ftfont_open): Set font->font.full_name and
18873 font->font.name properly. Fix calculation of font->font.height
18874 and font->min_width.
18875
18876 * ftxfont.c (ftxfont_create_gcs): New function.
18877 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18878 (ftxfont_draw_backgrond): Fix filling region.
18879 (ftxfont_default_fid): New function.
18880 (ftxfont_open): Set xfont->fid to the return value of
18881 ftxfont_default_fid.
18882 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18883 (ftxfont_done_face): Free only GCs that are created by
18884 ftxfont_create_gcs.
18885 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18886
18887 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18888 Clip to src->width, etc (not src->clip_XXX).
18889
18890 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18891 FontBackend frame parameter.
18892
188932008-02-01 Kenichi Handa <handa@m17n.org>
18894
18895 * font.h (struct font_driver_list): New member `on'.
18896 (Fclear_font_cache): EXFUN it.
18897 (font_update_drivers): Extern it.
18898
18899 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18900 (font_list_entities): Check driver_list->on.
18901 (register_font_driver): Initalize `on' member to 0.
18902 (font_update_drivers): New function.
18903 (Fclear_font_cache): Check driver_list->on.
18904
18905 * frame.h (Qfont_backend): Extern it.
18906 (x_set_font_backend): Extern it.
18907
18908 * frame.c (Qfont_backend): New variable.
18909 (frame_parms): New element for font-backend.
18910 (x_set_font_backend): New function.
18911
18912 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18913 FontBackend frame parameter.
18914 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18915 x_set_font_backend.
18916
18917 * xfont.c (xfont_list): Don't try listing by :name property if the
18918 name is not for XLFD.
18919
189202008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18923 (LGLYPH_SET_TO): New macros.
18924 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18925 element of G is vector or not.
18926 (font_at): Extern it.
18927
18928 * font.c: Include window.h.
18929 (font_lispy_object): New function.
18930 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18931 end of valid glyph.
18932 (font_close_object): Fix getting (struct font *).
18933 (font_at): New function.
18934 (Ffont_get): If FONT is a font-object, get entity from it.
18935 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18936 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18937 range check.
18938 (Ffont_at): New function.
18939 (syms_of_font): Defsubr Sfont_at.
18940
18941 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18942 before the entry for Qcomposition.
18943 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18944 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18945 the font in gstring.
18946 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18947 LGLYPH_FORM (g) to detect the end of valid glyph.
18948 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18949 we are composing with gstring.
18950
18951 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18952 Check if adjustment is vector or not.
18953
18954 * Makefile.in (font.o): Make it depends on window.h.
18955
189562008-02-01 Kenichi Handa <handa@m17n.org>
18957
18958 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18959 adjustment is vector or not.
18960
189612008-02-01 Miles Bader <miles@gnu.org>
18962
18963 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18964
189652008-02-01 Kenichi Handa <handa@m17n.org>
18966
18967 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18968 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18969 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18970
18971 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18972 (DEVICE_DELTA): Fix typo.
18973 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18974 LGLYPH format.
18975
18976 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18977 the change of LGLYPH format.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * ftfont.c (ftfont_list): Fix typo.
18982 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18983
189842008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18985
18986 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18987
18988 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18989 xftface_info is non-NULL.
18990
189912008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18992
18993 * ftfont.c (ftfont_list): Move misplaced #endif.
18994
189952008-02-01 Kenichi Handa <handa@m17n.org>
18996
18997 * ftfont.c (ftfont_list): Pay attention to the case that
18998 FC_CAPABILITY is not defined.
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * xftfont.c (xftfont_open): Set charset related members to -1.
19003
19004 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19005 QCname.
19006 (ftfont_open): Set charset related members to -1.
19007
19008 * fontset.c (Votf_script_alist): New variable.
19009 (syms_of_fontset): Initialize it.
19010 (fontset_font): Delete unused variable.
19011
19012 * fontset.h (Votf_script_alist): Extern it.
19013
19014 * font.c (font_find_for_lface): Optimize code.
19015
19016 * font.h (font_close_object, font_merge_old_spec): Extern them.
19017
190182008-02-01 Kenichi Handa <handa@m17n.org>
19019
19020 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19021 (syms_of_font): Initialize them.
19022 (font_pixel_size): Allow float value in dpi.
19023 (font_prop_validate_type): Delete.
19024 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19025 Change caller.
19026 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19027 (font_prop_validate_extra): Delete.
19028 (font_prop_validate_spacing): New function.
19029 (font_property_table): Add elements for all known properties.
19030 (get_font_prop_index): Rename from check_font_prop_name. New
19031 argument FROM. Change caller.
19032 (font_prop_validate): Validate all known properties.
19033 (font_put_extra): Delete argument force. Change caller.
19034 (font_expand_wildcards): Make it static. Fix the way of shrinking
19035 the possible range.
19036 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19037 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19038 Change caller.
19039 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19040 (font_parse_fcname): Delete argument merge. Fix parsing of point
19041 size. Don't validate properties values here. Change caller.
19042 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19043 (font_open_by_name): Delete unused variable.
19044 (Ffont_spec): Likewise. Validate property values.
19045 (Ffont_match_p): New function.
19046
19047 * font.h (QCscalable): Extern it.
19048 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19049
19050 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19051
19052 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19053 (xfont_list_pattern): New function.
19054 (xfont_list): Use xfont_list_pattern.
19055
190562008-02-01 Kenichi Handa <handa@m17n.org>
19057
19058 * font.h (Flist_fonts): EXFUN it.
19059
190602008-02-01 Jason Rumney <jasonr@gnu.org>
19061
19062 * w32term.c (w32_initialize): Add back smoothing_type and
19063 smoothing_enabled definitions.
19064
190652008-02-01 Kenichi Handa <handa@m17n.org>
19066
19067 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19068 s->face->font on determining underline position.
19069
190702008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19073 (font_has_char): Accept font-object too.
19074 (font_find_for_lface): Try at first with a size specified in face.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19079 font_open_by_name.
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * font.h (QCspacing, QCdpi): Extern them.
19084 (enum font_spacing): New enum.
19085 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19086
19087 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19088 (QCspacing, QCdpi): New variables.
19089 (syms_of_font): Initialize them.
19090 (font_pixel_size): New function.
19091 (font_put_extra): New function.
19092 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19093 in FONT_EXTRA.
19094 (font_parse_fcname): Handle enumerated values (e.g. bold).
19095 Fix handling font size. Add QCname property that contains only
19096 unknown properties.
19097 (font_score): Change argument. Change caller. Pay attention to
19098 FONT_PIXEL_SIZE_QUANTUM.
19099 (font_sort_entites, font_list_entities, font_find_for_lface)
19100 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19101 (Ffont_spec): Add QCname property that contains only unknown properties.
19102
19103 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19104 include weight in listing pattern, instead check weight of each
19105 listed font. Don't include scalable in pattern. Pay attention to
19106 FONT_PIXEL_SIZE_QUANTUM.
19107
191082008-02-01 Kenichi Handa <handa@m17n.org>
19109
19110 * font.c (font_parse_fcname): Fix parsing of point-size.
19111 (font_unparse_fcname): Produce symbolic names for style properties.
19112 (font_list_entities): Handle float size correctly.
19113 (font_open_by_name): Prefer `normal' property values if the name
19114 doesn't specify them.
19115
19116 * fontset.c (Finternal_char_font): Use font_get_name, not
19117 Ffont_xlfd_name.
19118
19119 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19120 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19121 pattern. Don't force scalable.
19122
19123 * xftfont.c (xftfont_open): For generating a name, start from
19124 96-byte buffer.
19125
191262008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19127
19128 * frame.h (x_new_fontset2): Fix prototype.
19129
191302008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * font.h (struct font_driver): Delete member parse_name.
19133 (font_match_p, font_get_spec, font_parse_fcname)
19134 (font_unparse_fcname): Extern them.
19135 (font_get_name): Adjust prototype.
19136
19137 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19138 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19139 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19140 unnecessary checks for weight, slant, and swidth.
19141 (font_parse_fcname): New function.
19142 (font_unparse_fcname): New function.
19143 (font_parse_name): New function.
19144 (font_match_p): New function.
19145 (font_get_name): Change return value to Lisp string.
19146 (font_get_spec): New function.
19147 (Qunspecified, Qignore_defface): Don't extern them.
19148 (font_find_for_lface): Assume that LFACE is fully specified.
19149 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19150 object, use it for FACE.
19151 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19152 driver->parse_name.
19153 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19154
19155 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19156 prototype.
19157
19158 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19159 argument F. Don't call Fnew_fontset. Instead, directly call
19160 make_fontset.
19161
19162 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19163
19164 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19165 of x_new_fontset2.
19166
19167 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19168 (Qsans__serif): New variables.
19169 (ftfont_generic_family_list): New variable.
19170 (syms_of_ftfont): Initialize the above variables.
19171 (ftfont_pattern_entity): Delete argument NAME.
19172 (ftfont_list_generic_family): New function.
19173 (ftfont_parse_name): Delete this function.
19174 (ftfont_list): Try generic family only when FcFontList found no font.
19175 (ftfont_list_family): Fix args to FcObjectSetBuild.
19176
19177 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19178 object in attrs[LFACE_FONT_INDEX].
19179 (set_lface_from_font_name): Cancel all changes for font-backend.
19180 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19181 function.
19182 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19183 font object in QCfont attribute.
19184 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19185 (realize_default_face) [USE_FONT_BACKEND]: Call
19186 set_lface_from_font_and_fontset.
19187
19188 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19189 "fixed", and signal error here if no suitable font was found.
19190
19191 * xfont.c (xfont_parse_name): Delete this function.
19192
19193 * xftfont.c (xftfont_open): Change coding style of error
19194 handling. Generate fontconfig's fontname pattern.
19195
19196 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19197 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19198
19199 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19200 Both args FONTSET and FONT_OBJECT must be existing ones.
19201
192022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19203
19204 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19205
192062008-02-01 Kenichi Handa <handa@m17n.org>
19207
19208 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19209
19210 * font.h (struct font): Fix typo.
19211
19212 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19213 XLFD_XXX_INDEX.
19214 (enum xlfd_field_mask): New enum.
19215 (intern_font_field): Changed argument. Change caller. If digits
19216 are followed by non-digits, return a symbol.
19217 (font_expand_wildcards): New function.
19218 (font_parse_xlfd): Fix wildcard handling.
19219 (Ffont_spec): If :name is specified, reflect the info in the other
19220 properties.
19221
19222 * ftfont.c (ftfont_pattern_entity): Fix typo.
19223 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19224 locale.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19229
19230 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19231 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19232 registry doesn't specify encoding part.
19233 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19234 (font_open_by_name): At first try parsing the name.
19235 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19236 as Lisp symbols.
19237
19238 * fontset.c (reorder_font_vector): Pay attention to the case that
19239 the 3rd element of font_def is nil.
19240 (fontset_font): For the default fontset, append one more fontset
19241 elements for a script-based font specification. Don't add script
19242 attribute on finding a font.
19243 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19244 font name.
19245 (fontset_ascii_font): If a font can't be opened, return nil.
19246
19247 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19248 (ftfont_pattern_entity): New function.
19249 (ftfont_get_cache): Assume that freetype_font_cache is already
19250 initialized.
19251 (ftfont_list): Handle the case that a file is specified in font
19252 name. Use ftfont_pattern_entity to generate entities.
19253 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19254 (syms_of_ftfont): Initialize freetype_font_cache.
19255
19256 * xftfont.c (xftfont_open): Make the font name fontconfig's
19257 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19258 (xftfont_close): Free font->font.name if not NULL.
19259
19260 * xfont.c (xfont_list): If script is specified for a font, return
19261 null_vector.
19262 (xfont_list_family): Declare argument type.
19263
19264 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19265 name, set LFACE_FONT (lface) to nil.
19266
19267 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19268 return Qnil.
19269
192702008-02-01 Kenichi Handa <handa@m17n.org>
19271
19272 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19273 (standard_args): Add "-enable-font-backend".
19274
192752008-02-01 Kenichi Handa <handa@m17n.org>
19276
19277 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19278 (struct xftdraw_list, xftdraw_list): Delete them.
19279 (register_xftdraw, check_xftdraw): Delete them.
19280 (xftfont_prepare_face): Don't call register_xftdraw.
19281 (xftfont_done_face): Don't call check_xftdraw.
19282 (xftfont_draw): Get background color only when with_background is
19283 nonzero.
19284
19285 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19286
192872008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 These changes are for the new font handling codes.
19290
19291 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19292 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19293 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19294 (FONTSRC, FONTOBJ): New variables.
19295 (obj): Add $(FONTOBJ).
19296 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19297 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19298 @LIBOTF_LIBS@.
19299 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19300 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19301
19302 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19303
19304 * character.h (Vscript_representative_chars): Extern it.
19305
19306 * character.c (Vscript_representative_chars): New variable.
19307 (syms_of_character): Declare it as a Lisp variable.
19308
19309 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19310 enable_font_backend is nonzero, accept the composition method
19311 COMPOSITION_WITH_GLYPH_STRING.
19312
19313 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19314 enumeration COMPOSITION_WITH_GLYPH_STRING.
19315
19316 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19317 members clip_x, clip_y, clip_width, and clip_height.
19318 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19319
19320 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19321 --enable-font-backend. Call syms_of_font.
19322
19323 * fns.c (assoc_no_quit): New function.
19324
19325 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19326 (face_for_font, new_fontset_from_font)
19327 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19328
19329 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19330 (fontset_font, fontset_ascii, face_for_char)
19331 (make_fontset_for_ascii_face, Ffont_info)
19332 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19333 is nonzero, use font-backend mechanism.
19334 (find_font_encoding): Make it non-static.
19335 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19336 New functions.
19337
19338 * frame.h (struct frame): New members resx and resy.
19339 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19340 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19341
19342 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19343 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19344
19345 * lisp.h (assoc_no_quit): Extern it.
19346
19347 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19348 Through out the file, use FONT_INFO_FROM_FACE instead of
19349 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19350 rif->per_char_metric.
19351 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19352 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19353 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19354 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19355 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19356 nonzero, use font-backend mechanism.
19357 (get_per_char_metric): New function.
19358
19359 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19360 (set_lface_from_font_name)
19361 (set_font_frame_param, free_realized_face)
19362 (prepare_face_for_display, clear_face_gcs)
19363 (Finternal_set_font_selection_order, realize_x_face)
19364 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19365 font-backend mechanism.
19366 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19367 (load_face_font) [USE_FONT_BACKEND]: Abort.
19368 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19369 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19370
19371 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19372 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19373 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19374 nonzero, register all available font drivers. Call
19375 x_default_font_parameter for deciding a font.
19376 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19377
19378 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19379 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19380 (x_set_glyph_string_clipping_exactly)
19381 (x_compute_glyph_string_overhangs)
19382 (x_draw_glyph_string_foreground)
19383 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19384 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19385 enable_font_backend is nonzero, use font-backend mechanism.
19386 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19387
193882008-02-01 Kenichi Handa <handa@m17n.org>
19389
19390 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19391 system_eol_type.
19392 (syms_of_coding): Initialize system_eol_type.
19393
19394 * process.c (Fset_process_coding_system): Inherit system's eol
19395 format if necessary.
19396
193972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19398
19399 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19400
194012008-02-01 Kenichi Handa <handa@m17n.org>
19402
19403 * coding.c (decode_eol): Pay attention to buffer relocation in
19404 del_range_2.
19405 (decode_coding): Call decode_eol before restoring undo_list.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * charset.c (Fdefine_charset_internal): Fix setting of
19410 emacs_mule_bytes.
19411
194122008-02-01 Kenichi Handa <handa@m17n.org>
19413
19414 * keyboard.c (read_char): Check if C is a character or not before
19415 looking up Vkeyboard_translate_table.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19420 condition to terminate the loop.
19421
194222008-02-01 Kenichi Handa <handa@m17n.org>
19423
19424 * coding.c (produce_composition): Compare charbuf[i] instead of
19425 args[i] against 0.
19426 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19427
194282008-02-01 Kenichi Handa <handa@m17n.org>
19429
19430 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19431 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19432 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19433 detect_coding.
19434 (emacs_mule_char): Handle old style (Emacs 20) component character
19435 of a composition.
19436 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19437 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19438 composition rule.
19439 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19440
194412008-02-01 Kenichi Handa <handa@m17n.org>
19442
19443 * coding.c (encode_coding_ccl): Allocate destination dynamically
19444 when necessary.
19445
194462008-02-01 Kenichi Handa <handa@m17n.org>
19447
19448 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19449 the loop. When quitted, show a proper error message.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19454 src->clip_head and src->clip_tail temporarily instead of src->hl.
19455
19456 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19457 character sequence.
19458 (Fccl_execute_on_string): Use ASET, not XSET.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19463
194642008-02-01 Kenichi Handa <handa@m17n.org>
19465
19466 * coding.c (decode_coding): Fix the condition of terminating the
19467 decoding loop.
19468
194692008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * data.c (Faset): On setting a character bigger than 255 in a
19472 unibyte string, signal an error instead of make the string multibyte.
19473
194742008-02-01 Kenichi Handa <handa@m17n.org>
19475
19476 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19477 made by a mapping table.
19478
194792008-02-01 Kenichi Handa <handa@m17n.org>
19480
19481 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19482 not.
19483 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19484 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19485
19486 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19487 s->face is NULL or not.
19488
194892008-02-01 Kenichi Handa <handa@m17n.org>
19490
19491 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19492 (x_draw_glyph_string): Fix drawing of right_overhang and
19493 left_overhang around/on cursor.
19494
19495 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19496
194972008-02-01 Kenichi Handa <handa@m17n.org>
19498
19499 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19500
195012008-02-01 Kenichi Handa <handa@m17n.org>
19502
19503 * coding.c (Fdefine_coding_system_internal)
19504 (Fdefine_coding_system_alias): Avoid a duplicated element in
19505 Vcoding_system_alist.
19506
195072008-02-01 Kenichi Handa <handa@m17n.org>
19508
19509 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19510
19511 * coding.c (Qcoding_system_define_form): New variable.
19512 (syms_of_coding): Intern and staticpro it.
19513 (Fcoding_system_p): Check Qcoding_system_define_form.
19514 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19515
19516 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19517 Fcoding_system_p.
19518 (CHECK_CODING_SYSTEM): If ID is not available, call
19519 Fcheck_coding_system.
19520 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19521 Try also Fcheck_coding_system.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * coding.c (code_conversion_restore): GCPRO arg.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * character.c (lisp_string_width): Check multibyteness of STRING.
19530
195312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19532
19533 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19534 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19535 (decode_mac_font_name): Use decode_coding_c_string instead of
19536 decode_coding.
19537 (x_load_font): Initialize fontp->fontset to -1. Set
19538 fontp->encoding_type.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * search.c (search_buffer): Give up BM search on case-fold-search
19543 if one of a target character has a case-equivalence of different
19544 byte length even if that target charcter is an ASCII.
19545 (simple_search): Fix calculation of byte length of matched text.
19546 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19547
195482008-02-01 Kenichi Handa <handa@m17n.org>
19549
19550 * coding.c (decode_coding): Fix handling of invalid bytes.
19551
195522008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19555 Unicode characters.
19556
195572008-02-01 Kenichi Handa <handa@m17n.org>
19558
19559 * coding.c (encode_coding_object): If a pre-write-conversion
19560 function makes a new buffer, kill it.
19561
195622008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * coding.c (QCascii_compatible_p): New variable.
19565 (syms_of_coding): Initialize it.
19566 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19567 calling string_char.
19568 (record_conversion_result): Add `default:' case.
19569 (coding_charset_list): Delete unused variable `coding_type'.
19570 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19571 property in the plist of the coding system.
19572 (Fcoding_system_put): Check QCascii_compatible_p.
19573
195742008-02-01 Miles Bader <miles@gnu.org>
19575
19576 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19577 removed calculation of frame `f', as it's now used.
19578
195792008-02-01 Kenichi Handa <handa@m17n.org>
19580
19581 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19582 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19583 (UNIDATA): New variable.
19584 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19585 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19586 $(RUN_TEMACS) unconditionally.
19587
195882008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19591 (admindir): New variable.
19592 ($(lispsource)international/charprop.el): New target.
19593
195942008-02-01 Miles Bader <miles@gnu.org>
19595
19596 * character.c (chars-in-region): Remove obsolete function.
19597 (syms_of_character): Remove its initialization.
19598
195992008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19600
19601 * w32select.c (validate_coding_system)
19602 (setup_windows_coding_system): New functions.
19603 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19604 setup_windows_coding_system.
19605 (setup_config, Fw32_get_clipboard_data): Use
19606 validate_coding_system.
19607 (Fx_selection_exists): Move call to setup_config to a place
19608 where signals are allowed.
19609
19610 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19611 (Fcheck_coding_system): Add declarations.
19612
196132008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19616
196172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19618
19619 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19620 string as the second argument for x_new_fontset.
19621
196222008-02-01 Kenichi Handa <handa@m17n.org>
19623
19624 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19625 (encode_coding_object): Use safe_call instead of call2.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19630
19631 * Makefile.in (lisp): Include charprop.el.
19632
196332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19634
19635 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19636 Not sure if it's unnecessary.
19637
196382008-02-01 Steven Tamm <steventamm@mac.com>
19639
19640 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19641 some possibly unnecessary fontset checking code that crashed
19642 when creating a new frame.
19643
196442008-02-01 Kenichi Handa <handa@m17n.org>
19645
19646 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19647 lookup_face.
19648
19649 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19650
19651 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19656 (coding_charset_list): New function.
19657
19658 * coding.h (coding_charset_list): Extern it.
19659
196602008-02-01 Kenichi Handa <handa@m17n.org>
19661
19662 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19663 concatenation of family and registry.
19664
196652008-02-01 Kenichi Handa <handa@m17n.org>
19666
19667 * character.h (BYTE8_STRING): Fix typo.
19668
19669 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19670 string to multibyte (sync to HEAD).
19671
19672 * casefiddle.c (casify_region): Handle changes in byte-length
19673 using replace_range_2 (sync to HEAD).
19674
196752008-02-01 Andreas Schwab <schwab@suse.de>
19676
19677 * chartab.c (map_char_table): GCPRO table and arg.
19678
196792008-02-01 Kenichi Handa <handa@m17n.org>
19680
19681 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19682 already at limit.
19683
196842008-02-01 Kenichi Handa <handa@m17n.org>
19685
19686 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19687 instead of fast_c_string_match_ignore_case.
19688 (find_font_encoding): Change argument to Lisp_Object. Use
19689 fast_string_match_ignore_case instead of
19690 fast_c_string_match_ignore_case. Change caller.
19691
196922008-02-01 Kenichi Handa <handa@m17n.org>
19693
19694 * xdisp.c (get_next_display_element): In unibyte case, decide to
19695 display in octal form by checking a character by
19696 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19697
19698 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19699
19700 * character.c (unibyte_has_multibyte_table): New variable.
19701
19702 * character.h (unibyte_has_multibyte_table): Extern it.
19703 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19704
197052008-02-01 Kenichi Handa <handa@m17n.org>
19706
19707 * coding.c (encode_coding_iso_2022): Fix handling of charset
19708 annotation.
19709
197102008-02-01 Kenichi Handa <handa@m17n.org>
19711
19712 * coding.c (setup_coding_system): If coding_system is nil, use
19713 Qundecided.
19714 (Fterminal_coding_system): Return nil if terminal coding system is
19715 `undecided'.
19716 (syms_of_coding): Define coding-system `undecided' here. Setup
19717 terminal_coding as `undecided'.
19718
197192008-02-01 Kenichi Handa <handa@m17n.org>
19720
19721 * xdisp.c (message_dolog, set_message_1): Call
19722 unibyte_char_to_multibyte with arg type int.
19723
19724 * lread.c (read1): Fix reading of a char-table.
19725
19726 * print.c (print_object): Include sub char-table in circularities
19727 detection.
19728
197292008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19732 Append the found sequences in car of ARGS instead of prepending.
19733
197342008-02-01 Kenichi Handa <handa@m17n.org>
19735
19736 * fileio.c (report_file_error): Make a unibyte string from
19737 strerror (errorno).
19738 (Fsubstitute_in_file_name): Fix the arg to
19739 unibyte_char_to_multibyte. It is evaluated twice.
19740
197412008-02-01 Kenichi Handa <handa@m17n.org>
19742
19743 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19744
197452008-02-01 Kenichi Handa <handa@m17n.org>
19746
19747 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19748 BOM is not found.
19749 (detect_coding, detect_coding_system): Optimization for ISO-2022
19750 when no 8-bit data is found.
19751
197522008-02-01 Jason Rumney <jasonr@gnu.org>
19753
19754 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19759 CHARS.
19760
197612008-02-01 Steven Tamm <steventamm@mac.com>
19762
19763 * macterm.c (mac_encode_char): Add charset argument and update
19764 to use encoding_type.
19765 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19766 switch to pure fontset.
19767 (decode_mac_font_name): Temporarily remove decoding.
19768 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19769 (x_load_font): Temporarily remove encoding.
19770
197712008-02-01 Kenichi Handa <handa@m17n.org>
19772
19773 * xfaces.c (Fface_font): If frame is not on a window system,
19774 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19775 refer to face->font.
19776 (split_font_name_into_vector, build_font_name_from_vector)
19777 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19778 when HAVE_WINDOW_SYSTEM is defined.
19779
197802008-02-01 Kenichi Handa <handa@m17n.org>
19781
19782 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19783 (x_produce_glyphs): Fix setting of members of cmp in case
19784 cmp->glyph_len is zero.
19785
19786 * fontset.c (Fset_fontset_font): Fix docstring.
19787 (Ffontset_info): Make it backward compatible. New arg ALL.
19788
197892008-02-01 Kim F. Storm <storm@cua.dk>
19790
19791 * process.c (read_process_output): Grow decoding_buf when needed;
19792 this could cause a crash in allocate_string and compact_small_strings.
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19797
197982008-02-01 Kenichi Handa <handa@m17n.org>
19799
19800 * coding.c (setup_coding_system): Set coding->common_flags
19801 correctly for raw-text.
19802 (consume_chars): On encoding unibyte text by raw-text, don't check
19803 multibyte form.
19804 (encode_coding): On encoding by raw-text, never use translation tables.
19805
19806 * fileio.c (e_write): Short cut for the case of no encoding.
19807
198082008-02-01 Kenichi Handa <handa@m17n.org>
19809
19810 * coding.c (detect_coding, detect_coding_system): Delete unused
19811 variables.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19816 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19817
198182008-02-01 Kenichi Handa <handa@m17n.org>
19819
19820 * coding.c (Ffind_coding_systems_region_internal): Include
19821 raw-text and no-conversion in the result.
19822
198232008-02-01 Kenichi Handa <handa@m17n.org>
19824
19825 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19826 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19827 FONT_DEF.
19828 (font_def_arg, add_arg, from_arg, to_arg): New args.
19829 (set_fontset_font): Change argument.
19830 (Fset_fontset_font): Fix for the case that TARGET is a script
19831 name and charset name.
19832 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19833
198342008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * fontset.c (fontset_font): Rename from fontset_face. Change return
19837 value.
19838 (face_suitable_for_char_p, face_for_char): Adjust for the change
19839 of fontset_font.
19840 (make_fontset_for_ascii_face): Fix setting of the fontset element
19841 for ASCII.
19842 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19843 to get a font name.
19844 (Ffontset_info): Adjust for the change of fontset_font.
19845
19846 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19847
19848 * character.h (LEADING_CODE_LATIN_1_MIN)
19849 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 * editfns.c (check_translation): New function.
19854 (Ftranslate_region_internal): Handle M:N mapping.
19855
198562008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19859
198602008-02-01 Kenichi Handa <handa@m17n.org>
19861
19862 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19863 goto invalid_code.
19864 (decode_coding_iso_2022): Fix handling of invalid designation.
19865
19866 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19867 after calling code_conversion_save.
19868
198692008-02-01 Kenichi Handa <handa@m17n.org>
19870
19871 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19872
19873 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19874
19875 * fontset.c: Include "intervals.h".
19876 (fontset_face): Fix comparing of Lisp_Objects.
19877 (free_face_fontset, new_fontset_from_font_name): Fix
19878 Lisp_Object/int mixup.
19879
19880 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19881
19882 * coding.c: Add many prototypes for static functions.
19883 (get_translation_table): Allow max_lookup to be NULL.
19884 (decode_coding, Ffind_coding_systems_region_internal)
19885 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19886 get_translation_table with max_lookup NULL.
19887
198882008-02-01 Kenichi Handa <handa@m17n.org>
19889
19890 * coding.c (get_translation_table): Declare it as Lisp_Object.
19891 (LOOKUP_TRANSLATION_TABLE): New macro.
19892 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19893 instead of CHAR_TABLE_REF.
19894
198952008-02-01 Kenichi Handa <handa@m17n.org>
19896
19897 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19898 annotation data format.
19899 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19900 Change arguments FROM and TO to single argument NCHARS. Change caller.
19901 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19902 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19903 (decode_coding_ccl, decode_coding_charset): Pay attention to
19904 coding->charbuf_used.
19905 (get_translation): New function.
19906 (produce_chars): New arguments translation_table and last_block.
19907 Translate characters here. Return number of carryover chars.
19908 Change caller.
19909 (produce_composition): New argument pos. Change caller.
19910 Adjust for the change of annotation data format.
19911 (produce_charset, produce_annotation): Likewise.
19912 (decode_coding, encode_coding): Don't call translate_chars.
19913 (consume_chars): New arg translation_table. Change caller.
19914 (translate_chars): Delete.
19915 (syms_of_coding): Make translation-table's number of extra slots 2.
19916
199172008-02-01 Kenichi Handa <handa@m17n.org>
19918
19919 * search.c (simple_search): Fix setting this_pos_byte in backward
19920 search.
19921
19922 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19923 byte sequence.
19924 (detect_coding_ccl): Fix setting of the variable valids.
19925
199262008-02-01 Kenichi Handa <handa@m17n.org>
19927
19928 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19929
19930 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19931
19932 * editfns.c (Ftranslate_region_internal): Rename from
19933 Ftranslate_region. Accept a char-table in TABLE.
19934 (syms_of_editfns): Defsubr Stranslate_region_internal.
19935
19936 * xfaces.c (set_lface_from_font_name): If a font is specified for
19937 a frame, generate a fontset from the font.
19938 (build_scalable_font_name): If the scalable font is requested for
19939 a specific size, don't change that size.
19940 (try_font_list): Try a scalable font also in the case that a
19941 pattern string is specified.
19942
199432008-02-01 Kenichi Handa <handa@m17n.org>
19944
19945 * xfaces.c (Fface_font): New optional arg CHARACTER.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * charset.h (CHARSET_OFFSET): New macro.
19950
199512008-02-01 Kenichi Handa <handa@m17n.org>
19952
19953 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19954
19955 * fontset.c (fontset_face): Handle the case that repertory is a
19956 char-table.
19957 (find_font_encoding): Return nil for unknown encoding.
19958 (Fset_fontset_font): Ignore a font of unknown encoding.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * keymap.c (describe_vector): Handle default value of a char table.
19963
19964 * fontset.c (fontset_face): Handle fallback fonts correctly.
19965 (Ffontset_info): Return infomation about fallback fonts.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * fontset.c (FONTSET_DEFAULT): New macro.
19970 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19971 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19972 the case that it is nil.
19973 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19974 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19975
19976 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19977 subset or superset.
19978
199792008-02-01 Kenichi Handa <handa@m17n.org>
19980
19981 * emacs.c (main): Call init_charset after syms_of_XXX.
19982
19983 * charset.c (Vcharset_map_directory): Delete.
19984 (Vcharset_map_path): New variable.
19985 (load_charset_map_from_file): Use Vcharset_map_path instead.
19986 (init_charset): Initialize Vcharset_map_path.
19987 (syms_of_charset): Delete declaration of "charset-map-directory",
19988 add declaration of "charset-map-path".
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19993 ASCII only string.
19994
19995 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19996
19997 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19998 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19999
200002008-02-01 Kenichi Handa <handa@m17n.org>
20001
20002 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20003
20004 * coding.c (QCmnemonic, QCdefalut_char)
20005 (QCdecode_translation_table, QCencode_translation_table)
20006 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20007 (get_translation_table): Return a list of translation tables if
20008 necessary.
20009 (decode_coding): Call get_translation_table with ENCODEP 0.
20010 (char_encodable_p): If translation_table is non-nil, always call
20011 translate_char.
20012 (Fdefine_coding_system_internal): Accept list of translation
20013 tables as :encode-translation-table and :decode-translation-table.
20014 (Fcoding_system_put): New function.
20015 (syms_of_coding): Declare new symbols. Defsubr
20016 Scoding_system_put.
20017 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20018 typically JISX0212.
20019
20020 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20021 when the charset is superset type.
20022
20023 * character.c (translate_char): Accept list of translation tables.
20024
200252008-02-01 Kenichi Handa <handa@m17n.org>
20026
20027 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20028 (CODING_ATTR_TRANS_TBL): New macro.
20029
20030 * coding.c (get_translation_table): New function.
20031 (translate_chars): Fix the bug of skipping annotation data.
20032 (decode_coding, encode_coding): Utilize get_translation_table.
20033 (char_encodable_p, Funencodable_char_position): Translate char if
20034 necessary.
20035 (Ffind_coding_systems_region_internal)
20036 (Fcheck_coding_systems_region): Setup translation table for encode
20037 in a coding system attribute vector in advance.
20038 (Fdefine_coding_system_internal): Allow a symbol as translation
20039 table. For shift-jis type coding system, allow 4th charset.
20040
200412008-02-01 Kenichi Handa <handa@m17n.org>
20042
20043 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20044
20045 * xdisp.c (get_next_display_element): Pass -1 as POS to
20046 FACE_FOR_CHAR if displaying a C-string.
20047
200482008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * composite.c (get_composition_id): Handle xoff and yoff in a
20051 composition rule.
20052
20053 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20054 (struct composition): New member lbearing and rbearing.
20055
20056 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20057 (x_get_glyph_overhangs): Handle a composition glyph.
20058 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20059
20060 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20061 composition glyph.
20062
200632008-02-01 Kenichi Handa <handa@m17n.org>
20064
20065 * print.c: Include charset.h.
20066 (Vprint_charset_text_property): New variable.
20067 (Qdefault): Extern it.
20068 (PRINT_STRING_NON_CHARSET_FOUND)
20069 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20070 (print_check_string_result): New variable.
20071 (print_check_string_charset_prop): New function.
20072 (print_prune_charset_plist): New variable.
20073 (print_prune_string_charset): New function.
20074 (print_object): Call print_prune_string_charset if
20075 Vprint_charset_text_property is not t.
20076 (print_interval): Print nothing if interval->plist is nil.
20077 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20078 variable. Init and staticpro print_prune_charset_plist.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * fontset.c (new_fontset_from_font_name): Use the specified font
20083 for all characters in the new fontset.
20084
20085 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20086 OBJECT args.
20087
20088 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20089 OBJECT args for composition too.
20090
20091 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20092 OBJECT args.
20093
200942008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20097
20098 * fontset.c (reorder_font_vector): Adjust for the change of
20099 FONT_DEF format.
20100 (fontset_face): New arg id. Change caller.
20101 (face_for_char): New args pos and object.
20102 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20103 (fs_query_fontset): Check NAME by Fassoc too.
20104 (Fset_fontset_font): Allow non-XLFD font name.
20105 (Ffontset_info): Adjust for the change of FONT_DEF format.
20106
20107 * fontset.h (face_for_char): Adjust prototype.
20108
20109 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20110 (append_space, extend_face_to_end_of_line)
20111 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20112 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20113
20114 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20115 POS and OBJECT args.
20116
20117 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20118 POS and OBJECT args.
20119
201202008-02-01 Jason Rumney <jasonr@gnu.org>
20121
20122 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20123 of GlobalAlloc'ed memory.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20128
20129 * charset.h (charset_table_used): Delete extern.
20130
20131 * charset.c (charset_table_used): Make it static.
20132 (map_charset_chars): Fix args to c_function with.
20133
20134 * chartab.c (map_sub_char_table_for_charset): Fix args to
20135 c_function with.
20136
20137 * coding.h (enum coding_result_code): Delete
20138 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20139
20140 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20141 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20142 (Vlast_code_conversion_error): New variables.
20143 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20144 (ONE_MORE_BYTE): Record error if any instead of signaling an
20145 error. If non-ASCII multibyte char is found, return the negative
20146 value of the code. All callers changed to check it.
20147 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20148 (record_conversion_result): New function. Change all codes setting
20149 coding->result to call this function.
20150 (detect_coding_utf_8, decode_coding_utf_8)
20151 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20152 Don't use the local variable incomplete.
20153 (emacs_mule_char): Change the second arg to `const'.
20154 (decode_coding): Fix of flushing out unprocessed data.
20155 (make_conversion_work_buffer): Fix making of a work buffer.
20156 (decode_coding_object): Return coding->dst_object.
20157
20158 * fontset.c (set_fontset_font): Fix args.
20159
20160 * lisp.h (CHARACTERBITS): Define as 22.
20161
20162 * process.c (send_process): Be sure to set coding->src_multibyte.
20163
20164 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20165
201662008-02-01 Kenichi Handa <handa@m17n.org>
20167
20168 * xdisp.c (handle_auto_composed_prop): Give limit to
20169 Fnext_single_char_property_change.
20170
201712008-02-01 Kenichi Handa <handa@m17n.org>
20172
20173 * composite.c (syms_of_composite): Don't make the composition hash
20174 table weak.
20175
20176 * fontset.c (Fset_fontset_font): Fix docstring.
20177
20178 * lisp.h (detect_coding_system): Adjust prototype.
20179
20180 * fileio.c (kill_workbuf_unwind): Delete this function.
20181 (Finsert_file_contents): Adjust the call of detect_coding_system.
20182 Get conversion_buffer by code_conversion_save. Use the macro
20183 CODING_MAY_REQUIRE_DECODING. After decoding, update
20184 coding_system.
20185
20186 * coding.h (make_conversion_work_buffer): Delete extern.
20187 (code_conversion_save): Extern it.
20188
20189 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20190 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20191 (decode_coding_utf_8): Don't do eol converion.
20192 (detect_coding_utf_16): Check coding->src_chars, not
20193 coding->src_bytes. Add heuristics for those that have no signature.
20194 (decode_coding_emacs_mule, decode_coding_iso_2022)
20195 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20196 Don't do eol converion.
20197 (adjust_coding_eol_type): Return a new coding system.
20198 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20199 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20200 each change.
20201 (decode_coding): Pay attention to undo_list. Do eol conversion for
20202 all types of coding-systems (if necessary).
20203 (Vcode_conversion_work_buf_list): Delete it.
20204 (Vcode_conversion_reused_workbuf): Rename from
20205 Vcode_conversion_reused_work_buf.
20206 (Vcode_conversion_workbuf_name): New variable.
20207 (reused_workbuf_in_use): New variable.
20208 (make_conversion_work_buffer): Delete the arg DEPTH.
20209 (code_conversion_restore): Change argument to cons.
20210 (code_conversion_save): Delete the argument BUFFER. Change callers.
20211 (detect_coding_system): New argument src_chars. Change callers.
20212 Fix for utf-16 detection.
20213 (init_coding_once): Don't use ISO_carriage_return.
20214 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20215 reused_workbuf_in_use.
20216
202172008-02-01 Kenichi Handa <handa@m17n.org>
20218
20219 * keymap.c (store_in_keymap): Pay attention to the case that idx
20220 is a cons specifying a character range.
20221
202222008-02-01 Kenichi Handa <handa@m17n.org>
20223
20224 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20225 HANDLED_RECOMPUTE_PROPS.
20226
20227 * coding.c (Fdefine_coding_system_internal): Fix checking of
20228 ascii compatibility.
20229
202302008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * charset.c (find_charsets_in_text): Delete unused locale variable.
20233 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20234
20235 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20236 Resync charset_list to Vemacs_mule_charset_list.
20237
20238 * keymap.c (store_in_keymap): Pay attention to the case that idx
20239 is a cons specifying a character range.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * composite.c (update_compositions): Bind inhibit-read-only, etc
20244 to t before calling remove-list-of-text-properties.
20245
20246 * print.c (print_object): Always print ASCII chars as is.
20247
202482008-02-01 Kenichi Handa <handa@m17n.org>
20249
20250 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20251
20252 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20253 is a char table.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20258
202592008-02-01 Kenichi Handa <handa@m17n.org>
20260
20261 * xfaces.c (set_lface_from_font_name): Fix for the case that
20262 FONTNAME is not fontset name.
20263
202642008-02-01 Kenichi Handa <handa@m17n.org>
20265
20266 * fns.c (base64_encode_1): Fix previous change.
20267
202682008-02-01 Kenichi Handa <handa@m17n.org>
20269
20270 * fontset.c (set_fontset_font): New function.
20271 (Fset_fontset_font): If a font is specified for a charset, use
20272 map_charset_chars to store the font spec in a fontset.
20273
202742008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * fontset.c (fontset_face): Create a fallback fontset on demand.
20277 (make_fontset): Don't create a fallback fontset here.
20278 (free_face_fontset): Free a fallback fontset (if any) too.
20279 (n_auto_fontsets): Delete this variable.
20280 (auto_fontset_alist): New variable.
20281 (new_fontset_from_font_name): Check auto_fontset_alist.
20282 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20283 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20284 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20285 Defsubr Sfontset_list_all.
20286
202872008-02-01 Kenichi Handa <handa@m17n.org>
20288
20289 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20294
202952008-02-01 Kenichi Handa <handa@m17n.org>
20296
20297 * editfns.c (Fgoto_char): Fix docstring.
20298
202992008-02-01 Kenichi Handa <handa@m17n.org>
20300
20301 * insdel.c (insert_from_gap): Adjust intervals correctly.
20302
203032008-02-01 Jason Rumney <jasonr@gnu.org>
20304
20305 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20306 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20307 (w32_initialize): Try to load it.
20308 (x_get_font_repertory): Use it if available.
20309 (w32_encode_char): Add shortcut for unicode output.
20310
20311 * w32fns.c (w32_load_system_font): Default charset to -1.
20312 (x_to_w32_charset): Match all fonts for unicode.
20313 (w32_to_x_charset): New parameter matching. Don't return partial
20314 or wildcard charsets.
20315 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20316 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20317 (w32_to_x_font): Match charset to real charset.
20318 (enum_font_cb2): Always list unicode versions.
20319
20320 * makefile.w32-in (temacs): Increase EMHEAP.
20321
203222008-02-01 Jason Rumney <jasonr@gnu.org>
20323
20324 * w32term.c (w32_encode_char): New charset parameter.
20325 font_info.encoding becomes encoding_type.
20326 (x_get_font_repertory): New function. Warning: stub only!
20327 (x_new_font): Return quickly if font already set.
20328 (x_new_fontset): fontsetname parameter is Lisp_Object.
20329 Use new fs_query_fontset. Try new_fontset_from_font_name.
20330 Use fontset_name for return value.
20331
20332 * w32term.h: Declare x_get_font_repertory.
20333
20334 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20335 place of find_charset_in_text. Use encode_coding_object in place
20336 of encode_coding.
20337 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20338 decode_coding.
20339
20340 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20341 of x_new_fontset.
20342 (w32_load_system_font): Initialize charset as unicode.
20343 font_info.encoding becomes encoding_type.
20344 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20345 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20346 (syms_of_w32fns): Set get_font_repertory_func.
20347
20348 * w32console.c: Include character.h. Use terminal_encode_buffer
20349 from term.c.
20350 (write_glyphs): Use new version of encode_terminal_code. Use
20351 encode_coding_object in place of encode_coding.
20352
20353 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20354 encoding becomes encoding_type.
20355
20356 * term.c (terminal_encode_buffer): Make externally visible.
20357
20358 * makefile.w32-in: Add character.h dependancies.
20359 (character.o, chartab.o): New targets.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20364 CODING_ID_EOL_TYPE.
20365
203662008-02-01 Andreas Schwab <schwab@suse.de>
20367
20368 * coding.c (produce_chars): Revert last change.
20369
203702008-02-01 Kenichi Handa <handa@m17n.org>
20371
20372 * charset.h (charset_unicode): Extern it.
20373
20374 * charset.c (string_xstring_p): Check by (C >= 0x100).
20375 (find_charsets_in_text): Change format of the arc CHARSETS. New
20376 arg MULTIBYTE.
20377 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20378 change of find_charsets_in_text.
20379 (Fsplit_char): Fix doc. Never return unknown.
20380
20381 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20382
20383 * coding.c (Fdefine_coding_system_alias): Update
20384 Vcoding_system_list.
20385
20386 * fontset.c (load_font_get_repertory): Pay attention to the case
20387 that ENCODING of a font is specified by a char-table.
20388
20389 * xterm.c (x_get_font_repertory): Handle the case that the
20390 encoding of font is other than Unicode.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20395 if a character is encodable by the terminal coding system. If
20396 not, produces proper number of `?'s. Update
20397 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20398 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20399
204002008-02-01 Kenichi Handa <handa@m17n.org>
20401
20402 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20403 variables.
20404 (encode_terminal_code): Change argument. Encode multiple
20405 characters at once. Store the result of encoding in
20406 terminal_encode_buffer.
20407 (write_glyphs, insert_glyphs): Adjust for the change of
20408 encode_terminal_code.
20409 (term_init): Initialize terminal_encode_buffer and
20410 terminal_encode_buf_size.
20411
20412 * coding.c (consume_chars): If coding->src_object is nil, don't
20413 check annotation.
20414
204152008-02-01 Kenichi Handa <handa@m17n.org>
20416
20417 * character.c (char_string): Use ASCII_CHAR_P instead of
20418 SINGLE_BYTE_CHAR_P.
20419
204202008-02-01 Kenichi Handa <handa@m17n.org>
20421
20422 * xdisp.c (handle_auto_composed_prop): Check if the last
20423 characters of auto-composed region is newly composed with the
20424 following characters.
20425 (handle_composition_prop): Fix checking of point being inside
20426 composition.
20427
204282008-02-01 Kenichi Handa <handa@m17n.org>
20429
20430 * fns.c (concat): Don't change multibyteness of the result by
20431 concatenating an 8-bit character.
20432
20433 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20434 multibyteness of the result when newelt is an 8-bit character.
20435
204362008-02-01 Dave Love <fx@gnu.org>
20437
20438 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20439 EMACS_INT.
20440
20441 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20442
20443 * xfaces.c (face_numeric_value): Declare dim size_t.
20444 (Finternal_lisp_face_equal_p): Remove unused f.
20445
20446 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20447 (MATRIX_ROW): Remove unused vars.
20448 (draw_glyphs, x_insert_glyphs, fast_find_position)
20449 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20450 byte/char counts.
20451
20452 * regex.c (regex_compile): Remove unused var.
20453
20454 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20455
20456 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20457 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20458
20459 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20460
20461 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20462
20463 * fileio.c (Fwrite_region): Remove unused var.
20464
20465 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20466 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20467
20468 * composite.c (Fremove_list_of_text_properties): Declare.
20469
20470 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20471 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20472 (coding_inherit_eol_type): Remove unused attrs.
20473 (detect_coding): Cast arg of detect_eol.
20474
20475 * charset.c (syms_of_charset): Remove unused var p.
20476 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20477 byte/char counts.
20478
20479 * casetab.c (set_case_table): Remove unused var.
20480
20481 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20482 unused vars.
20483
204842008-02-01 Dave Love <fx@gnu.org>
20485
20486 * xterm.c (x_bitmap_mask): Declare.
20487
204882008-02-01 Dave Love <fx@gnu.org>
20489
20490 * xterm.c (x_term_init): Fix type error.
20491
20492 * lisp.h: Add Funibyte_char_to_multibyte.
20493
20494 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20495 (Fset_coding_system_priority): Doc fix.
20496
20497 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20498
20499 * indent.c (check_composition): Make start and end EMACS_INT.
20500
20501 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20502
20503 * xdisp.c (handle_composition_prop, check_point_in_composition):
20504 Make buffer positions EMACS_INT.
20505
20506 * composite.c (find_composition, run_composition_function)
20507 (update_compositions, Ffind_composition_internal): Make buffer
20508 positions EMACS_INT.
20509
20510 * composite.h (find_composition, update_compositions): Make
20511 position args EMACS_INT.
20512
20513 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20514
20515 * intervals.c (get_property_and_range):
20516 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20517
20518 * unexalpha.c: Don't include varargs.h.
20519
205202008-02-01 Dave Love <fx@gnu.org>
20521
20522 * coding.h (ENCODE_UTF_8): New.
20523
20524 * Makefile.in (gtkutil.o): Depend on coding.h.
20525
20526 * coding.c (Fset_coding_system_priority): Doc fix.
20527
205282008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20531 the case of auto saving.
20532
205332008-02-01 Andreas Schwab <schwab@suse.de>
20534
20535 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20536 `range' from GC.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * fileio.c (choose_write_coding_system): Return a decided coding system.
20545 (Fwrite_region): Set Vlast_coding_system_used to the return value
20546 of choose_write_coding_system.
20547
205482008-02-01 Kenichi Handa <handa@m17n.org>
20549
20550 * charset.c (Fset_charset_priority): Pay attention to duplicated
20551 arguments.
20552
20553 * coding.c (QCcategory): New variable.
20554 (syms_of_coding): Defsym it. Set all elements of
20555 Vcoding_category_table and their symbol values.
20556 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20557 coding-category-XXX, and coding-category-list.
20558 (Fdefine_coding_system_internal): Add category in the plist.
20559
205602008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * callproc.c (Fcall_process): Handle carryover correctly.
20563
20564 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20565 (raw_text_coding_system): Check NILP (coding_system).
20566 (coding_inherit_eol_type): Check NILP (coding_system) and
20567 NILP (parent).
20568 (consume_chars): Fix for the case of raw-text.
20569
20570 * process.c (read_process_output): Handle carryover correctly.
20571
205722008-02-01 Dave Love <fx@gnu.org>
20573
20574 * regex.c (re_search_2): Fix last change.
20575
205762008-02-01 Kenichi Handa <handa@m17n.org>
20577
20578 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20579 target_multibyte. Even in a unibyte case, return a converted
20580 multibyte char.
20581 (GET_CHAR_AFTER): New macro.
20582 (PATFETCH): Translate via multibyte char.
20583 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20584 (SETUP_MULTIBYTE_RANGE): New macro.
20585 (regex_compile): Setup compiled code so that its multibyteness
20586 matches that of a target. Fix the handling of "[X-YZ]" using
20587 SETUP_MULTIBYTE_RANGE.
20588 (analyse_first) <charset>: For filling fastmap for all multibyte
20589 characters, don't check by BASE_LEADING_CODE_P.
20590 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20591 the same as RE_MULTIBYTE_P (bufp) now.
20592 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20593 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20594 (TRANSLATE_VIA_MULTIBYTE): New macro.
20595 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20596 It is the same as RE_MULTIBYTE_P (bufp) now.
20597 <exactn>: Translate via multibyte.
20598 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20599 translate it.
20600 <charset, charset_not>: Fetch a character by
20601 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20602 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20603 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20604 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20605 by GET_CHAR_AFTER.
20606 (bcmp_translate): Likewise.
20607
20608 * search.c (compile_pattern): Check the member target_multibyte,
20609 not the member multibyte of buf.
20610
20611 * lread.c (read1): While reading a string, set force_singlebyte
20612 and force_multibyte correctly.
20613
20614 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20615 up of unibyte_to_multibyte_table.
20616
206172008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * coding.c (setup_coding_system): If coding has
20620 post-read-conversion or pre-write-conversion, set
20621 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20622 respectively.
20623 (decode_coding_gap): Run post-read-conversion if any.
20624
20625 * fileio.c (Finsert_file_contents): Even if we read into a
20626 unibyte buffer, check if we must decode the result or not.
20627
206282008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * coding.c (make_conversion_work_buffer): Change the work buffer
20631 name to the same one as that of Emacs 21.
20632
206332008-02-01 Kenichi Handa <handa@m17n.org>
20634
20635 * coding.h (make_conversion_work_buffer): Adjust prototype.
20636 (code_conversion_restore): Don't extern it.
20637
20638 * coding.c (detected_mask): Delete unused variable.
20639 (decode_coding_iso_2022): Pay attention to the byte sequence of
20640 CTEXT extended segment, and retain those bytes as is.
20641 (decode_coding_ccl): Delete unused variable `valids'.
20642 (setup_coding_system): Delete unused variable `category'.
20643 (consume_chars): Delete unused variable `category'. Make it work
20644 for non-multibyte case.
20645 (make_conversion_work_buffer): Change argument.
20646 (saved_coding): Delete unused variable.
20647 (code_conversion_restore): Don't check saved_coding->destination.
20648 (code_conversion_save): New function.
20649 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20650 instead of record_unwind_protect.
20651 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20652 (detect_coding_system): Delete unused variable `mask'.
20653 (Fdefine_coding_system_internal): Delete unused variable id.
20654
20655 * fileio.c (kill_workbuf_unwind): New function.
20656 (Finsert_file_contents): On replacing, call
20657 make_conversion_work_buffer with correct args, and call
20658 record_unwind_protect with the first arg kill_workbuf_unwind.
20659
20660 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20661
206622008-02-01 Kenichi Handa <handa@m17n.org>
20663
20664 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20665 (fontset_add): Fix for the case that TO is less than TO1.
20666 (Ffontset_info): Don't use fallback fontset on checking the
20667 default fontset.
20668 (dump_fontset): New function for debugging.
20669
20670 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20671 coding_type is Qcharset.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20676 (map_char_table): Don't inherit the value from the parent on
20677 initializing VAL. Adjust for the above change.
20678
206792008-02-01 Kenichi Handa <handa@m17n.org>
20680
20681 * coding.c (Qsignature, Qendian): Delete these variables.
20682 (syms_of_coding): Don't initialize them.
20683 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20684 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20685 detect_info->found.
20686 (decode_coding_utf_16): Don't detect BOM here.
20687 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20688 is NOT utf_16_without_bom.
20689 (setup_coding_system): For a coding system of type utf-16, check
20690 if the attribute :endian is Qbig or not (not nil or not), and set
20691 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20692 (detect_coding): If coding type is utf-16 and BOM detection is
20693 required, detect it.
20694 (Fdefine_coding_system_internal): For a coding system of type
20695 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20696
206972008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * coding.c (coding_set_source): Fix for the case that the current
20700 buffer is different from coding->src_object.
20701 (decode_coding_object): Don't use the conversion work buffer if
20702 DST_OBJECT is a buffer.
20703
207042008-02-01 Dave Love <fx@gnu.org>
20705
20706 * lread.c (read_emacs_mule_char) [len==2]: Index
20707 emacs_mule_charset correctly.
20708
207092008-02-01 Dave Love <fx@gnu.org>
20710
20711 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20712 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20713 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20714 treated specially.)
20715 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20716 (detected_mask): Remove Big5 bits.
20717
207182008-02-01 Kenichi Handa <handa@m17n.org>
20719
20720 The following changes are to make the font rescaling facility
20721 compatible with Emacs 21.
20722
20723 * xfaces.c (Vface_font_rescale_alist): Rename from
20724 Vface_resizing_fonts.
20725 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20726 (font_rescale_ratio): Rename from font_resizing_ratio.
20727 (split_font_name): Set font->rescale_ratio.
20728 (better_font_p): Pay attention to font->rescale_ratio.
20729 (build_scalable_font_name): Likewise. Change RESX, and RESY
20730 fields.
20731 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20736 (Qutf_16_le): Remove these variables.
20737 (syms_of_coding): Don't DEFSYM them.
20738 (decode_coding_utf_16): Fix handling of BOM.
20739 (encode_coding_utf_16): Fix handling of BOM.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * fileio.c (Finsert_file_contents): On replacing, before decoding
20744 the file into the work buffer, set point of the work buffer to the end.
20745
207462008-02-01 Dave Love <fx@gnu.org>
20747
20748 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20749
207502008-02-01 Dave Love <fx@gnu.org>
20751
20752 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20753 and fix C types.
20754
207552008-02-01 Kenichi Handa <handa@m17n.org>
20756
20757 * xdisp.c (SKIP_GLYPHS): New macro.
20758 (set_cursor_from_row): Pay attention to string display properties.
20759
20760 * category.c (copy_category_entry): Fix for the case that RANGE
20761 is an integer.
20762
20763 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20764
20765 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20766
207672008-02-01 Kenichi Handa <handa@m17n.org>
20768
20769 * charset.c (Fcharset_id_internal): New function.
20770 (syms_of_charset): Defsubr it.
20771
20772 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20773 with the last arg charset_list acquired from coding.
20774 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20775 the attribute coding_attr_ccl_valids.
20776
20777 * coding.h (enum define_coding_ccl_arg_index): Set the first
20778 member coding_arg_ccl_decoder to coding_arg_max.
20779
20780 * ccl.h (ccl_driver): Adjust prototype.
20781
20782 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20783 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20784 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20785 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20786 last arg Qnil.
20787
207882008-02-01 Kenichi Handa <handa@m17n.org>
20789
20790 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20791 call encode_char.
20792
20793 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20794
207952008-02-01 Dave Love <fx@gnu.org>
20796
20797 * composite.c (syms_of_composite): Make composition_hash_table weak.
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20802 (font_name_registry): Don't extern them.
20803 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20804
20805 * fontset.h (Qfontset): Don't extern it.
20806 (new_fontset_from_font_name): Extern it.
20807
20808 * fontset.c: Give 8 extra slots to fontset objects.
20809 (Qfontset_info): New variable.
20810 (syms_of_fontset): Defsym it.
20811 (FONTSET_FALLBACK): New macro.
20812 (fontset_face): Try also the default fontset.
20813 (make_fontset): Realize a fallback fontset from the default fontset.
20814 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20815 using split_font_name_into_vector and build_font_name_from_vector.
20816 (Fset_fontset_font): Access the elements of font_spec by enum
20817 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20818 name by using split_font_name_into_vector.
20819 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20820 generate a proper font name from the fontset name. Update
20821 Vfontset_alias_alist.
20822 (n_auto_fontsets): New variable.
20823 (new_fontset_from_font_name): New function.
20824 (Ffont_info): Store the information about fonts generated from the
20825 default fontset in the first extra slot of the returned char-table.
20826
20827 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20828 (font_name_registry): Delete function.
20829 (split_font_name_into_vector): New function.
20830 (build_font_name_from_vector): New function.
20831 (font_list): The argument REGISTRY is now a list of registry names.
20832 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20833 specifies an explicit font name, return the name as is. Make a
20834 list of registy names.
20835
20836 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20837 of x_new_fontset.
20838 (Fx_create_frame): Don't call x_new_fontset here. Just use
20839 x_list_fonts to check the existence of fonts.
20840
20841 * xterm.h (x_new_fontset): Adjust prototype.
20842
20843 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20844 string. Use new_fontset_from_font_name to create a fontset from a
20845 font name.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * syntax.c (Vfind_word_boundary_function_table): New name for
20850 Vnext_word_boundary_function_table.
20851 (find-word-boundary-function-table): New name for
20852 next-word-boundary-function-table.
20853
208542008-02-01 Dave Love <fx@gnu.org>
20855
20856 * Makefile.in: Fix some dependencies.
20857
20858 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20859 set it to nil before returning.
20860
20861 * composite.c (update_compositions): Fix type error.
20862
20863 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20864
208652008-02-01 Kenichi Handa <handa@m17n.org>
20866
20867 * xterm.c (x_new_font): Optimize for the case that the font is
20868 already set for the frame.
20869
208702008-02-01 Kenichi Handa <handa@m17n.org>
20871
20872 * chartab.c (char_table_ascii): Check if the char table contents
20873 is sub-char-table or not.
20874 (char_table_set, char_table_set_range): Fix argument to
20875 char_table_ascii.
20876
20877 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20878 (detect_coding_utf_8, detect_coding_utf_16)
20879 (detect_coding_emacs_mule, detect_coding_iso_2022)
20880 (detect_coding_sjis, detect_coding_big5)
20881 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20882 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20883 sequence is valid in this coding system. Change callers.
20884 (MAX_ANNOTATION_LENGTH): New macro.
20885 (ADD_ANNOTATION_DATA): New macro.
20886 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20887 ADD_ANNOTATION_DATA. Change the format of annotation data.
20888 (ADD_CHARSET_DATA): New macro.
20889 (emacs_mule_char): New argument ID. Change callers.
20890 (decode_coding_emacs_mule, decode_coding_iso_2022)
20891 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20892 Produce charset annotation data in coding->charbuf.
20893 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20894 to charset annotation data in coding->charbuf.
20895 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20896 coding->common_flags if the coding system is iso-2022 based and
20897 uses designation.
20898 (produce_composition): Adjust for the new annotation data format.
20899 (produce_charset): New function.
20900 (produce_annotation): Handle charset annotation.
20901 (handle_composition_annotation, handle_charset_annotation): New
20902 functions.
20903 (consume_chars): Handle charset annotation. Utilize the above two
20904 functions.
20905 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20906 buffer, get the deleted text as a string and set
20907 coding->src_object to that string.
20908 (detect_coding, detect_coding_system): Use the new struct
20909 coding_detection_info.
20910
20911 * coding.h (struct coding_detection_info): New structure.
20912 (struct coding_system): Adjust prototype of the member `detector'.
20913 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20914
209152008-02-01 Kenichi Handa <handa@m17n.org>
20916
20917 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20918
209192008-02-01 Dave Love <fx@gnu.org>
20920
20921 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20922 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20923 to new local and nullify apropos_accumulate before returning.
20924 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20925
209262008-02-01 Kenichi Handa <handa@m17n.org>
20927
20928 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20929 correctly.
e3eea1fc 20930
aac0c6e3
MR
209312008-02-01 Dave Love <fx@gnu.org>
20932
20933 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20934
209352008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 The following changes are to make character composition happen
20938 automatically on displaying.
20939
20940 * Makefile.in (lisp, shortlisp): Add composite.elc.
20941
20942 * composite.h (Qauto_composed, Vauto_composition_function)
20943 (Qauto_composition_function): Extern them.
20944
20945 * composite.c (Vcomposition_function_table)
20946 (Qcomposition_function_table): Delete variables.
20947 (Qauto_composed, Vauto_composition_function)
20948 (Qauto_composition_function): New variables.
20949 (run_composition_function): Don't call
20950 compose-chars-after-function.
20951 (update_compositions): Clear `auto-composed' text property.
20952 (compose_chars_in_text): Delete this function.
20953 (syms_of_composite): Staticpro Qauto_composed and
20954 Qauto_composition_function. Declare Vauto_composition_function as
20955 a Lisp variable.
20956
20957 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20958
20959 * xdisp.c (it_props): Add an entry for Qauto_composed.
20960 (handle_auto_composed_prop): New function.
20961
20962 * xselect.c (selection_data_to_lisp_data): Don't call
20963 compose_chars_in_text.
20964
209652008-02-01 Dave Love <fx@gnu.org>
20966
20967 * keyboard.c (read_char): Modify checking around use of
20968 Vkeyboard_translate_table.
20969
20970 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20971 and fix C types.
20972
209732008-02-01 Kenichi Handa <handa@m17n.org>
20974
20975 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20976 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20977 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20978 the case that the last byte is '\r' correctly.
20979 (decode_coding): Flush out the unprocessed data correctly.
20980 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20981
209822008-02-01 Dave Love <fx@gnu.org>
20983
20984 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20985 Add XK_ISO... case.
20986 (xaw_scroll_callback): Revert last change.
20987
209882008-02-01 Kenichi Handa <handa@m17n.org>
20989
20990 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20991
209922008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * xfaces.c (Vface_resizing_fonts): New variable.
20995 (struct font_name): New member `resizing_ratio'.
20996 (font_resizing_ratio): New function.
20997 (split_font_name): Set font->resizing_ratio.
20998 (better_font_p): Pay attention to font->resizing_ratio.
20999 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21000 RESX, and RESY fields.
21001 (try_alternative_families): Try scalable fonts if
21002 Vscalable_fonts_allowed is not Qt.
21003 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21004
210052008-02-01 Dave Love <fx@gnu.org>
21006
21007 * xterm.c (xaw_scroll_callback): Cast correctly.
21008
210092008-02-01 Dave Love <fx@gnu.org>
21010
21011 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21012 (lispy_kana_keys): Comment out.
21013 (make_lispy_event) [XK_kana_A]: Comment out.
21014
21015 * xterm.c (xaw_scroll_callback): Cast call_data.
21016 (XTread_socket): Deal with ASCII keysyms.
21017 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21018
210192008-02-01 Dave Love <fx@gnu.org>
21020
21021 * xterm.c (Vx_keysym_table): New.
21022 (syms_of_xterm): Initialize it.
21023 (XTread_socket): Use it.
21024 From head: Eliminate incorrect optimization that tried to avoid
21025 decoding the output of X*LookupString.
21026 (x_get_font_repertory): Delete charset declaration.
21027
210282008-02-01 Kenichi Handa <handa@m17n.org>
21029
21030 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21031 return 0.
21032 (Fdefine_coding_system_internal): Setup
21033 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21034
210352008-02-01 Dave Love <fx@gnu.org>
21036
21037 * coding.c (Fcheck_coding_system): Doc fix.
21038
21039 * editfns.c (Finsert_byte): Return a proper value.
21040
210412008-02-01 Kenichi Handa <handa@m17n.org>
21042
21043 * coding.c (decode_coding): Fix args to translate_chars. Pay
21044 attention to Vstandard_translation_table_for_decode.
21045 (encode_coding): Fix args to translate_chars. Pay attention to
21046 Vstandard_translation_table_for_encode.
21047
21048 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21049 SINGLE_BYTE_CHAR_P.
21050
21051 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21052 not by SINGLE_BYTE_CHAR_P.
21053
21054 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21055 SINGLE_BYTE_CHAR_P.
21056
21057 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21058 SINGLE_BYTE_CHAR_P.
21059
21060 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21061 by SINGLE_BYTE_CHAR_P.
21062
21063 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21064 SINGLE_BYTE_CHAR_P.
21065
210662008-02-01 Dave Love <fx@gnu.org>
21067
21068 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21069
210702008-02-01 Dave Love <fx@gnu.org>
21071
21072 * fns.c (Flanginfo): Fix typo.
21073
21074 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21075
210762008-02-01 Kenichi Handa <handa@m17n.org>
21077
21078 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21079 (detect_coding_emacs_mule, detect_coding_iso_2022)
21080 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21081 incomplete byte sequence. Don't update *mask when correctly detected.
21082 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21083 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21084 (detect_coding, detect_coding_system): Adjust for the changes above.
21085
210862008-02-01 Kenichi Handa <handa@m17n.org>
21087
21088 * character.c (char_string): Rename from
21089 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21090 (string_char): Rename from string_char.
21091
21092 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21093 if C is greater than MAX_3_BYTE_CHAR.
21094 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21095 string_char instead of string_char_with_unification.
21096
210972008-02-01 Dave Love <fx@gnu.org>
21098
21099 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21100
211012008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * keymap.c (push_key_description): Pay attention to force_multibyte.
21104
21105 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21106
211072008-02-01 Dave Love <fx@gnu.org>
21108
21109 * charset.c (define_charset_internal): Rename `supprementary'.
21110
21111 * Makefile.in (lisp, shortlisp): Remove latin-N.
21112
211132008-02-01 Dave Love <fx@gnu.org>
21114
21115 * xfns.c (x_window, x_window): Use use_xim.
21116
21117 * xterm.c (use_xim): Initialize.
21118 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21119 (x_term_init): Maybe set use_xim.
21120
21121 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21122
211232008-02-01 Kenichi Handa <handa@m17n.org>
21124
21125 * search.c (search_buffer): Fix case-fold-search of multibyte
21126 characters.
21127 (boyer_moore): Rename the last argument to char_high_bits.
21128
211292008-02-01 Kenichi Handa <handa@m17n.org>
21130
21131 * xdisp.c (display_string): Fix for the case of zero width glyph.
21132
21133 * xfns.c (x_set_font): Change the error message of the case that
21134 x_new_fontset returns Qt.
21135
21136 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21137 (Finternal_set_lisp_face_attribute): Use signal_error for the
21138 error of invalid fontset.
21139
21140 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21141 fontset, return Qt.
21142
211432008-02-01 Dave Love <fx@gnu.org>
21144
21145 * unexelf.c (unexec): Make .got handling not SGI-specific.
21146
21147 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21148
21149 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21150
21151 * keyboard.c (read_key_sequence): Fix type error.
21152
21153 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21154 type error.
21155
21156 * fontset.c (fontset_add): Return Lisp_Object.
21157
211582008-02-01 Dave Love <fx@gnu.org>
21159
21160 * charset.h (charset_ordered_list_tick): Declare extern.
21161
211622008-02-01 Kenichi Handa <handa@m17n.org>
21163
21164 The following changes (and some of 2008-02-01 changes of mine) are
21165 for handling syntax, category, and case conversion for unibyte
21166 characters by converting them to multibyte on the fly. With these
21167 changes, we don't have to setup syntax and case tables for unibyte
21168 characters in each language environment.
21169
21170 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21171 multibyte if necessary.
21172
21173 * bytecode.c (Fbyte_code): Likewise.
21174
21175 * character.h (LEADING_CODE_LATIN_1_MIN)
21176 (LEADING_CODE_LATIN_1_MAX): New macros.
21177 (unibyte_to_multibyte_table): Extern it.
21178 (unibyte_char_to_multibyte): New macro.
21179 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21180 (CHAR_LEADING_CODE): New macro.
21181 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21182
21183 * character.c (unibyte_to_multibyte_table): New variable.
21184 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21185 (multibyte_char_to_unibyte): If C is an eight-bit character,
21186 convert it to the corresponding byte value.
21187
21188 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21189 not 1, signals an error. Update the elements of
21190 unibyte_to_multibyte_table.
21191 (init_charset_once): Initialize unibyte_to_multibyte_table.
21192 (syms_of_charset): Define the charset `iso-8859-1'.
21193
21194 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21195 as is without converting it to unibyte. In a unibyte buffer,
21196 convert C to multibyte before checking the syntax.
21197
21198 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21199
21200 * minibuf.c (Fminibuffer_complete_word): Use the macro
21201 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21202
21203 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21204
21205 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21206 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21207 that is zero, convert an eight-bit char to multibyte.
21208 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21209 non-emacs case.
21210 (PATFETCH): Convert an eight-bit char to multibyte.
21211 (HANDLE_UNIBYTE_RANGE): New macro.
21212 (regex_compile): Setup the compiled pattern for multibyte chars
21213 even if the given regex string is unibyte. Use PATFETCH_RAW
21214 instead of PATFETCH in many places. To handle `charset'
21215 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21216 only for ASCII chars.
21217 (analyse_first) <exactn>: Simplify because the compiled pattern
21218 is multibyte.
21219 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21220 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21221 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21222 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21223 multibyte always 1.
21224 (re_search_2): In emacs, set the locale variable multibyte to 1,
21225 otherwise to 0. New local variable target_multibyte. Check it
21226 to decide the multibyteness of STR1 and STR2. If
21227 target_multibyte is zero, convert unibyte chars to multibyte
21228 before translating and checking fastmap.
21229 (TARGET_CHAR_AND_LENGTH): New macro.
21230 (re_match_2_internal): In emacs, set the locale variable multibyte
21231 to 1, otherwise to 0. New local variable target_multibyte. Check
21232 it to decide the multibyteness of STR1 and STR2. Use
21233 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21234 <charset, charset_not>: If multibyte is nonzero, check fastmap
21235 only for ASCII chars. Call bcmp_translate with
21236 target_multibyte, not with multibyte.
21237 <begline>: Declare the local variable C as `unsigned'.
21238 (bcmp_translate): Change the last arg name to target_multibyte.
21239
21240 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21241 the regexp pattern and the matching target. Set cp->buf.multibyte
21242 to the multibyteness of the regexp pattern. Set
21243 cp->but.target_multibyte to the multibyteness of the matching target.
21244 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21245 FETCH_STRING_CHAR_ADVANCE.
21246 (Freplace_match): Convert unibyte chars to multibyte.
21247
21248 * syntax.c (char_quoted, back_comment, scan_words)
21249 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21250 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21251 unibyte chars to multibyte.
21252 (skip_chars): Delete the arg syntaxp, and move the code for
21253 handling syntaxes to skip_syntaxes. Change callers.
21254 Fix the case that the multibyteness of STRING and the current
21255 buffer doesn't match.
21256 (skip_syntaxes): New function.
21257 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21258 SINGLE_BYTE_CHAR_P.
21259
212602008-02-01 Kenichi Handa <handa@m17n.org>
21261
21262 * xfaces.c (QCfontset): New variable.
21263 (LFACE_FONTSET): New macro.
21264 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21265 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21266 (Finternal_set_lisp_face_attribute)
21267 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21268 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21269 check also LFACE_FONTSET_INDEX.
21270 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21271 attrs[LFACE_FONT_INDEX].
21272 (syms_of_xfaces): Intern and staticpro QCfontset.
21273
21274 * dispextern.h (enum lface_attribute_index): New member
21275 LFACE_FONTSET_INDEX.
21276
21277 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * coding.c (coding_set_destination): Fix coding->destination for
21282 the case converting a region.
21283 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21284 (encode_coding_object): Fix coding->dst_pos and
21285 coding->dst_pos_byte for the case converting a region.
21286
21287 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21288
21289 * character.h (BYTE8_STRING): New macro.
21290
21291 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21292
212932008-02-01 Kenichi Handa <handa@m17n.org>
21294
21295 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21296 characters by octal form.
21297
21298 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21299
21300 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21301 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21302 _fetch_multibyte_char_len.
21303 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21304
21305 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21306
21307 * casefiddle.c (casify_object): Simplify. Handle the case that
21308 the case conversion change the byte length.
21309 (casify_region): Likewise.
21310
21311 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21312
21313 * character.c (_fetch_multibyte_char_len): Delete this variable.
21314 (syms_of_character): Setup Vprintable_chars.
21315
21316 * editfns.c (Fchar_equal): Fix for the unibyte case.
21317 (Finsert_byte): New function.
21318 (syms_of_editfns): Defsubr it.
21319
21320 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21321 of direct code 0x3ffff.
21322
21323 * search.c (Freplace_match): Fix for the unibyte case.
21324
213252008-02-01 Kenichi Handa <handa@m17n.org>
21326
21327 * lread.c (safe_to_load_p): Fix the logic.
21328
21329 * syntax.c (scan_words): Don't treat characters belonging to
21330 different scripts as constituting a word.
21331
21332 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21333
21334 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21335
21336 * emacs.c (main): In the case of --unibyte, instead of aborting on
21337 finding non-empty buffer, make it unibyte.
21338
213392008-02-01 Kenichi Handa <handa@m17n.org>
21340
21341 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21342 to create a fontset.
21343
213442008-02-01 Dave Love <fx@gnu.org>
21345
21346 * character.c (Funibyte_char_to_multibyte): Doc fix.
21347
21348 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21349
213502008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * fontset.c (fontset_add): Make the type `int'.
21353 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21354
21355 * character.c (unibyte_char_to_multibyte)
21356 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21357 charset_unibyte, not charset_primary.
21358
21359 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21360
21361 * charset.c (charset_unibyte): Rename from charset_primary.
21362 (Funibyte_charset): Rename from Fprimary_charset.
21363 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21364 (syms_of_charset): Adjust for the above changes.
21365
21366 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21367 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21368 it->multibyte_p is zero.
21369
21370 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21371 Delete extern.
21372
213732008-02-01 Kenichi Handa <handa@m17n.org>
21374
21375 * coding.c (Fdefine_coding_system_internal): Fix category setting
21376 for a coding system of type iso-2022.
21377
213782008-02-01 Kenichi Handa <handa@m17n.org>
21379
21380 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21381
213822008-02-01 Kenichi Handa <handa@m17n.org>
21383
21384 * syntax.c (Vnext_word_boundary_function_table): New variable.
21385 (next-word-boundary-function-table): Declare it as a Lisp variable
21386 in syms_of_syntax.
21387 (scan_words): Call functions in Vnext_word_boundary_function_table
21388 if any.
21389
21390 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21391
21392 * fontset.c (fs_load_font): If fontp->charset is not negative,
21393 return fontp without setting its members.
21394
213952008-02-01 Dave Love <fx@gnu.org>
21396
21397 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21398
21399 * m/sparc.h (HAVE_ALLOCA): Delete.
21400
21401 * s/irix6-5.h: Don't include strings.h.
21402 (bcopy, bzero, bcmp): Don't undef.
21403
21404 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21405
21406 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21407 (TIOCSIGSEND): Don't test IRIX6.
21408 (bcopy, bzero, bcmp): Define conditionally.
21409
214102008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * buffer.c (Qas, Qmake, Qto): New variables.
21413 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21414 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21415
21416 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21417 we are inserting a process output into a multibyte buffer.
21418
21419 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21420 multibyte_char_to_unibyte.
21421
21422 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21423 by the primary charset, make it eight-bit char.
21424 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21425
21426 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21427 (charset_8_bit__control, charset_8_bit_graphic)
21428 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21429 (define_charset_internal): New function.
21430 (syms_of_charset): Call define_charset_internal for pre-defined
21431 charsets.
21432
21433 * charset.h (charset_8_bit): Extern it.
21434
21435 * coding.c (make_conversion_work_buffer): Adjust for the change
21436 of Fset_buffer_multibyte.
21437 (encode_coding_raw_text): Increment p0 in the loop.
21438
21439 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21440
21441 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21442 for the change of Fset_buffer_multibyte.
21443
21444 * fns.c (Fstring_to_multibyte): New function.
21445 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21446
214472008-02-01 Dave Love <fx@gnu.org>
21448
21449 * xfns.c (x_put_x_image): Declare args.
21450
21451 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21452 (try_font_list): Declare an arg.
21453
21454 * xdisp.c (message2_nolog, set_message): Declare an arg.
21455
21456 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21457
21458 * syntax.c (scan_sexps_forward): Declare an arg.
21459
21460 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21461 Declare an arg.
21462
21463 * lisp.h (Fnew_fontset): Declare.
21464
21465 * keymap.c (push_key_description): Call CHARACTERP correctly.
21466
21467 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21468 (face_for_char): Delete unused vars.
21469 (Fset_fontset_font): Doc fix. Delete unused vars.
21470
21471 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21472
21473 * composite.c (update_compositions): Declare arg.
21474
21475 * cm.c (calccost, cmgoto): Declare args.
21476
21477 * charset.c: Remove `emacs' conditional. Doc fixes.
21478 (map_char_table_for_charset): Declare.
21479
21480 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21481
21482 * ccl.c: Remove `emacs' conditional.
21483
214842008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 The following changes are to allow specifying multiple font
21487 patterns for a character range (specified by script or charset).
21488
21489 * Makefile.in (abbrev.o): Depend on syntax.h.
21490 (xfaces.o): Depend on charset.h.
21491
21492 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21493 SINGLE_BYTE_CHAR_P.
21494
21495 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21496
21497 * character.h (Vchar_script_table): Extern it.
21498
21499 * character.c (Vscript_alist): Delete.
21500 (Vchar_script_table, Qchar_script_table): New variable.
21501 (syms_of_character): Declare Vchar_script_table as a lisp variable
21502 and initialize it.
21503
21504 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21505 have property char-table-extra-slots, make no extra slot.
21506
21507 * dispextern.h (struct face): Delete member `charset'.
21508 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21509 SINGLE_BYTE_CHAR_P.
21510 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21511 Add prototypes.
21512 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21513 (generate_ascii_font_name): Rename from generate_ascii_font.
21514
21515 * fontset.h (get_font_repertory_func): New prototype.
21516 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21517 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21518
21519 * fontset.c (Qprepend, Qappend): New variables.
21520 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21521 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21522 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21523 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21524 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21525 (load_font_get_repertory): New functions.
21526 (fontset_set): Delete.
21527 (fontset_face): New arg FACE. Return face ID, not face.
21528 Complete re-write to handle new fontset structure. Change caller.
21529 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21530 (face_for_char): Don't call lookup_face.
21531 (make_fontset_for_ascii_face): New arg FACE.
21532 (fs_load_font): New arg CHARSET_ID. Don't check
21533 Vfont_encoding_alist here.
21534 (find_font_encoding): New function.
21535 (list_fontsets): Use STRINGP, not ! NILP.
21536 (accumulate_script_ranges): New function.
21537 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21538 re-written to handle new fontset structure.
21539 (Ffontset_font): Return a copy of element.
21540 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21541 docstring of font-encoding-alist.
21542
21543 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21544 (Fset_fotset_font): Fix arguments to 5.
21545
21546 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21547
21548 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21549 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21550 (highlight_trailing_whitespace): Adjust for the change of
21551 lookup_named_face.
21552
21553 * xfaces.c: Include charset.h.
21554 (load_face_font): Delete argument C. Change caller.
21555 (generate_ascii_font_name): Rename from generate_ascii_font.
21556 (font_name_registry): New function.
21557 (cache_face): Store ascii faces before non-ascii faces in buckets.
21558 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21559 Lookup only ascii faces.
21560 (lookup_non_ascii_face): New function.
21561 (lookup_named_face): Delete argument C. Change caller.
21562 (lookup_derived_face): Delete argument C. Change caller.
21563 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21564 a string, just call font_list with it.
21565 (choose_face_font): Delete arguments FACE and C. New arg
21566 FONT_SPEC. Change caller.
21567 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21568 Change caller.
21569 (realize_non_ascii_face): New function.
21570 (realize_x_face): Call load_face_font here.
21571 (realize_tty_face): Delete argument C. Change caller.
21572 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21573 get a face ID.
21574 (dump_realized_face): Don't print charset of FACE.
21575
21576 * xfns.c (x_set_font): Always call x_new_fontset and
21577 store_frame_parameter.
21578 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21579 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21580
21581 * xterm.h (x_get_font_repertory): Extern it.
21582
21583 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21584 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21585 it->multibyte_p is zero.
21586 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21587 (x_new_fontset): If FONTSETNAME doesn't match any existing
21588 fontsets, create a new one.
21589 (x_get_font_repertory): New function.
21590
215912008-02-01 Kenichi Handa <handa@m17n.org>
21592
21593 * coding.c (Ffind_coding_systems_region_internal): Detect an
21594 ASCII only string correctly.
21595
21596 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21597 version is 0.
21598
215992008-02-01 Kenichi Handa <handa@m17n.org>
21600
21601 * lread.c: Include "coding.h".
21602 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21603 (load_each_byte, unread_char): New variables.
21604 (readchar_backlog): Delete.
21605 (readchar): Return a character unless load_each_byte is nonzero.
21606 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21607 cons. If unread_char is not -1, simply return it.
21608 (unreadchar): Handle the case that readcharfun is
21609 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21610 (read_multibyte): Delete.
21611 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21612 (read_emacs_mule_char): New functions.
21613 (Fload): Even if the file doesn't have the extension ".elc", if
21614 safe_to_load_p returns a positive version number, assume that the
21615 file contains bytecompiled code. If the version is less than 22,
21616 load the file while decoding multibyte sequences by emacs-mule.
21617 (readevalloop): Don't use readchar_backlog.
21618 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21619 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21620 (read_escape): Delete the arg BYTEREP.
21621 (read1): Set load_each_byte to 1 temporarily while handling
21622 #@NUMBER. Don't call read_multibyte.
21623 (read_vector): Call Fread with a cons. If readcharfun is
21624 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21625 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21626 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21627 and Qload_force_doc_strings.
21628
216292008-02-01 Kenichi Handa <handa@m17n.org>
21630
21631 * xdisp.c (face_before_or_after_it_pos): Call
21632 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21633
216342008-02-01 Kenichi Handa <handa@m17n.org>
21635
21636 * character.h (TRAILING_CODE_P): New macro.
21637 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21638 (string_char_with_unification): Fix prototype.
21639 (Vscript_alist): Extern it.
21640
21641 * character.c (Vscript_alist): New variable.
21642 (string_char_with_unification, str_as_unibyte)
21643 (string_escape_byte8): Add `const' to local variables.
21644 (syms_of_character): Declare script-alist as a Lisp variable.
21645
21646 * charset.h (Vcharset_ordered_list): Extern it.
21647 (charset_ordered_list_tick): Extern it.
21648 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21649 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21650 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21651 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21652 (Funify_charset): Adjust for the change of Funify_charset.
21653
21654 * charset.c (charset_ordered_list_tick): New variable.
21655 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21656 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21657 deunify instead of unify a charset.
aac0c6e3
MR
21658 (string_xstring_p): Add `const' to local variables.
21659 (find_charsets_in_text): Add `const' to arguments and local variables.
21660 (encode_char): Adjust for the change of Funify_charset. Fix
21661 detecting of invalid code.
21662 (Fset_charset_priority): Increment charset_ordered_list_tick.
21663 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21664 and TO_CODE.
21665
21666 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21667 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21668 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21669 (decode_coding_ccl, consume_chars)
21670 (Ffind_coding_systems_region_internal)
21671 (Fcheck_coding_systems_region): Add `const' to local variables.
21672
21673 * print.c (print_object): Use octal form for printing the
21674 contents of a bool vector.
21675
216762008-02-01 Dave Love <fx@gnu.org>
21677
21678 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21679 <version == 20>: Refuse to load.
21680
216812008-02-01 Dave Love <fx@gnu.org>
21682
21683 * fns.c: Move coding.h.
21684 (Qcodeset, Qdays, Qmonths): New.
21685 (concat): Use CHARACTERP instead of INTEGERP.
21686 (Flocale_codeset): Delete.
21687 (Flanginfo): New function.
21688 (syms_of_fns): Change accordingly.
21689
21690 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21691
216922008-02-01 Dave Love <fx@gnu.org>
21693
21694 * casetab.c (init_casetab_once, init_casetab_once): Fix
21695 CHAR_TABLE_SET call.
21696
21697 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21698
21699 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21700
21701 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21702 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21703 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21704
21705 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21706
21707 * coding.c (ENCODE_DESIGNATION, decode_eol)
21708 (make_conversion_work_buffer, code_conversion_restore)
21709 (Fdefine_coding_system_internal): Convert Lisp types.
21710 (code_conversion_restore): Use EQ, not ==.
21711 (Fencode_coding_string): Fix code_convert_string call.
21712
21713 * coding.h (code_convert_region): Fix prototype.
21714
21715 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21716
21717 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21718 (Ffontset_info): Convert Lisp types.
21719
21720 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21721
21722 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21723
21724 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21725
21726 * chartab.c: Include "...h", not <...h> in some cases.
21727
21728 * callproc.c (Fcall_process): Remove unused variables.
21729
217302008-02-01 Dave Love <fx@gnu.org>
21731
21732 * coding.c (Fset_coding_system_priority): Allow null arg list.
21733
217342008-02-01 Dave Love <fx@gnu.org>
21735
21736 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21737 (Fself_insert_and_exit): Use CHARACTERP.
21738
21739 * callproc.c (Fcall_process): Remove unused vars.
21740
21741 * xterm.c (XTread_socket): Add extra dead keysyms.
21742
21743 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21744
21745 * dispextern.h: Remove prototypes for redraw_frame,
21746 redraw_garbaged_frames.
21747
21748 * cmds.c (Fself_insert_command): Use CHARACTERP.
21749
21750 * chartab.c (make_sub_char_table): Remove unused var.
21751 (Fset_char_table_default, Fmap_char_table): Doc fix.
21752
21753 * keymap.c (access_keymap): Remove generic char code.
21754 (push_key_description): Use CHARACTERP.
21755
217562008-02-01 Dave Love <fx@gnu.org>
21757
21758 * charset.c: Doc fixes.
21759 (Funify_charset): Extra checking.
21760
217612008-02-01 Dave Love <fx@gnu.org>
21762
21763 * lread.c: Remove some unused variables.
21764 (safe_to_load_p): If safe, return the magic number version byte.
21765 (Fload): Maybe use load-with-code-conversion.
21766
217672008-02-01 Kenichi Handa <handa@m17n.org>
21768
21769 * category.c (Fmodify_category_entry): Don't modify the contents
21770 of category_set for characters out of the range. Avoid
21771 unnecessary modification.
21772
21773 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21774 Vchar_unify_table. The default value of the table is now nil.
21775
21776 * character.c (syms_of_character): Setup Vchar_width_table for
21777 eight-bit-control and raw-byte chars.
21778
21779 * charset.h (enum define_charset_arg_index): Delete
21780 charset_arg_parents and add charset_arg_subset and
21781 charset_arg_superset.
21782 (enum charset_attr_index): Delete charset_parents and add
21783 charset_subset and charset_superset.
21784 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21785 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21786 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21787 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21788 (CHARSET_SUPERSET): New macros.
21789 (charset_work): Extern it.
21790 (ENCODE_CHAR): Use charset_work.
21791 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21792 (map_charset_chars): Extern it.
21793
21794 * charset.c (load_charset_map): Set the default value of encoder
21795 and deunifier char-tables to nil.
21796 (map_charset_chars): Change argument. Change callers. Use
21797 map_char_table_for_charset instead of map_char_table.
21798 (Fmap_charset_chars): New optional args from_code and to_code.
21799 (Fdefine_charset_internal): Adjust for the change of
21800 `define-charset' (:parents -> :subset or :superset).
21801 (charset_work): New variable.
21802 (encode_char, syms_of_charset): Adjust for the change of
21803 Fdefine_charset_internal.
21804 (Ffind_charset_string): Setup the vector `charsets' correctly.
21805
21806 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21807 the previous change.
21808 (char_table_ref_and_range): Adjust for the above change.
21809 (map_sub_char_table_for_charset): New function.
21810 (map_char_table_for_charset): New function.
21811
21812 * keymap.c (describe_vector): Handle a char-table directly here.
21813 (describe_char_table): Delete.
21814
21815 * lisp.h (map_charset_chars): Delete.
21816
218172008-02-01 Dave Love <fx@gnu.org>
21818
21819 * fns.c (count_combining): Comment out (unused).
21820 (Flocale_codeset): New.
21821 (syms_of_fns): Defsubr it.
21822
21823 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21824 (size_t): Remove.
21825
218262008-02-01 Dave Love <fx@gnu.org>
21827
21828 * Makefile.in (chartab.o): Depend on charset.h.
21829
218302008-02-01 Kenichi Handa <handa@m17n.org>
21831
21832 * character.c (syms_of_character): Set the default value of
21833 Vprintable_chars to Qnil.
21834
218352008-02-01 Dave Love <fx@gnu.org>
21836
21837 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21838
218392008-02-01 Kenichi Handa <handa@m17n.org>
21840
21841 * charset.c (load_charset_map): Handle the case that from < to
21842 correctly.
21843
21844 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21845 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21846 Pay attention to raw-8-bit chars.
21847
218482008-02-01 Kenichi Handa <handa@m17n.org>
21849
21850 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21851 It is not bytecompiled now.
21852
21853 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21854 (charset_jisx0208): New variables.
21855 (Fdefine_charset_internal): Setup them if appropriate.
21856 (init_charset_once): Initialize them to -1.
21857
21858 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21859 (charset_jisx0208): Extern them.
21860
21861 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21862 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21863 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21864 (setup_iso_safe_charsets): Fix arguments to Fassq.
21865 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21866 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21867 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21868 (encode_coding_iso_2022): Change the 1st arg to
21869 ENCODE_ISO_CHARACTER to a variable.
21870
218712008-02-01 Kenichi Handa <handa@m17n.org>
21872
21873 * charset.h (enum define_charset_arg_index): New enums
21874 charset_arg_min_code and charset_arg_max_code.
21875 (struct charset): New member char_index_offset.
21876
21877 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21878 Take charset->char_index_offset into account.
21879 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21880 args[charset_arg_max_code]. Setup charset.char_index_offset.
21881 (syms_of_charset): Fix args to Fdefine_charset_internal.
21882
218832008-02-01 Dave Love <fx@gnu.org>
21884
21885 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21886
218872008-02-01 Dave Love <fx@gnu.org>
21888
21889 * coding.c: Doc fixes.
21890 (Fcoding_system_aliases): Fix return value.
21891 (Qmac): Remove (duplicated) definition.
21892
218932008-02-01 Dave Love <fx@gnu.org>
21894
362654a6
JB
21895 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21896 New functions.
aac0c6e3
MR
21897
21898 * character.c (Fstring): Doc fix.
21899
21900 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21901
362654a6 21902 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21903 (font-encoding-alist): Doc fix.
21904
219052008-02-01 Dave Love <fx@gnu.org>
21906
21907 * term.c (costs_set): Declare static, non-initialized for pcc.
21908 (encode_terminal_code): Remove unused var.
21909
21910 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21911 for K&R.
21912
21913 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21914
21915 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21916 (suffixes): Move out of make_subsidiaries for K&R.
21917
21918 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21919
21920 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21921
219222008-02-01 Dave Love <fx@gnu.org>
21923
21924 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21925
21926 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21927
219282008-02-01 Yong Lu <lyongu@asia-infonet.com>
21929
21930 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21931
21932 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21937 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21938
219392008-02-01 Kenichi Handa <handa@m17n.org>
21940
21941 * coding.c (decode_coding_charset): Adjust for the change of
21942 Fdefine_coding_system_internal.
21943 (Fdefine_coding_system_internal): For a coding system of
21944 `charset' type, store a list of charset IDs in
21945 `charset_attr_charset_valids' element of coding attributes.
21946
219472008-02-01 Kenichi Handa <handa@m17n.org>
21948
21949 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21950 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21951 caller. Handle 2-byte and 3-byte charsets correctly.
21952 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21953 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21954 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21955 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21956 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21957 sequence.
21958 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21959 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21960 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21961 and alt&rule composition.
21962 (decode_coding_iso_2022): Handle composition correctly.
21963 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21964
21965 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21966 re-defining a charset. If the charset has :emacs-mule-id, setup
21967 emacs_mule_bytes.
21968 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21969
219702008-02-01 Kenichi Handa <handa@m17n.org>
21971
21972 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21973 (encode_coding_big5, encode_coding_charset): If coding requires safe
21974 encoding, produce a character specified by
21975 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21976
219772008-02-01 Dave Love <fx@gnu.org>
21978
21979 * xterm.c (XSetIMValues): Declare.
21980
21981 * process.c: Conditionally include sys/wait.h, pty.h.
21982
21983 * print.c (print_object): Fix print format for 64-bit systems.
21984
21985 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21986
21987 * buffer.c (emacs_strerror): Declare.
21988
21989 * fontset.c (Fclear_face_cache): Declare.
21990 (accumulate_font_info): Comment-out (unused).
21991 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21992 variables.
21993
21994 * character.h (string_escape_byte8): Declare.
21995
21996 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21997 unused vars.
21998 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21999 (Fmap_charset_chars): Doc fix.
22000
22001 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22002 (Fset_coding_system_priority, Fset_coding_system_priority)
22003 (Fdefine_coding_system_internal): Doc fix.
22004
220052008-02-01 Dave Love <fx@gnu.org>
22006
22007 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22008
220092008-02-01 Kenichi Handa <handa@m17n.org>
22010
22011 * character.c (string_escape_byte8): Make multibyte string with
22012 correct size.
22013
22014 * charset.c (Fmake_char): Delete unnecessary code.
22015
220162008-02-01 Kenichi Handa <handa@m17n.org>
22017
22018 * xfns.c (x_encode_text): Allocate coding.destination here, and
22019 call encode_coding_object with dst_object Qnil.
22020
22021 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22022 multibyte form correctly.
22023
22024 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22025 against Vfont_encoding_alist.
22026
22027 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22028 handling of charset list.
22029 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22030 (decode_coding_object): Move point to coding->dst_pos before
22031 calling post-read-conversion function.
22032 (encode_coding_object): Give correct arguments to
22033 pre-write-conversion. Ignore the return value of
22034 pre-write-conversion function. Pay attention to the case that
22035 pre-write-conversion changes the current buffer. If dst_object is
22036 Qt, even if coding->src_bytes is zero, allocate at least one byte
22037 to coding->destination.
22038
22039 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22040
22041 * charset.c (Fmake_char): Make it more backward compatible.
22042 (Fmap_charset_chars): Fix docstring.
22043
220442008-02-01 Dave Love <fx@gnu.org>
22045
22046 * coding.c: Doc fixes.
22047 (Fdefine_coding_system_alias): Use names, not symbols, in
22048 coding-system-alist.
22049
220502008-02-01 Kenichi Handa <handa@m17n.org>
22051
22052 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22053 of calling free_realized_face.
22054
220552008-02-01 Yong Lu <lyongu@asia-infonet.com>
22056
22057 * charset.c (read_hex): Don't treat SPC as a comment starter.
22058 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22059 (Fdecode_char): Fix typo.
22060
220612008-02-01 Kenichi Handa <handa@m17n.org>
22062
22063 * charset.h (struct charset): New member `code_space_mask'.
22064
22065 * coding.c (coding_set_source): Delete the local variable beg_byte.
22066 (encode_coding_charset, Fdefine_coding_system_internal):
22067 Delete the local variable charset.
22068 (Fdefine_coding_system_internal): Setup
22069 attrs[coding_attr_charset_valids] correctly.
22070
22071 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22072 member to check if CODE is valid or not.
22073 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22074 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22075 is within the range of charset->min_code and carset->max_code.
22076
220772008-02-01 Dave Love <fx@gnu.org>
22078
22079 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22080
22081 * dispextern.h (generate_ascii_font): Fix return type.
22082
22083 * xfaces.c (generate_ascii_font): Fix arg declaration.
22084
22085 * coding.c (coding_inherit_eol_type)
22086 (Fset_terminal_coding_system_internal)
22087 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22088
220892008-02-01 Kenichi Handa <handa@m17n.org>
22090
22091 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22092 multiple charsets correctly.
22093
220942008-02-01 Kenichi Handa <handa@m17n.org>
22095
22096 * search.c (boyer_moore): Fix handling of multibyte character
22097 translation.
22098
22099 * xdisp.c (display_mode_element): When the variable `elt' is
22100 changed, update `this' and `lisp_string'.
22101
221022008-02-01 Kenichi Handa <handa@m17n.org>
22103
22104 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22105
22106 * callproc.c (Fcall_process): Be sure to give the current buffer
22107 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22108
22109 * charset.c (struct charset_map_entries): New struct.
22110 (load_charset_map): Rename from parse_charset_map. New args
22111 entries and n_entries. Change caller.
22112 (load_charset_map_from_file): Rename from load_charset_map.
22113 Change caller. New arg control_flag. Call load_charset_map at
22114 the tail.
22115 (load_charset_map_from_vector): New function.
22116 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22117 (encode_char): If the charset is compact, change a character index
22118 to a code point.
22119
22120 * coding.c (coding_alloc_by_making_gap): Check the case that the
22121 source and destination are the same correctly.
22122 (decode_coding_raw_text): Set coding->consumed_char and
22123 coding->consumed to 0.
22124 (produce_chars): If coding->chars_at_source is nonzero, update
22125 coding->consumed_char and coding->consumed before calling
22126 alloc_destination.
22127 (Fdefine_coding_system_alias): Register ALIAS in
22128 Vcoding_system_alist.
22129 (syms_of_coding): Define `no-conversion' coding system at the tail.
22130
22131 * fileio.c (Finsert_file_contents): Set coding_system instead of
22132 val. If the current buffer is multibyte, always call
22133 decode_coding_gap.
22134
22135 * xfaces.c (try_font_list): Give higher priority to fontset's
22136 family than face's family.
22137
221382008-02-01 Kenichi Handa <handa@m17n.org>
22139
22140 * callproc.c (Fcall_process): Be sure to give the current buffer
22141 to decode_coding_c_string.
22142
22143 * xfaces.c (try_font_list): Give a family specified in a fontset
22144 higher priority than a family specified in a face.
22145
221462008-02-01 Kenichi Handa <handa@m17n.org>
22147
22148 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22149 Fix arguments to insert_from_buffer.
22150
22151 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22152
221532008-02-01 Kenichi Handa <handa@m17n.org>
22154
22155 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22156 (decode_coding_gap): Set coding->dst_multibyte correctly.
22157
221582008-02-01 Kenichi Handa <handa@m17n.org>
22159
22160 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22161 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22162 (encode_coding_utf_16): Substitute coding->default_char for
22163 non-Unicode characters.
22164 (decode_coding): Don't call record_insert here.
22165 (setup_coding_system): Initialize `surrogate' of
22166 coding->spec.utf_16 to 0.
22167 (EMIT_ONE_BYTE): Fix for multibyte case.
22168
22169 * insdel.c (insert_from_gap): Call record_insert.
22170
221712008-02-01 Kenichi Handa <handa@m17n.org>
22172
22173 * casefiddle.c (casify_region): Fix multibyte case.
22174
22175 * character.c (c_string_width): Add return type `int'.
22176 (char_string_with_unification): Delete arg ADVANCED.
22177
22178 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22179 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22180 (CHAR_STRING_ADVANCE): Make it do-while statement.
22181
22182 * chartab.c (sub_char_table_set_range): Optimize for the case
22183 DEPTH == 3. Add workaround code for a GCC optimization bug.
22184
22185 * charset.c (parse_charset_map): Remove an unused variable.
22186
22187 * coding.c: Delete unused variables.
22188
22189 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22190 earlier. If inserted is zero and the coding system doesn't
22191 require flushing, don't call decode_coding_gap.
22192
22193 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22194
221952008-02-01 Kenichi Handa <handa@m17n.org>
22196
22197 The following changes are for using Unicode as an internal
22198 character model, and use UTF-8 format for buffer/string
22199 representation.
22200
22201 * .gdbinit (xchartable): Adjust for the change of char table structure.
22202 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22203
22204 * Makefile.in (obj): Add character.o and chartab.o.
22205 (lisp, shortlisp): Remove utf-8.elc.
22206 (*.o): For many files, change dependency on charset.h to
22207 character.h, and add dependency on character.h.
22208 (character.o, chartab.o): New targets.
22209
22210 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22211 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22212 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22213 of "charset.h".
22214
22215 * dired.c, filelock.c: Include "character.h".
22216
22217 * alloc.c: Include "character.h" instead of "charset.h".
22218 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22219 (syms_of_alloc): Remove defsubr for Smake_char_table.
22220
22221 * buffer.c: Include "character.h" instead of "charset.h", don't
22222 include "coding.h".
22223 (Fset_buffer_multibyte): Adjust for UTF-8.
22224
22225 * buffer.h: EXFUN Fbuffer_live_p.
22226
22227 * callproc.c: Include "character.h" instead of "charset.h".
22228 (Fcall_process): Big change for the new code-conversion APIs.
22229
22230 * casetab.c: Include "character.h" instead of "charset.h".
22231 (set_canon, set_identity, shuffle): Adjust for the new
22232 map_char_table spec.
22233 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22234 accessing the char table structure.
22235
22236 * chartab.c: New file that implements char table.
22237
22238 * category.c: Include "character.h".
22239 (copy_category_entry): New function.
22240 (copy_category_table): Call map_char_table and copy_category_entry.
22241 (Fmake_category_table): Initialize all top-level slots.
22242 (char_category_set): New function.
22243 (modify_lower_category_set): Delete.
22244 (Fmodify_category_entry): Call char_table_ref_and_range.
22245
22246 * category.h (CATEGORY_SET): Just call char_category_set.
22247
22248 * ccl.c: Include "character.h".
22249 (Qccl, Qcclp): New variables.
22250 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22251 it's less than 256.
22252 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22253 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22254 and DST type.
22255 (ccl_driver): Change types of argument, adjust code accordingly.
22256 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22257 ccl_driver.
22258 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22259
22260 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22261 New members src_multibyte, dst_multibyte, consumed, and produced.
22262 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22263 (CODING_SPEC_CCL_PROGRAM): New macro.
22264 (ccl_driver): Update prototype.
22265 (Qccl, Qcclp, Fccl_program_p): Extern them.
22266 (CHECK_CCL_PROGRAM): New macro.
22267
22268 * character.c, character.h, chartab.c: New files.
22269
22270 * charset.c: Mostly re-written. Move character and multibyte sequence
22271 handling codes to character.c.
22272
22273 * charset.h: Mostly re-written. Move character and multibyte sequence
22274 handling codes to character.h.
22275
22276 * coding.c, coding.h: Mostly re-written.
22277
22278 * composite.c: Include "character.h" instead of "charset.h".
22279 (CHAR_WIDTH): Move to character.h.
22280 (HASH_KEY, HASH_VALUE): Delete.
22281
22282 * composite.h (enum composition_method): Change order of enumeration
22283 symbols.
22284
22285 * data.c: Include "character.h" instead of "charset.h".
22286 (Faref): Call CHAR_TABLE_REF for a char table.
22287 (Faset): Call CHAR_TABLE_SET for a char table.
22288
22289 * dispextern.h (free_realized_face, check_face_attribytes)
22290 (generate_ascii_font): Extern them.
22291 (free_realized_multibyte_face): Delete extern.
22292
22293 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22294 table structure.
22295
22296 * editfns.c: Include "character.h" instead of "charset.h".
22297 (Fchar_to_string): Always call CHAR_STRING.
22298
22299 * emacs.c (main): Call init_charset_once, init_charset,
22300 syms_of_chartab, and syms_of_character.
22301
22302 * fileio.c: Include "character.h" instead of "charset.h".
22303 (Finsert_file_contents): Big change for the new code-conversion API.
22304 (choose_write_coding_system, Fwrite_region): Likewise.
22305 (build_annotations_2): Delete.
22306 (e_write): Big change for the new code-conversion API.
22307
22308 * fns.c: Include "character.h" instead of "charset.h".
22309 (copy_sub_char_table): Move to chartab.c.
22310 (Fcopy_sequence): Call copy_char_table for a char table.
22311 (concat): Delete codes calling count_multibyte.
22312 (string_char_to_byte, string_byte_to_char): Adjust for the new
22313 multibyte form.
22314 (internal_equal): Adjust for the change of char table structure.
22315 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22316 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22317 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22318 (char_table_translate, optimize_sub_char_table)
22319 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22320 chartab.c.
22321 (char_table_ref_and_index): Delete.
22322 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22323 (Fmd5): Call preferred_coding_system instead of accessing
22324 Vcoding_category_list. Adjust for the new code-conversion API.
22325 (syms_of_fns): Move defsubr for char table related functions to
22326 chartab.c.
22327
22328 * fontset.c: Mostly re-written.
22329
22330 * fontset.h (struct font_info): Change type of the member encoding_type.
22331 (enum FONT_SPEC_INDEX): New enum.
22332 (fontset_font_pattern, fs_load_font): Update prototype.
22333 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22334
22335 * indent.c: Include "character.h" instead of "charset.h".
22336 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22337
22338 * insdel.c: Include "character.h" instead of "charset.h".
22339 (copy_text): Don't refer to Vnonascii_translation_table.
22340 (insert_from_gap): New function.
22341
22342 * keyboard.c: Include "character.h" instead of "charset.h".
22343 (command_loop_1): Never call direct_output_forward_char before
22344 a non-ASCII character.
22345 (read_char): If Vkeyboard_translate_table is a char table, always
22346 translate a character.
22347
22348 * keymap.c: Include "character.h".
22349 (store_in_keymap): Handle the case that IDX is a cons.
22350 (Fdefine_key): Handle the case that KEY is a cons and the car part
22351 is also a cons (range).
22352 (push_key_description): Adjust for the new character code.
22353 (describe_vector): Call describe_char_table for a char table.
22354 (describe_char_table): New function.
22355
22356 * keymap.h (describe_char_table): Extern it.
22357
22358 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22359 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22360 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22361 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22362 Delete.
22363 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22364 structure.
22365 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22366 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22367 (CHARTAB_SIZE_BITS_3): New macros.
22368 (chartab_size): Extern it.
22369 (struct Lisp_Char_Table): Re-design.
22370 (struct Lisp_Sub_Char_Table): New structure.
22371 (HASH_KEY, HASH_VALUE): Move from fns.c.
22372 (CHARACTERBITS): Define as 22.
22373 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22374 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22375 (GC_SUB_CHAR_TABLE_P): New macro.
22376 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22377 (code_convert_string_norecord): Deleted extern.
22378 (init_character_once, syms_of_character, init_charset)
22379 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22380
22381 * lread.c: Include "character.h".
22382 (read_multibyte): New arg NBYTES.
22383 (read_escape): Change the meaning of returned *BYTEREP.
22384 (to_multibyte): Delete.
22385 (read1): Adjust the handling of char table and string.
22386
22387 * print.c: Include "character.h" instead of "charset.h".
22388 (print_string): Convert 8-bit raw bytes to octal form by
22389 string_escape_byte8.
22390 (print_object): Adjust for the new multibyte form. Print 8-bit
22391 raw bytes always in octal form. Handle sub char table correctly.
22392
22393 * process.c: Include "character.h" instead of "charset.h".
22394 (read_process_output, send_process): Adjust for the new
22395 code-conversion API.
22396
22397 * puresize.h (BASE_PURESIZE): Increase.
22398
22399 * regex.c: Include "character.h" instead of "charset.h".
22400 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22401 (regex_compile): Accept a range whose starting and ending
22402 character have different leading bytes.
22403 (analyse_first): Adjust for the above change.
22404
22405 * search.c: Include "character.h" instead of "charset.h".
22406 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22407 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22408
22409 * syntax.c: Include "character.h" instead of "charset.h".
22410 (syntax_parent_lookup): Delete.
22411 (Fmodify_syntax_entry): Accept a cons as CHAR.
22412 (skip_chars): Adjust for the new multibyte form.
22413 (init_syntax_once): Call char_table_set_range instead of directly
22414 accessing the structure of a char table.
22415
22416 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22417 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22418 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22419 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22420
22421 * term.c: Include "buffer.h" and "character.h".
22422 (encode_terminal_code, write_glyphs): Adjust for the new
22423 code-conversion API.
22424 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22425
22426 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22427
22428 * xdisp.c: Include "character.h".
22429 (get_next_display_element): Adjust for the new multibyte form.
22430 (disp_char_vector): Adjust for the new char table structure.
22431 (decode_mode_spec_coding): Adjust for the new structure of
22432 coding system.
22433 (decode_mode_spec): Adjust for the new code-conversion API.
22434
22435 * xfaces.c: Include "character.h" instead of "charset.h".
22436 (load_face_font): Adjust for the change of choose_face_font and
22437 FS_LOAD_FONT.
22438 (generate_ascii_font): New function.
22439 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22440 (set_font_frame_param): Adjust for the change of choose_face_font.
22441 (free_realized_face): Make it public.
22442 (free_realized_faces_for_fontset): Rename from
22443 free_realized_multibyte_face. Free also faces realized for ASCII.
22444 (choose_face_font): Change arguments. Adjust for the change of
22445 fontset_font_pattern and FS_LOAD_FONT.
22446
22447 * xfns.c: Include "character.h".
22448 (x_encode_text): Adjust for the new code-conversion API.
22449
22450 * xselect.c: Don't include "charset.h".
22451 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22452
22453 * xterm.c: Include "character.h".
22454 (x_encode_char): New argument CHARSET. Change caller.
22455 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22456 Call ENCODE_CHAR instead of SPLIT_CHAR.
22457 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22458 CHAR_WIDTH instead of CHARSET_WIDTH.
22459 (XTread_socket): Adjust for the new code-conversion API.
22460 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22461 (x_load_font): Adjust for the change of struct font.
22462
224632008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22464
22465 * xfaces.c (face_at_buffer_position): Remove unused vars.
22466
224672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22468
22469 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22470 Fix overflow checking.
22471
224722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22473
22474 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22475 Cancel previous change.
22476
224772008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22478
22479 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22480 ccl->eight_bit_control. Fix check for buffer overflow.
22481 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22482 (ccl_driver): Initialize extra_bytes to 0.
22483
224842008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22485
22486 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22487 return it ORed with ctrl_modifier.
22488
224892008-01-29 Miles Bader <miles@gnu.org>
22490
22491 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22492
224932008-01-28 Jason Rumney <jasonr@gnu.org>
22494
22495 * w32.c (stat): Don't double check for networked drive.
22496
224972008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22498
22499 * window.c (run_window_configuration_change_hook): New function.
22500 Code extracted from set_window_buffer. Set the selected frame.
22501 (set_window_buffer): Use it.
22502 * window.h (run_window_configuration_change_hook): Declare.
22503 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22504
22505 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22506
225072008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22508
22509 * Makefile.in: Remove references to unused macros.
22510
225112008-01-26 Eli Zaretskii <eliz@gnu.org>
22512
22513 * w32.c (g_b_init_get_sid_sub_authority)
22514 (g_b_init_get_sid_sub_authority_count): New static variables.
22515 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22516 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22517 (init_user_info): Use them to retrieve uid and gid.
22518 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22519 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22520 st_uid and st_gid of the file.
22521
225222008-01-26 Jason Rumney <jasonr@gnu.org>
22523
22524 * w32.c (logon_network_drive): New function.
22525 (stat): Use it.
22526
225272008-01-26 Chong Yidong <cyd@stupidchicken.com>
22528
22529 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22530 invisible text covered with an ellipsis.
22531
225322008-01-25 Richard Stallman <rms@gnu.org>
22533
22534 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22535 jump back to beginning. Move some other initializations after that.
22536 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22537 New variables.
22538 (syms_of_xdisp): Init them.
22539
22540 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22541
22542 * buffer.c (reset_buffer_local_variables):
22543 Implement `permanent-local-hook'.
22544 (Qpermanent_local_hook): New variable.
22545 (syms_of_buffer): Init and staticpro it.
22546
225472008-01-25 Michael Albinus <michael.albinus@gmx.de>
22548
22549 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22550
225512008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22552
22553 * fns.c (Fclrhash): Return TABLE.
22554
225552008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22556
22557 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22558 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22559 is set even without positional changes.
22560 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22561
22562 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22563
225642008-01-23 Jason Rumney <jasonr@gnu.org>
22565
22566 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22567
22568 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22569 the unicode range available in MULE by locale-coding-system.
22570 Improve dbcs lead byte detection. Set event timestamp and modifiers
22571 earlier.
22572
225732008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22574
22575 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22576 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22577 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22578 when used on child processes.
22579
225802008-01-21 Michael Albinus <michael.albinus@gmx.de>
22581
22582 * dbusbind.c (Fdbus_method_return_internal): Rename from
22583 Fdbus_method_return.
22584 (Fdbus_unregister_object): Move to dbus.el.
22585 (Fdbus_call_method, Fdbus_method_return_internal)
22586 (Fdbus_send_signal): Improve debug messages.
22587
225882008-01-20 Martin Rudalics <rudalics@gmx.at>
22589
22590 * undo.c (undo_inhibit_record_point): New variable.
22591 (syms_of_undo): Initialize it.
22592 (record_point): Don't record point when undo_inhibit_record_point
22593 is set.
22594
225952008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22596
22597 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22598
22599 * xdisp.c (Qauto_hscroll_mode): New var.
22600 (syms_of_xdisp): Initialize it.
22601 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22602 window's buffer.
22603 (hscroll_windows): Don't check automatic_hscrolling_p here.
22604
22605 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22606 vscroll if we're setting window-buffer to the value it already has.
22607
226082008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22609
22610 * m/intel386.h: Remove references to XENIX.
22611
226122008-01-17 Andreas Schwab <schwab@suse.de>
22613
22614 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22615 instead of HAVE_X86_64_LIB64_DIR.
22616 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22617
226182008-01-17 Glenn Morris <rgm@gnu.org>
22619
22620 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22621 to HAVE_X86_64_LIB64_DIR.
22622
226232008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22624
22625 * s/irix3-3.h:
22626 * s/irix4-0.h:
22627 * s/386-ix.h:
22628 * s/domain.h:
22629 * s/hpux9-x11r4.h:
22630 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22631
22632 * sysdep.c: Remove code containing references to symbols defined
22633 by unsupported systems.
22634
226352008-01-16 Glenn Morris <rgm@gnu.org>
22636
22637 * coding.c (select-safe-coding-system-function): Doc fix.
22638
226392008-01-15 Glenn Morris <rgm@gnu.org>
22640
22641 * config.in: Revert 2008-01-13 change: this is a generated file.
22642
226432008-01-13 Tom Tromey <tromey@redhat.com>
22644
22645 * lisp.h: Fix typo.
22646
226472008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22648
22649 * m/sequent-ptx.h:
22650 * m/sequent.h:
22651 * s/ptx.h:
22652 * s/ptx4-2.h:
22653 * s/ptx4.h: Remove files for systems no longer supported.
22654
22655 * callproc.c (Fcall_process): Fix previous change.
22656
226572008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22658
22659 * unexsunos4.c: Remove file, system not supported anymore.
22660
22661 * m/mips.h:
22662 * m/intel386.h:
22663 * callproc.c:
22664 * config.in:
22665 * ecrt0.c:
22666 * emacs.c:
22667 * fileio.c:
22668 * frame.c:
22669 * getpagesize.h:
22670 * keyboard.c:
22671 * lread.c:
22672 * process.c:
22673 * puresize.h:
22674 * sysdep.c:
22675 * systty.h:
22676 * syswait.h:
22677 * unexec.c:
22678 * xdisp.c:
22679 * alloc.c: Remove code containing references to symbols defined by
22680 unsupported systems.
22681
226822008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22683
22684 * coding.c (detect_coding_mask): Fix previous change.
22685
226862008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22687
22688 * coding.c (detect_coding_iso2022): New arg
22689 latin_extra_code_state. Allow Latin extra codes only
22690 when *latin_extra_code_state is nonzero.
22691 (detect_coding_mask): If there is a NULL byte, detect the encoding
22692 as UTF-16 or binary. If Latin extra codes exist, detect the
22693 encoding as ISO-2022 only when there's no other proper encoding is
22694 found.
22695
226962008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22697
22698 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22699 #ifdef MAC_OS.
22700
227012008-01-08 Richard Stallman <rms@gnu.org>
22702
22703 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22704
227052008-01-06 Nick Roberts <nickrob@snap.net.nz>
22706
22707 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22708 menu bar in parentheses.
22709
227102008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22711
22712 * m/7300.h:
22713 * m/acorn.h:
22714 * m/alliant-2800.h:
22715 * m/alliant.h:
22716 * m/alliant1.h:
22717 * m/alliant4.h:
22718 * m/altos.h:
22719 * m/amdahl.h:
22720 * m/apollo.h:
22721 * m/att3b.h:
22722 * m/aviion-intel.h:
22723 * m/aviion.h:
22724 * m/celerity.h:
22725 * m/clipper.h:
22726 * m/cnvrgnt.h:
22727 * m/convex.h:
22728 * m/cydra5.h:
22729 * m/delta88k.h:
22730 * m/dpx2.h:
22731 * m/dual.h:
22732 * m/elxsi.h:
22733 * m/f301.h:
22734 * m/gould-np1.h:
22735 * m/gould.h:
22736 * m/i860.h:
22737 * m/ibmps2-aix.h:
22738 * m/ibmrt-aix.h:
22739 * m/ibmrt.h:
22740 * m/irist.h:
22741 * m/is386.h:
22742 * m/isi-ov.h:
22743 * m/mega68.h:
22744 * m/mg1.h:
22745 * m/news-r6.h:
22746 * m/news-risc.h:
22747 * m/news.h:
22748 * m/nh3000.h:
22749 * m/nh4000.h:
22750 * m/ns16000.h:
22751 * m/ns32000.h:
22752 * m/nu.h:
22753 * m/orion.h:
22754 * m/orion105.h:
22755 * m/paragon.h:
22756 * m/pfa50.h:
22757 * m/plexus.h:
22758 * m/pyramid.h:
22759 * m/pyrmips.h:
22760 * m/sh3el.h:
22761 * m/sps7.h:
22762 * m/sr2k.h:
22763 * m/stride.h:
22764 * m/sun1.h:
22765 * m/sun2.h:
22766 * m/sun3-68881.h:
22767 * m/sun3-fpa.h:
22768 * m/sun3-soft.h:
22769 * m/sun3.h:
22770 * m/sun386.h:
22771 * m/symmetry.h:
22772 * m/tad68k.h:
22773 * m/tahoe.h:
22774 * m/targon31.h:
22775 * m/tek4300.h:
22776 * m/tekxd88.h:
22777 * m/tower32.h:
22778 * m/tower32v3.h:
22779 * m/ustation.h:
22780 * m/wicat.h:
22781 * m/xps100.h:
22782 * s/cxux.h:
22783 * s/cxux7.h:
22784 * s/dgux.h:
22785 * s/dgux4.h:
22786 * s/dgux5-4-3.h:
22787 * s/dgux5-4r2.h:
22788 * s/esix.h:
22789 * s/esix5r4.h:
22790 * s/hiuxmpp.h:
22791 * s/hiuxwe2.h:
22792 * s/iris3-5.h:
22793 * s/iris3-6.h:
22794 * s/isc2-2.h:
22795 * s/isc3-0.h:
22796 * s/isc4-0.h:
22797 * s/isc4-1.h:
22798 * s/newsos5.h:
22799 * s/newsos6.h:
22800 * s/osf1.h:
22801 * s/osf5-0.h:
22802 * s/riscix1-1.h:
22803 * s/riscix12.h:
22804 * s/sco4.h:
22805 * s/sco5.h:
22806 * s/sunos4-0.h:
22807 * s/sunos4-1.h:
22808 * s/sunos413.h:
22809 * s/sunos4shr.h:
22810 * s/umax.h:
22811 * s/unipl5-2.h:
22812 * s/xenix.h:
22813 * cxux-crt0.s:
22814 * unexapollo.c:
22815 * unexconvex.c:
22816 * unexenix.c:
22817 * unexsni.c: Remove files for systems no longer supported.
22818
22819 * m/intel386.h: Remove references to unsupported systems.
22820
22821 * w32.c (get_emacs_configuration): Remove reference to i860.
22822
22823 * sysdep.c: Remove dead code.
22824
228252008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22826
22827 * s/rtu.h:
22828 * m/masscomp.h: Remove files. Platform is obsolete.
22829
228302008-01-04 Michael Albinus <michael.albinus@gmx.de>
22831
22832 * dbusbind.c (Fdbus_method_return): New function.
22833 (xd_read_message): Add the serial number to the event.
22834 (Fdbus_register_method): Activate the function.
22835
228362008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22837
22838 * keyboard.c (read_key_sequence): Fix typo.
22839
228402008-01-03 Michael Albinus <michael.albinus@gmx.de>
22841
22842 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22843 (xd_signature, xd_append_arg): Handle element type detection for
22844 empty arrays.
22845 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22846 SDATA () calls; this must be solved more general.
22847 (Fdbus_register_signal): Use SBYTES instead of strlen.
22848
228492008-01-03 Magnus Henoch <magnus@zemdatav>
22850
22851 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22852 unsigned int for byte values (necessary for big-endian platform).
22853 (Fdbus_call_method): Handle the case of no returned arguments.
22854
228552007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22856
22857 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22858
228592007-12-31 Magnus Henoch <mange@freemail.hu>
22860
22861 * dbusbind.c (xd_signature): Signature of variant is just "v".
22862
228632007-12-30 Michael Albinus <michael.albinus@gmx.de>
22864
22865 * dbusbind.c: Fix several errors and compiler warnings.
22866 Reported by Tom Tromey <tromey@redhat.com>.
22867 (XD_ERROR, XD_DEBUG_MESSAGE)
22868 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22869 (xd_append_arg): Part for basic D-Bus types rewritten.
22870 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22871 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22872 appropriate.
22873 (xd_read_message): Return Qnil. Don't signal an error; it is not
22874 useful during event reading.
22875 (Fdbus_register_signal): Signal an error if the check for
22876 FUNCTIONP fails.
22877 (Fdbus_register_method): New function. The implementation is not
22878 complete, the call of the function signals an error therefore.
22879 (Fdbus_unregister_object): New function, renamed from
22880 Fdbus_unregister_signal. The initial check signals an error, if
22881 the object is not well formed.
22882
228832007-12-30 Richard Stallman <rms@gnu.org>
22884
22885 * textprop.c (get_char_property_and_overlay):
22886 Signal error if POSITION is out of range in a buffer.
22887
228882007-12-29 Martin Rudalics <rudalics@gmx.at>
22889
22890 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22891 because the original parameters are in pure storage now.
22892
228932007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22894
22895 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22896
228972007-12-22 Eli Zaretskii <eliz@gnu.org>
22898
22899 * callint.c (syms_of_callint) <command-history>: Add reference to
22900 history-length in the doc string.
22901
229022007-12-17 Jason Rumney <jasonr@gnu.org>
22903
22904 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22905 before passing as wParam.
22906
229072007-12-22 Michael Albinus <michael.albinus@gmx.de>
22908
22909 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22910 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22911 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22912 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22913 as number.
22914 (Fdbus_call_method): Fix docstring.
22915
229162007-12-21 Michael Albinus <michael.albinus@gmx.de>
22917
22918 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22919 New macros.
22920 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22921 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22922 Simplify.
22923 (xd_signature): New function.
22924 (xd_append_arg): Compute also signatures. Major rewrite.
22925 (xd_retrieve_arg): Make debug messages friendly.
22926 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22927 Check for signatures of arguments.
22928
229292007-12-19 Michael Albinus <michael.albinus@gmx.de>
22930
22931 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22932 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22933 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22934 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22935 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22936 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22937 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22938 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22939 (xd_retrieve_value): Remove. Functionality included in ...
22940 (xd_append_arg): New function.
22941 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22942
229432007-12-16 Michael Albinus <michael.albinus@gmx.de>
22944
22945 * dbusbind.c (top): Include <stdio.h>.
22946 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22947 dbus_message_new_method_call and dbus_message_new_signal.
22948 (Fdbus_register_signal): Rename unique_name to uname.
22949 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22950 non-existing unique name. Fix typos in matching rule. Return an
22951 object which is useful in Fdbus_unregister_signal.
22952 (Fdbus_unregister_signal): Reimplementation, in order to remove
22953 only the corresponding entry.
22954 (Vdbus_registered_functions_table): Change the order of entries.
22955 Apply these changes in xd_read_message and Fdbus_register_signal.
22956
229572007-12-16 Andreas Schwab <schwab@suse.de>
22958
22959 * fileio.c (Finsert_file_contents): Fix overflow check to not
22960 depend on undefined integer overflow.
22961
229622007-12-14 Jason Rumney <jasonr@gnu.org>
22963
22964 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22965 for characters above 127.
22966
229672007-12-13 Jason Rumney <jasonr@gnu.org>
22968
22969 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22970 before dereferencing array.
22971 (lookup_vk_code): Remove zero comparison.
22972
229732007-12-14 Michael Albinus <michael.albinus@gmx.de>
22974
22975 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22976 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22977 Use `unsigned int' instead of `uint'.
22978 (xd_read_message, Fdbus_register_signal): Split expressions into
22979 multiple lines before operators "&&" and "||", according to the
22980 GNU Coding Standards.
22981
229822007-12-14 Eli Zaretskii <eliz@gnu.org>
22983
22984 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22985
229862007-12-12 Juri Linkov <juri@jurta.org>
22987
22988 * buffer.c (Frename_buffer): In interactive spec replace
22989 `read-buffer' with `read-string' that uses `buffer-name-history'
22990 as history, and the current buffer's name as default.
22991
229922007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22993
22994 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22995 manipulating the backtrace manually.
22996 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22997 (struct backtrace, backtrace_list): Remove.
22998 (command_loop_1): Remove dead var `no_direct'.
22999
23000 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23001 preserve non-built-in buffer-local variables.
23002 (Fkill_all_local_variables): Don't re-create&re-set permanent
23003 buffer-local variables.
23004
230052007-12-09 Juri Linkov <juri@jurta.org>
23006
23007 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23008 Lisp code that uses `read-buffer' with current buffer as default.
23009
230102007-12-08 Michael Albinus <michael.albinus@gmx.de>
23011
23012 * dbusbind.c (xd_read_message): Generate an event for every
23013 registered handler. There might be several handlers registered
23014 for the same signal.
23015 (Fdbus_register_signal): Don't overwrite a registration for the
23016 same signal. Add a new registration if handlers are different.
23017 (Vdbus_registered_functions_table): Rework doc string.
23018
230192007-12-07 Michael Albinus <michael.albinus@gmx.de>
23020
23021 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23022 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23023 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23024 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23025 Unify argument lists.
23026 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23027 arguments and hash table keys. Use unique name for service.
23028 (Fdbus_unregister_signal): Remove checks.
23029 (Vdbus_registered_functions_table): Fix doc string.
23030
230312007-12-05 Magnus Henoch <mange@freemail.hu>
23032
23033 * process.c (make_process): Initialize pty_flag to 0.
23034
230352007-12-05 Jason Rumney <jasonr@gnu.org>
23036
23037 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23038 specified XBMs.
23039
230402007-12-05 Richard Stallman <rms@gnu.org>
23041
23042 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23043
230442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23045
23046 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23047 New variable.
23048 (mac_try_close_socket) [MAC_OSX]: New function.
23049 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23050 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23051
23052 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23053 Use mac_try_close_socket.
23054
230552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23056
23057 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23058 reloc_base.
23059 (copy_dysymtab): Compute relocation base here.
23060 (rebase_reloc_address) [__ppc64__]: New function.
23061 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23062 changed.
23063
230642007-12-05 Jason Rumney <jasonr@gnu.org>
23065
23066 * w32proc.c (sys_spawnve): Quote args with wildcards.
23067
230682007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23069
23070 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23071 __objc_* sections.
23072 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23073
230742007-12-05 Michael Albinus <michael.albinus@gmx.de>
23075
23076 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23077 Move check for Vdbus_registered_functions_table to
23078 xd_read_queued_messages.
23079 (xd_read_queued_messages): Protect xd_read_message calls by
23080 internal_condition_case_1.
23081
230822007-12-04 Michael Albinus <michael.albinus@gmx.de>
23083
23084 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23085 Qdbus_system_bus and Qdbus_session_bus, respectively.
23086 (Vdbus_intern_symbols): Remove.
23087 (Vdbus_registered_functions_table): New hash table.
23088 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23089 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23090 Rewrite in order to manage registered functions by hash table
23091 Vdbus_registered_functions_table.
23092
230932007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23094
23095 * xterm.c: Update URL to Window Manager Specification in comment.
23096
230972007-12-02 Michael Albinus <michael.albinus@gmx.de>
23098
23099 * config.in (HAVE_DBUS): Add.
23100
23101 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23102 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23103 (obj): Add $(DBUS_OBJ).
23104 (LIBES): Add $(DBUS_LIBS).
23105 (dbusbind.o): New target.
23106
23107 * dbusbind.c: New file.
23108
23109 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23110
23111 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23112 (Qdbus_event): New Lisp symbol.
23113 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23114 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23115 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23116
23117 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23118
231192007-12-01 Richard Stallman <rms@gnu.org>
23120
23121 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23122
231232007-11-30 Jason Rumney <jasonr@gnu.org>
23124
23125 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23126 (w32con_reset_terminal_modes): Clear screen buffer.
23127 (w32_face_attributes): Don't use color indexes that are out of range.
23128 Only reverse the default colors.
23129
23130 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23131 WINDOWSNT.
23132
23133 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23134
231352007-11-29 Jason Rumney <jasonr@gnu.org>
23136
23137 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23138 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23139 if the terminal colors are initialized.
23140 (unspecified_fg, unspecified_bg): Remove unused declarations.
23141
231422007-11-29 Andreas Schwab <schwab@suse.de>
23143
23144 * keyboard.c (apply_modifiers): Fix typo.
23145
231462007-11-29 Richard Stallman <rms@gnu.org>
23147
23148 * keymap.c (Fcurrent_local_map): Doc fix.
23149
231502007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23151
23152 * s/gnu-kfreebsd.h: New file.
23153
231542007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23155
23156 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23157 Don't cast redundantly.
23158
23159 * keyboard.c (KEY_TO_CHAR): New macro.
23160 (parse_modifiers, apply_modifiers): Accept integer arguments.
23161 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23162 for chars and symbol keys.
23163 After doing such remapping, apply function-key-map again.
23164
231652007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23166
23167 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23168 compiled anymore.
23169
231702007-11-26 Andreas Schwab <schwab@suse.de>
23171
23172 * process.c (list_processes_1): Fix indentation level of the
23173 command column.
23174
231752007-11-23 Andreas Schwab <schwab@suse.de>
23176
23177 * editfns.c (Fformat): Handle %c specially since it requires the
23178 argument to be of type int.
23179
231802007-11-23 Markus Triska <markus.triska@gmx.at>
23181
23182 * emacs.c (main): Call init_editfns before init_process, since
23183 init_process sets Vprocess_connection_type depending on OS release.
23184
231852007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23186
23187 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23188 (find_symbol_value): Use do_symval_forwarding.
23189
23190 * data.c (set_internal): Set the value in the `cons-cell' (for
23191 Buffer_Local_values) not only for frame-local variables.
23192
231932007-11-22 Andreas Schwab <schwab@suse.de>
23194
23195 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23196 values to sprintf.
23197 * keymap.c (Fsingle_key_description): Likewise.
23198 * print.c (print_object): Likewise.
23199
232002007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23201
23202 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23203 file for image is nil.
23204
232052007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23206
23207 * term.c: Include stdarg.h.
23208 (fatal): Implement using varargs.
23209 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23210
232112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23212
23213 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23214 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23215 Update call to buffer_slot_type_mismatch.
23216 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23217 (buffer_slot_type_mismatch): Update.
23218 * buffer.c (buffer_local_types): Remove.
23219 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23220 (defvar_per_buffer): Set the type in the buffer_objfwd.
23221
232222007-11-21 Jason Rumney <jasonr@gnu.org>
23223
23224 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23225 CreateFileMapping returns NULL on failure.
23226
232272007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23228
23229 * search.c (Fset_match_data): Remove the `evaporate' feature.
23230 (unwind_set_match_data): Don't use the `evaporate' feature.
23231
232322007-11-21 Jason Rumney <jasonr@gnu.org>
23233
23234 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23235
23236 * w32console.c (w32con_write_glyphs): Remove unused variables.
23237
232382007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23239
23240 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23241
23242 * s/darwin.h (MULTI_KBOARD): Remove.
23243
23244 * macfns.c (x_create_tip_frame, Fx_create_frame)
23245 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23246
232472007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23248
23249 * buffer.c (Fbuffer_local_value): Remove redundant test.
23250 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23251 than in `current-buffer' to match the comment.
23252 Do the swap using swap_in_global_binding.
23253
23254 * data.c (store_symval_forwarding, set_internal):
23255 * eval.c (specbind): Remove dead code.
23256
23257 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23258 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23259 Since we do not want to see internal Lisp_*fwd objects here.
23260
232612007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23262
23263 * sysdep.c (init_system_name): Use getaddrinfo if available.
23264
23265 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23266 (x_scroll_bar_note_movement): start, end, with, height in struct
23267 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23268
232692007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23270
23271 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23272
232732007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23274
23275 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23276 This undoes Richard's change of 14-Oct-2002.
23277
23278 * alloc.c (allocate_other_vector):
23279 * lisp.h (allocate_other_vector): Remove.
23280
23281 * window.c (struct save_window_data): Move non-lisp data to the end
23282 and make it `int' rather than Lisp_Object.
23283 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23284 Done wrap/unwrap integer values.
23285 (Fset_window_configuration, compare_window_configurations):
23286 Update use of fields to their new types.
23287
23288 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23289 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23290 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23291 (SET_SCROLL_BAR_X_WINDOW): Remove.
23292 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23293 Access the new x_window field directly.
23294 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23295 Don't wrap/unwrap integers into Lisp_Objects.
23296 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23297 (x_scroll_bar_report_motion):
23298 Don't wrap/unwrap integers into Lisp_Objects.
23299 (x_term_init): Use SDATA.
23300 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23301 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23302 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23303 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23304 * xfns.c (x_set_background_color):
23305 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23306 Access the new x_window field directly.
23307
23308 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23309 (allocate_pseudovector): Make non-static.
23310
23311 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23312 (allocate_pseudovector): Declare.
23313 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23314
233152007-11-15 Andreas Schwab <schwab@suse.de>
23316
23317 * editfns.c (Fformat): Correctly format EMACS_INT values.
23318 Also take precision into account when formatting an integer.
23319
23320 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23321
233222007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23323
23324 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23325 (syms_of_keyboard): Defsubr it.
23326
23327 * data.c (swap_in_global_binding): Fix longstanding bug where
23328 store_symval_forwarding was not called with the right second argument,
23329 thus causing objfwd-ing from being dropped.
23330
233312007-11-14 Juanma Barranquero <lekktu@gmail.com>
23332
23333 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23334 (Fx_display_pixel_height, Fx_display_planes)
23335 (Fx_display_color_cells, Fx_server_max_request_size)
23336 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23337 (Fx_display_visual_class, Fx_display_save_under):
23338 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23339 (Fx_display_pixel_height, Fx_display_planes)
23340 (Fx_display_color_cells, Fx_server_max_request_size)
23341 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23342 (Fx_display_mm_height, Fx_display_mm_width)
23343 (Fx_display_backing_store, Fx_display_visual_class)
23344 (Fw32_select_font, Fx_display_save_under):
23345 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23346 (Fx_display_pixel_height, Fx_display_planes)
23347 (Fx_display_color_cells, Fx_server_max_request_size)
23348 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23349 (Fx_display_save_under): Fix typos in docstrings.
23350
233512007-11-14 Juanma Barranquero <lekktu@gmail.com>
23352
23353 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23354 corresponding to deleted entries; they are an implementation detail.
23355 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23356 Remove variables.
23357 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23358 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23359 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23360 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23361 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23362 (Fw32_define_rgb_color, Fw32_load_color_file)
23363 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23364 Fix typos in docstrings.
23365 (Fx_server_version): Reflow docstring.
23366 (Fw32_shell_execute): Doc fixes.
23367
233682007-11-13 Juanma Barranquero <lekktu@gmail.com>
23369
23370 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23371 if w32_parse_hot_key returned nil.
23372
233732007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23374
23375 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23376
233772007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23378
aac0c6e3
MR
23379 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23380
23381 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23382
23383 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23384 Remove W32_SCROLL_BAR_CLICK_EVENT.
23385
23386 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23387 Add MULTIMEDIA_KEY_EVENT.
23388
23389 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23390 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23391 (make_lispy_event) [WINDOWSNT]: Use it to translate
23392 MULTIMEDIA_KEY_EVENT.
23393
23394 * w32term.h (WM_APPCOMMAND): Define if not already.
23395 (GET_APPCOMMAND_LPARAM): Likewise.
23396
23397 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23398 WM_APPCOMMAND.
23399
23400 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23401 (syms_of_w32fns): Export and initialize it.
23402 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23403
234042007-11-09 Chong Yidong <cyd@stupidchicken.com>
23405
23406 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23407 twice.
23408
23409 * xdisp.c (handle_face_prop): Fix last change.
23410
234112007-11-09 Richard Stallman <rms@gnu.org>
23412
23413 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23414 not just for after-strings and before-strings.
23415 Call face_for_overlay_string and pass the overlay to it.
23416 (handle_display_prop): Determine whether property came from an overlay.
23417 Pass OVERLAY arg to handle_single_display_spec.
23418 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23419 (load_overlay_strings): Fill in it->string_overlays.
23420 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23421
23422 * xfaces.c (face_for_overlay_string): Function renamed from
23423 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23424
23425 * dispextern.h (struct it): New elt string_overlays.
23426 New elt from_overlay, also in stack.
23427 Rearrange a few elements.
23428 (face_for_overlay_string): Decl renamed from
23429 face_at_buffer_position_no_overlays, and add argument.
23430
234312007-11-09 Richard Stallman <rms@gnu.org>
23432
23433 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23434 to get the base face for an overlay string.
23435
23436 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23437
23438 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23439
23440 * xdisp.c (handle_stop): Move some code out of loop.
23441
234422007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23443
23444 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23445 Fix conversion from Lisp object to ATSUFontID.
23446
234472007-11-09 Jason Rumney <jasonr@gnu.org>
23448
23449 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23450
234512007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23452
23453 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23454 Don't assume regions are aligned to page boundary.
23455 (print_load_command_name): Add LC_UUID if defined.
23456
234572007-11-09 Richard Stallman <rms@gnu.org>
23458
23459 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23460
234612007-11-07 Jason Rumney <jasonr@gnu.org>
23462
23463 * s/windows95.h: Remove.
23464
234652007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23466
23467 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23468 abort with a message on unhandled store_type values.
23469
234702007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23471
23472 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23473 Remove HAVE_X11R5 and HAVE_X11R4.
23474
234752007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23476
23477 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23478
234792007-11-01 Johan Bockgård <bojohan@gnu.org>
23480
23481 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23482 Don't set s->stippled_p here, since it has already been set by
23483 x_set_glyph_string_gc from x_draw_glyph_string.
23484
234852007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23486
23487 * sunfns.c: Remove file.
23488
23489 * m/sun386.h:
23490 * m/sun2.h:
23491 * m/sparc.h: Remove Sun windows code.
23492
234932007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23494
23495 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23496 (init_keyboard): Set current_kboard's window-system to nil.
23497 (tty_read_avail_input): Typo.
23498 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23499
235002007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23501
23502 * s/usg5-4.h:
23503 * s/usg5-3.h:
23504 * s/ptx.h:
23505 * m/is386.h:
23506 * m/ibmps2-aix.h:
23507 * Makefile.in: Remove all mentions of X10.
23508
23509 * dispnew.c (syms_of_display): Don't mention version 10.
23510
235112007-10-28 Juanma Barranquero <lekktu@gmail.com>
23512
23513 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23514 ($(BLD)/abbrev.$(O)): Remove.
23515
235162007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23517
23518 Rewrite abbrev.c in Elisp.
23519 * image.c (Qcount): Don't declare as extern.
23520 (syms_of_image): Initialize and staticpro `Qcount'.
23521 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23522 * emacs.c (main): Don't call syms_of_abbrev.
23523 * Makefile.in (obj): Remove abbrev.o.
23524 (abbrev.o): Remove.
23525 * abbrev.c: Remove.
23526
235272007-10-26 Martin Rudalics <rudalics@gmx.at>
23528
23529 * window.c (window_min_size_2): Don't count header-line.
23530
235312007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23532
23533 * frame.h (struct frame): Move all bit fields after the first bit
23534 field to take advantage of the available space. Group all the
23535 chars together to reduce wasted space due to padding.
23536
235372007-10-26 Juanma Barranquero <lekktu@gmail.com>
23538
23539 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23540
23541 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23542 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23543 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23544 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23545 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23546 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23547 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23548 (last_marked, mark_object_loop_halt): Make static.
23549
23550 * frame.c (syms_of_frame) <delete-frame-functions>:
23551 Fix typo in docstring.
23552
235532007-10-25 Juanma Barranquero <lekktu@gmail.com>
23554
23555 * w32.c (init_environment): Fix tiny memory leak.
23556 (w32_get_resource): Remove unused variable `ok'.
23557
235582007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23559
23560 Make `window-system' into a keyboard-local variable (rather than
23561 frame-local as done originally by multi-tty).
23562
23563 * keyboard.h (struct kboard): Add Vwindow_system.
23564 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23565 (mark_kboards): Mark Vwindow_system.
23566
23567 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23568 (init_display): Don't set the obsolete `window-system' frame-param.
23569
23570 * xterm.c (x_term_init):
23571 * w32term.c (w32_create_terminal):
23572 * term.c (init_tty): Set Vwindow_system.
23573 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23574 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23575
23576 * xfns.c (Fx_create_frame, x_create_tip_frame):
23577 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23578 * macfns.c (Fx_create_frame):
23579 Don't set the obsolete `window-system' frame-param.
23580
23581 * frame.h (Qwindow_system): Remove.
23582 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23583 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23584
235852007-10-24 Richard Stallman <rms@gnu.org>
23586
23587 * frame.c (x_figure_window_size): For fullscreen case,
23588 set USPosition | PPosition without clobbering rest of window_prompting.
23589
23590 * keyboard.c (Fcurrent_idle_time): Doc fix.
23591
23592 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23593
235942007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23595
23596 * process.c (unwind_request_sigio): Only define if __ultrix__.
23597
23598 * callproc.c (child_setup): Remove spurious *.
23599
23600 * lisp.h (Fget_text_property): Declare.
23601 (have_menus_p): Declare it here rather than in sys-dep header files.
23602 * macterm.h (have_menus_p):
23603 * msdos.h (have_menus_p):
23604 * xterm.h (have_menus_p): Remove.
23605
23606 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23607 (Fmake_variable_frame_local): Just check the variable's const-ness
23608 rather than checking nil or t.
23609
236102007-10-22 Jason Rumney <jasonr@gnu.org>
23611
23612 * w32fns.c: Include math.h.
23613 (w32_abort): Declaration moved to nt/config.nt.
23614
23615 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23616 (abort): Redefinition moved to nt/config.nt.
23617
23618 * m/windowsnt.h: Remove.
23619
236202007-10-22 Juanma Barranquero <lekktu@gmail.com>
23621
23622 * emacs.c (Fdump_emacs): Fix typo in message.
23623 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23624 <installation-directory>: Reflow docstring.
23625
236262007-10-22 Juri Linkov <juri@jurta.org>
23627
23628 * minibuf.c: Allow minibuffer default to be a list of default values.
23629 With empty input use the first element of this list as returned default.
23630 (string_to_object)
23631 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23632 (read_minibuf): If defalt is cons, set histstring to its car.
23633 (Fread_string): If default_value is cons, set val to its car.
23634 (Fread_buffer): If def is cons, use its car.
23635 (Fcompleting_read): If defalt is cons, set val to its car.
23636
236372007-10-21 Michael Albinus <michael.albinus@gmx.de>
23638
23639 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23640
236412007-10-20 Juanma Barranquero <lekktu@gmail.com>
23642
23643 * doc.c (Fdocumentation): Check for advice in all cases.
23644
236452007-10-19 Chong Yidong <cyd@stupidchicken.com>
23646
23647 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23648
236492007-10-19 Richard Stallman <rms@gnu.org>
23650
23651 * doc.c (Fdocumentation): Check for and handle an advised function.
23652
236532007-10-19 Juanma Barranquero <lekktu@gmail.com>
23654
23655 * process.c (Fset_process_filter): Doc fix.
23656
236572007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23658
23659 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23660 which caused key-translation-map to applied repeatedly (thus breaking
23661 double-mode).
23662
236632007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23664
23665 * xselect.c (x_own_selection, x_handle_selection_clear)
23666 (x_clear_frame_selections):
23667 * w32menu.c (list_of_panes, list_of_items):
23668 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23669 * textprop.c (validate_plist, interval_has_all_properties)
23670 (interval_has_some_properties, interval_has_some_properties_list)
23671 (add_properties, text_property_list):
23672 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23673 * minibuf.c (Fassoc_string):
23674 * macselect.c (x_own_selection, x_clear_frame_selections)
23675 (Fx_disown_selection_internal):
23676 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23677 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23678
236792007-10-17 Chong Yidong <cyd@stupidchicken.com>
23680
23681 * process.c: Link to libs for calling res_init() if available.
23682 (Fmake_network_process): Call res_init() before getaddrinfo or
23683 gethostbyname, if possible.
23684
236852007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23686
23687 * lread.c (read1): Set pvectype for char_tables.
23688
23689 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23690 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23691 Add type checks.
23692 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23693
23694 * alloc.c (free_misc): Use XMISCTYPE.
23695 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23696
236972007-10-17 Glenn Morris <rgm@gnu.org>
23698
23699 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23700 (syms_of_minibuf): Add Qcompletion_ignore_case.
23701 * dired.c (Qcompletion_ignore_case): Change to external.
23702 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23703 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23704 (Fread_file_name): Use it rather than intern'ing.
23705
23706 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23707 (Fread_coding_system): Ignore case of user input.
23708
237092007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23710
23711 * xdisp.c (handle_display_prop): Ignore display specs after
23712 replacing one when string text is being replaced.
23713 (handle_single_display_spec): Pretend as if characters with display
23714 property haven't been consumed only when buffer text is being replaced.
23715
237162007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23717
23718 * xfns.c (Fx_create_frame, Fx_display_list):
23719 * window.c (window_fixed_size_p, enlarge_window)
23720 (shrink_window_lowest_first):
23721 * macterm.c (init_font_name_table):
23722 * macfns.c (Fx_create_frame, Fx_display_list):
23723 * lread.c (close_load_descs):
23724 * keyboard.c (read_char_x_menu_prompt):
23725 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23726 * coding.c (code_convert_region_unwind): Test the type of an object
23727 rather than just !NILP before extracting data from it.
23728
23729 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23730
23731 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23732 (XMISCANY): New macro.
23733 (XMISCTYPE): Use it.
23734 (struct Lisp_Misc_Any): New type.
23735 (union Lisp_Misc): Use it.
23736 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23737 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23738 (find_symbol_value, set_internal, default_value, Fset_default)
23739 (Fmake_variable_buffer_local, Fmake_local_variable)
23740 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23741 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23742 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23743 * alloc.c (allocate_buffer): Set the size and tag.
23744 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23745 Use XMISCANY.
23746 (die): Follow the GNU convention for error messages.
23747 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23748 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23749 tag any more.
23750 (set_buffer_internal_1):
23751 * frame.c (store_frame_param):
23752 * eval.c (specbind):
23753 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23754
23755 * doc.c (Fsnarf_documentation): Simplify.
23756
237572007-10-14 Juanma Barranquero <lekktu@gmail.com>
23758
23759 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23760 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23761
237622007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23763
23764 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23765
237662007-10-14 Juanma Barranquero <lekktu@gmail.com>
23767
23768 * eval.c (do_autoload): Don't save autoloads.
23769
23770 * data.c (Ffset): Save autoload of the function being set.
23771
237722007-10-07 John Paul Wallington <jpw@pobox.com>
23773
23774 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23775 parameter before setting up faces.
23776
237772007-10-13 Eli Zaretskii <eliz@gnu.org>
23778
23779 * ccl.c (Fregister_code_conversion_map):
23780 * keyboard.c (append_tool_bar_item): Reformat last change.
23781
23782 * lisp.h (eabs): Rename from `abs'. All callers changed.
23783
237842007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23785
23786 * buffer.c (add_overlay_mod_hooklist):
23787 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23788 * fontset.c (make_fontset):
23789 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23790 (append_tool_bar_item):
23791 * macmenu.c (grow_menu_items):
23792 * w32menu.c (grow_menu_items):
23793 * xmenu.c (grow_menu_items): Use larger_vector.
23794
237952007-10-13 Eli Zaretskii <eliz@gnu.org>
23796
23797 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23798 selected frame'' on MSDOS).
23799
238002007-10-12 Martin Rudalics <rudalics@gmx.at>
23801
23802 * frame.c (Qexplicit_name): New variable.
23803 (x_report_frame_params): Report it in parameter alist.
23804 (syms_of_frame): Intern and staticpro it.
23805
238062007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23807
23808 * macfns.c (x_create_tip_frame): Set terminal for frame.
23809
238102007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23811
23812 * frame.c (Qenvironment): Remove.
23813 (syms_of_frame) <Qenvironment>: Don't initialize.
23814 (Fdelete_frame): Don't treat the `environment' param specially.
23815 * frame.h (Qenvironment): Don't declare.
23816 * callproc.c (set_initial_environment): Don't set unused frame param.
23817
23818 * frame.c (Fframe_with_environment): Remove.
23819 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23820
23821 * lisp.h (Fframe_with_environment): Don't declare.
23822
238232007-10-10 Juanma Barranquero <lekktu@gmail.com>
23824
23825 * indent.c (indent_tabs_mode, last_known_column)
23826 (last_known_column_modified): Make static.
23827 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23828
238292007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23830
23831 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23832
238332007-10-09 Jason Rumney <jasonr@gnu.org>
23834
23835 * w32term.c (x_set_window_size): Disable code that attempts to tell
23836 Lisp code about a size change before it actually happens.
23837
238382007-10-09 Richard Stallman <rms@gnu.org>
23839
23840 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23841 return HANDLED_RETURN.
23842
238432007-10-08 Martin Rudalics <rudalics@gmx.at>
23844
23845 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23846 when there's an unread command event.
23847
23848 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23849 window autoselection act appropriately when leaving selected frame.
23850 (syms_of_frame): Initialize focus_follows_mouse.
23851 * frame.h (focus_follows_mouse): Extern it.
23852 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23853 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23854 * msdos.c (dos_rawgetc): Likewise.
23855 * w32term.c (w32_read_socket): Likewise.
23856 * xterm.c (handle_one_xevent): Likewise.
23857 * xdisp.c (syms_of_xdisp): In doc-string of
23858 mouse-autoselect-window mention focus-follows-mouse.
23859
238602007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23861
23862 * macterm.c (mac_load_query_font): Fix missing return value.
23863 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23864 Add BLOCK_INPUT.
23865
238662007-10-08 Richard Stallman <rms@gnu.org>
23867
23868 * xdisp.c (get_window_cursor_type): Implement documented behavior
23869 for cursor-in-non-selected-windows = t.
23870
238712007-10-08 Jason Rumney <jasonr@gnu.org>
23872
23873 * w32.c (w32_get_resource): Always close registry keys.
23874
238752007-10-08 Jason Rumney <jasonr@gnu.org>
23876
23877 * makefile.w32-in (LIBS): Add COMCTL32.
23878
23879 * w32fns.c (globals_of_w32fns): Init common controls.
23880
238812007-10-08 Richard Stallman <rms@gnu.org>
23882
23883 * image.c (our_memory_buffer): Rename from omfib_buffer.
23884
238852007-10-08 Richard Stallman <rms@gnu.org>
23886
23887 * buffer.c (Foverlays_at): Doc fix.
23888
238892007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23890
23891 * fns.c (Fplist_put): Preserve uneven tail data.
23892
238932007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23894
23895 * termhooks.h (enum event_kind): Remove trailing comma.
23896
23897 * frame.h (enum): Remove trailing comma.
23898
238992007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23900
23901 * w32proc.c (delete_child): Don't terminate threads of zombies.
23902
239032007-10-08 Martin Rudalics <rudalics@gmx.at>
23904
23905 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23906
23907 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23908 last-repeatable-command.
23909 (init_kboard): Initialize Vlast_repeatable_command.
23910 (command_loop_1): Set it to real_this_command unless that was
23911 bound to an input event.
23912 (mark_kboards): Mark it.
23913
239142007-10-08 Richard Stallman <rms@gnu.org>
23915
23916 * eval.c (condition-case): Doc fix.
23917
239182007-10-08 Masatake YAMATO <jet@gyve.org>
23919
23920 * xfaces.c (tty_supports_face_attributes_p): Fix code
23921 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23922 was copied and not edited.
23923
239242007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23925
23926 Add new `input-decode-map' keymap and use it for terminal
23927 escape sequences.
23928 * keyboard.h (struct kboard): Add Vinput_decode_map.
23929 Remove Vlocal_key_translation_map.
23930 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23931 (init_kboard): Init input-decode-map.
23932 Replace local-key-translation-map back with key-translation-map.
23933 (syms_of_keyboard): Declare input-decode-map.
23934 Remove local-key-translation-map. Update docstrings.
23935 (mark_kboards): Mark Vinput_decode_map.
23936 Don't mark Vlocal_key_translation_map.
23937 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23938 Replace local-key-translation-map back with key-translation-map.
23939 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23940 Bind in input-decode-map rather than function-key-map.
23941
23942 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23943 This was made redundant by the previous introduction of XSETPVECTYPE.
23944
239452007-10-09 Richard Stallman <rms@gnu.org>
23946
23947 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23948
239492007-09-29 Richard Stallman <rms@gnu.org>
23950
23951 * eval.c (internal_condition_case_2, internal_condition_case_1)
23952 (internal_condition_case): Reenable abort if x_catching_errors ()
23953 to see if that really happens and why.
23954
239552007-10-06 Andreas Schwab <schwab@suse.de>
23956
23957 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23958
239592007-10-04 Juanma Barranquero <lekktu@gmail.com>
23960
23961 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23962
239632007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23964
23965 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23966
239672007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23968
23969 * window.h (struct window):
23970 * window.c (struct save_window_data, struct saved_window):
23971 * termhooks.h (struct terminal):
23972 * process.h (struct Lisp_Process):
23973 * frame.h (struct frame):
23974 * buffer.h (struct buffer):
23975 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23976 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23977 The size field of (pseudo)vectors is now unsigned.
23978 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23979
23980 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23981 Turn `count' into an integer.
23982
23983 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23984 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23985 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23986 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23987 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23988
23989 * alloc.c (allocate_pseudovector): New fun.
23990 (ALLOCATE_PSEUDOVECTOR): New macro.
23991 (allocate_window, allocate_terminal, allocate_frame)
23992 (allocate_process): Use it.
23993 (mark_vectorlike): New function.
23994 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23995 (mark_terminals): Use it.
23996 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23997 (Fmake_byte_code): Use XSETPVECTYPE.
23998
23999 * frame.c (Fframe_parameters): Minor simplification.
24000
24001 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24002
24003 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24004
24005 * buffer.c (Fget_buffer_create, init_buffer_once):
24006 * lread.c (defsubr):
24007 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24008
24009 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24010 defined differently in the m/*.h files.
24011 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24012 (XSETPVECTYPE): New macro.
24013 (XSETPSEUDOVECTOR): Use it.
24014
24015 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24016 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24017
24018 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24019 * lread.c (defvar_per_buffer):
24020 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24021
24022 * window.c (candidate_window_p): Only consider as visible frames that
24023 are on the same terminal.
24024
24025 * m/ibms390x.h (MARKBIT): Remove unused macro.
24026
240272007-10-01 Juanma Barranquero <lekktu@gmail.com>
24028
24029 * lread.c (Fload): Fix typo in docstring.
24030
240312007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24032
24033 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24034 of a non-zero value can't yield zero.
24035
240362007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24037
24038 * term.c (term_clear_mouse_face, term_mouse_highlight)
24039 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24040
24041 * print.c (safe_debug_print): Use XHASH.
24042
24043 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24044 Lisp elements such as tags.
24045 (XHASH): New macro.
24046 (EQ): Use it.
24047 (SREF, SSET, STRING_COPYIN): Use SDATA.
24048 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24049
24050 * alloc.c (mark_terminal): Remove left-over declaration.
24051 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24052 (allocate_vectorlike): Remove type argument. Adjust callers.
24053 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24054 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24055
24056 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24057 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24058 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24059 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24060 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24061 Use them.
24062
24063 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24064 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24065 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24066
240672007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24068
24069 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24070 loaded by default.
24071
240722007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24073
24074 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24075 on this tty.
24076 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24077
24078 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24079 Update all users.
24080 (handle_one_term_event): Use Gpm_DrawPointer.
24081 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24082 Signal errors instead of returning nil. Always return nil.
24083 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24084 Make it a noop if gpm-mouse was not activated.
24085 (syms_of_term): Update names.
24086
240872007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24088
24089 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24090 (init_sys_modes): Check that gpm_tty is the current tty.
24091
24092 * alloc.c (allocate_terminal): Set the vector size to only count the
24093 lisp fields. Initialize those to nil.
24094 (mark_object): Don't treat terminals specially.
24095 (mark_terminal): Remove.
24096 (mark_terminals): Use mark_object instead.
24097
24098 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24099 the GC to the beginning.
24100
24101 * indent.h:
24102 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24103
24104 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24105
241062007-09-25 Jason Rumney <jasonr@gnu.org>
24107
24108 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24109
24110 * w32console.c (create_w32cons_output): Remove.
24111
24112 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24113
24114 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24115 (reset_sys_modes): Use reset_terminal_modes_hook.
24116
241172007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24118
24119 * eval.c (do_autoload): Don't output any message.
24120
241212007-09-24 Juri Linkov <juri@jurta.org>
24122
24123 * emacs.c (standard_args): Change priority of "--no-splash"
24124 from 40 to 3. Add "--no-desktop" with the same priority.
24125
241262007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24127
24128 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24129 and optimize the case where they are all 1.
24130
241312007-09-23 Johannes Weiner <hannes@saeurebad.de>
24132
24133 * lisp.h (abs): Define if not defined.
24134 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24135 Don't define `abs', since it's defined in lisp.h.
24136
241372007-09-22 Eli Zaretskii <eliz@gnu.org>
24138
24139 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24140 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24141 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24142 (init_tty): Use DEV_TTY instead of "/dev/tty".
24143 [WINDOWSNT]: No need to protect from NAME arg being null.
24144
241452007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24146
24147 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24148 up the tty state.
24149
241502007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24151
24152 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24153 (gpm_tty): Change its type.
24154 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24155 (gpm_tty): Change its type and initialize it.
24156 (Fterm_open_connection): Check the frame is indeed a tty.
24157 Use the new gpm_tty.
24158 (Fterm_close_connection): Use the new gpm_tty.
24159 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24160 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24161
241622007-09-21 Juanma Barranquero <lekktu@gmail.com>
24163
24164 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24165 underline_color, to draw strike-through.
24166
241672007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24168
24169 * lisp.h (allocate_terminal): Declare.
24170
24171 * window.c (candidate_window_p): Consider frames that are being placed
24172 by the user as somewhere between visible and iconified.
24173 (window_loop): Prefer windows on the current frame.
24174 (Fselect_window): Move the use of select-frame to the beginning so we
24175 can just delegate all the work (it'll call us back anyway).
24176
24177 * frame.c (Qdisplay_environment_variable):
24178 * frame.h (Qdisplay_environment_variable): Delete.
24179
24180 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24181 of the first arg, since that value may be a union.
24182
24183 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24184 parameter rather than Qdisplay_environment_variable. If all else
24185 fails, look for DISPLAY in initial-environment.
24186
241872007-09-21 Glenn Morris <rgm@gnu.org>
24188
24189 * Makefile.in (emacstool): Remove target.
24190 (lisp, shortlisp): Remove termdev.elc.
24191
241922007-09-21 Markus Triska <markus.triska@gmx.at>
24193
24194 * xterm.c (x_delete_display): Compile session management conditionally.
24195
241962007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24197
24198 * callproc.c (getenv_internal_1): New function.
24199 (getenv_internal): Use it.
24200 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24201
24202 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24203 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24204 (Fset_terminal_parameter): Work with dead terminals as well.
24205 (Fmodify_terminal_parameters): Remove.
24206
24207 * terminal.c (get_terminal): Handle terminals.
24208 Make sure the terminal returned is live.
24209 (create_terminal): Use allocate_terminal.
24210 (mark_terminals): Move to alloc.c.
24211 (delete_terminal): Use terminal->name as liveness status.
24212 NULL out fields after freeing their contents.
24213 Don't deallocate the object.
24214 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24215 rather than an int.
24216 (Fterminal_live_p): Accept non-integer arguments.
24217 (Fterminal_list): Return terminal objects rather than an ints.
24218
24219 * alloc.c (enum mem_type): New member for `terminal' objects.
24220 (allocate_terminal): New function.
24221 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24222 Handle terminals.
24223 (mark_terminal): New fun.
24224 (mark_terminals): Move from terminal.c.
24225
24226 * term.c (get_tty_terminal): Don't treat output_initial specially.
24227 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24228 (delete_tty): Use terminal->name as liveness status.
24229
24230 * termhooks.h (struct terminal): Make it into a pseudovector.
24231 Remove `deleted' replaced by checking `name's nullness.
24232
24233 * print.c (print_object): Handle terminals.
24234
24235 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24236 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24237
24238 * frame.c (make_terminal_frame):
24239 * keyboard.c (tty_read_avail_input):
24240 * w32term.c (x_delete_terminal):
24241 * xfns.c (Fx_create_frame, x_create_tip_frame):
24242 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24243
242442007-09-20 Glenn Morris <rgm@gnu.org>
24245
24246 * process.c (Fmake_network_process): Doc fix.
24247
242482007-09-19 Jason Rumney <jasonr@gnu.org>
24249
24250 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24251
242522007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24253
24254 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24255 Fix a C warning regarding variable constness.
24256
24257 * xterm.c (handle_one_xevent): Fix a C warning.
24258
242592007-09-18 Jason Rumney <jasonr@gnu.org>
24260
24261 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24262
242632007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24264
24265 * gtkutil.c (gdpy_def): New variable.
24266 (xg_initialize): Initialize gdpy_def.
24267 (xg_display_close): If no other display exists, set gdpy_def to a
24268 new connection.
24269
242702007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24271
24272 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24273 when we have no file name for the icon.
24274 (xg_tool_bar_expose_callback): Remove.
24275 (xg_create_tool_bar): Don't connect expose signal to
24276 xg_tool_bar_expose_callback.
24277 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24278
242792007-09-16 Andreas Schwab <schwab@suse.de>
24280
24281 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24282 values instead of zapping them.
24283
242842007-09-14 Glenn Morris <rgm@gnu.org>
24285
24286 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24287 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24288 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24289 scope and rename to omfib_buffer for clarity.
24290 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24291
242922007-09-14 Kenichi Handa <handa@m17n.org>
24293
24294 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24295
242962007-09-13 Jason Rumney <jasonr@gnu.org>
24297
24298 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24299
24300 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24301
24302 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24303 (mac_term_init): Call here instead, passing rif.
24304
243052007-09-13 Glenn Morris <rgm@gnu.org>
24306
24307 * s/hpux.h: No longer define `static' as nothing.
24308
243092007-09-13 Johan Bockgård <bojohan@gnu.org>
24310
24311 * callint.c (Fcall_interactively): Remove unused var `fun'.
24312
243132007-09-12 Romain Francoise <romain@orebokech.com>
24314
24315 * window.c (prefer_window_split_horizontally, display_buffer):
24316 Revert 2007-09-08 change.
24317
243182007-09-12 Glenn Morris <rgm@gnu.org>
24319
24320 * alloca.c: Remove file.
24321 * Makefile.in (alloca): Do not undef.
24322 (allocaobj, alloca.o): Remove.
24323 (otherobj): Remove allocaobj.
24324 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24325 * regex.c (C_ALLOCA): Remove all references and code that was only
24326 used when this was defined.
24327 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24328 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24329 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24330
24331 * Makefile.in (SOURCES, unlock, relock): Delete.
24332
24333 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24334 (menu_grab_callback): All uses changed.
24335
24336 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24337 (x_reply_selection_request): All uses changed.
24338
243392007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24340
24341 * lread.c (load_warn_old_style_backquotes): Change message to look
24342 better when it appears in the middle of byte-compiler messages.
24343
243442007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24345
24346 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24347
24348 * xterm.c (x_create_terminal): Add comment.
24349
24350 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24351
243522007-09-10 Richard Stallman <rms@gnu.org>
24353
24354 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24355
243562007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24357
24358 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24359 (DEFUN): Document `intspec', use it instead of `prompt'.
24360
24361 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24362
24363 * data.c (Finteractive_form): If the interactive specification starts
24364 with a `(', use it as a Lisp form.
24365
24366 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24367 name and file modes.
24368
24369 * callint.c (Fcall_interactively): Comment fixes.
24370
243712007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24372
24373 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24374 and compiled functions.
24375
243762007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24377
24378 * window.c (prefer_window_split_horizontally): New variable.
24379 (display_buffer): Consider splitting window horizontally depending
24380 on prefer_window_split_horizontally.
24381
243822007-09-08 Eli Zaretskii <eliz@gnu.org>
24383
24384 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24385
243862007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24387
24388 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24389
24390 * frame.c (x_set_frame_parameters): Check number is positive before
24391 using XFASTINT.
24392
24393 * window.c (freeze_window_start): Don't presume selected_window holds
24394 a window object.
24395 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24396
243972007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24398
24399 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24400
244012007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24402
24403 * window.c (Vsplit_window_preferred_function): New var.
24404 (Fdisplay_buffer): Use it.
24405 (syms_of_window): Export, and initialize it.
24406
244072007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24408
24409 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24410
244112007-09-06 Glenn Morris <rgm@gnu.org>
24412
24413 * gtkutil.c (menu_grab_callback) <cnt>:
24414 * xselect.c (x_reply_selection_request) <cnt>: Move static
24415 variable to file scope.
24416
244172007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24418
24419 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24420 consistent values of selected_frame and selected_window.
24421
244222007-09-04 Jason Rumney <jasonr@gnu.org>
24423
24424 * w32console.c (initialize_w32_display): Zero unused hooks.
24425
244262007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24427
24428 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24429 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24430
244312007-09-04 Jason Rumney <jasonr@gnu.org>
24432
24433 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24434 in w32console.c. Set up input. Remove XXX comments that have been
24435 confirmed as correct.
24436
24437 * s/ms-w32.h (MULTI_KBOARD): Define.
24438
24439 * w32console.c (one_and_only_w32cons): Remove.
24440 (initialize_w32_display): Take terminal argument.
24441
24442 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24443 initialize_w32_display.
24444 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24445
24446 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24447
24448 * keyboard.c (discard_mouse_events): Discard it.
24449 (make_lispy_event): Translate it to a lisp event.
24450 (lispy_wheel_names): Add wheel-left and right events.
24451 (syms_of_keyboard): Enlarge wheel_syms.
24452
24453 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24454 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24455
24456 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24457
24458 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24459 from WM_MOUSEHWHEEL.
24460 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24461
24462 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24463 terminal.
24464
24465 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24466 keyboard for the terminal.
24467
244682007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24469
24470 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24471 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24472 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24473 and resume-tty-function to resume-tty-hook.
24474 (Fsuspend_tty, Fresume_tty): Use new names.
24475
244762007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24477
24478 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24479 if it starts with "n:".
24480
244812007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24482
24483 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24484
244852007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24486
24487 * frame.h:
24488 * frame.c (Qterm_environment_variable): Remove.
24489 (syms_of_frame): Don't init and staticpro it.
24490
24491 * callproc.c (getenv_internal): Remove special case for $TERM.
24492
24493 * callproc.c (Vinitial_environment): New variable.
24494 (set_initial_environment): Initialize it.
24495 (syms_of_callproc): Declare it.
24496 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24497 TERM under which a process runs is never related to the TERM in which
24498 Emacs is running.
24499
245002007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24501
24502 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24503 * s/darwin.h: ... do it here.
24504
245052007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24506
24507 * lisp.h (set_initial_environment): Rename from set_global_environment.
24508
24509 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24510 removed by mistake on the multi-tty branch.
24511
24512 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24513 (Fmodify_frame_parameters): Return a value.
24514
24515 * image.c (png_load): Comment-out var only used in commented-out code.
24516
24517 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24518 before passing it to mark_object.
24519
24520 * xfaces.c (internal_resolve_face_name): Return a value.
24521 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24522
24523 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24524 (x_icon): Comment-out var only used in commented-out code.
24525
245262007-08-29 Romain Francoise <romain@orebokech.com>
24527
24528 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24529 QUIT hasn't been provided.
24530
245312007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24532
24533 * callproc.c (child_setup, getenv_internal): Use the
24534 display-environment-variable and term-environment-variable frame params.
24535 (set_initial_environment): Initialise Vprocess_environment.
24536
24537 * config.in: Disable multi-keyboard support on a mac.
24538
24539 * frame.c (Qterm_environment_variable)
24540 (Qdisplay_environment_variable): New variables.
24541 (syms_of_frame): Intern and staticpro them.
24542 (Fmake_terminal_frame): Disable output method test.
24543
24544 * frame.h: Declare them here.
24545
24546 * macfns.c (x_set_mouse_color): Get rif from the frame.
24547 (x_set_tool_bar_lines): Don't use updating_frame.
24548 (mac_window): Add 2 new parameters for consistency with other systems.
24549 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24550 frame parameters following what is done in X11 and w32. Don't use
24551 FRAME_MAC_DISPLAY_INFO.
24552 (Fx_open_connection, start_hourglass): Remove window-system check.
24553 (x_create_tip_frame): Get the keyboard from the terminal.
24554
24555 * macmenu.c: Reorder includes.
24556 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24557
24558 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24559 terminal parameter.
24560 (x_clear_frame): Add a frame parameter.
24561 (note_mouse_movement): Get rif from the frame.
24562 (mac_term_init): Initialize the terminal.
24563 (mac_initialize): Make static and move terminal initialization ...
24564 (mac_create_terminal): ... to this new function.
24565
24566 * macterm.h (struct mac_display_info): Add terminal.
24567 (mac_initialize): Delete declaration.
24568
24569 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24570
24571 * sysdep.c: Comment out text after #endif.
24572
24573 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24574 is defined. Better initialize ttys in windows. Use terminal
24575 specific mouse_position_hook.
24576
24577 * termhooks.h (union display_info): Add mac_display_info.
24578
24579 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24580 Set the default minibuffer frame, window_system and the rest of the
24581 frame parameters following what is done in X11.
24582
24583 * w32term.c (w32_initialize): Make static.
24584
24585 * xselect.c (x_handle_selection_clear): Only access
24586 terminal->kboard when MULTI_KBOARD is defined.
24587
24588 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24589 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24590
245912007-08-29 Jason Rumney <jasonr@gnu.org>
24592
24593 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24594 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24595
24596 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24597 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24598
24599 * keyboard.c (restore_kboard_configuration): Only define when
24600 MULTI_KBOARD defined.
24601
24602 * makefile.w32-in: Update dependancies from Makefile.in.
24603 (OBJ1): Add terminal.$(O)
24604
24605 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24606 Don't define function body.
24607 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24608
24609 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24610
24611 * w32.c (request_sigio, unrequest_sigio): Remove.
24612
24613 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24614 (w32con_clear_frame, w32con_clear_end_of_line)
24615 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24616 (w32con_delete_glyphs, w32con_set_terminal_window)
24617 (scroll_line, w32_sys_ring_bell): Add frame arg.
24618 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24619 Add terminal arg.
24620 (PICK_FRAME): Remove.
24621 (w32con_write_glyphs): Use frame specific terminal coding.
24622 (one_and_only_w32cons): New global variable.
24623 (initialize_w32_display): Use it for storing hooks.
24624 (create_w32cons_output): New function.
24625
24626 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24627 arg a frame.
24628
24629 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24630 Set window_system.
24631 (x_set_tool_bar_lines): Don't use updating_frame.
24632 (Fx_create_frame): Set terminal and ref count.
24633 (Fx_open_connection): Remove window-system check.
24634
24635 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24636
24637 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24638 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24639 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24640 Add frame arg.
24641 (x_delete_terminal, w32_create_terminal): New functions.
24642 (w32_term_init): Create a terminal.
24643 (w32_initialize): Move terminal specific initialization to
24644 w32_create_terminal.
24645
24646 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24647 (w32_clear_rect, w32_clear_area): Use background from frame.
24648 (w32_display_info): Add terminal.
24649 (w32_sys_ring_bell, x_delete_display): Declare here.
24650
24651 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24652
24653 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24654
246552007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24656
24657 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24658 Fix get_named_tty calls for the controlling tty.
24659
246602007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24661
194d44e7 24662 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24663
246642007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24665
24666 * term.c (tty_insert_glyphs): Add missing first parameter.
24667
246682007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24669
24670 * buffer.c (Fbuffer_list, Fbury_buffer):
24671 Take frame->buried_buffer_list into account.
24672
24673 * cm.c (current_tty): New variable, for cmputc().
24674 (cmputc): Use it.
24675 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24676 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24677 (cmgoto): Add tty parameter. Pass it on to calccost().
24678 Use emacs_tputs() instead of tputs().
24679
24680 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24681 tputs().
24682 (current_tty): New variable, for cmputc().
24683 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24684
24685 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24686 (internal_condition_case, internal_condition_case_1)
24687 (internal_condition_case_2): Don't abort when x_catching_errors.
24688
24689 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24690 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24691 prevent crashes caused by bogus longjmps in read_char.
24692
24693 * keymap.h (Fset_keymap_parent): Add EXFUN.
24694
24695 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24696 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24697 Remove redundant definition.
24698
24699 * macfns.c (x_set_mouse_color, x_make_gc):
24700 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24701
24702 * w32term.c (x_free_frame_resources):
24703 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24704 (w32_initialize): Use the accessor macros for terminal characteristics.
24705
24706 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24707 Use the accessor macros for terminal characteristics.
24708 * msdos.c (internal_terminal_init): Use the accessor macros for
24709 terminal characteristics.
24710 (ScreenVisualBell, internal_terminal_init):
24711 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24712
24713 * termopts.h (no_redraw_on_reenter): Declare.
24714
24715 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24716 (mark_terminals, mark_ttys): Declare.
24717 (Fgarbage_collect): Call them.
24718 (mark_object): Mark buried_buffer_list.
24719
24720 * prefix-args.c: Include stdlib.h for exit.
24721
24722 * syssignal.h: Add comment.
24723
24724 * indent.c: Include stdio.h.
24725
24726 * window.h (Vinitial_window_system): Declare.
24727 (Vwindow_system): Delete declaration.
24728
24729 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24730
24731 * image.c (lookup_image): Don't initialize `c' until the xasserts
24732 have been run.
24733
24734 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24735 FRAME_FOREGROUND_PIXEL.
24736
24737 * print.c (print_preprocess): Don't lose print_depth levels while
24738 iterating.
24739
24740 * widget.c (update_from_various_frame_slots):
24741 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24742
24743 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24744 frames.
24745 (window_internal_height): Remove bogus make_number call.
24746 (init_window_once): Call make_terminal_frame with two zero parameters.
24747
24748 * fileio.c (Fread_file_name): Update comment.
24749
24750 * callint.c (Fcall_interactively):
24751 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24752 Make sure it is correctly unwound.
24753
24754 * xsmfns.c (x_session_close): New function.
24755
24756 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24757 Delete declarations.
24758
24759 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24760 (x_output): Remove background_pixel and foreground_pixel fields.
24761 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24762 (x_delete_device, x_session_close): Declare.
24763
24764 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24765 (read_filtered_event): Call `read_char' with a local
24766 `wrong_kboard_jmpbuf'.
24767
24768 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24769 Don't call single_kboard_state. Use FRAME_RIF.
24770
24771 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24772 systems.
24773
24774 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24775 (Fframe_with_environment, Fset_input_meta_mode)
24776 (Fset_quit_char): EXFUN.
24777 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24778 (init_sys_modes, reset_sys_modes): Update prototypes.
24779 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24780
24781 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24782 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24783 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24784 Delete declarations.
24785 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24786 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24787 New declarations.
24788
24789 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24790 already does that during init_display(). Call syms_of_keymap
24791 before syms_of_keyboard. Call `syms_of_terminal'.
24792 Call set_initial_environment, not set_process_environment.
24793 (shut_down_emacs): Call reset_all_sys_modes() instead of
24794 reset_sys_modes().
24795
24796 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24797 (internal_resolve_face_name, resolve_face_name_error): New functions.
24798 (resolve_face_name): Protect against loops and errors thrown by Fget.
24799 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24800 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24801
24802 * scroll.c: Replace CURTTY() with local variables throughout the
24803 file (where applicable).
24804 (calculate_scrolling, calculate_direct_scrolling)
24805 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24806 characteristics.
24807
24808 * keymap.c (Vfunction_key_map): Remove.
24809 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24810 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24811 (Vkey_translation_map): Remove.
24812 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24813 (Fdescribe_buffer_bindings)
24814 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24815 Update for terminal-local key-translation-map.
24816
24817 * Makefile.in (callproc.o): Update dependencies.
24818 (lisp, shortlisp): Add termdev.elc.
24819 (obj): Add terminal.o.
24820 (terminal.o): Add dependencies.
24821 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24822 (data.o, fns.o): Add termhooks.h dependency.
24823 (SOME_MACHINE_LISP): Add dnd.elc.
24824 (minibuf.o): Fix typo.
24825 Update dependencies.
24826
24827 * data.c (do_symval_forwarding, store_symval_forwarding)
24828 (find_symbol_value): Use the selected frame's keyboard, not
24829 current_kboard.
24830
24831 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24832 Vwindow_system.
24833
24834 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24835 Fmenu_bar_open.
24836 (syms_of_xmenu): Update defsubr.
24837 (mouse_position_for_popup, Fx_popup_menu)
24838 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24839 (set_frame_menubar, free_frame_menubar)
b97439ce 24840 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24841 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24842 an X frame.
24843
24844 * xselect.c (x_own_selection): Abort if not an X frame.
24845 (some_frame_on_display): Check if it is an X frame.
24846 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24847
24848 * coding.c: Include frame.h and termhooks.h.
24849 (terminal_coding, keyboard_coding): Delete.
24850 (Fset_terminal_coding_system_internal)
24851 (Fset_keyboard_coding_system_internal)
24852 (Fkeyboard_coding_system)
24853 (Fterminal_coding_system): Add a terminal parameter.
24854 Get terminal_coding from the terminal.
24855 (init_coding_once): Don't call setup_coding_system here.
24856
24857 * dispextern.h (set_scroll_region, turn_off_insert)
24858 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24859 (tty_clear_end_of_line, tty_setup_colors)
24860 (delete_tty, updating_frame)
24861 (produce_special_glyphs, produce_glyphs, write_glyphs)
24862 (insert_glyphs): Remove.
24863 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24864 (tty_turn_off_highlight, get_tty_size): Add declaration.
24865 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24866
24867 * frame.h (enum output_method): Add output_initial.
24868 (struct x_output): Delete.
24869 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24870 Access foreground_pixel and background_pixel directly from the frame.
24871 (tty_display): Delete.
24872 (struct frame): Add buried_buffer_list, foreground_pixel,
24873 background_pixel and terminal. Delete kboard.
24874 (union output_data): Add tty.
24875 (FRAME_KBOARD): Get the kboard from the terminal.
24876 (FRAME_INITIAL_P): New macro.
24877 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24878 (Qterm_environment_variable, Qdisplay_environment_variable)
24879 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24880 New declarations.
24881
24882 * termchar.h (tty_output, tty_display_info): New structures.
24883 (tty_list): Declare.
24884 (FRAME_TTY, CURTTY): New macros.
24885 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24886 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24887 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24888 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24889
24890 * callproc.c: Include frame.h and termhooks.h, for terminal
24891 parameters.
24892 (add_env): New function.
24893 (child_setup): Use it.
24894 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24895 (getenv_internal): Fix get_terminal_param call.
24896 (Fgetenv_internal, egetenv): Update doc.
24897 (syms_of_callproc): Initialize Vprocess_environment to nil.
24898 Register and initialize them. Remove obsolete defvars. Update doc
24899 strings.
24900 (child_setup): Handle Vlocal_environment_variables.
24901 (getenv_internal): Add terminal parameter.
24902 Handle Vlocal_environment_variables.
24903 (Fgetenv_internal): Add terminal parameter.
24904 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24905 environment in a frame (not terminal) parameter. Update doc strings.
24906 (set_initial_environment): Rename from set_global_environment.
24907 Store Emacs environment in initial frame parameter.
24908
24909 * xdisp.c (redisplay_internal): Update references to
24910 `previous_terminal_frame'.
24911 (display_mode_line, Fformat_mode_line): Replace calls to
24912 `push_frame_kboard' with `push_kboard'.
24913 (get_glyph_string_clip_rects): Add extra parentheses and
24914 braces to prevent compiler warnings.
24915 (calc_pixel_width_or_height): Add xassert to check that the
24916 frame is alive. Don't call `lookup_image' on a termcap frame.
24917 (message2_nolog, message3_nolog, redisplay_internal)
24918 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24919 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24920 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24921 (Fx_display_pixel_width, Fx_display_pixel_height)
24922 (Fx_display_planes, Fx_display_color_cells)
24923 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24924 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24925 (Fx_display_backing_store, Fx_display_visual_class)
24926 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24927 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24928
24929 * xfns.c (x_set_foreground_color x_set_background_color)
24930 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24931 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24932 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24933 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24934 terminal that is being deleted.
24935 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24936 frame parameter, and make sure it overrides any user-supplied setting.
24937 (Fx_close_connection, Fx_synchronize): Unify argument names with
24938 the rest of the DEFUNs.
24939
24940 * dispnew.c (Fsend_string_to_terminal): Update call to
24941 `get_tty_terminal'.
24942 (Fredraw_frame, Fsend_string_to_terminal)
24943 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24944 FRAME_TERMCAP_P and FRAME_TTY.
24945 (window_change_signal): Don't believe width/height values that are
24946 impossibly small.
24947 (Vinitial_window_system): Rename from Vwindow_system.
24948 (termscript, Wcm, rif): Delete.
24949
24950 * termhooks.h (struct terminal): New struct containing the
24951 previously global text display hooks and new members NAME,
24952 DELETED and PARAM_ALIST.
24953 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24954 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24955 (FRAME_RIF): New macros.
24956 (get_terminal_param, get_device): New declarations.
24957 (termscript): Delete declaration.
24958
24959 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24960 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24961 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24962 FRAME_FOREGROUND_PIXEL.
24963 (x_fully_uncatch_errors): Disable definition.
24964 (x_scroll_bar_expose): Fix reference to foreground pixel.
24965 (XTread_socket): Disable loop on all X displays.
24966 (x_delete_terminal): Don't set terminal->deleted and let
24967 delete_terminal delete the frames on the terminal.
24968 (x_delete_display): Doc update to reflect changes in
24969 delete_terminal.
24970 (x_display_info) <terminal>: Move member earlier in the struct.
24971 (deleting_tty): Remove old variable.
24972 (Fsuspend_tty): Call clear_tty_hooks.
24973 (Fresume_tty, init_tty): Call set_tty_hooks.
24974 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24975 errors on X frames.
24976 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24977 (handle_one_xevent): Initialize `f' to NULL.
24978 (x_delete_terminal, x_create_terminal): New functions.
24979 (XTset_terminal_modes, XTreset_terminal_modes)
24980 (XTread_socket, x_connection_closed, x_term_init)
24981 (x_term_init, x_delete_display): Add terminal parameter.
24982 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24983 X connections.
24984
24985 * frame.c: Include termchar.h.
24986 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24987 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24988 (Qdisplay_environment_variable): New vars.
24989 (Fframep): Deal with output_initial.
24990 (Fframe-live-p): Doc fix.
24991 (Fwindow-system): New function.
24992 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24993 (make_terminal_frame): Don't create frames on a terminal that is
24994 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24995 (store_frame_param): Check for found_for_frame before calling XFRAME.
24996 (Fmake_terminal_frame): Handle NULL tty names correctly.
24997 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24998 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24999 frames to refer to a deleted frame in their 'environment parameter.
25000 (Fframe_with_environment): New function.
25001 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25002 (get_future_frame_param): New function.
25003 (Fmake_terminal_frame): Use it.
25004 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25005
25006 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25007 * sysdep.c (reset_sys_modes): Update for renames.
25008
25009 * keyboard.c (tty_read_avail_input): New function.
25010 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25011 (syms_of_keyboard): Defsubr them.
25012 (Fset_input_meta_mode, Fset_quit_char): New functions.
25013 (Fset_input_mode): Split to above functions.
25014 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25015 parameter. Use it in call to `read_char'.
25016 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25017 Set wrong_kboard_jmpbuf correctly in recursive calls.
25018 Use current_kboard to access Vkeyboard_translate_table.
25019 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25020 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25021 Update longjmp invocations. Remember the original current_kboard,
25022 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25023 changes it. Comment out unnecessary calls to
25024 `record_single_kboard_state' and `any_kboard_state'.
25025 Update recursive calls.
25026 (wrong_kboard_jmpbuf): Remove global variable.
25027 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25028 Handle deleted interrupted_kboards correctly; that is a legal
25029 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25030 and read_char calls. Abort if interrupted_kboard died in read_char.
25031 (any_kboard_state, single_kboard_state)
25032 (push_frame_kboard): Remove function.
25033 (pop_kboard): Switch out of single_kboard mode if the kboard has
25034 been deleted. Remove unused variable. Help debugging by not
25035 changing current_kboard unnecessarily. Set current_kboard to the
25036 kboard of the selected frame when the stored kboard object has
25037 been deleted before pop_kboard.
25038 (temporarily_switch_to_single_kboard): Change first parameter to a
25039 frame pointer. Throw an error when caller wants to change kboards
25040 while in single_kboard mode. Don't push_kboard if we weren't in
25041 single kboard state. Don't pop_kboard if we popped into any
25042 kboard state.
25043 (restore_kboard_configuration): Abort if pop_kboard changed the
25044 kboard in single_kboard mode. Call pop_kboard only after setting
25045 up single_kboard mode.
25046 (Frecursive_edit): Switch to single_kboard mode only in nested
25047 command loops.
25048 (cmd_error, command_loop, command_loop_1, timer_check):
25049 Comment out unnecessary call to `any_kboard_state' and
25050 `record_single_kboard_state'.
25051 (delete_kboard): Exit single_kboard mode if we have just deleted
25052 that kboard. Use FRAME_KBOARD.
25053 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25054 `fatal_error_signal'.
25055 (record_single_kboard_state): Don't push_kboard if we weren't in
25056 single kboard state. Don't pop_kboard if we popped into any
25057 kboard state.
25058 (push_frame_kboard): Rename to push_kboard.
25059 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25060 (read_avail_input): Read input from all terminals.
25061 (mark_kboards): Also mark Vkeyboard_translate_table.
25062 (kbd_buffer_store_event_hold): Simplify condition.
25063 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25064 (Vkeyboard_translate_table): Move to struct kboard.
25065 (init_kboard): Initialize Vkeyboard_translate_table.
25066 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25067 Vkeyboard_translate_table. Update doc strings. Update docs of
25068 local-function-key-map and function-key-map.
25069
25070 * terminal.c: New file.
25071
25072 * term.c: Include errno.h.
25073 (Vring_bell_function, device_list, initial_device)
25074 (next_device_id, ring_bell, update_begin, update_end)
25075 (set_terminal_window, cursor_to, raw_cursor_to)
25076 (clear_to_end, clear_frame, clear_end_of_line)
25077 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25078 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25079 (syms_of_term): Move their initialization to terminal.c.
25080 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25081 (Ftty_display_color_cells)
25082 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25083 (clear_tty_hooks, set_tty_hooks)
25084 (init_tty, maybe_fatal): New functions.
25085 (Ftty_type): Return nil if terminal is not on a tty instead of
25086 throwing an error. Doc update.
25087 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25088 Doc update. Initialize new subrs and variables.
25089 (delete_tty): Use terminal->deleted.
25090 (tty_set_terminal_modes): Rename from set_terminal_modes.
25091 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25092 (set_scroll_region): Rename to `tty_set_scroll_region'.
25093 (turn_on_insert): Rename to `tty_turn_on_insert'.
25094 (turn_off_insert): Rename to `tty_turn_off_insert'.
25095 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25096 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25097 (toggle_highligh): Rename to `tty_toggle_highlight'.
25098 (background_highlight): Rename to `tty_background_highlight'.
25099 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25100 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25101 (tty_set_scroll_region, tty_background_highlight)
25102 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25103 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25104 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25105 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25106 Add static modifier.
25107 (tty_reset_terminal_modes, tty_set_terminal_window)
25108 (tty_set_scroll_region, tty_background_highlight)
25109 (tty_highlight_if_desired, tty_cursor_to)
25110 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25111 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25112 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25113 renames.
25114
251152007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25116
25117 * keyboard.c: Qrtl is new.
25118 (parse_tool_bar_item): Handle :rtl keyword.
25119 (syms_of_keyboard): Intern :rtl keyword.
25120
25121 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25122
25123 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25124 so no Lisp code is executed.
25125 (file_for_image, find_rtl_image): New functions.
25126 (xg_get_image_for_pixmap): Use file_for_image.
25127 (update_frame_tool_bar): If direction is RTL, use RTL image if
25128 defined. Use Gtk stock images if defined.
25129
251302007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25131
25132 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25133 for nonexistent or zero-width glyph in composition glyph.
25134
251352007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25136
25137 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25138
25139 * xdisp.c (Finvisible_p): New function.
25140 (syms_of_xdisp): defsubr it.
25141
251422007-08-24 Juanma Barranquero <lekktu@gmail.com>
25143
25144 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25145 Doc fixes.
25146
251472007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25148
25149 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25150
251512007-08-24 Martin Rudalics <rudalics@gmx.at>
25152
25153 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25154 whether decoding has modified buffer contents.
25155
251562007-08-24 Jason Rumney <jasonr@gnu.org>
25157
25158 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25159 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25160 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25161 (init_svg_functions) [HAVE_NTGUI]: New function.
25162 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25163 (svg_load_image): Use them.
25164 (svg_load_image) [HAVE_NTGUI]: Implement background.
25165
251662007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25167
25168 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25169 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25170 (LIBX): Remove @RSVG_LIBS@.
25171 (LIBES): Add $(RSVG_LIBS).
25172
25173 * image.c (svg_load_image): Blend with specified background if exists.
25174 Use IMAGE_BACKGROUND. Add Mac OS Support.
25175
25176 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25177 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25178 Remove macros.
25179 [MAC_OSX] (socket_callback): Do nothing.
25180 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25181 ReceiveNextEvent.
25182 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25183 socket_callback.
25184 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25185
251862007-08-22 Glenn Morris <rgm@gnu.org>
25187
25188 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25189
251902007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25191
25192 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25193
25194 * image.c: Add support for SVG images. Some additional comments
25195 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25196 (svg_image_p): New function to test for SVG image.
25197 (svg_load): New function to load SVG image.
25198 (svg_load_image): New function, helper for svg_load.
25199 (Qsvg): New Lisp_object.
25200 (svg_keyword_index): New enum.
25201 (svg_format): New static `image_keyword' struct.
25202 (svg_type): New static `image_type' struct.
25203 (librsvg/rsvg.h): Include it.
25204
252052007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25206
25207 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25208
252092007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25210
25211 * lread.c (Qold_style_backquotes): New var.
25212 (syms_of_lread): Init and staticpro it.
25213 (load_warn_old_style_backquotes): New fun.
25214 (Fload): Use them to warn about old style backquotes.
25215 (end_of_file_error, Fload): Remove unused vars.
25216
25217 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25218
25219 * lread.c (Vold_style_backquotes): New var.
25220 (syms_of_lread): Init and export it to Elisp.
25221 (read1): Set it when we find an old-style (back)quote.
25222
252232007-08-22 Jason Rumney <jasonr@gnu.org>
25224
25225 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25226
252272007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25228
25229 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25230
252312007-08-19 Richard Stallman <rms@gnu.org>
25232
25233 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25234
252352007-08-19 Andreas Schwab <schwab@suse.de>
25236
25237 * alloc.c (pure): Round PURESIZE up.
25238
252392007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25240
25241 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25242 active frame.
25243
252442007-08-16 Richard Stallman <rms@gnu.org>
25245
25246 * eval.c (Fcommandp): Add parens to clarify.
25247
25248 * minibuf.c (Fall_completions): Use enum for type of table.
25249
25250 * emacs.c (USAGE2): Improve text.
25251
252522007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25253
25254 * term.c (tty_default_color_capabilities): Declare static
25255 variables in file scope, to avoid HPUX compiler problem.
25256
252572007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25258
25259 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25260 to gtk_toolbar_insert.
25261
252622007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25263
25264 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25265
25266 * insdel.c (reset_var_on_error): New fun.
25267 (signal_before_change, signal_after_change):
25268 Use it to reset (after|before)-change-functions to nil in case of error.
25269 Bind inhibit-modification-hooks to t.
25270 Don't bind (after|before)-change-functions to nil while they run.
25271
252722007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25273
25274 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25275 filling pixmap with stippled background.
25276
252772007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25278
25279 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25280 Don't use invisible frame as parent window for repositioning.
25281
252822007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25283
25284 * print.c (new_backquote_output): Rename from old_backquote_output.
25285 (print): Inverse its logic (according to its name) so as to match the
25286 behavior of new_backquote_flag in lread.c.
25287
252882007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25289
25290 * gmalloc.c (posix_memalign): New function.
25291
25292 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25293 ActivateControl/DeactivateControl here.
25294 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25295 frame-notice-user-settings is non-nil.
25296 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25297 for kEventParamFMFontStyle.
25298 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25299 mac_pass_command_to_system and mac_pass_control_to_system here.
25300 (XTread_socket): Call ActivateControl/DeactivateControl here.
25301 (XTread_socket) [TARGET_API_MAC_CARBON]:
25302 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25303 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25304 for window repositioning.
25305
253062007-08-08 Glenn Morris <rgm@gnu.org>
25307
25308 * Replace `iff' in doc-strings and comments.
25309
253102007-08-07 Chong Yidong <cyd@stupidchicken.com>
25311
25312 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25313
253142007-08-07 Martin Rudalics <rudalics@gmx.at>
25315
25316 * fileio.c (Finsert_file_contents): Run format-decode and
25317 after_insert_file_functions on entire buffer when REPLACE is
25318 non-nil and inhibit modification_hooks and point_motion_hooks.
25319 For consistency, run after_insert_file_functions iff something
25320 got inserted. Move signal_after_change and update_compositions
25321 after code running after_insert_file_functions. Make sure that
25322 undo_list doesn't record intermediate steps of the decoding process.
25323
253242007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25325
25326 * emacs.c (main)
25327 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25328 Call malloc_enable_thread on interactive startup.
25329
25330 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25331 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25332 [USE_PTHREAD]: Conditionalize with it.
25333 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25334 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25335 New functions.
25336
253372007-08-06 Chong Yidong <cyd@stupidchicken.com>
25338
25339 * xdisp.c (redisplay_window): When restoring original buffer
25340 position, make sure it is still valid.
25341
25342 * image.c (png_load): Ignore png-supplied background color.
25343
253442007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25345
25346 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25347 Use kCFAbsoluteTimeIntervalSince1970.
25348
25349 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25350 New variable.
25351 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25352 event loop should be quit.
25353 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25354 Quit dialog event loop if quit_dialog_event_loop is set.
25355
25356 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25357 (Selection): New typedef. Use instead of ScrapRef.
25358 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25359 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25360 (mac_clear_selection): Rename from clear_scrap.
25361 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25362 scrap_has_target_type. All uses changed.
25363 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25364 (mac_selection_has_target_p): New functions.
25365 (mac_put_selection_value): Rename from put_scrap_string.
25366 (mac_get_selection_value): Rename from get_scrap_string.
25367 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25368 (put_scrap_private_timestamp, scrap_has_target_type)
25369 (get_scrap_private_timestamp): Remove functions.
25370 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25371 (x_own_selection, x_get_local_selection):
25372 Use mac_valid_selection_value_p.
25373 (x_own_selection): Don't use put_scrap_private_timestamp.
25374 Record OWNERSHIP-INFO into Vselection_alist instead.
25375 (x_get_local_selection): Don't check type if request is local.
25376 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25377 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25378
253792007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25380
25381 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25382 add comment explaining why.
25383
253842007-08-03 Richard Stallman <rms@gnu.org>
25385
25386 * fileio.c (Fvisited_file_modtime): Use make_time.
25387
253882007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25389
25390 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25391 build.
25392
253932007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25394
25395 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25396
253972007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25398
25399 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25400
254012007-07-30 Richard Stallman <rms@gnu.org>
25402
25403 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25404
254052007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25406
25407 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25408
254092007-07-28 Nick Roberts <nickrob@snap.net.nz>
25410
25411 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25412 remote default-directory.
25413
25414 * buffer.c (mode-line-format): Update doc string.
25415
254162007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25417
25418 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25419 scroll bar gap.
25420 (x_scroll_bar_create): Set bar->fringe_extended_p.
25421 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25422 on frame edge. Check fringe background extension. Don't clear
25423 extended fringe background area.
25424
25425 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25426 (w32_fill_area): Enclose multiple statements with do ... while (0).
25427
25428 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25429 Extend fringe background to scroll bar gap.
25430 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25431 Set bar->fringe_extended_p.
25432 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25433 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25434 background extension. Don't clear extended fringe background area.
25435
25436 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25437 New member fringe_extended_p.
25438
254392007-07-25 Glenn Morris <rgm@gnu.org>
25440
25441 * Relicense all FSF files to GPLv3 or later.
25442
25443 * COPYING: Switch to GPLv3.
25444
254452007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25446
25447 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25448
25449 * data.c (Finteractive_form): Check for the presence of an
25450 `interactive-form' symbol property more thoroughly.
25451
25452 * data.c (Finteractive_form): Use an `interactive-form' property if
25453 present, analogous to the function-documentation property.
25454
254552007-07-24 Jason Rumney <jasonr@gnu.org>
25456
25457 * w32fns.c (x_real_positions): Get real position from OS instead of
25458 calculating it.
25459
254602007-07-23 Jason Rumney <jasonr@gnu.org>
25461
25462 * filelock.c (current_lock_owner): Allow for @ sign in username.
25463
254642007-07-22 Nick Roberts <nickrob@snap.net.nz>
25465
25466 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25467 remote default-directory.
25468
25469 * buffer.c (mode-line-format): Describe above case in doc string.
25470
254712007-07-20 Eli Zaretskii <eliz@gnu.org>
25472
25473 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25474 Define if not defined.
25475
254762007-07-18 Jason Rumney <jasonr@gnu.org>
25477
25478 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25479
254802007-07-18 Richard Stallman <rms@gnu.org>
25481
25482 * data.c (Fsetq_default): Doc fix.
25483
25484 * eval.c (Fsetq): Doc fix.
25485
254862007-07-18 Juanma Barranquero <lekktu@gmail.com>
25487
25488 * coding.c (Ffind_operation_coding_system):
25489 * eval.c (For, Fand): Doc fixes.
25490 Reported by Johan Bockgård.
25491
254922007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25493
25494 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25495
25496 * xterm.h: Declare x_ewmh_activate_frame.
25497
25498 * xterm.c (x_ewmh_activate_frame): New function.
25499 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25500
255012007-07-17 Martin Rudalics <rudalics@gmx.at>
25502
25503 * window.c (Fdisplay_buffer): If largest or LRU window is the
25504 only window, split it even if it is not eligible for splitting.
25505 This restores the original behavior broken by the 2007-07-15
25506 change.
25507
255082007-07-17 Glenn Morris <rgm@gnu.org>
25509
25510 * abbrev.c (abbrev_check_chars): New function.
25511 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25512 Call abbrev_check_chars to check abbrev characters are word
25513 constituents. Doc fix.
25514
255152007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25516
25517 * process.c (Fstart_process, Fmake_network_process)
25518 (read_process_output): Fix up last changes.
25519
255202007-07-16 Eli Zaretskii <eliz@gnu.org>
25521
25522 * makefile.w32-in (clean): Don't delete *~.
25523
255242007-07-16 Andreas Schwab <schwab@suse.de>
25525
25526 * window.c (Fdisplay_buffer): Use NILP.
25527 (Fset_window_scroll_bars): Likewise.
25528
255292007-07-15 Martin Rudalics <rudalics@gmx.at>
25530
25531 * window.c (window_min_size_2): New function.
25532 (window_min_size_1, size_window, Fdisplay_buffer)
25533 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25534 windows without mode- or header-lines when window-min-height is
25535 too small.
25536 (size_window): Reset nodelete_p after testing it, following an
25537 earlier note by Kim F. Storm.
25538 (display_buffer): Do not set split_height_threshold to twice the
25539 value of window_min_height to avoid changing the value of a
25540 customizable variable. Rather explicitly check whether the
25541 height of the window that shall be splitted is at least as large
25542 as split_height_threshold.
25543 (Fwindow_full_width_p): New defun.
25544 (syms_of_window): Defsubr it.
25545
25546 * window.h: Add EXFUN for Fwindow_full_width_p.
25547
255482007-07-14 Jason Rumney <jasonr@gnu.org>
25549
25550 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25551
255522007-07-14 Richard Stallman <rms@gnu.org>
25553
25554 * eval.c (maybe_call_debugger): New function.
25555 (find_handler_clause): Use maybe_call_debugger.
25556 Call it when the handler says `debug'.
25557 Eliminate DEBUGGER_VALUE_PTR.
25558 (Fsignal): Eliminate debugger_value.
25559 (Qdebug): New variable.
25560 (syms_of_eval): Initialize it.
25561
255622007-07-14 Juanma Barranquero <lekktu@gmail.com>
25563
25564 * eval.c (Fprogn):
25565 * keyboard.c (Ftrack_mouse):
25566 * print.c (Fwith_output_to_temp_buffer):
25567 * window.c (Fsave_window_excursion): Doc fix.
25568
255692007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25570
25571 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25572
255732007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25574
25575 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25576 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25577 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25578 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25579 Remove unused encoding_carryover.
25580 * process.c: Adjust all functions accordingly.
25581
255822007-07-12 Richard Stallman <rms@gnu.org>
25583
25584 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25585
255862007-07-11 Jason Rumney <jasonr@gnu.org>
25587
25588 * makefile.w32-in (LIBS): Include OLE32.
25589
25590 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25591 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25592
255932007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25594
25595 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25596 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25597 from a Lisp_Object into a bare pointer.
25598 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25599 Adjust the code correspondingly.
25600
25601 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25602
25603 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25604 (term_show_mouse_face): Remove unused var `j'.
25605 (handle_one_term_event): Remove unused vars `i' and `j'.
25606 Don't cast return value of ttyname since it's not necessary.
25607
256082007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25609
25610 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25611 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25612
25613 * fns.c (map_char_table): Use an array of int for `indices' rather than
25614 an array of Lisp_Objects (which are only ever integers anyway).
25615 (Fmap_char_table): Update caller.
25616 * lisp.h: Update prototype.
25617 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25618 * fontset.c (Ffontset_info):
25619 * casetab.c (set_case_table): Update callers.
25620
25621 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25622
25623 * keymap.c (struct accessible_keymaps_data)
25624 (struct where_is_internal_data): New structures.
25625 (accessible_keymaps_1, where_is_internal_1): Use them to change
25626 interface to adhere to the one used by map_keymap.
25627 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25628 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25629
25630 * keymap.h (map_keymap_function_t): More informative prototype.
25631
256322007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25633
25634 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25635 (looking_at_1): Don't change search_regs and last_thing_searched
25636 if `inhibit-changing-match-data' is non-nil.
25637 (string_match_1, search_buffer, set_search_regs): Likewise.
25638 (syms_of_search): Add Lisp level definition for
25639 `inhibit-changing-match-data' and set it to nil.
25640 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25641 start and end of the match, instead of using values in search_regs.
25642
256432007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25644
25645 * minibuf.c (Fcompleting_read): New value `confirm-only'
25646 for `require-match'.
25647
256482007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25649
25650 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25651 part of the 2007-06-27 change to syms_of_fileio.
25652
256532007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25654
25655 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25656 Check WINDOWP before using XWINDOW. Consolidate return statements.
25657
256582007-06-27 Richard Stallman <rms@gnu.org>
25659
25660 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25661
256622007-06-27 Juanma Barranquero <lekktu@gmail.com>
25663
25664 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25665
256662007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25667
25668 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25669 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25670 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25671 (_free_internal, memalign): Use them.
25672 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25673 Initialize to PTHREAD_MUTEX_INITIALIZER.
25674 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25675 (morecore_nolock): Rename from morecore. All uses changed.
25676 Use only nolock versions of internal allocation functions.
25677 (_malloc_internal_nolock, _realloc_internal_nolock)
25678 (_free_internal_nolock): New functions created from
25679 _malloc_internal, _realloc_internal, and _free_internal.
25680 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25681 Copy hook value to automatic variable before its use.
25682 (memalign): Copy hook value to automatic variable before its use.
25683
256842007-06-26 Kenichi Handa <handa@m17n.org>
25685
25686 * coding.c (Ffind_operation_coding_system): Docstring improved.
25687 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25688
256892007-06-25 David Kastrup <dak@gnu.org>
25690
25691 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25692 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25693 cater for additional parameter.
25694
25695 * keymap.h: Adjust number of parameters to `current-active-maps'.
25696
25697 * doc.c (Fsubstitute_command_keys): Adjust call of
25698 `current-active-maps'.
25699
257002007-06-25 David Kastrup <dak@gnu.org>
25701
25702 * callint.c (Fcall_interactively): Make the parsing of interactive
25703 specs somewhat more readable.
25704
257052007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25706
25707 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25708 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25709 if extended background has already been filled.
25710
257112007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25712
25713 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25714 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25715
25716 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25717 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25718 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25719 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25720 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25721 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25722 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25723 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25724 Run timers during dialog popup.
25725 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25726
257272007-06-21 Jason Rumney <jasonr@gnu.org>
25728
25729 * image.c (convert_mono_to_color_image): Swap fore and background.
25730
257312007-06-20 Jason Rumney <jasonr@gnu.org>
25732
25733 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25734 (w32_free_bdf_font): Unmap memory not handle.
25735
257362007-06-20 Sam Steingold <sds@gnu.org>
25737
25738 * gmalloc.c (__morecore): Fix the declaration to comply with the
25739 definition.
25740
257412007-06-20 Juanma Barranquero <lekktu@gmail.com>
25742
25743 * w32term.c (w32_delete_display): Remove leftover declaration.
25744 (w32_define_cursor, w32_initialize): Make static.
25745
25746 * w32.c (_wsa_errlist): Fix typo in error message.
25747 (init_environment): Ignore any environment variable from the
25748 registry having a null value.
25749
257502007-06-20 Glenn Morris <rgm@gnu.org>
25751
25752 * Makefile.in (LIBGIF): Default to -lgif.
25753
257542007-06-17 Jason Rumney <jasonr@gnu.org>
25755
25756 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25757 unicode strings.
25758
257592007-06-16 Juanma Barranquero <lekktu@gmail.com>
25760
25761 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25762 Fix typo in docstring.
25763
257642007-06-16 Eli Zaretskii <eliz@gnu.org>
25765
25766 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25767 and their keybindings.
25768
257692007-06-15 Chong Yidong <cyd@stupidchicken.com>
25770
25771 * composite.c (update_compositions): Fix last fix.
25772
257732007-06-14 Jason Rumney <jasonr@gnu.org>
25774
25775 * w32.c (get_process_times_fn): New function pointer.
25776 (globals_of_w32): Intialize it if present in kernel32.dll.
25777 (w32_get_internal_run_time): New function.
25778
25779 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25780
257812007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25782
25783 * composite.c (update_compositions): Check the validness of
25784 compositions.
25785
257862007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25787
25788 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25789 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25790
25791 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25792 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25793
25794 * macgui.h (USE_MAC_TOOLBAR): New define.
25795
25796 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25797 Return immediately unless popup is activated.
25798
25799 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25800 background to scroll bar gap.
25801 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25802 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25803 scroll bars on frame edge. Check fringe background extension.
25804 Don't clear extended fringe background area.
25805 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25806 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25807 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25808 [USE_MAC_TOOLBAR]: New macros.
25809 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25810 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25811 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25812 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25813 [USE_MAC_TOOLBAR]: New functions.
25814 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25815 manually if previous repositioning has failed.
25816 (mac_handle_keyboard_event): Use precomputed event kind.
25817 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25818 as tool bar item click. Handle mouse movement over tool bar items.
25819
25820 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25821 toolbar_win_gravity.
25822 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25823 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25824 Add externs.
25825
25826 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25827 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25828
258292007-06-14 Chong Yidong <cyd@stupidchicken.com>
25830
25831 * image.c (search_image_cache): Remove unused variable.
25832
258332007-06-13 Chong Yidong <cyd@stupidchicken.com>
25834
25835 * xfns.c, xmenu.c: Link to xaw3d if available.
25836
258372007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25838
25839 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25840 frame_foreground and frame_background.
25841
25842 * image.c (lookup_image): Save frame foreground and background colors.
25843 (search_image_cache): Check if saved and current frame colors match.
25844
258452007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25846
25847 * regex.c (regex_compile): Remove the `regnum' counter.
25848 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25849
258502007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25851
25852 * term.c: Include intervals.h to declare Fget_text_property.
25853
258542007-06-10 Jason Rumney <jasonr@gnu.org>
25855
25856 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25857
258582007-06-08 Juanma Barranquero <lekktu@gmail.com>
25859
25860 * callint.c (Fcall_interactively):
25861 * editfns.c (Fdelete_and_extract_region):
25862 * fileio.c (Fread_file_name):
25863 * fns.c (Fmapconcat):
25864 * keyboard.c (cmd_error_internal):
25865 * keymap.c (Fkey_description):
25866 * lread.c (openp):
25867 * minibuf.c (read_minibuf):
25868 * search.c (wordify):
25869 * sunfns.c (sel_read):
25870 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25871 * xfns.c (x_default_scroll_bar_color_parameter):
25872 * xmenu.c (menu_help_callback):
25873 * xselect.c (Fx_get_atom_name):
25874 * xterm.c (x_term_init): Use empty_unibyte_string.
25875
258762007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25877
25878 * alloc.c (init_strings): Initialize canonical empty strings.
25879 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25880 canonical empty string when the requested size is 0.
25881
25882 * emacs.c (empty_unibyte_string): Rename from empty_string.
25883 (empty_multibyte_string): New canonical empty string.
25884 (syms_of_emacs): Don't initialize empty_string.
25885
25886 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25887 string, if appropriate.
25888 (empty_unibyte_string, empty_multibyte_string): New externs.
25889 (empty_string): Remove extern.
25890
25891 * lread.c (syms_of_lread): Use empty_unibyte_string.
25892
258932007-06-07 Jason Rumney <jasonr@gnu.org>
25894
25895 * s/ms-w32.h: Don't define HAVE_TZNAME.
25896
25897 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25898
258992007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25900
25901 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25902
25903 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25904 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25905
25906 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25907 Don't call next handler.
25908 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25909 Remove argument. Install handler to application.
25910 (set_frame_menubar): Don't change deep_p.
25911 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25912 FRAME_OUTER_TO_INNER_DIFF_Y.
25913 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25914 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25915 [HAVE_DIALOGS]: New macros.
25916 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25917 Use them.
25918 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25919
25920 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25921 init_service_handler. All callers changed. Return OSStatus value.
25922
25923 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25924 All callers changed so as not to call SetPortWindowPort.
25925 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25926 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25927 mac_draw_string_common.
25928 (mac_draw_image_string_qd): Likewise.
25929 (mac_draw_string_common): Use them. Add INLINE.
25930 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25931 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25932 GetGlobalMouse.
25933 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25934 and FRAME_OUTER_TO_INNER_DIFF_Y.
25935 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25936 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25937 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25938 repositioning window to mac_handle_window_event.
25939 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25940 saving window location to mac_handle_window_event
25941 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25942 (install_menu_target_item_handler): Remove argument in extern.
25943 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25944 Also accept command events.
25945 (do_keystroke): New function created from XTread_socket.
25946 (init_command_handler): Remove functions.
25947 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25948 and save window location by kEventWindowShowing and kEventWindowHiding
25949 handlers here. Don't call next handler for window state change and
25950 focus events.
25951 (mac_handle_application_event, mac_handle_keyboard_event)
25952 [TARGET_API_MAC_CARBON]: New functions.
25953 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25954 kEventWindowShowing and kEventWindowHiding events. Move installation
25955 of mouse, font, text input and menu target item handlers to
25956 install_application_handler.
25957 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25958 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25959 New function.
25960 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25961 Register it.
25962 (XTread_socket) [TARGET_API_MAC_CARBON]:
25963 Consolidate SendEventToEventTarget calls.
25964 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25965 Move application activation handler to mac_handle_application_event.
25966 Move keyboard handler to mac_handle_keyboard_event.
25967 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25968 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25969 init_command_handler. Call install_application_handler.
25970
25971 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25972 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25973
259742007-06-07 Glenn Morris <rgm@gnu.org>
25975
25976 * emacs.c (main): Use `emacs-copyright' in --version output.
25977
259782007-06-06 Chong Yidong <cyd@stupidchicken.com>
25979
25980 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25981
259822007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25983
25984 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25985
25986 * macgui.h: Replace WindowPtr with WindowRef.
25987
25988 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25989 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25990 Replace ControlHandle with ControlRef.
25991 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25992
25993 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25994 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25995 Replace ControlHandle with ControlRef.
25996 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25997 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25998
25999 * macterm.h (struct scroll_bar): Rename member control_handle_low
26000 and control_handle_high to control_ref_low and control_ref_high.
26001 All uses changed.
26002 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26003 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26004 respectively. All uses changed.
26005 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26006 (install_window_handler, remove_window_handler): Replace WindowPtr
26007 with WindowRef in externs.
26008
260092007-06-05 Juanma Barranquero <lekktu@gmail.com>
26010
26011 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26012
260132007-06-03 Nick Roberts <nickrob@snap.net.nz>
26014
26015 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26016
26017 * frame.c (Fmouse_position, Fmouse_pixel_position):
26018 Condition on HAVE_GPM too.
26019
26020 * term.c (term_mouse_highlight): Remove unused variables.
26021 (Fterm_open_connection): Set gpm_zerobased to 1.
26022 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26023 Use zero based co-ordinates.
26024 (handle_one_term_event): Report a drag as mouse movement too.
26025
26026 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26027
260282007-06-03 Chong Yidong <cyd@stupidchicken.com>
26029
26030 * image.c (search_image_cache): New function. Require background
26031 color match if background color is unspecified in the image spec.
26032 (uncache_image, lookup_image): Use it.
26033
260342007-06-01 Juanma Barranquero <lekktu@gmail.com>
26035
26036 * window.c (Fshrink_window): Reflow docstring.
26037
260382007-06-02 Chong Yidong <cyd@stupidchicken.com>
26039
26040 * Version 22.1 released.
26041
260422007-06-01 Richard Stallman <rms@gnu.org>
26043
26044 * xfns.c (x_encode_text): Add GCPRO.
26045
260462007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26047
26048 * xfns.c (x_set_name_internal): Save encoded name before
26049 x_encode_text in case string data is relocated.
26050
260512007-05-31 Richard Stallman <rms@gnu.org>
26052
26053 * buffer.c (syms_of_buffer): Doc fix.
26054
260552007-05-30 Nick Roberts <nickrob@snap.net.nz>
26056
26057 * sysdep.c (init_sys_modes): Add rather than replace with
26058 O_NONBLOCK.
26059
26060 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26061 term_mouse_moveto.
26062
26063 * termhooks.h (term_mouse_moveto): New extern.
26064
26065 * term.c (mouse_face_window): Rename...
26066 (Qmouse_face_window): ...to this.
26067 (term_show_mouse_face, term_clear_mouse_face)
26068 (term_mouse_highlight): Use Qmouse_face_window.
26069 (term_mouse_moveto): New function.
26070 (term_mouse_position): Make it work.
26071 (syms_of_term): Uncomment assignment to mouse_position_hook.
26072 Staticpro Qmouse_face_window.
26073
260742007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26075
26076 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26077 around current_column call.
26078
260792007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26080
26081 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26082 * xdisp.c (next_element_from_buffer):
26083 * window.c (delete_window):
26084 * term.c (term_mouse_highlight):
26085 * msdos.c (getdefdir):
26086 * macterm.c (mac_create_bitmap_from_bitmap_data)
26087 (init_font_name_table):
26088 * fns.c (Fsxhash):
26089 * data.c (Fmake_local_variable):
26090 * ccl.c (ccl_driver): Likewise.
26091
260922007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26093
26094 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26095 Call mac_wakeup_from_rne on window size change.
26096
260972007-05-25 Chong Yidong <cyd@stupidchicken.com>
26098
26099 * image.c (uncache_image): Fix typo.
26100
261012007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26102
26103 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26104
261052007-05-22 Richard Stallman <rms@gnu.org>
26106
26107 * xterm.c (x_connection_closed): Remove NO_RETURN.
26108
261092007-05-22 Martin Rudalics <rudalics@gmx.at>
26110
26111 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26112
261132007-05-21 Chong Yidong <cyd@stupidchicken.com>
26114
26115 * image.c (uncache_image): New function.
26116 (Fimage_refresh): New function.
26117
261182007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26119
26120 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26121
261222007-05-20 Nick Roberts <nickrob@snap.net.nz>
26123
26124 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26125 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26126
261272007-05-20 Nick Roberts <nickrob@snap.net.nz>
26128
26129 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26130 conditional on [HAVE_GPM_H].
26131
261322007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26133
26134 * syntax.c (skip_chars): Update syntax-table only after we checked that
26135 the new location is valid.
26136
261372007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26138
26139 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26140 mac_get_window_bounds.
26141
261422007-05-20 Nick Roberts <nickrob@snap.net.nz>
26143
26144 * Makefile.in (LIBGPM): Allow it to be set from configure.
26145 If set then link Emacs with it.
26146
26147 * config.in: Regenerate.
26148
26149 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26150 New externs.
26151
26152 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26153 Include gpm.h.
26154 (handle_one_term_event, term_gpm): New externs.
26155
26156 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26157 and allow it to be interrupted by SIGIO.
26158
26159 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26160 (wait_reading_process_output): Wait on gpm_fd too.
26161 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26162 (add_gpm_wait_descriptor_called_flag): New variable.
26163 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26164
26165 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26166 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26167 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26168 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26169 (make_lispy_event): Add case GPM_CLICK_EVENT.
26170 (read_avail_input): Handle mouse input.
26171
26172 * term.c (write_glyphs_with_face): New function.
26173 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26174 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26175 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26176 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26177 (last_mouse_x, last_mouse_y): New variables.
26178 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26179 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26180 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26181 (Fterm_close_connection): New functions.
26182 (term_init): Initialise mouse_face_window.
26183
261842007-05-19 Chong Yidong <cyd@stupidchicken.com>
26185
26186 * xdisp.c (redisplay_window): If first window line is a
26187 continuation line, recompute the new window start instead of
26188 recentering.
26189
261902007-05-18 Glenn Morris <rgm@gnu.org>
26191
26192 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26193 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26194
261952007-05-17 Glenn Morris <rgm@gnu.org>
26196
26197 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26198
261992007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26200
26201 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26202 dead key repeat and up events.
26203
262042007-05-14 Chong Yidong <cyd@stupidchicken.com>
26205
26206 * image.c (pbm_load): Check image size for monochrome pbm.
26207
262082007-05-13 Chong Yidong <cyd@stupidchicken.com>
26209
26210 * xterm.c (XTread_socket): Revert last change.
26211
262122007-05-12 Chong Yidong <cyd@stupidchicken.com>
26213
26214 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26215
26216 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26217
262182007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26219
26220 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26221 mixup (YAILOM).
26222
262232007-05-07 Andreas Schwab <schwab@suse.de>
26224
26225 * keymap.c (Flookup_key): Fix typo in last change.
26226
262272007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26228
26229 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26230 mapping for unibyte strings.
26231
262322007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26233
26234 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26235 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26236
262372007-04-29 Richard Stallman <rms@gnu.org>
26238
26239 * insdel.c (replace_range): For undo, record insertion first.
26240
262412007-04-29 Andreas Schwab <schwab@suse.de>
26242
26243 * lisp.h (VECSIZE): Use OFFSETOF.
26244
262452007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26246
26247 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26248 disabled lines.
26249
262502007-04-28 Richard Stallman <rms@gnu.org>
26251
26252 * lread.c (read_escape): In a string, \s is always space.
26253
262542007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26255
26256 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26257
26258 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26259 submenu for menu bar items.
26260
26261See ChangeLog.10 for earlier changes.
26262
26263;; Local Variables:
26264;; coding: utf-8
26265;; add-log-time-zone-rule: t
aac0c6e3
MR
26266;; End:
26267
e3eb1dae 26268 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26269
26270 This file is part of GNU Emacs.
26271
26272 GNU Emacs is free software: you can redistribute it and/or modify
26273 it under the terms of the GNU General Public License as published by
26274 the Free Software Foundation, either version 3 of the License, or
26275 (at your option) any later version.
26276
26277 GNU Emacs is distributed in the hope that it will be useful,
26278 but WITHOUT ANY WARRANTY; without even the implied warranty of
26279 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26280 GNU General Public License for more details.
26281
26282 You should have received a copy of the GNU General Public License
26283 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26284
26285;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40