More undeclared function fixes and add -Wimplicit-function-declaration.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3d608a86
J
12010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2
7908fb60
J
3 * xterm.h (x_get_focus_frame): Declare.
4
5 * keyboard.h (poll_for_input_1): Unconditionally declare.
6
4094bf36
J
7 * nsterm.h (x_set_menu_bar_lines): Declare.
8
9 * window.c: Don't include menu.h, it depends on lots of other .h-files.
10
3d608a86
J
11 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
12
13 * window.c: Include menu.h.
14
15 * unexmacosx.c (print_region_list, print_regions)
16 (build_region_list, find_emacs_zone_regions)
17 (unexec_regions_merge, read_load_commands, dump_it)
18 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
19
20 * term.c: Check HAVE_SYS_IOCTL_H.
21
22 * sysdep.c: Check HAVE_TERM_H
23
24 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
25
26 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
27 (ns_ring_bell, ns_defined_color, hide_hourglass)
28 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
29 Convert to ANSI C prototypes.
30 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
31 before code.
32
33 * nsterm.h : Include sysselect.h.
34 (x_sync, x_get_focus_frame, x_set_mouse_position)
35 (x_set_mouse_pixel_position, x_make_frame_visible)
36 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
37 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
38 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
39 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
40 Declare
41
42 * nsmenu.m (popup_activated, name_is_separator)
43 (syms_of_nsmenu): Convert to ANSI C prototypes.
44 (runMenuAt): Prototypes and move declarations before code.
45
46 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
47
48 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
49 prototypes.
50
51 * nsfns.m (have_menus_p, ns_display_info_for_name)
52 (x_set_cursor_type, ns_appkit_version_str)
53 (ns_appkit_version_int, ns_do_applescript)
54 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
55 (syms_of_nsfns): Convert to ANSI C prototypes.
56
57 * menu.h (x_set_menu_bar_line): Declare.
58 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
59
60 * lisp.h (fmod_float): Declare.
61
62 * image.c (xpm_scan, xpm_make_color_table_v)
63 (xpm_put_color_table_v, xpm_get_color_table_v)
64 (xpm_make_color_table_h, xpm_put_color_table_h)
65 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
66 (xpm_load): Convert to ANSI C prototypes.
67
68 * emacs.c: Include nsterm.h if HAVE_NS.
69
70 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
71
fce70521
DN
722010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
73
74 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
75 subprocesses, only MSDOS does not define HAVE_SOCKETS.
76 (socket_options): Use const char* for name.
77
a11889ab
JB
782010-08-06 Juanma Barranquero <lekktu@gmail.com>
79
80 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
81
82 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
83 Don't declare xmalloc_widget_value and digest_single_submenu.
84
85 * w32font.c (Qlatin): Remove declaration.
86
87 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
88
c95b508f 89 * dired.c (compile_pattern): Restore declaration.
a11889ab 90
6254cdda
DN
912010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
92
04bab72c
DN
93 Remove extern declarations in .c files, .h files have them.
94 * data.c:
95 * dired.c:
96 * editfns.c:
97 * filelock.c:
98 * fns.c:
99 * font.c:
100 * fontset.c:
101 * frame.c:
102 * fringe.c:
103 * ftfont.c:
104 * gtkutil.c:
105 * indent.c:
106 * keyboard.c:
107 * keymap.c:
108 * lread.c:
109 * menu.c:
110 * print.c:
111 * search.c:
112 * sound.c:
113 * window.c:
114 * xdisp.c:
115 * xfaces.c:
116 * xfns.c:
117 * xfont.c:
118 * xftfont.c:
119 * xmenu.c:
120 * xterm.c: Remove declarations.
121
dff94ed5
DN
122 Cleanup syssignal.h.
123 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
124 (main_thread): Move down to remove #ifdef.
125 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
126 Remove conditional definition following unconditional ones.
127
99f3388e
DN
128 * lisp.h: Remove HAVE_SHM code, unused.
129 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
130 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
131 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
132 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
133 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
134 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
135 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
136 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
137 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
138 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
139 (Qwindow_scroll_functions, Vafter_load_alist)
140 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
141 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
142 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
143 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
144 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
145 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
146 (initial_argv, last_nonmenu_event, load_in_progress)
147 (noninteractive_need_newline, scroll_margin): Add declarations.
148
149 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
150 declarations, menu.h has them.
151 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
152 (Vinput_method_function, Qinput_method_function)
153 (Qevent_symbol_element_mask, last_event_timestamp):
154 * dispextern.h (Voverflow_newline_into_fringe):
155 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
156 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
157 (syms_of_w32font, syms_of_nsfont):
158 * fontset.h (find_font_encoding, Qlatin):
159 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
160 (Vtool_bar_mode, set_frame_menubar):
161 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
162 * xterm.h (Qx_gtk_map_stock):
163 * keymap.h (meta_prefix_char): Add declarations.
164
9f5dd6f2
DN
165 * term.c: Remove dead code.
166
6254cdda
DN
167 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
168 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
169 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
170 which is what was there before BSD_PGRPS was removed.
171
29cf3e20
EZ
1722010-08-05 Eli Zaretskii <eliz@gnu.org>
173
174 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
175
176 * unexcoff.c: Renamed from unexec.c.
177
aaa0a19a
SM
1782010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
181
8d1d9587
JB
1822010-08-03 Johan Bockgård <bojohan@gnu.org>
183
184 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 185 (Bug#6744)
8d1d9587 186
9a747ba6
JD
1872010-08-02 Jan Djärv <jan.h.d@swipnet.se>
188
4d464ae4
JD
189 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
190 to TRUE if depth of screen is < 16.
191
ac01763e
JD
192 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
193 USE_GTK_TOOLTIP.
e0d62a9b
JB
194 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
195 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 196 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
197 USE_GTK_TOOLTIP.
198 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
199
200 * xterm.h (USE_GTK_TOOLTIP): New define.
201 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
202
9a747ba6
JD
203 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
204 to Control-D (Bug#6771).
205
7b0815ba
JB
2062010-08-02 Juanma Barranquero <lekktu@gmail.com>
207
208 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
209 Wording by Drew Adams <drew.adams@oracle.com>.
210
aa1859f5
J
2112010-08-01 Jan Djärv <jan.h.d@swipnet.se>
212
213 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
214 ttip_lbl.
215
216 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
217 calling gtk_widget_queue_draw.
218 (x_free_frame_resources): Call xg_free_frame_widgets.
219
220 * xfns.c (x_gtk_use_system_tooltips): New variable.
221 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
222 new gtkutil tooltip functions to show the tooltip.
223 (Fx_hide_tip): Call xg_hide_tooltip.
224 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
225
226 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
227 (xg_show_tooltip, xg_hide_tooltip): Declare.
228
229 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
230 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
231 New functions.
aa1859f5
J
232 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
233 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
234 Remove code that is commented out.
235
76417ef4
SM
2362010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
237
238 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
239
16041401
CY
2402010-07-31 Chong Yidong <cyd@stupidchicken.com>
241
242 * xselect.c (x_own_selection): Use list4.
243
2c09a58f
DN
2442010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
245
246 * buffer.c (Qwindow): Do not define, already defined in data.c.
247 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
248
59df9fdd 2492010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 250
59df9fdd
JB
251 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
252 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
253 * config.in: Undef HAVE_DIRENT_H.
1c97e857 254 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 255 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 256
1b231651
DN
2572010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
258
259 Rename s/usg5-4.h -> s/usg5-4-common.h.
260 * s/usg5-4.h: Rename file to ...
261 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
262 * s/unixware.h:
263 * s/sol2-6.h:
264 * s/irix6-5.h: Update includes accordingly.
265
bfeabdc3
JD
2662010-07-29 Jan Djärv <jan.h.d@swipnet.se>
267
2ebf1083
J
268 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
269
bfeabdc3 270 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
271 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
272 Remove toolbar_height.
273 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
274 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
275 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
276 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
277
278 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
279
280 * xfns.c (x_set_tool_bar_position): New function.
281 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
282 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 283 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
284
285 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
286 and FRAME_TOOLBAR_LEFT_WIDTH.
287
288 * gtkutil.h (xg_change_toolbar_position): Declare.
289
290 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
291 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
292 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
293 (xg_create_frame_widgets): Create a hobox for placing widgets
294 vertically. Use gtk_box_pack_start.
295 (xg_height_or_width_changed): Renamed from xg_height_changed.
296 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
297 (xg_update_frame_menubar, free_frame_menubar): Change to
298 xg_height_or_width_changed.
299 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
300 size correctly. Remove hardcoded 4, instead use handlebox size -
301 toolbar size.
302 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 303 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
304 (xg_pack_tool_bar): POS is a new parameter.
305 Set orientation of tool bar based on pos.
306 Only make handlebox_widget if NULL.
307 Check if tool bar goes to vbox or hbox depending on pos.
308 (xg_update_tool_bar_sizes): New function.
309 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
310 height, call xg_update_tool_bar_sizes instead.
311 (free_frame_tool_bar): Remove from hbox or vbox depending on
312 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
313 (xg_change_toolbar_position): New function.
314
315 * frame.h (struct frame): Add tool_bar_position.
316 (Qbottom): Declare.
317
318 * frame.c (Qtool_bar_position): New variable.
319 (make_frame): Set tool_bar_position to Qtop.
320 (frame_parms): Add tool-bar-position.
321 (x_report_frame_params): Store tool_bar_position.
322 (x_set_fringe_width): Reset wm size hint after fringe changes.
323
26469a38
DN
3242010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
325
326 Make lisp_time_argument declaration work on all systems.
327 * lisp.h (lisp_time_argument): Move declaration ...
328 * systime.h (lisp_time_argument): ... here
329 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
330
8848b728
JD
3312010-07-29 Jan Djärv <jan.h.d@swipnet.se>
332
333 * vm-limit.c (POINTER): Add typedef for it.
334 (start_of_data): Change return type from POINTER to char *.
335
336 * frame.h (Qtty_color_mode): Move declaration out of ifdef
337 HAVE_WINDOW_SYSTEM.
338
76fd1ee9
DN
3392010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
340
0441987e
DN
341 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
342 Remove reference to __osf__, unused.
343
56a000c7
DN
344 * mem-limits.h: Remove duplicated includes.
345 (NULL): Remove definition, unused.
346 (POINTER): Remove definition.
347 (start_of_data): Use char* in prototype, as the function
348 definition does.
349
e6cba650
DN
350 Remove extern declarations from .c files, and them to .h files.
351 * keyboard.h (Qhelp_echo, waiting_for_input)
352 (input_available_clear_time, ignore_mouse_drag_p)
353 (Vdouble_click_time, real_this_command, Vthis_original_command):
354 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
355 (Voverriding_local_map_menu_flag):
356 * lisp.h (Qinteractive_form, use_file_dialog)
357 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
358 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
359 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
360 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
361 (Qfunction, debug_on_next_call, Qfield)
362 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
363 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
364 (Qfile_directory_p, Qinsert_file_contents)
365 (Qcompletion_ignore_case, Qcompletion_ignore_case)
366 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
367 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
368 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
369 (Qminibuffer_prompt)
370 (Vtemporary_file_directory,char_ins_del_vector, Qface):
371 * xterm.h (gray_bitmap_width, gray_bitmap_height)
372 (gray_bitmap_bits, xic_create_fontsetname):
373 * coding.h (Vtranslation_table_for_input): Add extern declarations.
374
375 * xsmfns.c (Vuser_login_name):
376 * xrdb.c (Vdouble_click_time):
377 * xfaces.c (xic_create_fontsetname):
378 * w32select.c (waiting_for_input):
379 * print.c (minibuffer_auto_raise):
380 * msdos.c (Qhelp_echo):
381 * macros.c (real_this_command):
382 * keymap.c (Voverriding_local_map):
383 * xterm.c (poll_for_input_1, gray_bitmap_width)
384 (gray_bitmap_height, gray_bitmap_bits;
385 * xmenu.c ( Voverriding_local_map)
386 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
387 (use_file_dialog, Xt_app_con):
388 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
389 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
390 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
391 (Qtool_bar_lines, ignore_mouse_drag_p):
392 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
393 (Qrear_nonsticky, nconc2):
394 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
395 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
396 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
397 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
398 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
399 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
400 (gc_in_progress):
401 * doc.c (Voverriding_local_map, Qremap):
402 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
403 (Vcompletion_regexp_list):
404 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
405 (Qcompletion_ignore_case):
406 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
407 (Vhistory_length, Vthis_original_command, real_this_command)
408 (Qface, Qminibuffer_prompt, history_delete_duplicates):
409 * image.c (Qrisky_local_variable):
410 * fontset.c (QCname):
411 * fns.c (minibuffer_auto_raise, QCname):
412 * dispnew.c (char_ins_del_cost):
413 * composite.c (font_fill_lglyph_metrics):
414 * cmds.c (Qface, Vtranslation_table_for_input):
415 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
416 * ccl.c (charset_unicode):
417 * callproc.c (Vtemporary_file_directory):
418 * buffer.c (emacs_strerror): Remove extern declarations.
419
420 * data.c (Qwindow): Make non-static, used from other files too.
421 * frame.c (validate_x_resource_name): Remove shadow definition for i.
422
76fd1ee9
DN
423 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
424 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
425 * s/usg5-4.h (COFF):
426 * s/template.h:
427 * s/msdos.h (COFF, NO_REMAP):
428 * s/ms-w32.h (NO_REMAP):
429 * s/hpux10-20.h (NO_REMAP):
430 * m/sparc.h (SEGMENT_MASK):
431 * m/m68k.h (NO_REMAP):
432 * m/intel386.h (SEGMENT_MASK):
433 * m/arm.h (NO_REMAP):
434 * m/alpha.h (COFF):
435 * m/template.h: Remove references to unused defines.
436
8a52f00a
JD
4372010-07-28 Jan Djärv <jan.h.d@swipnet.se>
438
439 * xsettings.c (Ftool_bar_get_system_style): Also check for
440 Qtext_image_horiz.
441
442 * xdisp.c (Qtext_image_horiz): Define.
443 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 444 to documentation of tool-bar-style.
8a52f00a
JD
445
446 * lisp.h (Qtext_image_horiz): Declare.
447
448 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
449 style text_image_horiz.
450
89dc303e
DN
4512010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
452
60799703
DN
453 * emacs.c (Fkill_emacs): Remove return statement.
454
37254dc1
DN
455 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
456 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
457 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
458 local extern declarations.
459
71c7345a
DN
460 * xmenu.c: Do not included lwlib.h, not needed.
461
6ba577cb
DN
462 * m/iris4d.h (XUINT, XSET): Remove, not needed.
463
fdb183d6
DN
464 * process.c: Move definitions earlier to minimize #ifdefs.
465
466 * xterm.h (x_get_customization_string, x_load_resources)
467 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
468 (x_check_errors, x_property_data_to_lisp, defined_color)
469 (xic_set_xfontset, x_defined_color): Use const.
470
471 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
472 (x_text_icon, x_check_errors, x_connection_closed): Use const.
473
474 * xselect.c (selection_data_to_lisp_data)
475 (x_property_data_to_lisp):
476 * xrdb.c (x_get_string_resource, file_p)
477 (x_get_customization_string, magic_file_p, search_magic_path)
478 (get_system_app, get_user_app, x_load_resources, x_get_resource)
479 (x_get_string_resource): Use const.
480
481 * xfns.c: Include xlwmenu.h when USE_LUCID.
482 (x_defined_color, xic_set_xfontset): Use const.
483 (Fx_hide_tip): Remove local extern declaration.
484
485 * xfaces.c (Qmouse_face): Remove declaration.
486 (face_color_gray_p, tty_defined_color, defined_color)
487 (face_color_gray_p, face_color_supported_p). Add const.
488
489 * xdisp.c (do_mouse_tracking): Remove declaration.
490 (add_to_log): Use const.
491
492 * minibuf.c (Qmouse_face): Remove declaration.
493
494 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
495
496 * keyboard.h (do_mouse_tracking): Add declaration.
497
498 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
499 (QCdata, QCtype, Qcenter): Remove declarations.
500
501 * frame.c (x_get_resource_string, x_get_string_resource)
502 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
503 (x_default_parameter): Use const.
504
505 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
506 (QCheight, QCsize, QCname): Remove declarations.
507
508 * emacs.c (main): Remove local extern declaration.
509
510 * editfns.c (region_limit, syms_of_editfns): Remove local extern
511 declarations.
512
513 * dispnew.c: Remove duplicate #include <unistd.h>.
514 (update_window, update_frame_1, init_display): Remove local extern
515 declarations.
516
517 * dispextern.h (add_to_log): Remove declaration.
518 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
519 (x_frame_get_and_record_arg, x_default_parameter): Add const.
520
521 * dired.c (scmp): Add const.
522 (directory_files_internal): Remove local extern declaration.
523
524 * data.c (Finteractive_form): Use const.
525
526 * composite.c (syms_of_composite): Remove local extern declarations.
527
528 * charset.c (add_to_log): Remove declaration.
529
530 * character.c (strwidth, parse_str_to_multibyte): Add const.
531
532 * character.h (strwidth, parse_str_to_multibyte): Likewise.
533
534 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
535
89dc303e 536 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
537 (Lisp_Subr): Make doc and intspec constant.
538 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
539 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
540 (QCheight, QCsize, QCname, QCwidth, QCforeground)
541 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
542 (display_arg): Add declarations.
89dc303e 543
0ed082fe 5442010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
545
546 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
547
0ed082fe
JB
548 * window.c (Fwindow_height): Doc fix (bug#6518).
549
5502010-07-27 Juanma Barranquero <lekktu@gmail.com>
551
552 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
553
ccaf0336
DN
5542010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
555
977105dc
DN
556 * keyboard.c (Ftop_level, Fexit_recursive_edit)
557 (Fabort_recursive_edit): Remove return statements in NO_RETURN
558 functions.
559
f5ada890
DN
560 * frame.h (Qtty_color_mode): Add declaration.
561
ccaf0336
DN
562 * lisp.h (Ftop_level, Fexit_recursive_edit)
563 (Fabort_recursive_edit): Mark as NO_RETURN.
564
dfe3c90f
KH
5652010-07-26 Kenichi Handa <handa@m17n.org>
566
567 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 568 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 569
7d383292
JB
5702010-07-26 Juanma Barranquero <lekktu@gmail.com>
571
572 * lread.c (unreadpure, mapatoms_1): Make static.
573
da31e629
JB
5742010-07-25 Juanma Barranquero <lekktu@gmail.com>
575
576 * terminfo.c (tparam): Fix prototype of tparm.
577
7bfa6d77
AS
5782010-07-25 Andreas Schwab <schwab@linux-m68k.org>
579
dcc19aac
AS
580 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
581 find start of text segment.
582 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
583 is defined.
584
7bfa6d77
AS
585 * callproc.c (set_initial_environment): Avoid unbalanced braces.
586
63f9a672
KB
5872010-07-25 Ken Brown <kbrown@cornell.edu>
588
589 * vm-limit.c (check_memory_limits): Fix previous change;
590 accidentally reverted an earlier change.
591
24933075
KB
5922010-07-25 Ken Brown <kbrown@cornell.edu>
593
594 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
595 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
596
361358ea
JB
5972010-07-25 Juanma Barranquero <lekktu@gmail.com>
598
599 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
600 * dired.c (opendir, readdir): Fix prototypes.
601 * editfns.c (w32_get_internal_run_time): Fix prototypes.
602 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
603 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
604 (telldir): Remove declaration.
605 * ralloc.c (real_morecore, __morecore): Fix prototypes.
606 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
607 * syssignal.h (strsignal): Fix prototype.
608 * term.c (tparam): Fix prototype.
609 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
610 (term_get_fkeys): Set inside "#ifndef DOS_NT".
611 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
612 and __morecore.
613 * w32gui.h (XParseGeometry): Fix prototype.
614 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
615 * w32term.c (my_set_focus): Declare inside #if 0.
616 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
617 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
618 (drain_message_queue, get_next_msg, post_msg, parse_button)
619 (ClipboardSequence_Proc): Fix prototypes.
620 (wait_for_sync): Remove declaration.
621
630b9592
JB
6222010-07-24 Juanma Barranquero <lekktu@gmail.com>
623
624 * w32fns.c (w32_to_x_color): Remove, unused.
625
6a0d6611
AS
6262010-07-24 Andreas Schwab <schwab@linux-m68k.org>
627
628 * lisp.h: Remove leftover P_.
629
4e8608ff
DN
6302010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
631
632 * ecrt0.c, unexalpha.c: Remove files, unused.
633
c8197983
AS
6342010-07-24 Andreas Schwab <schwab@linux-m68k.org>
635
636 * cmds.c (internal_self_insert): Make static.
637 * lisp.h (internal_self_insert): Remove declaration.
638
97b372d7
JB
6392010-07-23 Juanma Barranquero <lekktu@gmail.com>
640
33ac0414
JB
641 * alloc.c (free_float):
642 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
643 * frame.c (delete_frame_handler):
644 * ralloc.c (reorder_bloc):
645 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
646 Remove unused static functions.
647
94da8397
JB
648 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
649 it is called only from NS code.
650
2e6c8532
JB
651 * w32term.c (my_set_focus): #ifdef away; it is called only from
652 "#ifdef 0" code.
653
97b372d7
JB
654 * w32fns.c (x_edge_detection):
655 * xfaces.c (may_use_scalable_font_p):
656 Remove obsolete static declarations.
657
7c3320d8
JB
6582010-07-20 Juanma Barranquero <lekktu@gmail.com>
659
660 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
661 (emacs_blocked_realloc, uninterrupt_malloc):
662 * fringe.c (w32_reset_fringes):
663 * image.c (convert_mono_to_color_image, lookup_rgb_color)
664 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
665 * sound.c (be2hs, do_play_sound):
666 * vm-limit.c (get_lim_data, ret_lim_data):
667 * w32term.c (x_free_frame_resources):
668 * xfaces.c (x_create_gc, x_free_gc):
669 Convert definitions to standard C.
670
d5273788
SM
6712010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
672
673 * eval.c (Feval, Ffuncall): Use the new names.
674
675 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
676 (DEFUN): Add braces around the union initialisation and use ## to
677 specify the right union alternative and avoid a cast.
678
8d16a259
JB
6792010-07-18 Juanma Barranquero <lekktu@gmail.com>
680
681 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
682
3b8eff32
CY
6832010-07-17 Chong Yidong <cyd@stupidchicken.com>
684
685 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
686
499322ce
J
6872010-07-17 Jan Djärv <jan.h.d@swipnet.se>
688
689 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
690 is related to the menu bar (Bug#6499).
a628ad9d 691 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 692
f6003da5 6932010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
694
695 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
696
697 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
698
699 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
700 i.e. don't put back ButtonRelease (Bug#6608).
701
702 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
703 instead of Window. Call xg_event_is_for_menubar when
704 USE_GTK (Bug#6499).
705
706 * gtkutil.h (xg_event_is_for_menubar): Declare.
707
708 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
709
f6003da5 7102010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
711
712 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
713 when it's the same as the old foreground. (Bug#6609)
714
23243f29
J
7152010-07-16 Jan Djärv <jan.h.d@swipnet.se>
716
717 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
718 widget is non-null (Bug#6645).
719
2b23d2a6
AS
7202010-07-15 Andreas Schwab <schwab@linux-m68k.org>
721
01b564ff
AS
722 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
723 Convert old-style definition.
724
2b23d2a6
AS
725 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
726 timestamp argument.
727
c4affd2c
EZ
7282010-07-15 Eli Zaretskii <eliz@gnu.org>
729
730 * fringe.c (update_window_fringes): Restore mistakenly reverted
731 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
732
cf28cebc
J
7332010-07-14 Jan Djärv <jan.h.d@swipnet.se>
734
735 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
736 (SET_SAVED_KEY_EVENT): Remove (not used).
737 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
738 remove size parameter.
739 (handle_one_xevent): Check popup_activated () for menu for Xt also.
740 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
741 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
742 ButtonRelease.
6b2c4bd9
J
743 (x_set_window_size_1): scroll_bar_actual_width is always
744 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
745
746 * xdisp.c (pending_menu_activation): Remove extern declaration.
747 (prepare_menu_bars): Remove setting of pending_menu_activation.
748
749 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
750 (x_activate_menubar): Set popup_activated_flag for Xt also.
751 Remove setting of pending_menu_activation.
cf28cebc
J
752 (set_frame_menubar): Remove check of pending_menu_activation.
753 Declare menubar_size before code. Correct spelling in comment.
754
f6c1c771
KH
7552010-07-14 Kenichi Handa <handa@m17n.org>
756
757 * font.c (font_open_entity): Cancel previous change.
758 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
759
20477505
EZ
7602010-07-13 Eli Zaretskii <eliz@gnu.org>
761
77defa9a
EZ
762 Remove subprocesses #ifdefs.
763 * process.c <inhibit_sentinels>: Move to the common part.
764 (Fwaiting_for_user_input_p): Move to the common part; return nil
765 if async subprocesses aren't supported.
766 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
767 MS-DOS. Remove "#ifdef subprocesses".
768 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
769 (gettimeofday): Remove "#ifdef subprocesses".
770 (wait_without_blocking): Remove function.
771 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
772 Remove "#ifdef subprocesses".
773 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
774 compiled on MS-DOS.
775 * callproc.c (Fcall_process) [!MSDOS]: Don't call
776 wait_for_termination on MS-DOS.
777 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
778 initialization of inhibit_sentinels.
779 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
780 subprocesses" conditional.
781 * callproc.c (Fcall_process) [!subprocesses]: Don't call
782 wait_for_termination, since `buffer' cannot be an integer when
783 async subprocesses are not supported
784 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
785 for ifdefing away the call to Fprocess_status.
786
20477505
EZ
787 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
788 away the entire body of the function.
789
b3ffc17c
DN
7902010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
791
01faa934
DN
792 Remove subprocesses #ifdefs from term.c.
793 * process.c (add_keyboard_wait_descriptor)
794 (delete_keyboard_wait_descriptor): Move to common section, do
795 nothing when subprocesses is not defined.
a628ad9d
JB
796 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
797 Remove subprocesses #ifdefs.
01faa934 798
b3ffc17c
DN
799 Convert maybe_fatal to standard C.
800 * lisp.h (verror): Declare.
801 * eval.c (verror): New function containing the code from ...
802 (error): ... this. Call verror.
803 * term.c (vfatal): New function containing the code from ...
804 (fatal): ... this. Call vfatal.
805 (maybe_fatal): Convert to standard C, use variable number of
806 arguments. Declare as non-return.
807 (init_tty): Fix maybe_fatal call.
808
0521f580
DN
8092010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
810
811 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
812 (_scroll_bar_note_movement): Convert definitions to standard C.
813 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
814 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
815
ebd15611
DN
8162010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
817
818 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
819 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
820 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
821 (xaw_jump_callback, xaw_scroll_callback)
822 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
823 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
824 definitions to standard C.
825 * xmenu.c (menubar_id_to_frame, popup_get_selection)
826 (popup_activate_callback, popup_deactivate_callback)
827 (menu_highlight_callback, menubar_selection_callback)
828 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
829 (free_frame_menubar, popup_selection_callback, as)
830 (create_and_show_popup_menu, dialog_selection_callback)
831 (create_and_show_dialog):
832 * xfns.c (hack_wm_protocols, x_window):
833 * xfaces.c (x_update_menu_appearance):
834 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
835 (char_to_pixel_size, round_size_to_char, get_wm_shell)
836 (set_frame_size, update_wm_hints, setup_frame_gcs)
837 (update_various_frame_slots, update_from_various_frame_slots)
838 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
839 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
840 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
841
de06a2dd
AS
8422010-07-12 Andreas Schwab <schwab@linux-m68k.org>
843
a628ad9d 844 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 845
fc549af9
EZ
8462010-07-12 Eli Zaretskii <eliz@gnu.org>
847
848 * process.c (setup_process_coding_systems): Move to the part
849 shared by non-subprocesses systems, and make its body empty when
850 subprocesses is not defined.
851 (close_process_descs): Move to the part shared by non-subprocesses
852 systems.
1408902e
EZ
853 (wait_reading_process_output) [!subprocesses]: Convert arg list to
854 ANSI C.
fc549af9 855
d5a3eaaf
AS
8562010-07-12 Andreas Schwab <schwab@linux-m68k.org>
857
858 * editfns.c (transpose_markers): Convert old-style definition.
859 * emacs.c (abort, shut_down_emacs, fixup_locale)
860 (synchronize_system_time_locale)
861 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
862 * floatfns.c (extract_float, matherr, init_floatfns)
863 (syms_of_floatfns): Likewise.
864 * fns.c (make_hash_table): Likewise.
865 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
866 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
867 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
868 (ftfont_variation_glyphs): Likewise.
869 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
870 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
871 * lread.c (read_filtered_event): Likewise.
872 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
873 * process.c (wait_reading_process_output): Likewise.
874 * scroll.c (do_line_insertion_deletion_costs): Likewise.
875 * search.c (search_buffer, boyer_moore): Likewise.
876 * syntax.c (scan_sexps_forward): Likewise.
877 * xdisp.c (try_scrolling): Likewise.
878 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
879 (face_at_string_position): Likewise.
880 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
881 * xselect.c (x_get_window_property, receive_incremental_selection)
882 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
883 Likewise.
884 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
885
6f704c76
DN
8862010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
887
ded80a25
DN
888 * callproc.c (child_setup): Remove subprocesses conditional.
889 Remove code dealing with SET_EMACS_PRIORITY, unused.
890
49d937f4 891 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
892 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
893
894 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
895 (__do_global_dtors, __main): Use void in definition.
896 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
897 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
898 the only users from ...
899 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
900 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
901 (HAVE_VOLATILE): Remove, unused.
902
6f704c76
DN
903 Convert more function definitions to standard C.
904 * xdisp.c (window_box_edges, handle_single_display_spec)
905 (display_string): Convert definition to standard C.
906 * scroll.c (do_direct_scrolling, scrolling_1):
907 * dispnew.c (allocate_matrices_for_frame_redisplay)
908 (mirrored_line_dance):
909 * coding.c (code_convert_string):
910 * charset.c (map_charset_chars):
911 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
912 (Fregister_ccl_program, Fregister_code_conversion_map):
913 * keyboard.c (kbd_buffer_nr_stored): Likewise.
914 (head_table): Make static and const.
915
e6cfa7c3
AS
9162010-07-12 Andreas Schwab <schwab@linux-m68k.org>
917
918 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
919 (PROFILING_LDFLAGS): Set from substitution.
920 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
921 CFLAGS last.
922
892dd565
KH
9232010-07-12 Kenichi Handa <handa@m17n.org>
924
6f2cdcd1
KH
925 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
926 (shortlisp): Likewise.
927
892dd565
KH
928 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
929
930 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
931 of FONT_ENTITY_INDEX.
932 (Ffont_get): If KEY is :otf and the font-object doesn't have the
933 property, get the property value dynamically.
934 (Ffont_put): Accept font-entity and font-object too.
935 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
936 return value changed.
937 (syms_of_font): Adjusted for the above change.
938
ae96d47a
AS
9392010-07-11 Andreas Schwab <schwab@linux-m68k.org>
940
c8fc18ee
AS
941 * blockinput.h: Remove obsolete comment.
942
89887d67
AS
943 * lisp.h: Include <stddef.h>.
944 (OFFSETOF): Don't define.
945 (VECSIZE): Use offsetof instead of OFFSETOF.
946 (PSEUDOVECSIZE): Likewise.
947 * process.c (conv_sockaddr_to_lisp): Likewise.
948 * alloc.c: Don't include <stddef.h>.
949 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
950
ae96d47a
AS
951 * process.c: Remove obsolete comment.
952
635c0aa1
CY
9532010-07-11 Chong Yidong <cyd@stupidchicken.com>
954
955 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
956
a64df650
AS
9572010-07-11 Andreas Schwab <schwab@linux-m68k.org>
958
8966b757
AS
959 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
960 index, rindex.
961 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
962 * editfns.c (Fuser_full_name, Fformat): Likewise.
963 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
964 * fileio.c (Ffile_symlink_p): Likewise.
965 * filelock.c (current_lock_owner): Likewise.
966 * font.c (font_parse_name, font_parse_family_registry): Likewise.
967 * fontset.c (fontset_pattern_regexp): Likewise.
968 * lread.c (read1): Likewise.
969 * sysdep.c (init_system_name): Likewise.
970 * xfns.c (select_visual): Likewise.
971 * s/hpux10-20.h (index, rindex): Don't define.
972 * s/ms-w32.h (index): Likewise.
973 * s/usg5-4.h: Likewise.
974
cf237e27
AS
975 * callproc.c (relocate_fd): Use F_DUPFD if defined.
976
a8fe7202
AS
977 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
978 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
979 (egetenv): Likewise.
980 * doprnt.c (doprnt): Likewise.
981 * editfns.c (set_time_zone_rule, format2): Likewise.
982 * emacs.c (decode_env_path): Likewise.
983 * eval.c (signal_error, error): Likewise.
984 * insdel.c (replace_range_2): Likewise.
985 * keyboard.c (cmd_error_internal): Likewise.
986 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
987 * print.c (write_string, write_string_1, print_error_message):
988 Likewise.
989 * vm-limit.c (warn_function, memory_warnings): Likewise.
990 * xdisp.c (message1, message1_nolog, message_with_string)
991 (vmessage, message, message_nolog): Likewise.
992 * emacs.c: Remove duplicate declaration.
993 * keyboard.h: Likewise.
994 * lisp.h: Update prototypes.
995
bb8e180f
AS
996 * eval.c: Fix indentation problem.
997
83380e65
AS
998 * keyboard.c: Include "process.h"
999
a64df650
AS
1000 * eval.c: Remove obsolete noinline declaration.
1001 * fns.c: Likewise.
1002
6a8033e1
KR
10032010-07-11 Ken Raeburn <raeburn@raeburn.org>
1004
1005 * doprnt.c (doprnt): Take a va_list argument instead of count and
1006 pointer.
1007 * eval.c (error): Change to a standard-C variadic function.
1008 * xdisp.c (vmessage): Renamed from message, made static, and
1009 changed to take a va_list argument.
1010 (message): New variadic wrapper.
1011 (message_nolog): Now a variadic function, calling vmessage.
1012 * lisp.h: Include stdarg.h for va_list.
1013 (doprnt, error, message, message_nolog): Decls updated.
1014
462aa963
EZ
10152010-07-11 Eli Zaretskii <eliz@gnu.org>
1016
1017 * process.c (syms_of_process) <delete-exited-processes>: Define
1018 even if !subprocesses.
1019 (delete_exited_processes): Ditto.
1020
1021 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1022 (delete_exited_processes): Don't define.
1023
48104462
CY
10242010-07-10 Chong Yidong <cyd@stupidchicken.com>
1025
1026 * frame.c (make_frame): Initialize menu_bar_lines and
1027 tool_bar_lines members.
1028 (make_initial_frame, make_terminal_frame): Initialize
1029 menu_bar_lines using value of menu-bar-mode.
1030
1031 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1032
f388c88a
EZ
10332010-07-10 Eli Zaretskii <eliz@gnu.org>
1034
1035 * process.c: Reshuffle #include's. Condition some of the global
1036 and static variables on `subprocesses'.
1037 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1038 Leave only one implementation.
1039 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1040 (kill_buffer_processes, Flist_system_processes)
1041 (Fprocess_attributes, init_process, syms_of_process): Unify the
1042 implementations for with subprocesses and without them.
1043
723f5a07
J
10442010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1045
1046 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1047 correct size for Motif.
1048 (free_frame_menubar): Call x_set_window_size to update frame size.
1049
1050 * xfns.c (x_window): Set borderWidth to 0 for pane and
1051 EmacsFrame. Frame size calculation is wrong otherwise.
1052
2536a4b7
MA
10532010-07-09 Michael Albinus <michael.albinus@gmx.de>
1054
1055 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1056 allows to suppress errors when polling in Emacs' main loop.
1057 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1058 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1059 (Fdbus_method_error_internal, Fdbus_send_signal)
1060 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1061 (Fdbus_register_method): Use it. (Bug#6579)
1062
5842a27b
DN
10632010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1064
1065 * alloc.c: Convert DEFUNs to standard C.
1066 * buffer.c:
1067 * bytecode.c:
1068 * callint.c:
1069 * callproc.c:
1070 * casefiddle.c:
1071 * casetab.c:
1072 * category.c:
1073 * character.c:
1074 * charset.c:
1075 * chartab.c:
1076 * cmds.c:
1077 * coding.c:
1078 * composite.c:
1079 * data.c:
1080 * dbusbind.c:
1081 * dired.c:
1082 * dispnew.c:
1083 * doc.c:
1084 * dosfns.c:
1085 * editfns.c:
1086 * emacs.c:
1087 * eval.c:
1088 * fileio.c:
1089 * filelock.c:
1090 * floatfns.c:
1091 * fns.c:
1092 * font.c:
1093 * fontset.c:
1094 * frame.c:
1095 * fringe.c:
1096 * image.c:
1097 * indent.c:
1098 * insdel.c:
1099 * keyboard.c:
1100 * keymap.c:
1101 * lread.c:
1102 * macros.c:
1103 * marker.c:
1104 * menu.c:
1105 * minibuf.c:
1106 * msdos.c:
1107 * nsfns.m:
1108 * nsmenu.m:
1109 * nsselect.m:
1110 * print.c:
1111 * process.c:
1112 * search.c:
1113 * sound.c:
1114 * syntax.c:
1115 * term.c:
1116 * terminal.c:
1117 * textprop.c:
1118 * undo.c:
1119 * w16select.c:
1120 * w32console.c:
1121 * w32fns.c:
1122 * w32font.c:
1123 * w32menu.c:
1124 * w32proc.c:
1125 * w32select.c:
1126 * window.c:
1127 * xdisp.c:
1128 * xfaces.c:
1129 * xfns.c:
1130 * xmenu.c:
1131 * xselect.c:
1132 * xsettings.c:
1133 * xsmfns.c: Likewise.
1134
d568829b
EZ
11352010-07-08 Eli Zaretskii <eliz@gnu.org>
1136
1137 * process.c (kbd_is_on_hold, hold_keyboard_input)
1138 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1139
52214050
J
11402010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1141
1142 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1143 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1144 unless USE_LUCID.
1145
313d9eb2
DN
11462010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1147
a628ad9d
JB
1148 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1149 declaration.
d8825aa3 1150
295d0d8f
DN
1151 Clean up include guards.
1152 * tparam.c: Remove include guards for config.h, string.h and code
1153 that assumes #ifndef emacs.
1154 * termcap.c:
1155 * unexalpha.c:
1156 * sysdep.c:
1157 * filemode.c:
1158 * filelock.c:
1159 * bidi.c: Likewise.
1160
49d9e6b0
DN
1161 Remove prefix-args.c
1162 * prefix-args.c: Remove file.
1163 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1164 * Makefile.in (temacs${EXEEXT}): Remove references to
1165 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1166 (mostlyclean): Remove reference to prefix-args.
1167 (prefix-args): Remove.
1168
313d9eb2
DN
1169 Simplify cstart_of_data, start_of_code and related code.
1170 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1171 (start_of_data): Merge into start_of_data function.
1172 * sysdep.c (start_of_text): Remove. Move simplified versions of
1173 it in the only users: unexaix.c and unexec.c.
1174 (read_input_waiting): Remove local declaration of quit_char.
1175 (start, etext): Remove declarations.
1176 (start_of_data): Merge with the version in mem-limits.h and move
1177 to vm-limits.c.
1178 * vm-limit.c (start_of_data): Merged and simplified version of the
1179 code formerly in mem-limits.h and sysdep.c.
1180 * unexec.c (start): New declaration, moved from sysdep.c.
1181 (start_of_text): Simplified version of the code formerly in sysdep.c.
1182 * unexaix.c (start_of_text): Simplified version of the code
1183 formerly in sysdep.c.
1184 * m/alpha.h (HAVE_TEXT_START): Remove.
1185 (TEXT_START): Move ...
1186 * unexalpha.c (TEXT_START): ... here.
1187 * s/hpux10-20.h (TEXT_START): Remove.
1188 * s/darwin.h (TEXT_START):
1189 * m/mips.h (TEXT_START):
1190 * m/macppc.h (HAVE_TEXT_START):
1191 * m/m68k.h (TEXT_START):
1192 * m/iris4d.h (TEXT_START):
1193 * m/intel386.h (TEXT_START):
1194 * m/ibmrs6000.h (TEXT_START):
1195 * m/ia64.h (HAVE_TEXT_START):
1196 * s/msdos.h (TEXT_START): Likewise.
1197
72af86bd
AS
11982010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1199
1200 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1201 (overrun_check_free, xstrdup, allocate_string)
1202 (allocate_string_data, compact_small_strings, Fmake_string)
1203 (make_unibyte_string, make_multibyte_string)
1204 (make_string_from_bytes, make_specified_string, make_float)
1205 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1206 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1207 memcpy, memmove, memset, memcmp.
1208 * atimer.c (start_atimer, set_alarm): Likewise.
1209 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1210 (mmap_realloc, init_buffer_once): Likewise.
1211 * callint.c (Fcall_interactively): Likewise.
1212 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1213 (getenv_internal_1): Likewise.
1214 * casefiddle.c (casify_object): Likewise.
1215 * ccl.c (ccl_driver): Likewise.
1216 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1217 * charset.c (load_charset_map_from_file)
1218 (load_charset_map_from_file, load_charset_map_from_vector)
1219 (Fdefine_charset_internal): Likewise.
1220 * cm.c (Wcm_clear): Likewise.
1221 * coding.c (decode_eol, decode_coding_object)
1222 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1223 * data.c (Faset): Likewise.
1224 * dired.c (directory_files_internal, file_name_completion_stat):
1225 Likewise.
1226 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1227 (clear_glyph_row, copy_row_except_pointers)
1228 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1229 (save_current_matrix, restore_current_matrix)
1230 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1231 (mirror_line_dance, scrolling_window): Likewise.
1232 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1233 Likewise.
1234 * doprnt.c (doprnt): Likewise.
1235 * editfns.c (Fuser_full_name, make_buffer_string_both)
1236 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1237 * emacs.c (sort_args): Likewise.
1238 * eval.c (Fapply, Ffuncall): Likewise.
1239 * fileio.c (Ffile_name_directory, make_temp_name)
1240 (Fexpand_file_name, search_embedded_absfilename)
1241 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1242 (auto_save_error): Likewise.
1243 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1244 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1245 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1246 (Fmake_hash_table): Likewise.
1247 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1248 * ftfont.c (ftfont_text_extents): Likewise.
1249 * getloadavg.c (getloadavg): Likewise.
1250 * image.c (define_image_type, make_image, make_image_cache)
1251 (x_create_x_image_and_pixmap, xbm_image_p)
1252 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1253 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1254 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1255 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1256 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1257 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1258 Likewise.
1259 * indent.c (scan_for_column, compute_motion): Likewise.
1260 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1261 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1262 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1263 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1264 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1265 (store_user_signal_events, menu_bar_items, tool_bar_items)
1266 (process_tool_bar_item, append_tool_bar_item)
1267 (read_char_minibuf_menu_prompt, read_key_sequence)
1268 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1269 Likewise.
1270 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1271 Likewise.
1272 * lisp.h (STRING_COPYIN): Likewise.
1273 * lread.c (Fload, read1, oblookup): Likewise.
1274 * msdos.c (Frecent_doskeys): Likewise.
1275 * nsfns.m (Fx_create_frame): Likewise.
1276 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1277 Likewise.
1278 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1279 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1280 Likewise.
1281 * nsmenu.m (ns_update_menubar): Likewise.
1282 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1283 * print.c (print_unwind, printchar, strout, print_string)
1284 (print_error_message): Likewise.
1285 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1286 (Fmake_network_process, Fnetwork_interface_list)
1287 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1288 (init_process): Likewise.
1289 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1290 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1291 Likewise.
1292 * scroll.c (do_scrolling, do_direct_scrolling)
1293 (scrolling_max_lines_saved): Likewise.
1294 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1295 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1296 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1297 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1298 (emacs_set_tty): Likewise.
1299 * term.c (encode_terminal_code, calculate_costs)
1300 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1301 Likewise.
1302 * termcap.c (tgetst1, gobble_line): Likewise.
1303 * termhooks.h (EVENT_INIT): Likewise.
1304 * tparam.c (tparam1): Likewise.
1305 * unexalpha.c (unexec): Likewise.
1306 * unexec.c (write_segment): Likewise.
1307 * unexmacosx.c (unexec_write_zero): Likewise.
1308 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1309 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1310 * w32font.c (w32font_list_family, w32font_text_extents)
1311 (w32font_list_internal, w32font_match_internal)
1312 (w32font_open_internal, compute_metrics, Fx_select_font):
1313 Likewise.
1314 * w32menu.c (set_frame_menubar, add_menu_item)
1315 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1316 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1317 * w32uniscribe.c (uniscribe_list_family): Likewise.
1318 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1319 * window.c (make_window, replace_window, set_window_buffer)
1320 (Fsplit_window): Likewise.
1321 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1322 (add_to_log, message3, x_consider_frame_title)
1323 (append_space_for_newline, extend_face_to_end_of_line)
1324 (decode_mode_spec_coding, init_glyph_string): Likewise.
1325 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1326 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1327 (face_attr_equal_p, make_realized_face, make_face_cache)
1328 (free_realized_faces, lookup_named_face, smaller_face)
1329 (face_with_height, lookup_derived_face)
1330 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1331 (Finternal_set_font_selection_order, realize_default_face)
1332 (compute_char_face, face_at_buffer_position)
1333 (face_for_overlay_string, face_at_string_position, merge_faces):
1334 Likewise.
1335 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1336 (Fx_window_property, x_create_tip_frame)
1337 (Fx_backspace_delete_keys_p): Likewise.
1338 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1339 (xfont_text_extents): Likewise.
1340 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1341 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1342 * xselect.c (x_queue_event, x_get_window_property)
1343 (receive_incremental_selection): Likewise.
1344 * xsmfns.c (x_session_check_input): Likewise.
1345 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1346 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1347 Likewise.
1348 * character.h (BCOPY_SHORT): Removed.
1349 * config.in: Regenerate.
1350 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1351 * emacs.c (main) [PROFILING]: Don't declare
1352 dump_opcode_frequencies.
1353 * lisp.h (safe_bcopy): Remove declaration.
1354 (memset) [!HAVE_MEMSET]: Declare.
1355 (memcpy) [!HAVE_MEMCPY]: Likewise.
1356 (memmove) [!HAVE_MEMMOVE]: Likewise.
1357 (memcmp) [!HAVE_MEMCMP]: Likewise.
1358 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1359 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1360 Don't define.
1361 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1362 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1363 (BCOPY_DOWNWARD_SAFE): Don't define.
1364 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1365 (memcpy) [!HAVE_MEMCPY]: Define.
1366 (memmove) [!HAVE_MEMMOVE]: Define.
1367 (memcmp) [!HAVE_MEMCMP]: Define.
1368
cb768704
J
13692010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1370
1371 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1372 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1373 New functions.
cb768704
J
1374 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1375 select on empty input mask.
1376 (init_process): Initialize kbd_is_on_hold to 0.
1377
1378 * process.h (hold_keyboard_input, unhold_keyboard_input)
1379 (kbd_on_hold_p): Declare.
1380
1381 * keyboard.c (input_available_signal): Declare.
1382 (kbd_buffer_nr_stored): New function.
1383 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1384 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1385 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1386 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1387 (tty_read_avail_input): If input is on hold, return.
1388 Don't read more that free slots in kbd_buffer (Bug#6571).
1389
3a8ce822
EZ
13902010-07-07 Eli Zaretskii <eliz@gnu.org>
1391
1392 * msdos.h:
1393 * msdos.c:
1394 * dosfns.c:
1395 * w16select.c: Convert function definitions to ANSI C.
1396
a628ad9d
JB
1397 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1398 Remove unused prototypes.
3a8ce822 1399
cf84bb53
JB
14002010-07-07 Juanma Barranquero <lekktu@gmail.com>
1401
1402 * coding.c, sysdep.c: Convert some more functions to standard C.
1403
1a4990fb
JB
14042010-07-07 Juanma Barranquero <lekktu@gmail.com>
1405
1406 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1407 (encode_coding_object): Use SPECPDL_INDEX.
1408 (syms_of_coding): Use DOS_NT.
1409
c0f2f16b
DN
14102010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1411
48fb6855
DN
1412 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1413
c0f2f16b
DN
1414 Make the function member of Lisp_Subr use standard C prototypes.
1415 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1416 (DECL_ALIGN): Add a cast for the function.
1417 * eval.c (Feval, Ffuncall): Use the proper type for each type
1418 function call.
1419
67aecef9
CY
14202010-07-06 Chong Yidong <cyd@stupidchicken.com>
1421
1422 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1423 fringe face id, so face-remapping-alist works (Bug#6091).
1424
b56ceb92
JB
14252010-07-06 Juanma Barranquero <lekktu@gmail.com>
1426
1427 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1428 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1429 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1430
7af07b96
AS
14312010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1432
1433 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1434 * lisp.h: Declare x_get_keysym_name.
1435 * keyboard.c (modify_event_symbol): Don't declare
1436 x_get_keysym_name here.
1437
69e24e34
DN
14382010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1439
1440 * ecrt0.c: Revert conversion to standard C.
1441
d3da34e0 14422010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1443
1444 * vm-limit.c (memory_warnings):
1445 * keyboard.c (modify_event_symbol):
1446 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1447 (round2, emacs_rint):
1448 * process.c (send_process, old_sigpipe): Convert function
1449 definitions and declarations to standard C.
1450
14512010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1452
1453 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1454 * xdisp.c: Convert function definitions to standard C.
1455
1456 * cm.c (cmputc): Arg C is now int, not char.
1457 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1458
00be444c
J
14592010-07-05 James Cloos <cloos@jhcloos.com>
1460
1461 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1462
1463 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1464 _NET_WM_ICON_NAME atoms.
1465
1466 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1467 and _NET_WM_ICON_NAME properties, too, matching what is
1468 done in the Gtk+ case.
1469
e4c8d29a
J
14702010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1471
ff919460
J
1472 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1473
e4c8d29a
J
1474 * xsmfns.c (SSDATA): New macro.
1475 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1476 passed to strlen/strcpy/strcat.
1477 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1478 7:th arg to XChangeProperty to (unsigned char *)
1479
1480 * xsettings.c (something_changedCB, parse_settings)
1481 (apply_xft_settings): Reformat prototype.
1482 (something_changedCB, init_gconf): Remove unused variable i.
1483 (read_settings): Remove unused variable long_len.
1484
1485 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1486 (xg_get_image_for_pixmap, create_dialog)
1487 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1488 (menuitem_highlight_callback, make_menu_item)
1489 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1490 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1491 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1492 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1493 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1494 (xg_tool_bar_item_expose_callback): Reformat prototype.
1495 (xg_update_menubar): GList *group => GSList *group.
1496 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1497 before use.
1498 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1499 to GTK_IMAGE (wimage).
1500
dd4c5104
DN
15012010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1502
898b4c5c
DN
1503 * atimer.c: Use "" instead of <> for local includes for
1504 consistency with the rest of the code.
1505
dd4c5104
DN
1506 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1507 * xrdb.c (get_system_name):
1508 * window.c (shrink_windows):
1509 * syntax.c (forw_comment):
1510 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1511 (ins_del_costs):
1512 * mem-limits.h (start_of_data):
1513 * lread.c (readevalloop):
1514 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1515 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1516 * frame.c (x_get_focus_frame):
1517 * floatfns.c (fmod_float):
1518 * fileio.c (choose_write_coding_system):
1519 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1520 (malloc_initialize_hook, sort_args, synchronize_locale):
1521 * doprnt.c (doprnt):
1522 * dired.c (compile_pattern):
1523 * data.c (fmod_float):
1524 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1525 (map_char_table_for_charset):
1526 * charset.c (define_charset_internal):
1527 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1528 to standard C.
1529
9a39b306 15302010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1531 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1532
1533 * lread.c (read1): Fix up last change to not mess up `c'.
1534
e6cb2cbb
JB
15352010-07-04 Juanma Barranquero <lekktu@gmail.com>
1536
1537 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1538
438105ed
JB
15392010-07-04 Juanma Barranquero <lekktu@gmail.com>
1540
1541 Fix prototypes.
1542
e5447b22 1543 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1544 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1545 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1546 arg, as required by internal_condition_case_1.
dcc7404b 1547 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1548 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1549 (analyse_first): Fix "const const".
e5447b22 1550 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1551 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1552 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1553
971de7fb
DN
15542010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1555
1556 * alloc.c: Convert function definitions to standard C.
1557 * atimer.c:
1558 * bidi.c:
1559 * bytecode.c:
1560 * callint.c:
1561 * callproc.c:
1562 * casefiddle.c:
1563 * casetab.c:
1564 * category.c:
1565 * ccl.c:
1566 * character.c:
1567 * charset.c:
1568 * chartab.c:
1569 * cmds.c:
1570 * coding.c:
1571 * composite.c:
1572 * data.c:
1573 * dbusbind.c:
1574 * dired.c:
1575 * dispnew.c:
1576 * doc.c:
1577 * doprnt.c:
1578 * ecrt0.c:
1579 * editfns.c:
1580 * fileio.c:
1581 * filelock.c:
1582 * filemode.c:
1583 * fns.c:
1584 * font.c:
1585 * fontset.c:
1586 * frame.c:
1587 * fringe.c:
1588 * ftfont.c:
1589 * ftxfont.c:
1590 * gtkutil.c:
1591 * indent.c:
1592 * insdel.c:
1593 * intervals.c:
1594 * keymap.c:
1595 * lread.c:
1596 * macros.c:
1597 * marker.c:
1598 * md5.c:
1599 * menu.c:
1600 * minibuf.c:
1601 * prefix-args.c:
1602 * print.c:
1603 * ralloc.c:
1604 * regex.c:
1605 * region-cache.c:
1606 * scroll.c:
1607 * search.c:
1608 * sound.c:
1609 * strftime.c:
1610 * syntax.c:
1611 * sysdep.c:
1612 * termcap.c:
1613 * terminal.c:
1614 * terminfo.c:
1615 * textprop.c:
1616 * tparam.c:
1617 * undo.c:
1618 * unexelf.c:
1619 * window.c:
1620 * xfaces.c:
1621 * xfns.c:
1622 * xfont.c:
1623 * xftfont.c:
1624 * xgselect.c:
1625 * xmenu.c:
1626 * xrdb.c:
1627 * xselect.c:
1628 * xsettings.c:
1629 * xsmfns.c:
1630 * xterm.c: Likewise.
1631
ae492bec
EZ
16322010-07-03 Eli Zaretskii <eliz@gnu.org>
1633
76ea4cc9
EZ
1634 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1635 frames other than the initial one. Fix reversal of colors when
1636 `reverse' is specified in the frame parameters. Call
1637 update_face_from_frame_parameter instead of
1638 internal-set-lisp-face-attribute. Initialize screen colors from
1639 initial_screen_colors[] when f->default_face_done_p is zero,
1640 instead of depending on being called with default-frame-alist as
1641 the alist argument.
1642
1643 * xfaces.c (update_face_from_frame_parameter): Move out of
1644 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1645 with HAVE_WINDOW_SYSTEM.
1646
1e6255ae
EZ
1647 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1648 to menu-bar-mode, if not set in the frame parameters or in
1649 default-frame-alist.
1650
ae492bec
EZ
1651 * w32console.c (sys_tputs): Adjust argument list to prototype in
1652 term.c.
1653
3a35a84c
JB
16542010-07-03 Juanma Barranquero <lekktu@gmail.com>
1655
1656 * lisp.h (memory_warnings): Fix prototype.
1657
1658 * cm.h (evalcost): Fix prototype.
1659
1660 * cm.c (evalcost): Fix arg type.
1661
c532d349
DN
16622010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1663
1664 * term.c (term_clear_mouse_face, Fidentity):
1665 * syssignal.h (signal_handler_t):
1666 * lisp.h (memory_warnings):
1667 * coding.h (preferred_coding_system):
1668 * cm.h (evalcost):
1669 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1670
c0b36d46
EZ
16712010-07-02 Eli Zaretskii <eliz@gnu.org>
1672
1673 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1674 from prototypes.
1675
1676 * msdos.h (load_pixmap): Don't define away.
1677
383e0970
J
16782010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1679
f57e2426
J
1680 * lisp.h:
1681 * atimer.h: Remove define for P_.
1682
1683 * alloc.c: Remove __P and P_ from .c and .m files.
1684 * atimer.c:
1685 * buffer.c:
1686 * callint.c:
1687 * category.c:
1688 * charset.c:
1689 * chartab.c:
1690 * cm.c:
1691 * coding.c:
1692 * composite.c:
1693 * data.c:
1694 * dired.c:
1695 * dispnew.c:
1696 * doc.c:
1697 * editfns.c:
1698 * emacs.c:
1699 * eval.c:
1700 * fileio.c:
1701 * filelock.c:
1702 * fns.c:
1703 * font.c:
1704 * fontset.c:
1705 * frame.c:
1706 * ftfont.c:
1707 * ftxfont.c:
1708 * gmalloc.c:
1709 * gtkutil.c:
1710 * image.c:
1711 * indent.c:
1712 * intervals.c:
1713 * keyboard.c:
1714 * keymap.c:
1715 * lread.c:
1716 * marker.c:
1717 * menu.c:
1718 * minibuf.c:
1719 * print.c:
1720 * process.c:
1721 * scroll.c:
1722 * search.c:
1723 * sound.c:
1724 * strftime.c:
1725 * syntax.c:
1726 * sysdep.c:
1727 * term.c:
1728 * terminal.c:
1729 * textprop.c:
1730 * unexalpha.c:
1731 * w32console.c:
1732 * w32fns.c:
1733 * w32font.c:
1734 * w32menu.c:
1735 * w32term.c:
1736 * w32uniscribe.c:
1737 * window.c:
1738 * xdisp.c:
1739 * xfaces.c:
1740 * xfns.c:
1741 * xfont.c:
1742 * xftfont.c:
1743 * xmenu.c:
1744 * xselect.c:
1745 * xterm.c: Likewise.
1746
383e0970 1747 Remove P_ and __P macros.
f57e2426
J
1748 * atimer.h: Remove P_ and __P macros.
1749 * buffer.h:
383e0970
J
1750 * category.h:
1751 * ccl.h:
1752 * character.h:
1753 * charset.h:
1754 * cm.h:
1755 * coding.h:
1756 * composite.h:
1757 * dispextern.h:
1758 * disptab.h:
9e892c8d 1759 * dosfns.h:
383e0970
J
1760 * font.h:
1761 * fontset.h:
1762 * frame.h:
1763 * gtkutil.h:
1764 * indent.h:
1765 * intervals.h:
1766 * keyboard.h:
1767 * keymap.h:
1768 * lisp.h:
1769 * macros.h:
1770 * md5.h:
1771 * menu.h:
1772 * msdos.h:
1773 * nsterm.h:
1774 * puresize.h:
1775 * region-cache.h:
1776 * syntax.h:
1777 * syssignal.h:
1778 * systime.h:
1779 * termhooks.h:
9e892c8d 1780 * w32font.h:
383e0970
J
1781 * w32term.h:
1782 * widget.h:
1783 * window.h:
1784 * xgselect.h:
1785 * xsettings.h:
1786 * xterm.h: Likewise.
1787
98601119
DN
17882010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1789
d9170db5
DN
1790 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1791
98601119
DN
1792 Cleanup old code.
1793 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1794 * syssignal.h: Remove code for Lynx, not supported anymore.
1795 * vm-limit.c: Remove unused code the depends on emacs not being
1796 defined and NO_LIM_DATA being defined.
1797 * mem-limits.h: Remove dead code.
1798
1f984e12
J
17992010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1800
c49d071a
J
1801 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1802
9d5405ec
J
1803 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1804 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1805
7a18115b
J
1806 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1807 parameters, they are already absolute.
1808
a628ad9d
JB
1809 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1810 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1811
a628ad9d 1812 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1813
a628ad9d
JB
1814 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1815 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1816
a628ad9d
JB
1817 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1818 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1819
c1ef4455
CY
18202010-06-30 Chong Yidong <cyd@stupidchicken.com>
1821
1822 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1823 check default-frame-alist.
1824
ce8f5a9a
AS
18252010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1826
1827 * process.c (create_process): Avoid using invalid file descriptors.
1828
1829 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1830
bf935339
J
18312010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1832
1833 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1834 Improve documentation. Return font regardless of use_system_font.
1835 (syms_of_xsettings): Improve documentation for font-use-system-font.
1836
7c33a057
CY
18372010-07-10 Chong Yidong <cyd@stupidchicken.com>
1838
2ec1b5ee
CY
1839 * xfaces.c (realize_face): Garbage the frame if a face is removed
1840 (Bug#6593).
1841
18422010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1843
1844 * keyboard.c: Remove duplicate <setjmp.h>.
1845 (read_key_sequence): Remove volatile qualifiers.
1846
18472010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1848
1849 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1850 (struct glyph_row): New members left_fringe_offset and
1851 right_fringe_offset.
1852
1853 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1854 specially.
1855 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1856 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1857
1858 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1859 Take account of bitmap offset.
2ec1b5ee
CY
1860 (draw_window_fringes): Take account of window vscroll.
1861 (update_window_fringes): Likewise. Extend top-aligned top indicator
1862 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1863 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1864 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1865
18662010-07-04 Juanma Barranquero <lekktu@gmail.com>
1867
1868 * w32fns.c (Qtooltip): Declare.
1869 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1870
18712010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1872
1873 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1874 grab on just Press (Bug#6499).
1875
18762010-07-02 Chong Yidong <cyd@stupidchicken.com>
1877
1878 * frame.c (Qtooltip): New var.
1879 (delete_frame): Use it. Fix faulty if statement. Don't update
1880 mode line for tooltip frames. Suggested by Martin Rudalics.
1881
1882 * xfns.c (x_create_tip_frame):
1883 * w32fns.c (x_create_tip_frame): Use it.
1884
18852010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1886
1887 * xftfont.c (xftfont_open): Check font width one by one also when
1888 spacing is dual.
1889
1890 * ftfont.c (ftfont_open): Ditto.
1891
6259c2ec
GM
18922010-06-30 Glenn Morris <rgm@gnu.org>
1893
a46007e9
GM
1894 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1895
6259c2ec
GM
1896 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1897
1898 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1899 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1900 * s/darwin.h (SYSTEM_MALLOC):
1901 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1902
5d1d3d04
J
19032010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1904
1905 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1906 (ns_get_screen): Don't assign integer to f.
1907 (Fx_display_color_cells): Declarations before statements.
1908
e547b051
J
19092010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1910
5fc8e5bc
J
1911 * xfns.c (x_default_font_parameter): Remove got_from_system
1912 (Bug#6526).
1913
e547b051
J
1914 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1915 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1916 defines based on what configure finds.
1917
1918 * xterm.c (XTflash): Use gtk_widget_get_window.
1919 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1920 gtk_adjustment_get_page_size.
1921 (handle_one_xevent): Use gtk_widget_get_mapped.
1922 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1923 messages.
1924
1925 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1926
1927 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1928 HAVE_GTK_FILE_SELECTION_NEW.
1929
1930 * gtkutil.c (xg_display_open, xg_display_close): Remove
1931 HAVE_GTK_MULTIDISPLAY, it is always defined.
1932 (xg_display_open): Return type is void.
1933 (gtk_widget_set_has_window)
1934 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1935 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1936 (gtk_adjustment_set_page_increment)
1937 (gtk_adjustment_get_step_increment): #define these if not found
1938 by configure.
1939 (remove_submenu): New define based on Gtk+ version.
1940 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1941 gtk_widget_get_window.
1942 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1943 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1944 (create_dialog): Use gtk_dialog_get_action_area and
1945 gtk_dialog_get_content_area.
1946 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1947 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1948 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1949 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1950 g_object_ref and g_object_unref.
1951 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1952 gtk_widget_get_sensitive.
1953 (xg_update_submenu): Use remove_submenu.
1954 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1955 properties instead to get old x and y position.
1956 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1957 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1958 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1959 (xg_get_tool_bar_widgets): New function.
1960 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1961 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1962 (toolbar_set_orientation): New #define based on if configure
1963 finds gtk_orientable_set_orientation.
1964 (xg_create_tool_bar): Call toolbar_set_orientation.
1965 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1966 instead of gtk_box_pack_start_defaults.
1967
b9229673
CY
19682010-06-28 Chong Yidong <cyd@stupidchicken.com>
1969
1970 * cmds.c (Fdelete_backward_char): Move into Lisp.
1971
bbc803b0
DN
19722010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1973
1974 * s/freebsd.h (BSD4_2): Remove redundant definition.
1975 bsd-common.h defines it already.
1976
6431f2e6
CY
19772010-06-27 Chong Yidong <cyd@stupidchicken.com>
1978
1979 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1980 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1981 tool-bar-mode, which are now set using these X resources at
1982 startup, to determine the defaults (Bug#2249).
1983
1984 * w32fns.c (Fx_create_frame):
1985 * nsfns.m (Fx_create_frame): Likewise.
1986
1987 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1988
8c079ebb
JB
19892010-06-24 Juanma Barranquero <lekktu@gmail.com>
1990
1991 * gtkutil.c (xg_update_scrollbar_pos):
1992 Avoid C99 mid-block variable declaration.
1993
e9b7ab96
JD
19942010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1995
bc869eca
JD
1996 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1997
2b7e356a 1998 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1999
2000 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2001 if height is less than scroll bar min size.
2002 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2003
e9b7ab96
JD
2004 * xfns.c (x_default_font_parameter): Try to open font from system
2005 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2006
a628ad9d 20072010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2008
2009 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2010
70c4cfbb
EZ
20112010-06-20 Eli Zaretskii <eliz@gnu.org>
2012
2013 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2014 most-positive-fixnum, be extra accurate when scrolling window
2015 start, to avoid missing the cursor line.
2016
ad5a12b5
EZ
20172010-06-19 Eli Zaretskii <eliz@gnu.org>
2018
2019 * xdisp.c (try_scrolling): Compute the limit for searching point
2020 in forward scroll from scroll_max, instead of an arbitrary limit
2021 of 10 screen lines. See
2022 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2023 and
2024 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2025 for details.
2026
2a64315a 20272010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2028
2029 * editfns.c (Fbyte_to_string): Pacify compiler.
2030
288cf4e9
SM
20312010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2032
2033 * lread.c (read1): Phase out old-style backquotes a bit more.
2034
6e6e5760
EZ
20352010-06-12 Eli Zaretskii <eliz@gnu.org>
2036
cbc4fd20
EZ
2037 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2038 bidimirror.h.
2039
2040 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2041
317fbf33
EZ
2042 * bidi.c (bidi_initialize): Remove explicit initialization of
2043 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2044 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2045 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2046
2047 * biditype.h: New file.
2048
cbc4fd20
EZ
2049 * bidimirror.h: New file.
2050
6e6e5760
EZ
2051 * window.c (syms_of_window): Doc fix (bug#6409).
2052
4176cba2
RF
20532010-06-12 Romain Francoise <romain@orebokech.com>
2054
2055 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2056 ediff-hook.
2057
cb4bfcb5
GM
20582010-06-10 Glenn Morris <rgm@gnu.org>
2059
64c60c2f
GM
2060 * editfns.c (Fbyte_to_string): Pacify compiler.
2061
cb4bfcb5
GM
2062 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2063
2ec1b5ee
CY
20642010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2065
2066 * alloc.c (Fmake_byte_code): Don't access undefined argument
2067 (Bug#6517).
2068
20692010-06-25 Chong Yidong <cyd@stupidchicken.com>
2070
2071 * xdisp.c (next_element_from_image): Ensure that after-strings are
2072 read the next time we hit handle_stop (Bug#1336).
2073
20742010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2075
2076 * lread.c (read1): Signal error if #s is not followed by paren.
2077
20782010-06-19 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2081
2082 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2083
20842010-06-15 Glenn Morris <rgm@gnu.org>
2085
2086 * editfns.c (Fbyte_to_string): Pacify compiler.
2087
e454a4a3
SM
20882010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2089
2090 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2091 Check `object's type before accessing its guts.
2092
c1b1acc2
DN
20932010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2094
2095 * s/usg5-4.h: Fix previous change.
2096 Suggested by Lawrence Mitchell <wence@gmx.li>
2097
657d4c0b
AS
20982010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2099
2100 * minibuf.c (Fall_completions): Add more checks.
2101
9b27fd9f
JB
21022010-06-08 Juanma Barranquero <lekktu@gmail.com>
2103
2104 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2105
a99ebb40
DN
21062010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2107
d7c5d87d
DN
2108 * lread.c (X_OK): Remove, unused.
2109
0263a941
DN
2110 * dispnew.c: Remove obsolete comment.
2111
a99ebb40
DN
2112 Remove INCLUDED_FCNTL.
2113 * xterm.c (INCLUDED_FCNTL):
2114 * callproc.c (INCLUDED_FCNTL):
2115 * alloc.c (INCLUDED_FCNTL):
2116 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2117 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2118
13b5221f
MR
21192010-06-07 Martin Rudalics <rudalics@gmx.at>
2120
2121 * window.c (Fselect_window): Move `record_buffer' up to the
2122 beginning of this function, so the buffer gets recorded
2123 even if the selected window does not change.
2124 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2125
5220357f
JB
21262010-06-07 Juanma Barranquero <lekktu@gmail.com>
2127
2128 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2129 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2130
3085237c
DN
21312010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2132
2133 Remove BSTRING related code, all platforms define it.
2134 * s/usg5-4.h (BSTRING): Remove definition.
2135 * s/template.h (BSTRING):
2136 * s/msdos.h (BSTRING):
2137 * s/ms-w32.h (BSTRING):
2138 * s/hpux10-20.h (BSTRING):
2139 * s/gnu-linux.h (BSTRING):
2140 * s/darwin.h (BSTRING):
2141 * s/cygwin.h (BSTRING):
2142 * s/bsd-common.h (BSTRING):
2143 * s/aix4-2.h (BSTRING): Likewise.
2144 * sysdep.c: Remove code depending on BSTRING not being defined.
2145
409f2919
JB
21462010-06-05 Juanma Barranquero <lekktu@gmail.com>
2147
2148 Remove obsolete macro BASE_LEADING_CODE_P.
2149 * character.h (BASE_LEADING_CODE_P): Remove.
2150 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2151 * buffer.c (Fset_buffer_multibyte):
2152 * indent.c (scan_for_column, compute_motion):
2153 * insdel.c (count_combining_before, count_combining_after):
2154 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2155
087fc47a
JB
21562010-06-04 Juanma Barranquero <lekktu@gmail.com>
2157
2158 Turn `directory-sep-char' into a noop.
2159
2160 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2161 (DIRECTORY_SEP): Define unconditionally.
2162
2163 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2164
2165 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2166 call dostounix_filename directly.
2167
2168 * fileio.c (CORRECT_DIR_SEPS): Remove.
2169 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2170 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2171 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2172 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2173
2174 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2175 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2176
0eb7675e
AS
21772010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2178
a628ad9d
JB
2179 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2180 (Bug#6346)
0eb7675e 2181
78edd3b7
JB
21822010-06-03 Juanma Barranquero <lekktu@gmail.com>
2183
2184 * ccl.c (Fccl_program_p): Fix typo in docstring.
2185
eb697db5
DN
21862010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2187
2188 Move UNEXEC definition to autoconf.
2189 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2190 * s/sol2-10.h (UNEXEC):
2191 * s/irix6-5.h (UNEXEC):
2192 * s/hpux10-20.h (UNEXEC):
2193 * s/gnu-linux.h (UNEXEC):
2194 * s/darwin.h (UNEXEC):
2195 * s/cygwin.h (UNEXEC):
2196 * s/bsd-common.h (UNEXEC):
2197 * s/aix4-2.h (UNEXEC):
2198 * m/alpha.h (UNEXEC): Likewise.
2199 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2200
aa3830c4
JB
22012010-06-03 Juanma Barranquero <lekktu@gmail.com>
2202
2203 Remove obsolete pre-unicode2 macros.
2204 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2205 * composite.c (composition_reseat_it):
2206 * data.c (Faset):
2207 * fns.c (Ffillarray):
2208 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2209 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2210
d234d13e
JL
22112010-06-03 Juri Linkov <juri@jurta.org>
2212
2213 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2214 (Fswitch_to_buffer): Remove unused variable `err'.
2215
0d4bcf4d
GM
22162010-06-03 Glenn Morris <rgm@gnu.org>
2217
e23dc1e2
GM
2218 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2219
05b09564
GM
2220 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2221 now that AH_BOTTOM does it.
2222
824e2978
GM
2223 * m/hp800.h (HAVE_ALLOCA):
2224 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2225
0d4bcf4d
GM
2226 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2227 Remove NOT_C_CODE tests, it is always true now.
2228
c55d2abf
DN
22292010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2230
08a494a3
DN
2231 Fix config.h includes.
2232 * xsettings.c:
2233 * xgselect.c:
2234 * nsterm.m:
2235 * nsselect.m:
2236 * nsimage.m:
2237 * nsfont.m:
2238 * nsfns.m:
2239 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2240 other files do.
2241
75934b1d
DN
2242 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2243
9f32a766
DN
2244 * s/sol2-6.h: Remove obsolete comments.
2245
c55d2abf
DN
2246 Remove unnecessary alloca.h includes.
2247 * keymap.c: Do not include alloca.h, config.h does that.
2248 * sysdep.c: Likewise. Do not define fwrite, not used.
2249
06ac62b4
SM
22502010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2251
2252 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2253 the HAVE_TERMIO where it belongs (bug#6149).
2254
1ab8293c
SM
22552010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2256
2257 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2258 of bug#6305).
2259
6dcfd253
EZ
22602010-05-30 Eli Zaretskii <eliz@gnu.org>
2261
2262 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2263 state is always cached (bug#6306).
2264
6d26bbb2
EZ
22652010-05-29 Eli Zaretskii <eliz@gnu.org>
2266
06fa4a23
EZ
2267 Fix cursor motion in bidi-reordered continued lines.
2268 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2269 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2270 over continuation lines in bidi-reordered buffers. Return
2271 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2272 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2273
f5783df3
MA
22742010-05-28 Michael Albinus <michael.albinus@gmx.de>
2275
2276 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2277
7d56b2dd
KH
22782010-05-28 Kenichi Handa <handa@m17n.org>
2279
2280 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2281 Don't sheck SPEC if it is nil.
2282 (font_list_entities): Call font_delete_unmatched if
b925d231 2283 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2284
e58d4ff7
GM
22852010-05-28 Glenn Morris <rgm@gnu.org>
2286
2287 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2288
f1a5d776
CY
22892010-05-27 Chong Yidong <cyd@stupidchicken.com>
2290
2291 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2292 whether to trash.
2293 (internal_delete_file, Frename_file): Callers changed.
2294 (delete_by_moving_to_trash): Doc fix.
2295 (Fdelete_directory_internal): Don't move to trash.
2296
2297 * callproc.c (delete_temp_file):
2298 * buffer.c (Fkill_buffer): Callers changed.
2299
2300 * lisp.h: Update prototype.
2301
f44a59e6
CY
23022010-05-27 Chong Yidong <cyd@stupidchicken.com>
2303
2304 * xdisp.c (redisplay_window): After redisplay, check if point is
2305 still valid before setting it (Bug#6177).
2306
81ac4f35
GM
23072010-05-27 Glenn Morris <rgm@gnu.org>
2308
2309 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2310 Convert comments to Makefile format.
2311
2312 * Makefile.in (bootstrap-clean): No more Makefile.c.
2313
ccd89fb3
GM
23142010-05-26 Glenn Morris <rgm@gnu.org>
2315
90278cb6
GM
2316 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2317 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2318
ccd89fb3
GM
2319 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2320 Remove.
2321 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2322
b7050583
KH
23232010-05-26 Kenichi Handa <handa@m17n.org>
2324
2325 * composite.c (composition_compute_stop_pos): Fix condition for
2326 backward scanning.
2327
e5458003
GM
23282010-05-25 Glenn Morris <rgm@gnu.org>
2329
c345fe90
GM
2330 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2331 Move before TEMACS_LDFLAGS.
2332 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2333 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2334
2e0689ab
GM
2335 * Makefile.in (NOT_C_CODE): No longer define.
2336 (config.h): No longer include.
2337
8009a5e8
GM
2338 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2339 variables it may reference.
2340
e5458003
GM
2341 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2342 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2343
10f72a37
KH
23442010-05-25 Kenichi Handa <handa@m17n.org>
2345
2346 * dispextern.h (struct composition_it): New members rule_idx and
2347 charpos.
2348
2349 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2350 that the character positions of IT point the last character of the
2351 current grapheme cluster.
2352 (next_element_from_composition): Don't change character positions
2353 of IT.
2354 (append_composite_glyph): Set glyph->charpos to
2355 it->cmp_it.charpos.
2356
2357 * composite.c (autocmp_chars): Change the first argument to RULE,
2358 and try composition with RULE only.
2359 (composition_compute_stop_pos): Record the index number of the
2360 composition rule in CMP_IT->rule_idx.
2361 (composition_reseat_it): Call autocmp_chars repeatedly until the
2362 correct rule of the composition is found.
2363 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2364 is at the last character of the current grapheme cluster when
2365 CMP_IT->reversed_p is nonzero.
2366
171eda53 23672010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2368
171eda53
SM
2369 * editfns.c (Fbyte_to_string): New function.
2370
66a9f7f4
SM
23712010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2372
2373 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2374 Suggested by Masatake YAMATO <yamato@redhat.com>.
2375
d8c315d1
EZ
23762010-05-23 Eli Zaretskii <eliz@gnu.org>
2377
171eda53 2378 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2379
f5b416d2 23802010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2381
2382 * s/netbsd.h: If terminfo is found, use it in preference to
2383 termcap. (Bug#6190) [Backport from trunk]
2384
0416466c
EZ
23852010-05-19 Eli Zaretskii <eliz@gnu.org>
2386
11117830 2387 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2388
2389 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2390 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2391 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2392 and maxpos members instead of start.pos and end.pos, respectively.
2393
2394 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2395 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2396 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2397 (try_window_reusing_current_matrix, try_window_id):
2398 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2399 (init_from_display_pos, init_iterator): Use EMACS_INT for
2400 character and byte positions.
66a9f7f4 2401 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2402 arguments for minimum and maximum buffer positions seen by
2403 display_line for this row. Don't use iterator to find the
2404 position following the maximum one; instead, increment the
11117830
EZ
2405 position found by display_line directly. Fix logic; eol_pos
2406 should be tested before the rest. Handle the case of characters
2407 delivered from display vector (bug#6036). Fix tests related to
2408 it->method. Handle the truncated_on_right_p rows.
2409 (RECORD_MAX_MIN_POS): New macro.
2410 (display_line): Use it to record the minimum and maximum buffer
2411 positions for glyphs in the row being assembled. Record the
2412 position of the newline that terminates the line. If word wrap is
2413 in effect, restore minimum and maximum positions seen up to the
2414 wrap point, when iterator returns to it.
2415 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2416 row and cursor not already at point. Restore original pre-bidi
2417 code for unidirectional buffers.
d36fe237
EZ
2418
2419 * dispnew.c (increment_row_positions, check_matrix_invariants):
2420 Increment and check row->start.pos and row->end.pos, in addition
2421 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2422
11117830
EZ
2423 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2424 Display truncated_on_left_p and truncated_on_right_p flags.
2425 Formatting fixes.
2426 (pmtxrows): Display the ordinal number of each row. Don't display
2427 rows beyond the last one.
2428
2429 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2430 it is not copied by bidi_copy_it.
2431
6e83d800
EZ
24322010-05-22 Eli Zaretskii <eliz@gnu.org>
2433
2434 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2435 (Bug#6237)
2436
110683ad
CY
24372010-05-22 Chong Yidong <cyd@stupidchicken.com>
2438
2439 * image.c (Fimage_flush): Rename from image-refresh.
2440
98fe5161
CY
24412010-05-21 Chong Yidong <cyd@stupidchicken.com>
2442
2443 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2444 just one window.
2445
2446 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2447 (clear_image_cache): If the number of cached images is unusually
2448 large, decrease the cache eviction delay (Bug#6230).
2449
e8752c66
GM
24502010-05-21 Glenn Morris <rgm@gnu.org>
2451
66dbf213
GM
2452 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2453 Move these rules to ns.mk.
2454 * ns.mk: New file.
2455
04384b2d
GM
2456 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2457
e8752c66
GM
2458 * Makefile.in (CANNOT_DUMP): New, set by configure.
2459 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2460
2e2bbddb
JL
24612010-05-20 Juri Linkov <juri@jurta.org>
2462
2463 * fileio.c (Fdelete_file): Change interative spec to use
2464 `read-file-name' like in `find-file-read-args' where the default
2465 value is `default-directory' instead of `buffer-file-name'.
2466 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2467
31c4aaf6
KR
24682010-05-20 Kevin Ryde <user42@zip.com.au>
2469
2470 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2471 (Voverriding_terminal_local_map, Vsystem_key_alist)
2472 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2473
9d5cf9b6
GM
24742010-05-20 Glenn Morris <rgm@gnu.org>
2475
2476 * Makefile.in (DEPDIR): New constant.
2477 (DEPFLAGS): Set with configure, not cpp.
2478 (MKDEPDIR): New, set by configure.
2479 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2480 (clean): Use $DEPDIR.
2481 (deps_frag): Include from configure.
2482 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2483 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2484
ead6f8f5
EZ
2485 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2486 reallocation of the cache. (Bug#6210)
2487
7f34aec3
GM
24882010-05-19 Glenn Morris <rgm@gnu.org>
2489
d494e8f2
GM
2490 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2491
c1d0dcfd
GM
2492 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2493 (GNULIB_VAR): Remove.
2494 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2495
2496 * m/ibms390x.h (LINKER):
2497 * m/macppc.h (LINKER) [GNU_LINUX]:
2498 * s/aix4-2.h (ORDINARY_LINK):
2499 * s/cygwin.h (LINKER):
2500 * s/darwin.h (ORDINARY_LINK):
2501 * s/gnu.h (ORDINARY_LINK):
2502 * s/netbsd.h (LINKER):
2503 * s/usg5-4.h (ORDINARY_LINK):
2504 Move to configure.
2505
7f34aec3
GM
2506 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2507
754790b6
CY
25082010-05-18 Chong Yidong <cyd@stupidchicken.com>
2509
2510 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2511 prevent stack overflow if number of arguments is too large
2512 (Bug#6214).
2513
161e44d1
JB
25142010-05-18 Juanma Barranquero <lekktu@gmail.com>
2515
2516 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2517
be4ff9da
GM
25182010-05-18 Glenn Morris <rgm@gnu.org>
2519
9539dc5d
GM
2520 * s/gnu-linux.h: Combine two conditionals.
2521
2522 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2523 $(POST_ALLOC_OBJ).
2524
40dc6bf4
GM
2525 * Makefile.in (RALLOC_OBJ): New, set by configure.
2526 (rallocobj): Replace with the previous variable.
2527 (otherobj): Use $RALLOC_OBJ.
2528
2529 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2530 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2531
be4ff9da
GM
2532 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2533 (gmallocobj, vmlimitobj): Replace with previous two variables.
2534 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2535
16455a85
GM
25362010-05-17 Glenn Morris <rgm@gnu.org>
2537
2538 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2539 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2540
5fdb7468
GM
25412010-05-16 Glenn Morris <rgm@gnu.org>
2542
7ca1f3f9
GM
2543 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2544
7541dad5
GM
2545 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2546
da53fab9
GM
2547 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2548 trailing "/".
2549
b02a6645
GM
2550 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2551 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2552
8877ca0f
GM
2553 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2554 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2555 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2556 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2557 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2558
5fdb7468
GM
2559 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2560 Remove ${STARTFLAGS}, nothing ever sets it.
2561
95adb4b1
DN
25622010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2563
2564 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2565
676b6304
GM
25662010-05-16 Glenn Morris <rgm@gnu.org>
2567
9beab9ce
GM
2568 * Makefile.in (LIBX_BASE): Always define.
2569
8a95f0e7
GM
2570 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2571
676b6304
GM
2572 * Makefile.in (LIBXT): Always define.
2573
6e546d18
GM
25742010-05-15 Glenn Morris <rgm@gnu.org>
2575
4235ca47 2576 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2577
6e546d18
GM
2578 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2579 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2580
8c5ff6dd
KR
25812010-05-15 Ken Raeburn <raeburn@raeburn.org>
2582
560bb7ae 2583 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2584 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2585
8b4eb796
KR
2586 * emacs.c (main): Initialize initial-environment and
2587 process-environment before generating from env, not after.
2588
8c5ff6dd
KR
2589 Handle --version reasonably in CANNOT_DUMP configuration.
2590 * emacs.c (emacs_version, emacs_copyright): New string variables.
2591 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2592 (syms_of_emacs): Defvar them, and initialize them from the C
2593 string variables.
2594 (main): If initialization hasn't been done, print initial version
2595 info from the C strings, instead of starting an interactive session.
2596
dbd3f723
EZ
25972010-05-15 Eli Zaretskii <eliz@gnu.org>
2598
d20e1419
EZ
2599 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2600 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2601 (bidi_paragraph_init): Remove redundant assertion that we are at
2602 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2603
2604 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2605 (syms_of_xdisp): Defsubr it.
2606
d36fe237
EZ
2607 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2608
dbd3f723
EZ
2609 * Makefile.in: Fix MSDOS-related comments.
2610
02be533b
GM
26112010-05-15 Glenn Morris <rgm@gnu.org>
2612
1a82cca9
GM
2613 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2614 (really-lwlib, really-oldXMenu): Always define.
2615 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2616
3df7b338
GM
2617 * Makefile.in: Simplify cpp conditional.
2618
2b5f541b
GM
2619 * Makefile.in (${ns_appdir}): Simplify using umask.
2620
02be533b
GM
2621 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2622
4e2db1fe
SM
26232010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2624
2625 * eval.c (specbind): Remove left-over duplicate test.
2626 Disallow let-binding frame-local vars. Add comment.
2627
4b292a22
EZ
26282010-05-14 Eli Zaretskii <eliz@gnu.org>
2629
2fe72643 2630 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2631 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2632 (bidi_init_it): Call it.
2633 (bidi_cache_iterator_state): Enlarge the cache if needed.
2634
4e2db1fe 2635 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2636 bidi_get_next_char_visually. All callers changed.
2637
82ebc97b
KH
26382010-05-14 Kenichi Handa <handa@m17n.org>
2639
2640 * dispextern.h (struct composition_it): New member reversed_p.
2641
2642 * composite.c (composition_compute_stop_pos): Search backward if
2643 ENDPOS < CHARPOS.
2644 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2645 Set CMP_IT->reversed_p.
b4b6e17e 2646 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2647
4e2db1fe
SM
2648 * xdisp.c (set_iterator_to_next):
2649 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2650 scanning backward. Call composition_compute_stop_pos if scan
2651 direction is changed.
2652 (next_element_from_buffer): Call composition_compute_stop_pos with
2653 negative ENDPOS if we are scanning backward.
2654 (next_element_from_composition): Pay attention to
2655 IT->cmp_it.reversed_p.
2656
0e5d7800
KH
26572010-05-14 Kenichi Handa <handa@m17n.org>
2658
560bb7ae 2659 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2660
cb027b32
GM
26612010-05-14 Glenn Morris <rgm@gnu.org>
2662
177b0288
GM
2663 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2664
fbc00890
GM
2665 * Makefile.in (mktime, X11, register): Move undefs to configure.
2666
f14d1dfd
GM
2667 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2668 (MSDOS_X_OBJ): New variable.
2669 (MSDOS_SUPPORT_REAL): New constant.
2670 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2671 (obj): Use MSDOS_X_OBJ.
2672 (lisp): Use MSDOS_SUPPORT as a variable.
2673
11842bd8
GM
2674 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2675 (GPM_MOUSE_SUPPORT): Now it's a constant.
2676 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2677 not cpp.
2678
489d31a4 2679 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2680 (ns_appresdir): Remove, unused.
e20f1f07 2681
489d31a4
GM
2682 * Makefile.in (SHELL): Move outside cpp section.
2683
cb027b32
GM
2684 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2685
5a903aa9
GM
26862010-05-13 Glenn Morris <rgm@gnu.org>
2687
3369c79f
GM
2688 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2689 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2690
d5e982a6
GM
2691 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2692 HAVE_WINDOW_SYSTEM must be too.
2693
6192e163
GM
2694 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2695 (lisp): Remove WINNT_SUPPORT.
2696
472c5d6b
GM
2697 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2698 Let configure set these variables (to empty) in this case as well.
2699
0116466b
GM
2700 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2701 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2702
5a903aa9
GM
2703 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2704 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2705 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2706 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2707 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2708 the values output by configure.
5a903aa9
GM
2709 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2710
1a0d7c06
GM
27112010-05-12 Glenn Morris <rgm@gnu.org>
2712
b5457f14
GM
2713 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2714 (LINKER_WAS_SPECIFIED): Remove.
2715
1a0d7c06
GM
2716 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2717 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2718 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2719 * s/cygwin.h (LIB_GCC):
2720 * s/freebsd.h (LIB_GCC):
2721 * s/gnu-linux.h (LIB_GCC):
2722 * s/msdos.h (LIB_GCC):
2723 * s/netbsd.h (LIB_GCC):
2724 Move to configure.
2725
3ffd4615 27262010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2727
2728 * ftfont.c: Fix incorrect parentheses of #if condition for
2729 definining M17N_FLT_USE_NEW_FEATURE.
2730
acddf8ae
GM
27312010-05-11 Glenn Morris <rgm@gnu.org>
2732
2733 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2734 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2735
ae5e04fa
EZ
27362010-05-10 Eli Zaretskii <eliz@gnu.org>
2737
2738 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2739 unibyte buffers. See
2740 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2741
7490175b
GM
27422010-05-10 Glenn Morris <rgm@gnu.org>
2743
97efb629
GM
2744 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2745 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2746 (LIBES): Use LIBS_SYSTEM as a variable.
2747 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2748 * s/aix4-2.h (LIBS_SYSTEM):
2749 * s/freebsd.h (LIBS_SYSTEM):
2750 * s/hpux10-20.h (LIBS_SYSTEM):
2751 * s/sol2-6.h (LIBS_SYSTEM):
2752 * s/unixware.h (LIBS_SYSTEM):
2753 Move to configure.
2754
7490175b
GM
2755 * s/aix4-2.h (MAIL_USE_LOCKF):
2756 * s/bsd-common.h (MAIL_USE_FLOCK):
2757 * s/darwin.h (MAIL_USE_FLOCK):
2758 * s/gnu-linux.h (MAIL_USE_FLOCK):
2759 * s/irix6-5.h (MAIL_USE_FLOCK):
2760 * s/template.h (MAIL_USE_FLOCK):
2761 Move to configure.
2762
0235128c 27632010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2764
2765 * Version 23.2 released.
2766
0235128c 27672010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2768
2769 * composite.c (autocmp_chars): Save point as marker before calling
2770 auto-composition-function (Bug#5984).
2771
2772 * lisp.h (restore_point_unwind): Add prototype.
2773
2774 * fileio.c (restore_point_unwind): Remove static attribute.
2775
0235128c 27762010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2777
2778 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2779 new feature of libotf and m17n-flt.
0235128c
SM
2780 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2781 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2782 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2783 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2784 that OUT is NULL. Use OTF_drive_gsub_with_log and
2785 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2786 OTF_drive_gpos.
2787 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2788 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2789 Setup mflt_enable_new_feature and mflt_try_otf.
2790
4721152c
J
27912010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2792
2793 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2794
2795 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2796 box and toolbar (Bug #6139).
2797 (xg_create_tool_bar): Remove comment (Bug #6139).
2798 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2799 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2800
ee0a16cf
JB
28012010-05-08 Juanma Barranquero <lekktu@gmail.com>
2802
2803 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2804 Update dependencies.
2805
96d79611
EZ
28062010-05-08 Eli Zaretskii <eliz@gnu.org>
2807
2808 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2809 R2L lines.
2810
40c17879
GM
28112010-05-08 Glenn Morris <rgm@gnu.org>
2812
7b42b29f
GM
2813 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2814
40c17879
GM
2815 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2816 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2817 (termcapobj): Replace with TERMCAP_OBJ.
2818 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2819 (LIBES): Use LIBS_TERMCAP as a variable.
2820
2821 * s/freebsd.h (osreldate.h): No longer include, since this file
2822 does not use __FreeBSD_version any more.
2823
2824 * s/aix4-2.h (TERMINFO):
2825 * s/cygwin.h (TERMINFO):
2826 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2827 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2828 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2829 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2830 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2831 * s/irix6-5.h (TERMINFO):
2832 * s/netbsd.h (LIBS_TERMCAP):
2833 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2834 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2835 * s/usg5-4.h (TERMINFO):
2836 Move to configure.
2837
94b612ad
SM
28382010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2839
2840 * eval.c (unbind_to): Don't unbind a local binding into the global
2841 binding when the local binding disappeared. Inversely, don't unbind
2842 a global binding into a newly created local binding.
2843 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2844 can specify the frame to use, when applicable. Adjust callers.
2845
15e12598 28462010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2847 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2848
2849 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2850
f724825e
EZ
28512010-05-07 Eli Zaretskii <eliz@gnu.org>
2852
5cba3209
EZ
2853 * w32fns.c: Include w32.h.
2854 (Fw32_shell_execute): Decode the error message before passing it
2855 to `error'. (Bug#6126)
2856
d16bdfc3
EZ
2857 * msdos.c (dos_set_window_size):
2858 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2859 instead of `XSYMBOL (foo)->value'.
2860
59d93e87
EZ
28612010-05-07 Eli Zaretskii <eliz@gnu.org>
2862
9fdec8bc
EZ
2863 Fix the MS-DOS build, broken by autoconfiscation.
2864
2865 * Makefile.in: Don't use Make-style comments past the "start of
2866 cpp stuff" line.
2867 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2868
2869 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2870 edited directly by msdos/sed1v2.inp).
f724825e 2871
2f86b22b
GM
28722010-05-07 Glenn Morris <rgm@gnu.org>
2873
2874 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2875 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2876 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2877 move out of cpp section.
2878 * s/freebsd.h (LD_SWITCH_SYSTEM):
2879 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2880 * s/netbsd.h (LD_SWITCH_SYSTEM):
2881 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2882
49ebbd65
DN
28832010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2884
2885 Define LIB_STANDARD and START_FILES using autoconf.
2886 * s/usg5-4.h (LIB_STANDARD):
2887 * s/netbsd.h (START_FILES):
2888 * s/irix6-5.h (LIB_STANDARD):
2889 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2890 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2891 * s/freebsd.h (START_FILES):
2892 * s/darwin.h (START_FILES):
2893 * s/cygwin.h (START_FILES):
2894 * s/aix4-2.h (LIB_STANDARD):
2895 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2896 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2897 autoconf, not cpp.
2898
d43c06d6
DN
28992010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2900
28823648
DN
2901 Remove NEED_BSDTTY and NEED_UNISTD_H.
2902 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2903 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2904 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2905 <sys/ptyio.h> and <unistd.h>.
2906
aca00430
DN
2907 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2908
d43c06d6
DN
2909 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2910 * s/gnu.h (START_FILES): Remove empty definition.
2911
3e56b11d
JD
29122010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2913
2914 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2915
e3cf0cde
GM
29162010-05-06 Glenn Morris <rgm@gnu.org>
2917
2918 * Makefile.in (CPP, LN_S): Remove unused variables.
2919
774b9a60
SM
29202010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2921
2922 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2923
4ab92842
LM
29242010-05-05 Lawrence Mitchell <wence@gmx.li>
2925
2926 * m/sparc.h: Fix typo in earlier change.
2927
178f2507
SM
29282010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2929
2930 Misc tweaks.
2931 * eval.c (Fdefvaralias): Remove unintended nested if.
2932 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2933
80f00217 29342010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2935
2936 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2937
ef03a4e6
DN
29382010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2939
58eb6cf0
DN
2940 Remove BSD_PGRPS.
2941 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2942 * s/gnu-linux.h (BSD_PGRPS): Remove.
2943 * term.c (dissociate_if_controlling_tty):
2944 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2945 (init_sys_modes, reset_sys_modes):
2946 * emacs.c (main):
2947 * callproc.c (Fcall_process, child_setup): Remove code depending
2948 on BSD_PGRPS.
2949
ef03a4e6
DN
2950 Remove POSIX_SIGNALS.
2951 * s/usg5-4.h (POSIX_SIGNALS):
2952 * s/netbsd.h (POSIX_SIGNALS):
2953 * s/msdos.h (POSIX_SIGNALS):
2954 * s/ms-w32.h (POSIX_SIGNALS):
2955 * s/hpux11.h (POSIX_SIGNALS):
2956 * s/gnu.h (POSIX_SIGNALS):
2957 * s/gnu-linux.h (POSIX_SIGNALS):
2958 * s/freebsd.h (POSIX_SIGNALS):
2959 * s/darwin.h (POSIX_SIGNALS):
2960 * s/cygwin.h (POSIX_SIGNALS):
2961 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2962 * s/unixware.h:
2963 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2964 * process.c (create_process):
2965 * syssignal.h:
2966 * sysdep.c (wait_for_termination, init_signals):
2967 * process.c (create_process):
2968 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2969 remove all code that assumes the contrary.
2970
49628785
GM
29712010-05-04 Glenn Morris <rgm@gnu.org>
2972
27a2cdfc
GM
2973 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2974 variable.
2975 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2976 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2977 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2978 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2979 LD_SWITCH_SYSTEM_tmp.
2980 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2981 New variables, set by configure.
2982
eb21eab5
GM
2983 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2984 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2985 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2986 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2987 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2988
49628785
GM
2989 * s/aix4-2.h (C_SWITCH_SYSTEM):
2990 * m/alpha.h (C_SWITCH_MACHINE):
2991 Move to configure.in.
2992 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2993 New variables, set by configure.
2994 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2995 $c_switch_machine and $c_switch_system.
2996
7dff330b
DN
29972010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2998
2999 * s/hpux10-20.h (LIB_STANDARD): New definition.
3000 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3001 on it, not used anymore.
3002
53967e09
CY
30032010-05-03 Chong Yidong <cyd@stupidchicken.com>
3004
3005 * eval.c (internal_condition_case_n): Rename from
3006 internal_condition_case_2.
3007 (internal_condition_case_2): New function.
3008
3009 * xdisp.c (safe_call): Use internal_condition_case_n.
3010
3011 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3012 (internal_delete_file, Frename_file): Callers changed.
3013
3014 * buffer.c (Fkill_buffer):
3015 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3016
3017 * lisp.h: Update prototypes.
3018
3dee6fdb
GM
30192010-05-03 Glenn Morris <rgm@gnu.org>
3020
3021 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3022 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3023 (LIBXT): Set with configure, not cpp.
3024 (LIBX): Remove.
3025 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3026
a101e0fb
DN
30272010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3028
3029 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3030 The FreeBSD is not needed, the default works, Solaris version is
3031 not needed, and the remaining case is not supported by configure.
3032
f63d0028
JD
30332010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3034
3035 * xsmfns.c (CHDIR_OPT): New define.
3036 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3037 restarting emacs.
3038
3039 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3040 shut_down_emacs.
3041
3042 * emacs.c (USAGE1): Mention --chdir.
3043 (main): Handle --chdir.
3044 (standard_args): Add --chdir.
3045 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3046 #5552).
3047
e4814a9f
DN
30482010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3049
cd03c74a
DN
3050 Remove LD_SWITCH_MACHINE.
3051 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3052 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3053
c3a398a1
DN
3054 Clean up IRIX code.
3055 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3056 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3057
87e7285c
DN
3058 Clean up AIX code.
3059 * m/ibmrs6000.inp: Remove file, unused.
3060 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3061 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3062 definition ...
3063 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3064
80f00217
JB
3065 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3066 unused.
e4814a9f 3067
59ca28de
EZ
30682010-05-01 Eli Zaretskii <eliz@gnu.org>
3069
197daef4
EZ
3070 Emulate POSIX_SIGNALS on MS-Windows.
3071
3072 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3073 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3074
3075 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3076 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3077 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3078
80f00217
JB
3079 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3080 New stubs.
197daef4 3081
af7c7572
EZ
3082 Miscellaneous fixes of bidi display.
3083
59ca28de
EZ
3084 * xdisp.c (find_row_end): New function, refactored from display_line.
3085 (display_line): Use it.
017ea819
EZ
3086 (extend_face_to_end_of_line): In almost-filled rows, extend only
3087 if the row is R2L and not continued.
166e930d 3088 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3089 Preserve overlay and string info in row->end.
166e930d
EZ
3090 (insert_left_trunc_glyphs): Support addition of left truncation
3091 glyphs to R2L rows.
b47e0dcf 3092 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3093 glyph between adjacent windows. Fix a crash when a display string
3094 is continued to the next line. Don't return zero if cursor was
3095 found by `cursor' property of a display string.
b47e0dcf
EZ
3096 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3097 test for that explicitly.
59ca28de 3098
7acac9f4
GM
30992010-05-01 Glenn Morris <rgm@gnu.org>
3100
3101 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3102 for clarity.
3103 (OTHER_OBJ): Remove.
3104 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3105 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3106
45841e65
KK
31072010-05-01 Karel Klíč <kklic@redhat.com>
3108
3109 * fileio.c (Ffile_selinux_context): Context functions may return null.
3110
afc61943
DN
31112010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3112
80f00217 3113 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3114
5a1bb006
GM
31152010-04-30 Glenn Morris <rgm@gnu.org>
3116
3117 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3118 (OTHER_OBJ): Define as a separate variable, for clarity.
3119
210af043
J
31202010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3121
3122 * xsettings.c: include limits.h and update file comment.
3123
0a7df391
GM
31242010-04-30 Glenn Morris <rgm@gnu.org>
3125
d5096f16
GM
3126 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3127 Set with configure, not cpp.
3128 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3129
7eb1ac33
GM
3130 * Makefile.in (mallocobj): Remove.
3131 (otherobj): Simplify using @OTHER_OBJ@.
3132
517d086b
GM
3133 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3134 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3135 Don't bother making nsgui.h dependency platform-specific.
3136
0a7df391
GM
3137 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3138
d6d23852
SM
31392010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3140
d2630aef
SM
3141 * process.c (read_process_output, exec_sentinel): Don't burp if the
3142 sentinel/filter kills the current buffer (bug#6060).
3143
f9dddf52 3144 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3145 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3146 Remove unused var `args'.
3147 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3148 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3149 * doc.c (store_function_docstring): Use XSETCAR.
3150
f1e3642a
GM
31512010-04-28 Glenn Morris <rgm@gnu.org>
3152
faf535f8
GM
3153 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3154 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3155
c40f9449
GM
3156 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3157
658f86ca
GM
3158 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3159 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3160
bc0b5f61
GM
3161 * Makefile.in (FONT_OBJ): New, set by configure.
3162 (FONT_DRIVERS): Use $FONT_OBJ.
3163
294c50a0
GM
3164 * Makefile.in (LIBXMU): Set with configure, not cpp.
3165 * s/aix4-2.h (LIBXMU):
3166 * s/hpux10-20.h (LIBXMU):
3167 Remove definition, now set in configure.
3168
e6ec4e99
GM
3169 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3170
f1e3642a
GM
3171 * m/amdx86-64.h [i386]: Move this test to configure.in.
3172
c6ea2936
GM
31732010-04-27 Glenn Morris <rgm@gnu.org>
3174
8fdac2c3
GM
3175 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3176 * s/unixware.h (NEED_LIBW): Remove definition.
3177
986fb647
GM
3178 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3179 (TOOLKIT_LIBW): New, set by configure.
3180 (@X_TOOLKIT_TYPE@): No longer define it.
3181
c6ea2936
GM
3182 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3183 (MOTIF_LIBW): Set with configure, not cpp.
3184 * s/aix4-2.h (LIB_MOTIF):
3185 * s/gnu-linux.h (LIB_MOTIF):
3186 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3187
aaa36002
DN
31882010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3189
3190 Reduce CPP usage.
3191 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3192 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3193 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3194 definitions and undefs. Inline definitions in the only user.
3195 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3196
b678dd8b
GM
31972010-04-27 Glenn Morris <rgm@gnu.org>
3198
76cda504
GM
3199 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3200 since the defaults (set by the system file) are fine in most cases.
3201 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3202 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3203 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3204 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3205 Remove definitions, since they are set correctly in s/gnu-linux.h.
3206 * s/freebsd.h (START_FILES, LIB_STANDARD):
3207 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3208 * s/hpux10-20.h (START_FILES):
3209 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3210 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3211
b678dd8b
GM
3212 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3213 (MOTIF_LIBW): Use $LIBXP.
3214 (otherobj): Use $WIDGET_OBJ.
3215
9452ded1
DN
32162010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3217
7e10844c
DN
3218 * Makefile.in (LIBS_MACHINE): Remove, unused.
3219
9452ded1
DN
3220 Use autoconf instead of cpp for LIB_MATH.
3221 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3222 * s/cygwin.h (LIB_MATH): Likewise.
3223 * Makefile.in (LIB_MATH): Do not define with cpp.
3224 (LIBES): Use autoconf for LIB_MATH.
3225
fcebfc6a
KH
32262010-04-26 Kenichi Handa <handa@m17n.org>
3227
3228 * composite.c (Ffind_composition_internal): Fix the return value
3229 for an automatic composition.
3230
39e2ad1b
DN
32312010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3232
3233 Remove all NO_ARG_ARRAY uses.
3234 * fns.c (concat2, concat3, nconc2):
3235 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3236 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3237 * m/xtensa.h (NO_ARG_ARRAY):
3238 * m/template.h (NO_ARG_ARRAY):
3239 * m/sparc.h (NO_ARG_ARRAY):
3240 * m/sh3.h (NO_ARG_ARRAY):
3241 * m/mips.h (NO_ARG_ARRAY):
3242 * m/macppc.h (NO_ARG_ARRAY):
3243 * m/iris4d.h (NO_ARG_ARRAY):
3244 * m/intel386.h (NO_ARG_ARRAY):
3245 * m/ibms390x.h (NO_ARG_ARRAY):
3246 * m/ibms390.h (NO_ARG_ARRAY):
3247 * m/ibmrs6000.h (NO_ARG_ARRAY):
3248 * m/ia64.h (NO_ARG_ARRAY):
3249 * m/hp800.h (NO_ARG_ARRAY):
3250 * m/arm.h (NO_ARG_ARRAY):
3251 * m/amdx86-64.h (NO_ARG_ARRAY):
3252 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3253
adf4f59c
EZ
32542010-04-25 Eli Zaretskii <eliz@gnu.org>
3255
6bdf5d65
EZ
3256 * xdisp.c (display_line): Don't assume 2nd call to
3257 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3258 (iterate_out_of_display_property): New function, body from pop_it.
3259 (pop_it): Use it.
adf4f59c 3260
dfbbda83
GM
32612010-04-24 Glenn Morris <rgm@gnu.org>
3262
3263 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3264 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3265 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3266 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3267
2d4018aa
EZ
32682010-04-24 Eli Zaretskii <eliz@gnu.org>
3269
a49884a6
EZ
3270 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3271 use `get_next_display_element' and `set_iterator_to_next' to
3272 advance to the next character, when looking for the character that
3273 begins the next row.
3274
76db6fcc 3275 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3276 definition of "struct Lisp_Symbol".
3277
70eab5c1
GM
32782010-04-24 Glenn Morris <rgm@gnu.org>
3279
3280 * Makefile.in (CRT_DIR): New variable, set by configure.
3281 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3282 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3283
1ad4cc3d
DN
32842010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3285
e769f484
DN
3286 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3287
4196ff33
DN
3288 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3289
879b0ee4
DN
3290 Remove redundant flags.
3291 * s/freebsd.h (C_SWITCH_SYSTEM):
3292 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3293 * s/netbsd.h (C_SWITCH_SYSTEM):
3294 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3295 of these.
3296
03cbbcb8
DN
3297 Simplify m/intel386.h.
3298 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3299 user: ecrt0.c.
3300 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3301 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3302 the only user: s/unixware.h.
3303 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3304 from m/intel386.h.
3305 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3306 moved here from m/intel386.h.
3307
1ad4cc3d
DN
3308 * m/mips.h: Remove #if 0 code.
3309
8785b888
EZ
33102010-04-23 Eli Zaretskii <eliz@gnu.org>
3311
728588cc
EZ
3312 Fix display of composed characters from L2R scripts in bidi buffers.
3313 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3314 After advancing IT past the composition, resync the bidi iterator
3315 with IT's position. (Bug#5977)
3316
a63f80b4
DN
33172010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3318
3319 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3320 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3321
ff5dec5c
SM
33222010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3323
3324 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3325
8785b888
EZ
33262010-04-23 Eli Zaretskii <eliz@gnu.org>
3327
58ccf243 3328 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3329 * xdisp.c (pop_it): When the stack is popped after displaying
3330 from a string, bidi-iterate to exit from the text portion covered
3331 by the `display' property or overlay. (Bug#5988, bug#5920)
3332
feeb1604
DN
33332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3334
8e324eb6
DN
3335 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3336 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3337
809fcaba
DN
3338 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3339 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3340
ed710380
DN
3341 Simplify STARTFILES definition.
3342 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3343 relying on Makefile.in to define it.
3344 * s/cygwin.h (START_FILES): Likewise.
3345 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3346
feeb1604
DN
3347 Clean up Solaris code.
3348 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3349 (LIB_MOTIF): Remove, configure takes care of this.
3350 (NOT_USING_MOTIF): Remove, unused.
3351 * xrdb.c: Remove #if 0-ed #include.
3352 (SYSV): Remove conditional for old SysV.
3353 * sysdep.c (closedir): Remove conditional code for Solaris,
3354 Solaris has closedir.
3355
a0d0b563
JD
33562010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3357
3358 * xsettings.c (read_and_apply_settings): Check if current_font is
3359 NULL before strcmp (Bug#6001).
3360
56bae7c7
DN
33612010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3362
3363 Clean up HP-UX files.
3364 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3365 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3366 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3367 * s/hpux10-20.h: ... to the only user, here.
3368
372b7a95
EZ
33692010-04-21 Eli Zaretskii <eliz@gnu.org>
3370
3371 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3372 use buffer-local values of paragraph-start and paragraph-separate.
3373 <paragraph_start_re, paragraph_separate_re>: Rename from
3374 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3375 (Bug#5992)
3376
f904c0f9
JD
33772010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3378
3379 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3380 current_tool_bar_style are new.
3381 (store_config_changed_event): Rename from store_font_changed_event.
3382 (XSETTINGS_TOOL_BAR_STYLE): New define.
3383 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3384 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3385 HAVE_XFT.
3386 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3387 store_config_changed_event.
f904c0f9
JD
3388 (parse_settings): Rename from parse_xft_settings. Read
3389 non-xft xsettings outside #ifdef HAVE_XFT.
3390 (read_settings): Renamed from read_xft_settings.
3391 (apply_xft_settings): Take current settings as parameter. Do not
3392 call read_(xft)_settings.
3393 (read_and_apply_settings): New function.
3394 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3395 read_and_apply_settings if there are settings to be read.
3396 (init_xsettings): Renamed from init_xfd_settings.
3397 Call read_and_apply_settings unconditionally.
3398 (xsettings_initialize): Call init_xsettings.
3399 (Ftool_bar_get_system_style): New function.
3400 (syms_of_xsettings): Define Qmonospace_font_name and
3401 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3402 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3403 dynamic-setting.
31a01b90 3404 Move misplaced HAVE_GCONF
f904c0f9
JD
3405
3406 * xsettings.h (Ftool_bar_get_system_style): Declare.
3407
3408 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3409 Qtext, Qboth, Qboth_horiz are new.
3410 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3411 Vtool_bar_style, tool_bar_max_label_size.
3412
3413 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3414
3415 * keyboard.c: QClabel is new.
3416 (parse_tool_bar_item): Take out QClabel from tool bar items.
3417 Try to construct a label if ther is no QClabel.
3418 (syms_of_keyboard): Intern :label as QClabel.
3419
3420 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3421 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3422 New.
3423
3424 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3425 dynamic-setting.el.
3426
3427 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3428 (xg_make_tool_item, xg_show_toolbar_item): New function.
3429 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3430 Call xg_make_tool_item to make a tool bar item.
3431 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3432
3433 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3434 into account for toolbars.
3435
c632dfda
JD
34362010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3437
3438 * data.c (make_blv): Declarations before code (Bug#5993).
3439
10efe302
GM
34402010-04-21 Glenn Morris <rgm@gnu.org>
3441
3442 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3443 Define using autoconf, not cpp.
3444 (LIBXSM): New variable, set by autoconf.
3445 (LIBXT): Use $LIBXSM.
3446
4285ac5a
DN
34472010-04-21 Dan Nicolaescu <local_user@dannlt>
3448
3ec759e7
DN
3449 Remove NOMULTIPLEJOBS, unused.
3450 * s/template.h (NOMULTIPLEJOBS):
3451 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3452
4285ac5a
DN
3453 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3454 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3455 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3456 detects -znocombreloc and passes it to the linker
3457 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3458
2807228d
GM
34592010-04-21 Glenn Morris <rgm@gnu.org>
3460
3461 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3462
574c05e2
KK
34632010-04-21 Karel Klíč <kklic@redhat.com>
3464
3465 * Makefile.in (LIBSELINUX_LIBS): New.
3466 (LIBES): Add $LIBSELINUX_LIBS.
3467 * eval.c, lisp.h (call7): New function.
3468 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3469 (Ffile_selinux_context, Fset_file_selinux_context):
3470 New functions.
3471 (Fcopy_file): New parameter preserve-selinux-context.
3472 (Frename_file): Preserve selinux context when renaming by copy-file.
3473
91eac4bb 34742010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3475 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3476
50426a04
JB
3477 Don't depend on cm.c or termcap.c on Windows, use stubs.
3478 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3479 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3480 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3481 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3482 (sys_tputs, sys_tgetstr): New stubs.
3483 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3484 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3485
938efb77
JB
34862010-04-20 Juanma Barranquero <lekktu@gmail.com>
3487
3488 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3489
b4bf28b7
SM
34902010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3491
8b1e1112
SM
3492 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3493 Just signal a warning rather than an error when inside a let.
3494 (Fmake_variable_frame_local): Add the same test.
3495
933ac235
SM
3496 * font.c (syms_of_font): Make the style table vars read-only.
3497
b4bf28b7
SM
3498 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3499 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3500
3501 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3502
93d68d0c
EZ
35032010-04-20 Eli Zaretskii <eliz@gnu.org>
3504
3505 Fix R2L paragraph display on TTY.
3506
3507 * xdisp.c (unproduce_glyphs): New function.
3508 (display_line): Use it when produced glyphs are discarded from R2L
3509 glyph rows.
3510 (append_composite_glyph): In R2L rows, prepend the glyph rather
3511 than appending it.
3512
3513 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3514 rather than append it. Set up the resolved_level and bidi_type
3515 attributes of the appended glyph.
283ccc18
EZ
3516 (produce_special_glyphs): Mirror the backslash continuation
3517 character in R2L lines.
93d68d0c 3518
283ccc18 3519 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3520
283ccc18
EZ
3521 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3522 append_stretch_glyph.
3523 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3524 off-by-one error in computing x at end of text in the row.
3525 (append_stretch_glyph): In reversed row, prepend the glyph rather
3526 than append it. Set resolved_level and bidi_type of the glyph.
3527 (extend_face_to_end_of_line): If the row is reversed, prepend a
3528 stretch glyph whose width is such that the rightmost glyph will be
3529 drawn at the right margin of the window. Fix off-by-one error on
3530 TTY frames in testing whether a line needs face extension. Fix
3531 face extension at ZV. If this is the last glyph row, use
3532 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3533 region face.
3534 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3535 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3536 row->continuation_lines_width.
283ccc18
EZ
3537 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3538 are at ZV. Fixes a crash when reseated to ZV by
3539 try_window_reusing_current_matrix.
45903529
EZ
3540 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3541 which happens with R2L glyph rows. Fixes a crash when inserting a
3542 character at end of an R2L line.
283ccc18
EZ
3543 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3544 treat them as having zero-width characters. Improve comments.
3545 Don't reverse pos_before and pos_after for reversed glyph rows.
3546 Set cursor.x to negative value when the cursor might be on the
3547 left fringe.
3548 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3549 left fringe, not the right one.
f951a506
EZ
3550 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3551 (erase_phys_cursor): For reversed cursor_row, support cursor on
3552 the left fringe.
3553
283ccc18
EZ
3554 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3555 of continuation indicators on the fringes.
3556 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3557 left fringe.
3558
f951a506
EZ
3559 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3560 draw cursor on the left fringe.
3561
3562 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3563 cursor on the left fringe.
3564
f951a506
EZ
3565 * dispnew.c (update_text_area): Handle reversed desired rows when
3566 the cursor is on the left fringe.
3567 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3568 below, not by 0, for when the cursor is on the left fringe.
3569
3bb49aaf
JD
35702010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3571
3572 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3573 widget is a scrollbar.
3574
c0be27fd
KH
35752010-04-20 Kenichi Handa <handa@m17n.org>
3576
3577 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3578 only when the arg CHARSET_LIST is nil.
3579
ce5b453a
SM
35802010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 Make variable forwarding explicit rather the using special values.
3583 Basically, this makes the structure of buffer-local values and object
3584 forwarding explicit in the type of Lisp_Symbols rather than use
3585 special Lisp_Objects for that. This tends to lead to slightly more
3586 verbose code, but is more C-like, simpler, and makes it easier to make
3587 sure we handled all cases, among other things by letting the compiler
3588 help us check it.
3589 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3590 Removing forwarding objects.
3591 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3592 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3593 explicit rather than hiding them inside Lisp_Object "values".
3594 (XFWDTYPE): New macro.
3595 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3596 (XBUFFER_LOCAL_VALUE): Remove.
3597 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3598 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3599 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3600 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3601 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3602 Remove the Lisp_Misc_* header.
3603 (struct Lisp_Buffer_Local_Value): Redefine.
3604 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3605 (struct Lisp_Misc_Any): Add filler to get the right size.
3606 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3607 Lisp_Intfwd.
3608 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3609 (DEFVAR_KBOARD): Allocate a forwarding object.
3610 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3611 (let_shadows_global_binding_p): New function.
3612 (union Lisp_Val_Fwd): New type.
3613 (make_blv): New function.
3614 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3615 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3616 (swap_in_symval_forwarding, find_symbol_value, Fset)
3617 (let_shadows_buffer_binding_p, set_internal, default_value)
3618 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3619 (Fkill_local_variable, Fmake_variable_frame_local)
3620 (Flocal_variable_p, Flocal_variable_if_set_p)
3621 (Fvariable_binding_locus):
3622 * xdisp.c (select_frame_for_redisplay):
3623 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3624 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3625 * frame.c (store_frame_param):
3626 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3627 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3628 value structure.
3629 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3630 (clone_per_buffer_values): Only adjust markers into the current buffer.
3631 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3632 (Fbuffer_local_value, set_buffer_internal_1)
3633 (swap_out_buffer_local_variables):
3634 Adapt to the new symbol value structure.
3635 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3636 (defvar_per_buffer): Take a new arg for the fwd object.
3637 (buffer_lisp_local_variables): Return a proper alist (different fix
3638 for bug#4138).
3639 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3640 (Fgarbage_collect): Don't handle buffer_defaults specially.
3641 (mark_object): Handle new symbol value structure rather than the old
3642 special Lisp_Misc_* objects.
3643 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3644 * term.c (set_tty_color_mode):
3645 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3646 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3647 a buffer_local_flags.
3648 * print.c (print_object): Get rid of impossible forwarding objects.
3649
fd3998ff
EZ
36502010-04-19 Eli Zaretskii <eliz@gnu.org>
3651
3652 * bidi.c (bidi_get_type, bidi_get_category)
3653 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3654 (bidi_type_of_next_char, bidi_level_of_next_char):
3655 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3656
e42cd1a7
JB
36572010-04-19 Juanma Barranquero <lekktu@gmail.com>
3658
3659 * dired.c (Ffile_attributes): Fix typo in docstring.
3660
6e104790 36612010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3662
3663 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3664 NSInteger (Bug#5811).
3665
6e104790 36662010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3667
3668 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3669 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3670
6e104790 36712010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3672
3673 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3674
6e104790
SM
36752010-04-19 Chong Yidong <cyd@stupidchicken.com>
3676
3677 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3678 terminal frames (Bug#5837).
3679
37dcfea0
EZ
36802010-04-19 Eli Zaretskii <eliz@gnu.org>
3681
d1da276f
EZ
3682 * .gdbinit (xsubchartable): New command.
3683
37dcfea0
EZ
36842010-04-19 Eli Zaretskii <eliz@gnu.org>
3685
3686 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3687 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3688 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3689 and
3690 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3691
e9515805
SM
36922010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3693
3694 * alloc.c (Fpurecopy): Hash-cons if requested.
3695 (syms_of_alloc): Update purify-flag docstring.
3696
22aa44a8
JD
36972010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3698
3699 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3700 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3701
ebb5722e
EZ
37022010-04-17 Eli Zaretskii <eliz@gnu.org>
3703
3704 Fix a crash when an NSM character is inserted at BEGV.
3705
3706 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3707 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3708 NEUTRAL_B or UNKNOWN_BT.
3709
0f4442ef
EZ
37102010-04-16 Eli Zaretskii <eliz@gnu.org>
3711
3712 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3713 other rows with cursor unless they are different from this row and
3714 this row is part of a continued line. (Bug#5943)
3715
7d4e45f8
DN
37162010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3717
3718 * s/freebsd.h: Restore osreldate.h include.
3719 Suggested by Naohiro Aota.
3720
5ba5ec85
J
37212010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3722
3723 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3724
20af301d
CY
37252010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3726
3727 * s/cygwin.h: Avoid linking against static libgcc.
3728
a4b000fb
JL
37292010-04-15 Juri Linkov <juri@jurta.org>
3730
3731 * window.c: Add Qscroll_command.
3732 Remove Vscroll_preserve_screen_position_commands.
3733 (window_scroll_pixel_based, window_scroll_line_based): Check the
3734 `scroll-command' property on the last command instead of searching
3735 the last command in Vscroll_preserve_screen_position_commands.
3736 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3737 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3738 (scroll-preserve-screen-position): Doc fix.
3739 (Vscroll_preserve_screen_position_commands): Remove variable.
3740
bc319ba4
DN
37412010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3742
6bb24457
DN
3743 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3744
19d4c244
DN
37452010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3746
3747 Reduce cpp use in Makefile.in.
3748 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3749 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3750 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3751 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3752 (CRT0_COMPILE): Remove, inline it in the only user.
3753
32129746
JL
37542010-04-14 Juri Linkov <juri@jurta.org>
3755
3756 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3757 `scroll-up-command' and `M-v' from `scroll-down' to
3758 `scroll-down-command'.
3759
9013a7f8
JL
37602010-04-14 Juri Linkov <juri@jurta.org>
3761
3762 * window.c (Vscroll_preserve_screen_position_commands): New variable
3763 with the default value as the list of Qscroll_down and Qscroll_up.
3764 (window_scroll_pixel_based, window_scroll_line_based): Search the
3765 last command in the list Vscroll_preserve_screen_position_commands
3766 instead of comparing with Qscroll_up and Qscroll_down.
3767
4bef8d26
JD
37682010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3769
92848133
JD
3770 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3771 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3772 does that.
3773
4bef8d26
JD
3774 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3775 to zero.
3776
58b963f7
SM
37772010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3778
84164a0d
SM
3779 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3780
2b0a91e7
SM
3781 Try to solve the problem of spurious EOF chars in long lines of text
3782 sent to interactive subprocesses.
3783 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3784 (system_process_attributes): Remove unused var `ttotal'.
3785 * process.c (send_process): Don't bother breaking long line with EOF
3786 chars when talking to ttys any more.
3787 (wait_reading_process_output): Output a warning when called in such
3788 a way that it could block without being interruptible.
3789
58b963f7
SM
3790 Try to detect file modification within the same second.
3791 * buffer.h (struct buffer): New field modtime_size.
3792 * buffer.c (reset_buffer): Initialize it.
3793 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3794 (Fverify_visited_file_modtime): Check it.
3795 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3796 (Fset_visited_file_modtime): Set (or clear) it.
3797
01f5787b
SM
37982010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3799
3800 * process.c (status_notify): Remove unused var `ro'.
3801
83725342
JD
38022010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3803
3804 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3805 more than one visual (Bug#5938).
3806
b9465836
DN
38072010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3808
50426a04
JB
3809 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3810 Undefine.
b9465836 3811
8d9c8ece
DN
38122010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3813
b1f52161
DN
3814 Remove C_SWITCH_SYSTEM_TEMACS.
3815 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3816 (malloc, realloc, free): Use emacs, not temacs for conditional
3817 definition.
3818
3819 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3820 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3821
8d9c8ece
DN
3822 Use autoconf, not cpp for some variables.
3823 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3824 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3825 (ALL_CFLAGS): Use them as make variables.
3826 (really-lwlib, really-oldXMenu): Do not pass them.
3827
1ecb2d3f
JD
38282010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3829
3830 * xmenu.c (apply_systemfont_to_dialog): New.
3831 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3832
3a4fa2f2
SM
38332010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3834
97e53006
SM
3835 * process.c (exec_sentinel): Preserve current-buffer.
3836
3a4fa2f2
SM
3837 * process.c (read_process_output): Move the save-current-buffer to
3838 apply to both the filter and the non-filter branches.
3839
88df7221
DN
38402010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3841
3842 * s/msdos.h (UNEXEC): New definition.
3843
5634ff85
YM
38442010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3845
6eff5c3d
YM
3846 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3847 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3848
3849 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3850 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3851 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3852 TRY_WINDOW_CHECK_MARGINS.
3853
3854 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3855 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3856 width only when it is for padding.
5634ff85 3857
b13aef54
J
38582010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3859
3860 * xfns.c (Fx_show_tip): Call try_window in a loop until
3861 fonts_changed_p is zero (Bug#2423).
3862
21d28484
EZ
38632010-04-08 Eli Zaretskii <eliz@gnu.org>
3864
3865 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3866 the end of TEXT_AREA. (Bug#5856)
3867
0269ef77
JD
38682010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3869
3870 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3871 HAVE_GCONF.
3872
5930fe97
EZ
38732010-04-08 Eli Zaretskii <eliz@gnu.org>
3874
3875 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3876 prev.orig_type, for resolving type of NSM. (Bug#5858)
3877
99852628
JD
38782010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3879
3880 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3881 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3882 in current_font.
3883 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3884 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3885 New functions.
3886 (syms_of_xsettings): Initialize current_font.
3887 defsubr Sfont_get_system_normal_font.
99852628
JD
3888
3889 * xsettings.h (Ffont_get_system_normal_font,
3890 xsettings_get_system_normal_font): Declare.
3891
3892 * xfns.c (extern xlwmenu_default_font): Remove.
3893 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3894 to xlwmenu.c.
3895
3896 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3897 menu items in UTF-8.
3898
3899 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3900 (apply_systemfont_to_menu): New function.
3901 (set_frame_menubar, create_and_show_popup_menu): Call
3902 apply_systemfont_to_menu.
3903
7fc874c4
J
39042010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3905
3906 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3907 FRAME_LINE_TO_PIXEL_Y.
3908
3909 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3910 pixelwidth/height.
3911
863bf481
DN
39122010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3913
5e5a3b92
DN
3914 Simplify code for HP machines.
3915 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3916 for GNU_LINUX, not needed.
3917 (UNEXEC, NEED_BSDTTY): Move definitions...
3918 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3919
863bf481
DN
3920 * m/iris4d.h (UNEXEC): Move definition ...
3921 * s/irix6-5.h (UNEXEC): ... here.
3922
3e6bec3b
JD
39232010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3924
3925 * xfns.c (set_machine_and_pid_properties): New function.
3926 (Fx_create_frame): Call set_machine_and_pid_properties.
3927
2912322b
SM
39282010-04-03 Eli Zaretskii <eliz@gnu.org>
3929
1502b819
EZ
3930 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3931 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3932 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3933
2912322b
SM
3934 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3935 in this function. (Bug#5703)
3936
39372010-04-03 Chong Yidong <cyd@stupidchicken.com>
3938
3939 * nsterm.h: Fix last change.
3940
c435b432
DN
39412010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3942
a568f507
DN
3943 * m/intel386.h (NO_REMAP): Move definition ...
3944 * s/msdos.h (NO_REMAP): ... here.
3945
4cd9f6c2
DN
3946 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3947
c435b432
DN
3948 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3949 used on those platforms.
3950
42a2c622
DN
39512010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3952
3953 Remove extern errno declarations.
3954 * xterm.c:
3955 * xrdb.c:
3956 * w32term.c:
3957 * unexec.c:
3958 * unexaix.c:
3959 * sysdep.c:
3960 * process.c:
3961 * lread.c:
3962 * keyboard.c:
3963 * floatfns.c:
3964 * filelock.c:
3965 * fileio.c:
3966 * emacs.c (main):
3967 * ecrt0.c:
3968 * dispnew.c:
3969 * callproc.c:
3970 * buffer.c: Remove errno extern declarations.
3971 * s/netbsd.h (NEED_ERRNO): Remove.
3972
8224f93d
DN
39732010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3974
3975 Remove all uses of LIBX11_SYSTEM.
3976 * Makefile.in (LIBX11_SYSTEM): Remove.
3977 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3978 instead.
3979
814062c7
EZ
39802010-04-01 Eli Zaretskii <eliz@gnu.org>
3981
ed68db4d
EZ
3982 Remove support for DJGPP v1.x (bug#5813).
3983
3984 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3985 * s/msdos.h:
3986 * unexec.c (make_hdr, copy_text_and_data):
3987 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3988 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3989 (IT_set_terminal_modes, __write, _rename, gethostname)
3990 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3991 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3992 the value of __DJGPP__.
ed68db4d
EZ
3993 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3994 compatibility code.
8224f93d
DN
3995 * lread.c:
3996 * gmalloc.c (memalign):
3997 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3998 * emacs.c (main):
3999 * dosfns.c (init_dosfns):
ed68db4d
EZ
4000 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4001
52f4d8d5
EZ
40022010-04-01 Eli Zaretskii <eliz@gnu.org>
4003
814062c7
EZ
4004 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4005 string with `cursor' property comes from an `after-string'
4006 overlay. (Bug#5816)
4007
0dc2e11d
GM
40082010-04-01 Glenn Morris <rgm@gnu.org>
4009
4010 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4011 Define as Makefile variables.
4012 (LIBX): Use above variables rather than directly using autoconf.
4013
1d29df59
DN
40142010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4015
4016 Clean up BSD_SYSTEM use.
4017 * xterm.c:
4018 * process.c:
4019 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4020 for including <sys/ioctl.h>.
4021 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4022 code is only used for MSDOS.
4023
1546c559
JL
40242010-03-31 Juri Linkov <juri@jurta.org>
4025
4026 * image.c: Add `Qextension_data'.
4027 (syms_of_image): Initialize and staticpro `Qextension_data'.
4028 (Fimage_metadata): Rename from `Fimage_extension_data'.
4029 (gif_load): Put GIF extension data to the property
4030 `Qextension_data'.
4031
6521c534
CY
40322010-03-31 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4035 * nsterm.h: Fix prototype.
4036
52c30783
EZ
40372010-03-31 Eli Zaretskii <eliz@gnu.org>
4038
4039 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4040 trailing whitespace in right-to-left rows.
4041
855a0da7
SM
40422010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4043
4044 Get rid of the direct_output optimizations.
4045 * keyboard.c (nonundocount): Remove extern declaration.
4046 (command_loop_1): Remove brittle optimisation for cheap and
4047 common operations.
4048 * xdisp.c (redisplay_internal): Don't bother checking
4049 redisplay_performed_directly_p any more.
4050 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4051 any more.
4052 * dispnew.c (redisplay_performed_directly_p)
4053 (direct_output_for_insert, direct_output_forward_char):
4054 * dispextern.h (redisplay_performed_directly_p)
4055 (direct_output_for_insert, direct_output_forward_char): Remove.
4056 * cmds.c (nonundocount): Make it static.
4057
85738751 40582010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4059
4060 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4061
85738751 40622010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4063
4064 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4065 invisible (Bug#5766).
4066
85738751 40672010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4068
855a0da7
SM
4069 * xdisp.c (x_consider_frame_title, update_window_cursor):
4070 Remove HAVE_NS conditionals.
194d44e7 4071 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4072
4073 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4074 filename for the title.
4075 (ns_set_doc_edited): Do nothing if the selected window is a
4076 minibuffer window.
4077
4078 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4079 ns_set_doc_edited.
4080
4081 * nsterm.m: Remove unneeded prototype.
4082
85738751 40832010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4084
4085 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4086 in the DOC file. (Bug#5336)
4087
85738751 40882010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4089
4090 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4091
75d1428c
SM
40922010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4093
4094 * window.c (keys_of_window): Remove redundant/overridden bindings.
4095
82043cfb
EZ
40962010-03-30 Eli Zaretskii <eliz@gnu.org>
4097
4098 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4099 Restore original behavior when the iterator is not bidi_p.
4100
b5dd0ae7
DN
41012010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4102
4103 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4104
bd924a5d
EZ
41052010-03-30 Eli Zaretskii <eliz@gnu.org>
4106
4107 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4108 are outside the range of cached character positions.
4109
3580374b
JB
41102010-03-30 Juanma Barranquero <lekktu@gmail.com>
4111
4112 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4113
a7b02820
EZ
41142010-03-30 Eli Zaretskii <eliz@gnu.org>
4115
4116 Initial support for bidirectional editing.
4117
4118 * Makefile.in (obj): Include bidi.o.
4119 (bidi.o): New target.
4120
4121 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4122 ($(BLD)/bidi.$(O)): New target.
4123
4124 * bidi.c: New file.
4125
4126 * buffer.h (struct buffer): New members bidi_display_reordering
4127 and bidi_paragraph_direction.
4128
4129 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4130 and bidi_paragraph_direction.
4131 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4132 and bidi-paragraph-direction.
4133 (Fbuffer_swap_text): Swap the values of
4134 bidi_display_reordering and bidi_paragraph_direction.
4135
4136 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4137 (bidi_type_t, bidi_dir_t): New types.
4138 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4139 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4140 prev_stop, base_level_stop, and eol_pos.
4141 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4142 (IT_STACK_SIZE): Enlarge to 5.
4143 (struct glyph_row): New member reversed_p.
4144 <string_buffer_position>: Update prototype.
4145 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4146 glyph_row if bidi_it.paragraph_dir == R2L.
4147 (struct glyph): New members resolved_level and bidi_type.
4148
4149 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4150 processing or buffer's direction is right-to-left.
4151 (prepare_desired_row): Preserve the reversed_p flag.
4152 (row_equal_p): Compare the reversed_p attributes as well.
4153
4154 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4155 bidi_init_it and set it->paragraph_embedding from the current
4156 buffer's value of bidi_paragraph_direction.
4157 (reseat_1): Initialize bidi_it.first_elt.
4158 (set_iterator_to_next, next_element_from_buffer): Use the value of
4159 paragraph_embedding to determine the paragraph direction.
4160 (set_iterator_to_next): Under bidi reordering, call
4161 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4162 new_paragraph flag is set in the bidi iterator.
4163 (next_element_from_buffer): If bidi_it.first_elt is set,
4164 initialize paragraph direction and find the first character to
4165 display in the visual order. If reseated to a middle of a line,
4166 prime the bidi iterator starting at the line's beginning. Handle
4167 the situation where we overstepped stop_charpos due to
4168 non-linearity of the bidi iteration. Likewise for when we back up
4169 beyond the previous stop_charpos. When moving across stop_charpos,
4170 record it in prev_stop.
4171 (display_line): Set row->end and it->start for the next row to the
4172 next character in logical order. Always extend reversed_p rows to
4173 the end of line, even if they end at ZV. Copy the reversed_p flag
4174 to the next glyph row. Keep calling set_cursor_from_row for
4175 bidi-reordered rows even if we already have a possible candidate
4176 for cursor position. Set row_end after all the row's glyphs have
4177 been produced, by looping over the glyphs. Record the position
4178 after EOL in it->eol_pos, and use it to set end_pos of the last
4179 row produced for a continued line.
4180 <Qright_to_left, Qleft_to_right>: New variables.
4181 (syms_of_xdisp): Initialize and staticpro them.
4182 (string_buffer_position_lim): New function.
4183 (string_buffer_position): Most of code moved to
4184 string_buffer_position_lim. Last argument and return value are
4185 now EMACS_INT; all callers changed.
4186 (set_cursor_from_row): Rewritten to support bidirectional text and
4187 reversed glyph rows.
4188 (text_outside_line_unchanged_p, try_window_id): Disable
4189 optimizations if we are reordering bidirectional text and the
4190 paragraph direction can be affected by the change.
4191 (append_glyph, append_composite_glyph)
4192 (produce_image_glyph, append_stretch_glyph): Set the
4193 resolved_level and bidi_type members of each glyph.
4194 (append_glyph): If the glyph row is reversed, prepend the glyph
4195 rather than appending it.
4196 (handle_stop_backwards): New function.
4197 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4198 (reseat): call handle_stop_backwards to recompute prev_stop and
4199 base_level_stop for the new position.
4200 (handle_invisible_prop): Under bidi iteration, skip invisible text
4201 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4202 paragraph direction. Update IT->prev_stop after skipping
4203 invisible text.
4204 (move_it_in_display_line_to): New variables prev_method
4205 and prev_pos. Compare for strict equality in
4206 BUFFER_POS_REACHED_P.
4207 (try_cursor_movement): Examine all the candidate rows that occlude
4208 point, to return the best match. If rows are bidi-reordered
4209 and point moved backwards, back up to the row that is not a
4210 continuation line, and start looking for a suitable row from
4211 there.
4212
4213 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4214 rather than appending, if the glyph_row's reversed_p flag is set.
4215 Set the resolved_level and bidi_type members of each glyph.
4216
4217 * .gdbinit (pbiditype): New command.
4218 (pgx): Use it to display bidi level and type of the glyph.
4219 (pitx): Display some bidi information about the iterator.
4220 (prowlims, pmtxrows): New commands.
4221
32a8894e
DN
42222010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4223
4224 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4225 * s/usg5-4.h (LIBS_DEBUG):
4226 * s/irix6-5.h (C_DEBUG_SWITCH):
4227 * s/gnu-linux.h (LIBS_DEBUG):
4228 * s/darwin.h (LIBS_DEBUG):
4229 * s/bsd-common.h (LIBS_DEBUG):
4230 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4231 * m/iris4d.h (LIBS_DEBUG):
4232 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4233
4234 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4235 (LIBS_DEBUG): Remove definition.
4236
649dbf36
CY
42372010-03-27 Chong Yidong <cyd@stupidchicken.com>
4238
4239 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4240 Windows.
4241
cad4261f
YM
42422010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4243
4244 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4245 `connect' (Bug#5723).
4246
cd591dbc
HE
42472010-03-25 Helmut Eller <eller.helmut@gmail.com>
4248
4249 * process.c (Fmake_network_process): Call `select' for interrupted
4250 `connect' rather than creating new socket (Bug#5173).
4251
e867cb5d 42522010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4253
4254 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4255
4256 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4257
4258 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4259
e867cb5d 42602010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4261
4262 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4263 XLoadQueryFont.
4264
e867cb5d 42652010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4266
4267 * coding.c (decode_coding_ccl): Fix previous change for the
4268 multibyte case.
fb608df3
KH
4269 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4270 case that the output buffer is fullfilled.
4271 (encode_coding): Setup ccl program here.
fbdc1721 4272
5845f0ed
DN
42732010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4274
814fb708
DN
4275 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4276
5845f0ed
DN
4277 Simplify LIBS_MACHINE definitions.
4278 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4279 * m/iris4d.h (LIBS_MACHINE): Likewise.
4280 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4281 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4282 * s/netbsd.h: Remove commented out code.
5845f0ed 4283
b7064064
DN
42842010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4285
df7734b2
DN
4286 Remove dead code dealing with POSIX_SIGNALS.
4287 * atimer.c (set_alarm): Remove dead code, all USG systems define
4288 POSIX_SIGNALS.
4289 * data.c (arith_error): Likewise.
4290 * keyboard.c (input_available_signal, handle_user_signal)
4291 (interrupt_signal): Likewise.
4292 * process.c (sigchld_handler): Likewise.
4293 (create_process): Remove if 0 code. Remove HPUX conditional when
4294 !defined (POSIX_SIGNALS), it cannot be true.
4295 * syssignal.h: Remove USG5_4 and USG conditionals when
4296 !POSIX_SIGNALS, they cannot be true.
4297
b7064064
DN
4298 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4299 NO_SOCK_SIGIO, not used anymore.
4300
55da5ee3
DN
43012010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4302
0be96e3a
DN
4303 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4304 support vax on BSDs.
4305
55da5ee3
DN
4306 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4307 * s/aix4-2.h (ORDINARY_LINK): ... here.
4308
c0282183
AS
43092010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4310
82c3d67a
AS
4311 * Makefile.in (abs_builddir): Define.
4312 (bootstrap_exe): Use it.
4313 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4314
3613edce
SM
43152010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4316
4317 * Makefile.in (bootstrap_exe): Use an absolute name.
4318
7f110ddc
DN
43192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4320
22e87574
DN
4321 Remove support for old GNU/Linux using libc version 5.
4322 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4323 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4324
05a670e6
DN
4325 Consolidate redundant definitions in s/bsd-common.h.
4326 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4327 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4328 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4329 doing it in all files that include this one.
4330 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4331 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4332 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4333 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4334 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4335 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4336 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4337 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4338 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4339
2968f561
DN
4340 Consolidate redundant definitions.
4341 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4342 it's undefined in all files that include this one.
4343 (POSIX_SIGNALS): Define here instead of doing it in all files that
4344 include this one.
4345 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4346 (POSIX_SIGNALS): Do not define.
4347 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4348 (POSIX_SIGNALS): Do not define.
4349 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4350 (POSIX_SIGNALS): Do not define.
4351
15d25dc0
DN
4352 Remove support for old UNIX System V systems.
4353 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4354 * s/usg-5-4-2.h: Remove.
4355
07e339e4
DN
4356 Remove support for Solaris on PPC and for old versions.
4357 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4358 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4359 that cancel each other.
4360 * s/sol2-3.h:
4361 * s/sol2-4.h:
4362 * s/sol2-5.h: Remove.
4363 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4364 (NO_REMAP): Remove, unused.
4365 (UNEXEC): Move definition ...
4366 * s/aix4-2.h (UNEXEC): ... here.
4367
7f110ddc
DN
4368 * s/openbsd.h: Remove support for non-ELF and for systems that do
4369 not support shared libraries.
4370 * s/netbsd.h:
4371 * s/freebsd.h: Likewise.
4372
605f35cd
DN
43732010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4374
4375 Remove non-working support for lynxos 3.0.
4376 * s/lynxos.h: Remove file.
4377
4378 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4379 COFF_BSD_SYMBOLS, nothing defines it anymore.
4380
aed71cf4
DN
43812010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4382
4383 Remove obsolete uses of HAVE_SHM.
4384 * emacs.c (standard_args):
4385 (Fdump_emacs):
4386 (syms_of_emacs): Remove code depending on HAVE_SHM.
4387
4388 * alloc.c: Remove HAVE_SHM dependent definition.
4389
4390 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4391
aded53ff
GM
43922010-03-18 Glenn Morris <rgm@gnu.org>
4393
17284745
GM
4394 * emacs.c (USAGE4): Hard-code bug address.
4395 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4396 (bug_reporting_address): Remove.
4397 (main): Don't call bug_reporting_address.
4398
aded53ff
GM
4399 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4400 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4401
303500aa
CY
44022010-03-15 Chong Yidong <cyd@stupidchicken.com>
4403
4404 * xfns.c (Fx_create_frame):
4405 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4406 on left.
4407
cef3058f
CY
44082010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4409
4410 * editfns.c (Fformat): Account for string precision when computing
4411 field width (Bug#5710).
4412
a647d59d
CY
44132010-03-12 Chong Yidong <cyd@stupidchicken.com>
4414
4fa42018
CY
4415 * xfns.c (Fx_create_frame): Set default to Qright.
4416
a647d59d
CY
4417 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4418 all window systems.
4419
6da23aaa
EZ
44202010-03-12 Eli Zaretskii <eliz@gnu.org>
4421
a96f6398 4422 These changes remove termcap.c from the build on Posix platforms.
83d02def 4423 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4424 (MSDOS_OBJ): ...to here.
4425 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4426 now identical to when LIBS_TERMCAP is defined.
4427
4428 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4429
4430 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4431
a96f6398 4432 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4433
288f9fc0
CY
44342010-03-10 Chong Yidong <cyd@stupidchicken.com>
4435
4436 * Branch for 23.2.
4437
d48cd3f4
SM
44382010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4439
4440 Cleanup setup of gl_state in various parts of the code.
4441 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4442 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4443 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4444 (skip_chars):
4445 * regex.c (regex_compile): Use it.
4446 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4447 it's now set in regex_compile when/if we need it.
4448
618db430
SM
44492010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4450
c0335e02
SM
4451 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4452 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4453 (QUIT): Use it to consolidate code and remove redundancy.
4454 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4455
254c06a8
SM
4456 * regex.c (regex_compile): Setup gl_state as well.
4457
618db430
SM
4458 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4459 (in_classes): Use CONSP before XCAR/XCDR.
4460
233f0c9f
CY
44612010-03-03 Chong Yidong <cyd@stupidchicken.com>
4462
4463 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4464 definitions, so that keyboard macros are correctly handled
4465 (Bug#5481).
4466
75f80e63
EZ
44672010-03-02 Eli Zaretskii <eliz@gnu.org>
4468
4469 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4470 text that could be relocated inside the call to emacs_mule_char.
4471 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4472 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4473
dcfb9bc4
KH
44742010-03-02 Kenichi Handa <handa@m17n.org>
4475
fc9a17bc
KH
4476 * character.c (parse_str_as_multibyte): Fix handling of the
4477 multibyte form of raw-bytes.
4478 (str_as_multibyte): Likewise.
4479
dcfb9bc4
KH
4480 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4481 form of raw-bytes.
4482
412c01b6
CY
44832010-02-28 Chong Yidong <cyd@stupidchicken.com>
4484
4485 * charset.c (load_charset_map_from_file)
4486 (load_charset_map_from_vector): Zero out allocated
4487 charset_map_entries before using them.
4488
df7e1ea0
AS
44892010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4490
4491 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4492
fe69a722
CY
44932010-02-27 Chong Yidong <cyd@stupidchicken.com>
4494
4ed28cf4
CY
4495 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4496 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4497
7379cfce
KH
44982010-02-26 Kenichi Handa <handa@m17n.org>
4499
f88cc4d6
KH
4500 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4501
7379cfce
KH
4502 * xdisp.c (reseat_to_string): Fix previous change.
4503
cf2fdcfb
CY
45042010-02-26 David Reitter <david.reitter@gmail.com>
4505
4506 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4507 Lisp_Object (Bug#4736).
4508
cc6c7c75
KH
45092010-02-25 Kenichi Handa <handa@m17n.org>
4510
4511 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4512
32e737d7
JD
45132010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4514
4515 * xterm.c (XTflash): Move declarations before statements.
4516
4517 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4518 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4519 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4520 (xg_create_tool_bar): Remove unused variables.
4521 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4522 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4523
676cae9f
CY
45242010-02-21 Chong Yidong <cyd@stupidchicken.com>
4525
4526 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4527
886cc2b8
SM
45282010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4529
4530 * term.c (fatal): Add a final \n if needed (bug#5596).
4531
ddb2d8e2
CY
45322010-02-18 Chong Yidong <cyd@stupidchicken.com>
4533
4534 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4535
2a4f8d3d
GM
45362010-02-18 Glenn Morris <rgm@gnu.org>
4537
4538 * callint.c (Finteractive): Doc fix.
4539
ebaf11b6
KH
45402010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4541
886cc2b8
SM
4542 * coding.c (record_conversion_result):
4543 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4544 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4545 memory allocation error.
4546
d0396581
KH
45472010-02-17 Kenichi Handa <handa@m17n.org>
4548
886cc2b8
SM
4549 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4550 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4551 (decode_coding): Setup ccl program here. Keep looping when the
4552 decoder stopped because the output buffer is
4553 fullfilled (bug#5534).
4554
4555 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4556
98599f74
JD
45572010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4558
471e4f04 4559 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4560 bug #5571.
886cc2b8 4561 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4562 overdrawn.
98599f74 4563
182659ae
JD
45642010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4565
4566 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4567 doing_interact here.
4568 (ice_connection_closed): New function.
4569 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4570 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4571 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4572 returns I/O error.
4573 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4574 bug #5512.
4575
9be32c4e 45762010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4577
4578 * nsfont.m (nsfont_open): The system's value for the font descent
4579 is negative, so round it down to avoid clipping.
4580
a2f3eb19
CY
45812010-02-06 Chong Yidong <cyd@stupidchicken.com>
4582
4583 * charset.c (load_charset_map_from_file)
4584 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4585 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4586
3088147c
CY
45872010-02-05 Chong Yidong <cyd@stupidchicken.com>
4588
4589 * charset.c (load_charset_map_from_file): Allocate large
4590 charset_map_entries structure on the heap rather than the stack.
4591 (Bug#5526).
4592
b57d9029
KH
45932010-01-31 Kenichi Handa <handa@m17n.org>
4594
4595 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4596 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4597
c67d885b
CY
45982010-01-31 Chong Yidong <cyd@stupidchicken.com>
4599
4600 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4601 <deactivated@gmail.com> (Bug#3605).
4602
8fab2362
CY
46032010-01-31 David De La Harpe Golden <david@harpegolden.net>
4604
4605 * fileio.c (Frename_file): Correctly rename symlinks to
4606 directories (Bug#5496).
4607
cb2a62f2
CY
46082010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4609
4610 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4611
944c7a26
AS
46122010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4613
4614 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4615
c024ac08
CY
46162010-01-29 Chong Yidong <cyd@stupidchicken.com>
4617
4618 * frame.c (DEFAULT_ROWS): Change default to 35.
4619
4620 * xfns.c (x_default_font_parameter): Change default XFT font to
4621 monospace-10 (Bug#3643).
4622
af93af83
EZ
46232010-01-29 Eli Zaretskii <eliz@gnu.org>
4624
4625 * w32inevt.c (key_event): Remove unnecessary comparison of
4626 event->uChar.AsciiChar with 128.
4627
ca0eb708
CY
46282010-01-28 Chong Yidong <cyd@stupidchicken.com>
4629
b242dbfc
CY
4630 * fileio.c (Frename_file): Fix last change (Bug#5487).
4631
ca0eb708
CY
4632 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4633
4634 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4635
45d45af5
JD
46362010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4637
4638 * xfns.c (Fx_create_frame): Remove window size matching code from
4639 2010-01-15.
a73f9c9d 4640 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4641
7e233730
JR
46422010-01-27 Jason Rumney <jasonr@gnu.org>
4643
4644 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4645 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4646
86e893e3
KH
46472010-01-27 Kenichi Handa <handa@m17n.org>
4648
4649 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4650 pattern string (Bug#4209).
86e893e3 4651
8719abec
CY
46522010-01-27 David De La Harpe Golden <david@harpegolden.net>
4653
4654 * fileio.c (Frename_file): Call copy-directory and
4655 delete-directory for directories, in order to handle cross-device
4656 renaming (Bug#3353).
4657
844794c8
JD
46582010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4659
aa3e13b5 4660 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4661 sizes 24 and 10. Bug #3643.
844794c8 4662
bd4b5750
SM
46632010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4664
8dc1adf6 4665 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4666 * keymap.c (shadow_lookup): Add `remap' arg.
4667 (describe_map, describe_vector): Update calls to shadow_lookup.
4668 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4669 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4670 perform remapping during shadow_lookup check of remapped_sequences.
4671
285d07e2
CY
46722010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4673
4674 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4675 png_check_sig, which has been removed in libpng 1.4.
4676
c6d09b8d
CY
46772010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4678
4679 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4680 lacks this header file).
4681
3d782998
YM
46822010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4683
4684 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4685 as in Emacs 22.
4686
2aff7c53
YM
46872010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4688
4689 * lisp.h (make_pure_string): String pointer arg now points to const.
4690
4691 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4692 args now point to const.
4693
74327f7a
EZ
46942010-01-22 Eli Zaretskii <eliz@gnu.org>
4695
4696 * lread.c (Fload): Don't treat files without .elc extension as
4697 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4698 them. (bug#5303)
4699
4d1e6632
KH
47002010-01-20 Kenichi Handa <handa@m17n.org>
4701
4702 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4703 treat the source as actual byte sequence.
4704
1fdede8f
AM
47052010-01-19 Alan Mackenzie <acm@muc.de>
4706
4707 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4708 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4709 `signal_after_change_p' to `coherent_change_p', and make the
4710 invocation of `modify_region' conditional on it.
4711
67477f30
JD
47122010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4713
4714 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4715 for debug purpose.
4716 (syms_of_xsettings): Declare xft-settings.
4717
244b023e
CY
47182010-01-18 Chong Yidong <cyd@stupidchicken.com>
4719
4720 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4721
617364fe
CY
47222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4723
4724 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4725
4fe22cdf
CY
47262010-01-16 Chong Yidong <cyd@stupidchicken.com>
4727
4728 * emacs.c (standard_args): Adjust arg priorities to reflect how
4729 they are processed in startup.el.
4730
e118d2be
AS
47312010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4732
4733 * Makefile.in (lisp, shortlisp): Update.
4734
523ae620
SM
47352010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4736
4737 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4738 code, link the new kboard into all_kboard before running Lisp code,
4739 and protect the new terminal with GCPRO (Bug#5365).
4740 (x_term_init): Remove unused var `atom'.
4741 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4742
f0d13888
JD
47432010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4744
4745 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4746 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4747 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4748 this. Bug #3643.
f0d13888 4749
cc320f07
KH
47502010-01-15 Kenichi Handa <handa@m17n.org>
4751
4752 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4753
7ffdf101
CY
47542010-01-15 Chong Yidong <cyd@stupidchicken.com>
4755
4756 * nsterm.m (Qnone): Define.
4757
4758 * nsfns.m (Qnone): Move definition to nsterm.m.
4759
d12bd917
KH
47602010-01-14 Kenichi Handa <handa@m17n.org>
4761
4762 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4763 systems.
4764
d9a7c140
KH
47652010-01-14 Kenichi Handa <handa@m17n.org>
4766
4767 Make auto-composition work on all buffers even if they are
4768 fundamental mode.
4769
4770 * composite.c (Vauto_composition_mode): New variable.
4771 (composition_compute_stop_pos): Check Vauto_composition_mode
4772 instead of Vauto_composition_function.
4773 (composition_adjust_point, Ffind_composition_internal): Likewise.
4774 (syms_of_composite): Declare Lisp variable
4775 "auto-composition-mode" here.
4776
63286bb2
CY
47772010-01-13 Chong Yidong <cyd@stupidchicken.com>
4778
4779 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4780 during call to vendor-specific-keysyms (Bug#5365).
4781
c2623ee7
YM
47822010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4783
4784 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4785 Call SIGNAL_THREAD_CHECK (Bug#5333).
4786
4787 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4788 Call SIGNAL_THREAD_CHECK.
4789
0b5397c2
SM
47902010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 Try to fix bug#5314. This is probably not the final word, tho.
4793 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4794 recent-auto-save-p as a side-effect.
4795 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4796 * buffer.c (Fkill_buffer, reset_buffer):
4797 * editfns.c (Fsubst_char_in_region):
4798 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4799 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4800
dc954cb2
KH
48012010-01-13 Kenichi Handa <handa@m17n.org>
4802
4803 Display buffer name, etc. in mode line by composing correctly.
4804
4805 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4806 STRING is not nil.
0b5397c2 4807 (display_mode_element): Adjust for the change of
dc954cb2
KH
4808 decode_mode_spec and display_line.
4809 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4810 (display_string): Handle the case that STRING is non-null and
4811 LISP_STRING is not nil.
4812
0b5397c2
SM
4813 * xterm.c (x_draw_composite_glyph_string_foreground):
4814 Pay attention to s->face->overstrike.
dc954cb2
KH
4815
4816 * composite.c (composition_reseat_it): Don't check PT if STRING is
4817 non nil.
4818
4a00eaca
YM
48192010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4820
4821 * keyboard.c (read_char): Don't apply previous change when current
4822 buffer is unchanged by command execution.
4823
60abb287
JD
48242010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4825
4826 * keyboard.c (read_char): Return after executing from special map.
4827
893db5bc
GM
48282010-01-12 Glenn Morris <rgm@gnu.org>
4829
4830 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4831 bug-gnu-emacs rather than emacs-pretest-bug.
4832
4d03ece0
CY
48332010-01-11 Chong Yidong <cyd@stupidchicken.com>
4834
4835 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4836 initializing the Lisp variables that depend on them.
4837
1df47e38
YM
48382010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4839
4840 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4841 Clear areas that will not be updated after change of menu bar lines.
4842 Clear the menu bar window's current matrix when the window gets empty.
4843
2f1c6384
CY
48442010-01-09 Chong Yidong <cyd@stupidchicken.com>
4845
e398c61c
CY
4846 * intervals.h, textprop.c (extend_property_ranges): Return value
4847 and args changed. Discard properties that begin at or after the
4848 new end (Bug#5306).
4849
4850 * editfns.c (Fformat): Caller changed.
4851
e5a29a10
CY
4852 * nsterm.m (ns_set_default_prefs): Delete function.
4853 (syms_of_nsterm): Initialize ns_command_modifier,
4854 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4855 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4856
2f1c6384
CY
4857 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4858 position (Bug#4040).
4859
d427a9fa
EZ
48602010-01-09 Eli Zaretskii <eliz@gnu.org>
4861
4862 * editfns.c (Ffloat_time): Doc fix.
4863
21b9df2f
JD
48642010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4865
4866 * xfns.c (Fx_create_frame): Don't create frame larger than display
4867 by default bug#3643.
4868
4b00d3b1
YM
48692010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4870
4871 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4872 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4873 windows above internal border.
4874
4875 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4876 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4877 windows above internal border.
4878
4879 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4880 tool bar windows specially.
4881
4882 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4883
4884 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4885 specially.
4886 (XTflash): Take account of menu bar height.
4887
4888 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4889 specially.
4890
5075d853
JD
48912010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4892
ac146f82 4893 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4894 also be true before we can return early (bug #5339).
4895
474217c8
CY
48962010-01-06 David Reitter <david.reitter@gmail.com>
4897
4898 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4899 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4900 (Bug#3233).
4901
c0e6d47d
JD
49022010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4903
d0cf45b7
JD
4904 * font.c (font_open_entity): Enable chache and call cached_font_ok
4905 for the driver if defined.
4906 (QCuser_spec): New symbol.
4907 (font_spec_from_name): Save name as user-spec.
4908 (font_load_for_lface): Keep user-spec instead of name.
4909 (font_open_by_name): Save name as user-spec.
4910 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4911 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4912
4913 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4914 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4915 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4916
4917 * font.h (struct font_driver): Add cached_font_ok.
4918
c0e6d47d
JD
4919 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4920
7c583cd8
JD
49212010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4922
4923 * xterm.c (x_new_font): Move code for setting rows/cols before
4924 resizing ...
ac146f82 4925 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4926
4927 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4928 (xg_frame_resized, xg_frame_set_char_size):
4929 Call xg_clear_under_internal_border.
7c583cd8 4930 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4931
03f77f0a
CY
49322010-01-05 Chong Yidong <cyd@stupidchicken.com>
4933
4934 * keyboard.c (read_key_sequence): Catch keyboard switch after
4935 making a new tty frame (Bug#5095).
4936
2a1ef5be
KH
49372010-01-05 Kenichi Handa <handa@m17n.org>
4938
4939 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4940
e3eb1dae
SM
49412010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4942
4943 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4944 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4945 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4946
777013f2
MA
49472010-01-03 Michael Albinus <michael.albinus@gmx.de>
4948
4949 * dbusbind.c (xd_add_watch): Improve debug message.
4950 (xd_remove_watch): Improve debug message. If DATA is the session
4951 bus, unset D-Bus session environment.
4952 (Fdbus_init_bus): Pass the bus as argument to
4953 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4954
8932b1c2
CY
49552010-01-01 Chong Yidong <cyd@stupidchicken.com>
4956
87231e2c
CY
4957 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4958
4801c5fa
CY
4959 * lread.c (syms_of_lread): Make it clearer that these are the
4960 names of loaded files (Bug#5068).
4961
8932b1c2
CY
4962 * eval.c (run_hook_with_args): Handle the case where the global
4963 value has the obsolete single-function form (Bug#5026).
4964
11e3c684
CY
49652009-12-27 Chong Yidong <cyd@stupidchicken.com>
4966
4967 * minibuf.c (Fall_completions): Minor optimization.
4968
5b28ce35
EZ
49692009-12-26 Eli Zaretskii <eliz@gnu.org>
4970
5ce6e4f4
JB
4971 * .gdbinit (pgx): Fix display of composite glyphs.
4972 Display cmp.from and cmp.to as well.
4973 (pitx): Fix last change.
5b28ce35 4974
bcffff46
KH
49752009-12-25 Kenichi Handa <handa@m17n.org>
4976
4977 * composite.h (composition_adjust_point): Update prototype.
4978
4979 * composite.c (composition_reseat_it): Don't make a composition
4980 spanning over point.
4981 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4982 composable characters.
4983 (composition_adjust_point): New arg NEW_PT. Callers changed.
4984
4985 * keyboard.c (command_loop_1): Force redisplay if the last point
4986 was within a composition.
4987 (adjust_point_for_property): Don't adjust point for automatic
4988 composition when called after buffer modification.
4989
3f670e9a
EZ
49902009-12-19 Eli Zaretskii <eliz@gnu.org>
4991
5ce6e4f4
JB
4992 * .gdbinit (pitx): Don't use enum names, use their values.
4993 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4994 (pgx): Don't use enum names, use their values.
4995 (pitmethod): New helper command.
4996 (pitx): Use it to display iteration method.
4997 (pgrowit): New command.
4998
ad903955
EZ
4999 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5000
3f670e9a
EZ
5001 Update dependencies in Makefile.in.
5002
5003 * Makefile.in (alloc.o): Depend on termhooks.h.
5004 (atimer.o): Depend on blockinput.h.
5005 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5006 and frame.h.
5007 (callint.o): Depend on systime.h, coding.h, and composite.h.
5008 (callproc.o): Depend on buffer.h.
5009 (casefiddle.o): Don't depend on charset.h.
5010 (casetab.o): Depend on character.h.
5011 (ccl.o): Depend on composite.h.
5012 (chartab.o): Depend on ccl.h.
5013 (cm.o): Depend on dispextern.h.
5014 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5015 (coding.o): Don't depend on $(INTERVALS_H).
5016 (composite.o): Don't depend on dispextern.h explicitly (it's in
5017 $(INTERVALS_H)). Depend on ccl.h.
5018 (data.o): Depend on systime.h, coding.h, composite.h,
5019 dispextern.h, font.h, and ccl.h.
5020 (dired.o): Depend on composite.h.
5021 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5022 composite.h (it's in $(INTERVALS_H)).
5023 (doc.o): Depend on systime.h, coding.h, and composite.h.
5024 (editfns.o): Don't depend explicitly on dispextern.h.
5025 (emacs.o): Depend on frame.h and coding.h.
5026 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5027 (fileio.o): Depend on frame.h and commands.h. Don't depend
5028 explicitly on dispextern.h.
5029 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5030 composite.h.
5031 (fns.o): Don't depend on termhooks.h.
5032 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5033 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5034 coding.h, $(INTERVALS_H), window.h, xterm.h.
5035 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5036 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5037 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5038 fontset.h, ccl.h, and ftfont.h.
5039 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5040 (gtkutil.o): Depend on dispextern.h and composite.h.
5041 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5042 termhooks.h, and ccl.h.
5043 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5044 (intervals.o): Depend on systime.h and coding.h.
5045 (keyboard.o): Depend on composite.h and coding.h.
5046 (keymap.o): Depend on coding.h and frame.h.
5047 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5048 (macros.o): Depend on systime.h, coding.h, and composite.h.
5049 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5050 and atimer.h.
5051 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5052 dispextern.h explicitly.
0b5397c2
SM
5053 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5054 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5055 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5056 (regex.o): Don't depend on charset.h.
5057 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5058 (search.o): Don't depend explicitly on composite.h.
5059 (sound.o): Depend on atimer.h and systime.h.
5060 (syntax.o): Don't depend explicitly on composite.h.
5061 (sysdep.o): Depend on coding.h and composite.h.
5062 (term.o): Depend on xterm.h and buffer.h.
5063 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5064 (textprop.o): Don't depend on dispextern.h explicitly.
5065 (undo.o): Depend on dispextern.h.
5066 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5067 dispextern.h and composite.h explicitly.
5068 (xdisp.o): Depend on ccl.h.
5069 (xfaces.o): Depend on coding.h and ccl.h.
5070 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5071 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5072 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5073 ftfont.h.
5074 (xgselect.o): New dependency.
5075 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5076 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5077 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5078 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5079 (xsmfns.o): Depend on frame.h and dispextern.h.
5080 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5081 sysselect.h.
5082
7a6f7fea
AS
50832009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5084
5085 * font.c (Fclear_font_cache): Pass correct cache argument to
5086 font_clear_cache.
5087
f4c21026
AS
50882009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5089
5090 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5091 twice.
5092
f7ab0997
CY
50932009-12-15 Chong Yidong <cyd@stupidchicken.com>
5094
5095 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5096 calling file-remote-p. Reported by Jim Meyering.
5097
fa8e045a
MA
50982009-12-15 Michael Albinus <michael.albinus@gmx.de>
5099
5100 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5101 avoid compiler warnings. (Bug #5217)
fa8e045a 5102
a63dba42
KH
51032009-12-14 Kenichi Handa <handa@m17n.org>
5104
5105 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5106 in 8-bit encoding.
5107
5ce6e4f4 51082009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5109
5110 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5111 tooltip windows.
5112
223e5fc6
JD
51132009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5114
36acb2a7
JD
5115 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5116 Xatom_net_window_type.
5117
5118 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5119 Xatom_net_window_type.
5120
b8f00677
JD
5121 * xterm.c (my_log_handler): New function.
5122 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5123 so we can filter out buggy messages. (Bug #5120).
b8f00677 5124
e5f0bc9a
JD
5125 * xterm.c (xg_scroll_callback): Parameter list changed,
5126 use parameter GtkScrollType to determine scroll/line/page.
5127 Only allow dragging if a button < 4 is grabbed (bug #5177).
5128 (xg_end_scroll_callback): New function.
5129 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5130 xg_create_scroll_bar.
5131
5132 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5133 (scroll_end_callback): Remove.
5134 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5135 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5136 bug #5177.
e5f0bc9a
JD
5137 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5138 bug #5177.
5139
5140 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5141 (xg_create_scroll_bar): Add GCallback end_callback.
5142
223e5fc6
JD
5143 * xftfont.c (QClcdfilter): New variable.
5144 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5145 (syms_of_xftfont): Initialize QClcdfilter.
5146
3c055b77
JD
51472009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5148
5149 * xsettings.c (struct xsettings): Add member seen.
5150 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5151 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5152 (apply_xft_settings): Only update Xft settings with what member seen
5153 indicates as new.
5154
05fe33ff
EZ
51552009-12-12 Eli Zaretskii <eliz@gnu.org>
5156
c4cc8b9a 5157 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5158 (struct glyph): Use EMACS_INT for charpos.
5159 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5160 region_beg_charpos, region_end_charpos,
5161 redisplay_end_trigger_charpos, and also for
5162 iterator_stack_entry.end_charpos and
5163 iterator_stack_entry.stop_charpos.
5164
e8d7886a
JD
51652009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5166
5ce6e4f4 5167 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5168 (xg_create_scroll_bar): Call scroll_end_callback on button release
5169 event (bug #5177).
5170 (xg_event_is_for_scrollbar): != replaced with ==.
5171
d0db2ec8
KH
51722009-12-12 Kenichi Handa <handa@m17n.org>
5173
5174 * ftfont.c (struct ftfont_info): New member matrix.
5175 (ftfont_open): Setup xftfont_info->matrix.
5176 (MFLTFontFT): New member matrix.
5177 (FLOOR, CEIL, ROUND): New macros.
5178 (ftfont_get_metrics): Handle matrix transformation.
5179 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5180
5181 * xftfont.c (struct xftfont_info): New member matrix.
5182 (xftfont_open): Setup xftfont_info->matrix.
5183
51842009-12-10 Kenichi Handa <handa@m17n.org>
5185
5186 * xdisp.c (append_space_for_newline): Consider face-remapping.
5187
2cc7b62f
AS
51882009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5189
b87dd913
AS
5190 * xsettings.c: Include "keyboard.h".
5191
eba5eb94
AS
5192 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5193
2cc7b62f
AS
5194 Fix implicit function declarations.
5195 * cmds.c: Include "frame.h".
5196 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5197 * frame.h: Move declaration of delete_frame outside of
5198 HAVE_WINDOW_SYSTEM.
5199
a4ef73c8
CY
52002009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5201
5202 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5203
5204 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5205 GTK builds.
5206
944a300c
AS
52072009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5208
5209 * unexelf.c (unexec): Don't search for .data twice.
5210
022eef62
CY
52112009-12-05 Chong Yidong <cyd@stupidchicken.com>
5212
426ac949
CY
5213 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5214 if push failed.
5215 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5216 of push_display_prop (Bug#5000).
5217
022eef62
CY
5218 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5219 value of font_list_entities (Bug#5085).
5220
be95bee9
JB
52212009-12-04 Juanma Barranquero <lekktu@gmail.com>
5222
5223 Fix `string-to-number' to deal consistently with integers and floats.
5224 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5225 trailing characters, not just whitespace.
5226 (read1): Pass new arg 0 to keep old behavior.
5227 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5228 trailing chars, as it is already done for integers. Doc fixes.
5229 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5230
24c2d7ce
EZ
52312009-12-04 Eli Zaretskii <eliz@gnu.org>
5232
0b5397c2
SM
5233 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5234 Delete unused enumeration value.
24c2d7ce 5235
7e694795
EZ
52362009-12-03 Eli Zaretskii <eliz@gnu.org>
5237
5238 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5239
84b31826
SM
52402009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5241
5242 * process.c (Fmake_network_process): Fix up the tests for
5243 "connectionless socket", so they DTRT for seqpacket sockets as well.
5244
f00c449b
SM
52452009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5246
5247 * process.c (Qseqpacket): New symbol.
5248 (HAVE_SEQPACKET): New macro.
5249 (Fmake_network_process): Accept new :type `seqpacket'.
5250 (init_process): Add `seqpacket' feature when applicable.
5251 (syms_of_process): Initialize Qseqpacket.
5252
8096a0ff
YM
52532009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5254
5255 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5256 if entity is Qnil.
5257
3e0de07f
SM
52582009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5259
5260 * print.c (print_preprocess): Preprocess the key_and_value table of
5261 hashtables, even tho they're "hidden" (bug#5082).
5262
abeafb2a
JD
52632009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5264
5265 * frame.c (frame_make_pointer_invisible)
5266 (frame_make_pointer_visible): Declare f before statements.
5267
4bf47195
EZ
52682009-11-28 Eli Zaretskii <eliz@gnu.org>
5269
5270 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5271 omitted dependencies on lisp.h.
5272
c525b3f2
JD
52732009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5274
ece2d4ed
JD
5275 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5276 is NULL.
5277
5278 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5279
5280 * frame.c (frame_make_pointer_invisible)
3e0de07f 5281 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5282 frame.
5283
c525b3f2
JD
5284 * search.c (simple_search): Remove warning by making *p const.
5285
2f00e299
DN
52862009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5287
5288 * xdisp.c (power_letter): Remove duplicate const.
5289
084b049b
JD
52902009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5291
a1fadc6f
JD
5292 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5293
5ce6e4f4 5294 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5295 defaults (bug #5025).
5296
28259cac
SM
52972009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5298
5299 * insdel.c (adjust_markers_for_delete): Move it in the
5300 right direction! (bug#4803)
5301
e8e14166
YM
53022009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5303
5304 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5305
5306 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5307
86677b58
GM
53082009-11-24 Glenn Morris <rgm@gnu.org>
5309
5310 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5311
581e51e8
JD
53122009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5313
cfc86c7a
JD
5314 * Makefile.in: Must create deps for ecrt0.o in its rule.
5315
581e51e8
JD
5316 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5317 because that is what Gtk+ font dialog understands.
5318
5319 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5320 of Fcopy_sequence.
5321 (font_open_by_name): Put name given into QCname for font-object returned.
5322
5323 * frame.c (x_set_font): Save original font name as frame parameter
5324 font-parameter.
5325
5326 * xsettings.c (set_default_xft_settings): New function.
5327 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5328 is found.
5329
8b264ecb
AS
53302009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5331
5332 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5333 searching backwards through multibyte buffer.
5334
872870b2
JD
53352009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5336
5337 * xterm.c: #include xgselect.h.
5338 (x_initialize): Call xgselect_initialize.
5339
5340 * xsettings.c (something_changedCB): C++ comments => C comments.
5341 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5342 does that now.
5343
5344 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5345 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5346 (scroll_bar_button_cb): Remove.
5ce6e4f4 5347 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5348 event.
5349 (xg_create_scroll_bar): Don't bind button-press-event and
5350 button-release-event.
5351
5352 * process.c: Include xgselect.h if defined (USE_GTK) ||
5353 defined (HAVE_GCONF).
5354 (wait_reading_process_output): Call xg_select for the same condition.
5355
5356 * xgselect.c (xg_select): New function to better integrate with
5357 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5358
5359 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5360
5361 * Makefile.in (XOBJ): Add xgselect.o.
5362
62a6e103
AS
53632009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5364
0b5397c2
SM
5365 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5366 Remove ignored second argument. All callers changed.
62a6e103
AS
5367 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5368 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5369 * xdisp.c (string_char_and_length): Likewise.
5370
b0ca0f33
DN
53712009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5372
5373 * xterm.c (x_new_font):
5374 * print.c (print_object):
5375 * cmds.c (Fself_insert_command): Move declarations before statements.
5376
dd5a6279
CY
53772009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5378
5379 * s/cygwin.h: Remove unneeded linker flags.
5380
4a8e097d
JD
53812009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5382
0d1d0d26
JD
5383 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5384
5385 * xsettings.h: Declare xsettings_get_system_font.
5386
5387 * xsettings.c (xsettings_get_system_font): New function.
5388 (init_gconf): No use initiating gconf unless we have Xft also.
5389 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5390 HAVE_GCONF.
5391
4a8e097d
JD
5392 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5393 add a blank entry so it doesn't collapse into nothing.
5394
8ab1650e
SM
53952009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5396
5397 * lread.c (Funintern): Comment out last change.
5398
82c602f0
RS
53992009-11-19 Richard Stallman <rms@gnu.org>
5400
5401 * lread.c (Funintern): Error if symbol is t or nil.
5402
87e32266
SM
54032009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5404
5405 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5406 representation of Lisp integers.
5407 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5408
1b9ac145
AS
54092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5410
5411 * lisp.h: Remove declaration of Ffont_get_system_font.
5412 * xfns.c: Move include of "xsettings.h".
5413 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5414
dfb3c4c6
JD
54152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5416
87e32266
SM
5417 * xsettings.c (something_changedCB, Ffont_get_system_font):
5418 Check use_system_font.
dfb3c4c6
JD
5419 (syms_of_xsettings): DEFVAR font-use-system-font.
5420
9370c1d8
AS
54212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5422
25fe851a
AS
5423 * xfns.c (x_default_font_parameter): Remove dead assignment.
5424
9370c1d8
AS
5425 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5426
637fa988
JD
54272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5428
87e32266 5429 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5430 not have FC_LCD_*. #define them if not there.
a6eb20d8 5431
87e32266 5432 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5433
637fa988
JD
5434 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5435
5436 * xterm.c (handle_one_xevent): Call xft_settings_event for
5437 ClientMessage, PropertyNotify and DestroyNotify.
5438 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5439 Call xsettings_initialize.
5440
5441 * xftfont.c (xftfont_fix_match): New function.
5442 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5443 Call xftfont_fix_match after XftFontMatch.
5444
5445 * xfont.c (xfont_driver): Initialize all members.
5446
87e32266
SM
5447 * xfns.c (x_default_font_parameter):
5448 Try font from Ffont_get_system_font.
637fa988
JD
5449 Do not get font from x_default_parameter if we got one from
5450 Ffont_get_system_font.
87e32266 5451 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5452
5453 * w32font.c (w32font_driver): Initialize all members.
5454
5455 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5456
5457 * lisp.h: Declare syms_of_xsettings.
5458
87e32266
SM
5459 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5460 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5461
5462 * ftfont.c (ftfont_filter_properties): New function.
5463
5464 * frame.c (x_set_font): Remove unused variable lval.
5465
87e32266 5466 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5467
5468 * font.c (font_put_extra): Don't return if val is nil, it means
5469 boolean option is off.
5470 (font_parse_fcname): Collect all extra properties in extra_props
5471 and call filter_properties for all drivers with extra_props and
5472 font as parameter.
87e32266
SM
5473 (font_open_entity): Do not use cache, it does not pick up new
5474 fontconfig settings like hinting.
637fa988
JD
5475 (font_load_for_lface): If spec had a name in it, store it in entity.
5476
a73f9c9d 5477 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5478
5479 * config.in: HAVE_GCONF is new.
5480
5481 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5482 xsettings.o is new.
5483
5a942932
KH
54842009-11-17 Kenichi Handa <handa@m17n.org>
5485
5486 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5487 back to the default font in case that no suitable font is found.
5488
b7c7a4d1
SM
54892009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5490
5491 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5492 Suggested by Chad Brown <yandros@mit.edu>.
5493 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5494
072f1e39
JD
54952009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5496
5497 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5498
5d1e70a2
AS
54992009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5500
87e32266 5501 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5502
a53cfbe5
JD
55032009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5504
473a99b7
JD
5505 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5506 has a parent.
5507
a53cfbe5 5508 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5509 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5510
5511 * config.in: Generated (AUTO_DEPEND).
5512
f04bb9b2
MA
55132009-11-13 Michael Albinus <michael.albinus@gmx.de>
5514
b7c7a4d1 5515 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5516 Vdbus_registered_functions_table, because it contains also
5517 properties. Fix docstring.
b7c7a4d1 5518 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5519
8f11f7ec
SM
55202009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5521
5522 * alloc.c (mark_object): Don't reprocess marked strings.
5523 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5524 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5525
8a605fe8
KH
55262009-11-13 Kenichi Handa <handa@m17n.org>
5527
8f11f7ec 5528 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5529 semantics of Vword_combining_categories.
5530 (Vword_combining_categories): Describe the slight change of the
5531 semantics.
5532
241c4680
EZ
55332009-11-13 Eli Zaretskii <eliz@gnu.org>
5534
5535 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5536
5537 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5538
5d58e44c
SM
55392009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5540
5541 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5542
5e13f9d3
JB
55432009-11-12 Juanma Barranquero <lekktu@gmail.com>
5544
5545 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5546
cf54c754
DR
55472009-11-11 David Reitter <david.reitter@gmail.com>
5548
5549 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5550 variables to fix 2009-11-09 change.
5551
a4ada374
DN
55522009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5553
91433552
DN
5554 * process.c (ifflag_def): Make flag_sym constant.
5555 (Fnetwork_interface_info): Use a constant pointer.
5556 (ifflag_table):
5557 * xfns.c (cursor_bits):
5558 * xdisp.c (power_letter):
5559 * termcap.c (speeds, esctab):
5560 * sysdep.c (baud_convert):
5561 * keyboard.c (lispy_accent_codes, modifier_names):
5562 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5563 (jpeg_format, tiff_format, gif_format, svg_format)
5564 (interlace_start, interlace_increment, gs_format):
5565 * gtkutil.c (separator_names):
5566 * fringe.c (swap_nibble):
5567 * fns.c (base64_value_to_char, base64_char_to_value):
5568 * fileio.c (make_temp_name_tbl):
5569 * coding.c (suffixes): Make constant.
5570
f4265f6c
DN
5571 * frame.c (make_initial_frame):
5572 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5573 build_string.
5574 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5575
04420943
DN
5576 * s/freebsd.h:
5577 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5578
0a5d24ae
DN
5579 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5580 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5581
a4ada374
DN
5582 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5583 * xterm.c (syms_of_xterm):
5584 * xfaces.c (syms_of_xfaces):
5585 * xdisp.c (syms_of_xdisp):
5586 * lread.c (syms_of_lread):
5587 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5588 build_string.
91433552 5589
a4ada374
DN
5590 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5591
af98fc7f
SM
55922009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5593
8ab1650e 5594 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5595
e90292a9
JD
55962009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5597
5598 * keyboard.h: Declare timer_check.
5599
5600 * keyboard.c (timer_check_2): New function that does what the old
5601 timer_check did.
5602 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5603 returned, i.e. don't return -1 with timers pending.
5604
5605 * process.c: Remove extern declaration of timer_check.
5606
5607 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5608 even if timer_check returned -1.
5609
af98fc7f
SM
5610 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5611 xg_dialog_data.
e90292a9
JD
5612 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5613 the event loop.
5614 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5615 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5616 Destroy the dialog after xg_dialog_run.
5617
045b83c0
SM
56182009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5619
5620 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5621
1fb99a3a
JD
56222009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5623
5624 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5625
04e452cb
JB
56262009-11-09 Juanma Barranquero <lekktu@gmail.com>
5627
5628 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5629
ef7417fd
SM
56302009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5631
5632 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5633 w32menu.c, and nsmenu.m.
5634 Simplify the obsolete case where position is nil.
5635 (cleanup_popup_menu): New function, moved from nsmenu.m.
5636 (struct skp): Remove slot `notreal'.
5637 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5638 adjust callers.
5639 (single_menu_item): Adjust call to parse_menu_item.
5640 (syms_of_menu): Defsubr x-popup-menu.
5641 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5642 (keymap_panes): Don't export any more.
5643 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5644 (xmenu_show): Declare.
5645 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5646 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5647 * keyboard.h (parse_menu_item): Update declaration.
5648 * xmenu.c (Fx_popup_menu): Remove.
5649 (syms_of_xmenu): Don't defsubr x-popup-menu.
5650 * w32menu.c (Fx_popup_menu): Remove.
5651 (syms_of_w32menu): Don't defsubr x-popup-menu.
5652 * nsmenu.m (cleanup_popup_menu): Remove.
5653 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5654 moved to menu.c's Fx_popup_menu.
5655 (Fx_popup_menu): Remove.
5656 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5657 menu_items (it's done in menu.c already).
5658
424d6179
SM
56592009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5660
5661 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5662 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5663
c0df13a6 56642009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5665
5666 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5667 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5668 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5669 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5670
2de9f71c
SM
56712009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5672
5673 Let integers use up 2 tags to give them one extra bit and thus double
5674 their range.
5675 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5676 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5677 New macros.
5678 (enum Lisp_Type): Use them. Give explicit values.
5679 (Lisp_Type_Limit): Remove.
5680 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5681 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5682 Pay attention to USE_2_TAGS_FOR_INTS.
5683 (INTEGERP): Use LISP_INT_TAG_P.
5684 * fns.c (internal_equal): Simplify the default case.
5685 (sxhash): Use case_Lisp_Int.
5686 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5687 any more.
5688 (Ftype_of): Use case_Lisp_Int.
5689 (store_symval_forwarding): Take into account the fact that Ints can
5690 now have more than one tag.
5691 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5692 buffer_slot_type_mismatch):
5693 * xfaces.c (face_attr_equal_p):
5694 * print.c (print_object):
5695 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5696 Use case_Lisp_Int.
5697
323637a2
EZ
56982009-11-06 Eli Zaretskii <eliz@gnu.org>
5699
7ac65b38
EZ
5700 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5701
323637a2
EZ
5702 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5703 warning.
5704
e511451f
JD
57052009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5706
5707 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5708
5709 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5710
5711 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5712 ButtonPressRelease and MotionNotify (bug#4870).
5713
5e2327cf
DN
57142009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5715
5adc433e
DN
5716 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5717
d67b4f80
DN
5718 * xterm.c (syms_of_xterm):
5719 * xselect.c (syms_of_xselect):
5720 * xmenu.c (syms_of_xmenu):
5721 * xfns.c (syms_of_xfns):
5722 * xfaces.c (syms_of_xfaces):
5723 * xdisp.c (syms_of_xdisp):
5724 * window.c (syms_of_window):
5725 * w32fns.c (syms_of_w32fns):
5726 * undo.c (syms_of_undo):
5727 * textprop.c (syms_of_textprop):
5728 * terminal.c (syms_of_terminal):
5729 * syntax.c (syms_of_syntax):
5730 * sound.c (syms_of_sound):
5731 * search.c (syms_of_search):
5732 * print.c (syms_of_print):
5733 * minibuf.c (syms_of_minibuf):
5734 * macros.c (syms_of_macros):
5735 * keymap.c (syms_of_keymap, initial_define_key)
5736 (initial_define_lispy_key):
5737 * keyboard.c (syms_of_keyboard):
5738 * insdel.c (syms_of_insdel):
5739 * image.c (syms_of_image):
5740 * fringe.c (syms_of_fringe):
5741 * frame.c (syms_of_frame):
5742 * fontset.c (syms_of_fontset):
5743 * fns.c (syms_of_fns):
5744 * fns.c (syms_of_fns):
5745 * fileio.c (syms_of_fileio):
5746 * fileio.c (syms_of_fileio):
5747 * eval.c (syms_of_eval):
5748 * doc.c (syms_of_doc):
5749 * dispnew.c (syms_of_display):
5750 * dired.c (syms_of_dired):
5751 * dbusbind.c (syms_of_dbusbind):
5752 * data.c (syms_of_data):
5753 * composite.c (syms_of_composite):
5754 * coding.c (syms_of_coding):
5755 * cmds.c (syms_of_cmds):
5756 * charset.c (define_charset_internal, syms_of_character):
5757 * ccl.c (syms_of_ccl):
5758 * category.c (syms_of_category, init_category_once):
5759 * casetab.c (syms_of_casetab):
5760 * casefiddle.c (syms_of_casefiddle):
5761 * callint.c (syms_of_callint):
5762 * bytecode.c (syms_of_bytecode):
5763 * buffer.c (keys_of_buffer, syms_of_buffer):
5764 * alloc.c (syms_of_alloc):
5765 * process.c (syms_of_process, init_process):
5766 * lread.c (syms_of_lread, init_obarray):
5767 * font.c (build_style_table):
5768 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5769 intern_c_string, calls to make_pure_string with
5770 make_pure_c_string. Use pure_cons instead of Fcons.
5771
5e2327cf
DN
5772 * process.c (socket_options): Make it const.
5773 (set_socket_option, init_process): Use a const pointer.
5774
5775 * lread.c (intern_c_string): New function.
5776 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5777 (defvar_int): Uset it. Make the name const char*.
5778
5779 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5780 (defvar_int): Update prototypes.
5781 (DEFUN, EXFUN): Support for prototypes is now required.
5782 (intern_c_string): New prototype.
5783 (struct Lisp_Subr): Make symbol_name constant.
5784
5785 * font.c (struct table_entry): Remove unused member. Make NAMES
5786 constant.
5787 (weight_table, slant_table, width_table): Make constant.
5788
5789 * emacs.c (struct standard_args): Make name and longname constant.
5790
5791 * character.h (DEFSYM): Use intern_c_string.
5792
a56eaaef
DN
57932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5794
5795 * alloc.c (make_pure_c_string): New function.
5796
5797 * eval.c (Fautoload): Purecopy all arguments.
5798
f6a07420
KH
57992009-11-05 Kenichi Handa <handa@m17n.org>
5800
5801 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5802 the buffer in case of replace.
5803
5d28d4b1
DN
58042009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5805
5806 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5807
b349d111
SM
58082009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5809
d528b1ce
SM
5810 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5811 when applicable (bug#4851).
5812
b349d111
SM
5813 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5814 (P_): Support for prototypes is now required.
5815
c38eb027
CY
58162009-10-31 Chong Yidong <cyd@stupidchicken.com>
5817
5818 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5819 (Bug#4827).
5820
0405f8d9
EZ
58212009-10-30 Eli Zaretskii <eliz@gnu.org>
5822
d528b1ce 5823 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5824
ca0a881a
DN
58252009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5826
5827 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5828
d528b1ce
SM
5829 * lread.c (Fload): Purecopy the file name when building
5830 Vpreloaded_file_list.
ca0a881a 5831
47e0e0e4
JR
58322009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5833
5834 * w32fns.c (syms_of_w32fns): Change default value of
5835 w32-scroll-lock-modifier to nil. (Bug#2827)
5836
057bce6f
JB
58372009-10-26 Juanma Barranquero <lekktu@gmail.com>
5838
782a943e 5839 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5840
242bc74c
AS
58412009-10-26 Andreas Schwab <schwab@redhat.com>
5842
5843 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5844
522d013a
JB
58452009-10-26 Juanma Barranquero <lekktu@gmail.com>
5846
5847 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5848 For delta < 0, skip check that only makes sense when the mini-window
5849 is going to be enlarged. (Bug#4534)
5850
18060980
CY
58512009-10-25 Chong Yidong <cyd@stupidchicken.com>
5852
5853 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5854 string in menu maps (Bug#4471).
5855
fec8f0fe
CY
58562009-10-24 Chong Yidong <cyd@stupidchicken.com>
5857
5858 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5859 FRAME_NS_VIEW on terminal frames (Bug#4765).
5860
10d66ec0
AS
58612009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5862
1cae01f7
AS
5863 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5864 DBUS_TYPE_UINTnn separately to get proper sign extension.
5865
58a12889
AS
5866 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5867 can properly handle unsigned types.
d528b1ce 5868 (make_uid, make_gid): Remove.
58a12889 5869
987c9327
AS
5870 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5871 types again.
5872
522d013a 5873 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5874 (system_process_attributes): Likewise.
5875
905a9ed3
DN
58762009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5877
5878 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5879
5880 * eval.c (Fautoload): Purecopy the filename. Simplify.
5881
5882 * category.c (Fdefine_category): Purecopy docstring.
5883
a599b3e8
AS
58842009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5885
7b792fc9
AS
5886 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5887
a599b3e8
AS
5888 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5889
b35ac83e
CY
58902009-10-23 Chong Yidong <cyd@stupidchicken.com>
5891
5892 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5893 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5894 (Bug#4775).
5895
e8903e00
SM
58962009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5897
5898 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5899 (init_fileio_once):
5900 * lisp.h (init_fileio_once): Remove.
5901 * emacs.c (main): Don't call init_fileio_once.
5902
8f43cbf3
DN
59032009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5904
5905 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5906
26898943
AS
59072009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5908
5909 * doprnt.c (doprnt): Fix overflow check.
5910
5c646d5a
JD
59112009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5912
3132a7ea
JD
5913 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5914
5c646d5a
JD
5915 * xterm.h (x_wait_for_event): Declare it.
5916
5917 * xterm.c (pending_event_wait): New variable.
5918 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5919 see pending_event_wait.eventtype.
5920 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5921 (x_new_font): Call change_frame_size with new rows/columns before we
5922 try to resize the frame.
5c646d5a 5923 (x_wait_for_event): New function.
d528b1ce
SM
5924 (x_set_window_size_1): Don't change gravity unless change_gravity
5925 is set.
5c646d5a
JD
5926 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5927 don't change frame size, instead wait for the ConfigureNotify.
5928 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5929 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5930 (x_initialize): Initialize pending_event_wait.
5931
5932 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5933 size.
5934
5935 * widget.c (EmacsFrameSetValues): Add comment.
5936 (EmacsFrameSetCharSize): Just call x_set_window_size.
5937
5938 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5939 x_wait_for_event.
d528b1ce 5940 (flush_and_sync): Remove again.
5c646d5a
JD
5941 (xg_get_font_name): Suggest monospace if no previous font is known.
5942
e9c1637d
SM
59432009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5944
5945 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5946 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5947
5a72cccb
YM
59482009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5949
5950 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5951 processing pending events when event is filtered for input method.
ab04798f 5952 (Bug#3681)
5a72cccb 5953
2629aa37
JB
59542009-10-20 Juanma Barranquero <lekktu@gmail.com>
5955
5956 * fns.c: Add #endif accidentally removed in previous change.
5957
c3417a74
DN
59582009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5959
5960 * fns.c: Remove code for unsupported system: MAC_OS.
5961 * image.c: Likewise. Include setjmp.h.
5962
9685cef2
JD
59632009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5964
5965 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5966 pixel -1 (bug #4742).
5967
d7306fe6
DN
59682009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5969
019d2c4c
DN
5970 * process.c (create_pty): Remove conditionals for no longer
5971 supported systems: UNIPLUS and RTU.
5972
ee6bacd4
DN
5973 * xterm.c:
5974 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5975
d7306fe6
DN
5976 * alloc.c: Do not define struct catchtag.
5977 * eval.c: Move struct catchtag definition ...
5978 * lisp.h: ... here.
5979
5980 * image.c: Move png.h #include earlier to avoid warnings.
5981
5982 * xterm.c:
5983 * xsmfns.c:
5984 * xselect.c:
5985 * xrdb.c:
5986 * xmenu.c:
5987 * xftfont.c:
5988 * xfont.c:
5989 * xfns.c:
5990 * xfaces.c:
5991 * xdisp.c:
5992 * window.c:
5993 * widget.c:
5994 * w32xfns.c:
5995 * w32uniscribe.c:
5996 * w32term.c:
5997 * w32select.c:
5998 * w32reg.c:
5999 * w32proc.c:
6000 * w32menu.c:
6001 * w32inevt.c:
6002 * w32heap.c:
6003 * w32font.c:
6004 * w32fns.c:
6005 * w32console.c:
6006 * w32.c:
6007 * w16select.c:
6008 * vm-limit.c:
6009 * unexsol.c:
6010 * unexec.c:
6011 * unexcw.c:
6012 * unexaix.c:
6013 * undo.c:
6014 * tparam.c:
6015 * textprop.c:
6016 * terminfo.c:
6017 * terminal.c:
6018 * termcap.c:
6019 * term.c:
6020 * syntax.c:
6021 * sound.c:
6022 * sheap.c:
6023 * search.c:
6024 * scroll.c:
6025 * region-cache.c:
6026 * regex.c:
6027 * ralloc.c:
6028 * process.c:
6029 * print.c:
b024548b
DN
6030 * nsterm.m:
6031 * nsselect.m:
6032 * nsmenu.m:
6033 * nsimage.m:
6034 * nsfont.m:
6035 * nsfns.m:
d7306fe6
DN
6036 * msdos.c:
6037 * minibuf.c:
6038 * menu.c:
6039 * marker.c:
6040 * macros.c:
6041 * keymap.c:
6042 * keyboard.c:
6043 * intervals.c:
6044 * insdel.c:
6045 * indent.c:
6046 * gtkutil.c:
6047 * ftxfont.c:
6048 * ftfont.c:
6049 * fringe.c:
6050 * frame.c:
6051 * fontset.c:
6052 * font.c:
6053 * fns.c:
6054 * floatfns.c:
6055 * filelock.c:
6056 * fileio.c:
6057 * emacs.c:
6058 * editfns.c:
6059 * dosfns.c:
6060 * doprnt.c:
6061 * doc.c:
6062 * dispnew.c:
6063 * dired.c:
6064 * dbusbind.c:
6065 * data.c:
6066 * composite.c:
6067 * coding.c:
6068 * cmds.c:
6069 * cm.c:
6070 * chartab.c:
6071 * charset.c:
6072 * character.c:
6073 * ccl.c:
6074 * category.c:
6075 * casetab.c:
6076 * casefiddle.c:
6077 * callproc.c:
6078 * callint.c:
6079 * bytecode.c:
6080 * buffer.c:
6081 * atimer.c: Include setjmp.h. (Bug#4643)
6082
fd5f21e6
SM
60832009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6084
4c0354d7
SM
6085 Remove leftover table unibyte_to_multibyte_table.
6086 * character.c (unibyte_to_multibyte_table): Remove.
6087 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6088 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6089 * character.h (UNIBYTE_TO_CHAR): New macro.
6090 (MAKE_CHAR_MULTIBYTE): Use it.
6091 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6092 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6093 (message_dolog, set_message_1):
6094 * search.c (Freplace_match):
6095 * editfns.c (Fcompare_buffer_substrings):
6096 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6097 (concat):
6098 * insdel.c (copy_text, count_size_as_multibyte):
6099 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6100 * term.c (produce_glyphs):
6101 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6102 * regex.c (RE_CHAR_TO_MULTIBYTE):
6103 * cmds.c (internal_self_insert):
6104 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6105
fd5f21e6
SM
6106 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6107
4418646e
DN
61082009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6109
6110 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6111
35f5c1d2
JB
61122009-10-16 Juanma Barranquero <lekktu@gmail.com>
6113
6114 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6115
a0cd8f6b
AR
61162009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6117
6118 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6119 still needed under Tiger.
6120
6121 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6122
6123 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6124 __Apple__.
6125
6126 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6127
01a8d3fa
KH
61282009-10-15 Kenichi Handa <handa@m17n.org>
6129
6130 * print.c (print_object): Escape a symbol like "2E10" too.
6131
bf6c75c9 61322009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6133
6134 Cleanups and changes for 64-bit compile under Snow Leopard.
6135 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6136
6137 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6138
c5959062 6139 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6140 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6141 cast argument.
6142 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6143 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6144
6145 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6146
6147 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6148 where appropriate.
6149
6150 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6151 where appropriate.
6e4780c5
JB
6152 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6153 Use stringWithUTF8String.
bf6c75c9
AR
6154 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6155
6e4780c5
JB
6156 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6157 Add formal protocol mention to inheritance.
bf6c75c9
AR
6158 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6159
6e4780c5
JB
6160 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6161 Fix printf format.
bf6c75c9
AR
6162 (ns_query_color): Use CGFloat where appropriate.
6163 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6164 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6165 argument.
6166
3d87f118
AR
6167 * config.in (NS_HAVE_NSINTEGER): Drop.
6168
a95c8102
AR
6169 * dbusbind.c (dbus-method-return-internal)
6170 (dbus-method-error-internal): Use long format in printf, and cast
6171 argument.
6172
6173 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6174 in printf, and cast argument.
6175
6873acca 6176 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6177 cast argument.
6178
9ec6f100
GM
61792009-10-11 Glenn Morris <rgm@gnu.org>
6180
6181 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6182
5be883cd
JD
61832009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6184
6185 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6186 menu bar with a small width so it doesn't enlarge the frame.
6187
d7a39b51
JB
61882009-10-08 Juanma Barranquero <lekktu@gmail.com>
6189
6190 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6191
0c2b6f8e
GM
61922009-10-06 Glenn Morris <rgm@gnu.org>
6193
6194 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6195 SOME_MACHINE_LISP (this enters indirectly via DOC).
6196
e02131a2
EZ
61972009-10-05 Eli Zaretskii <eliz@gnu.org>
6198
6199 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6200
b4744254
EZ
62012009-10-04 Eli Zaretskii <eliz@gnu.org>
6202
6203 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6204 Doc fix.
6205
dbf64827
JB
62062009-10-03 Martin Rudalics <rudalics@gmx.at>
6207
6208 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6209
e9a0aef8
MA
62102009-10-02 Michael Albinus <michael.albinus@gmx.de>
6211
d528b1ce 6212 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6213 used anymore outside fileio.c.
6214
6215 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6216
64eb2b56
JB
62172009-10-01 Juanma Barranquero <lekktu@gmail.com>
6218
6219 * lisp.h (Qdelete_directory_internal):
6220 Declare, instead of Qdelete_directory.
6221
6222 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6223
9d28c33e
SM
62242009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6225
6226 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6227
9d8f3bd9
MA
62282009-10-01 Michael Albinus <michael.albinus@gmx.de>
6229
9d28c33e 6230 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6231 Fdelete_directory. It is not a command anymore. It has no file
6232 name handler.
6233
9694740b
SM
62342009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6235
6236 * xdisp.c (get_next_display_element): Use an enum in last change.
6237
748e162f
KH
62382009-09-28 Kenichi Handa <handa@m17n.org>
6239
9694740b 6240 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6241 unibyte_display_via_language_environment in handling
6242 Vnobreak_char_display.
6243
17efd58d
AR
62442009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6245
6246 * nsterm.h (ns_app_name): New extern variable.
6247
6248 * nsterm.m (ns_app_name): New variable.
6249 (ns_term_init): Set and use it.
6250 (ns_term_shutdown): Use it.
6251
6252 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6253 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6254
6255 * nsfns.m (ns_set_name_iconic, ns_set_name)
6256 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6257 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6258
9694740b
SM
6259 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6260 Remove double-casting in client_data comparison.
31c2d412 6261
3208cb35
YM
62622009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6263
6264 * keyboard.c (make_lispy_event): Remember last wheel direction.
6265 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6266
b7d552d6
GM
62672009-09-26 Glenn Morris <rgm@gnu.org>
6268
6269 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6270 internal.elc. Add term/pc-win.elc.
6271 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6272 term/x-win.elc.
6273 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6274 term/w32-win.elc.
6275 (NS_SUPPORT): New.
6276 (lisp): Add NS_SUPPORT.
6277 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6278
4ff670a8
DR
62792009-09-25 David Reitter <david.reitter@gmail.com>
6280
6281 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6282 on Mac OS X 10.6+ (bug#4513).
6283
feabfb6c
JB
62842009-09-24 Juanma Barranquero <lekktu@gmail.com>
6285
6286 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6287 some parts of Emacs code (like font selection) don't grok them.
6288 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6289
de59072a
AS
62902009-09-24 Andreas Schwab <schwab@redhat.com>
6291
6292 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6293
a489517b
JB
62942009-09-24 Juanma Barranquero <lekktu@gmail.com>
6295
6296 * dired.c (Fdirectory_files): Fix typo in docstring.
6297
0592970c
AR
62982009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6299
6300 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6301 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6302 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6303 under GNUstep.
6304 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6305
6306 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6307 glyph advancement.
6308
48e8a88b
AR
63092009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6310
6311 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6312 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6313
6314 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6315 deleted (bug #4492).
6316
e14f0a78
AR
6317 * nsfont.m (Vns_reg_to_script): New lisp variable.
6318 (syms_of_nsfont): Declare it.
6319 (ns_registry_to_script): New function.
6320 (ns_get_req_script): Call it.
6321 (ns_findfonts): Don't give up on non-unicode registry.
6322
6323 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6324
5b650faa
SM
63252009-09-20 Tom Tromey <tromey@redhat.com>
6326
6327 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6328 batch mode (bug#4228).
6329
a489517b 63302009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6331
6332 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6333 carefully. (Bug #4339)
0bae4e09 6334
fcfe06f3
CY
63352009-09-18 Chong Yidong <cyd@stupidchicken.com>
6336
d798ba87 6337 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6338
31642728
AR
63392009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6340
6341 * emacs.c (inhibit_x_resources): Update doc string for NS.
6342 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6343 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6344
6345 * nsterm.h (ns_no_defaults): Remove.
6346
6347 * nsterm.m (ns_no_defaults): Remove.
6348 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6349 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6350 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6351 don't update the NSWindow itself.
6352 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6353 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6354
6355 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6356 ns_use_qd_smoothing.
6357
6358 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6359 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6360 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6361 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6362
8686ac71
JB
63632009-09-17 Juanma Barranquero <lekktu@gmail.com>
6364
6365 * emacs.c (inhibit_x_resources): New variable.
6366 (main) [HAVE_NS]: Don't process --quick command line option.
6367 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6368
6369 * lisp.h (inhibit_x_resources): Declare it extern.
6370
6371 * w32reg.c (x_get_string_resource):
6372 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6373
e227ba05
EZ
63742009-09-17 Eli Zaretskii <eliz@gnu.org>
6375
362654a6
JB
6376 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6377 Add lisp/term/internal.elc.
e227ba05 6378
742d40e8
SM
63792009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6380
6381 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6382 (bug#4461).
6383
005bd5a2
DN
63842009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6385
6386 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6387
6388 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6389 (OBJECTS_MACHINE): Remove, unused.
6390
f9af9719
SM
63912009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6392
6393 * frame.c (x_get_resource_string): Remove unused.
6394
0307c7d2
JD
63952009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6396
6397 * xterm.c (x_new_font): Call change_frame_size before calling
6398 x_set_window_size, in case frame size won't change.
6399
6400 * frame.c (x_set_font): Remove dead code.
6401
428b13d6
SM
64022009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6403
6404 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6405
5766c380
SM
64062009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6407
6408 * lread.c (Fload): Don't output a message after loading an obsolete
6409 package any more (done in Lisp now).
6410
2fd0161b
CY
64112009-09-12 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6414
bc5e75b6
SM
64152009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6416
6417 * keymap.c (Fwhere_is_internal): Use nconc2.
6418
c31c985e
AM
64192009-09-11 Alan Mackenzie <acm@muc.de>
6420
6421 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6422 batch mode.
6423
78012bd2
AS
64242009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6425
6426 * xdisp.c (display_mode_element): Detect cycles.
6427
9d889332
SM
64282009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6429
6430 * keymap.c (where_is_internal): Don't erroneously return nil right after
6431 filling the cache.
6432 (where_is_internal_1): Fix up typo.
6433
7ab5d780
GM
64342009-09-11 Glenn Morris <rgm@gnu.org>
6435
6436 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6437 share a common doc-string.
6438
5238a749
SM
64392009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6440
66d77eda
SM
6441 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6442 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6443
5238a749
SM
6444 * keymap.c (QCadvertised_binding): New constant.
6445 (syms_of_keymap): Initialize it.
6446 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6447 if applicable.
6448
19f48442
SM
64492009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6450
50d4ba39
SM
6451 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6452 (parse_menu_item): Streamline since bindings are recomputed all the
6453 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6454 more and don't support lmenu's menu-alias any more either.
6455
a88a5372
SM
6456 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6457 (where_is_internal): Strip it down to only traverse the keymaps.
6458 Move the cache handling from Fwhere_is_internal to here.
6459 (Fwhere_is_internal): Move the handling of remapping and the choice of
6460 the best binding from where_is_internal to here.
6461 Unify the cached/noncached paths, so remapping is also handled
6462 correctly when the cache is used, and so the cache can be used to
6463 speed up remap-handling when applicable.
6464 Give preference to non-remapped bindings.
6465 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6466 non-remapped bindings.
6467 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6468 command remapping.
6469
19f48442
SM
6470 * xdisp.c (display_mode_element): Move list length limit from 50 to
6471 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6472
599498c3 64732009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6474
6475 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6476
f9b7b5ac
SM
64772009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6478
a53af587
JB
6479 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6480 (Bug#4334)
6481
f9b7b5ac
SM
6482 * keymap.c (where_is_internal): Filter out shadowed remappings.
6483 Assume that where_is_internal returns unshadowed bindings to simplify
6484 the code and get rid of the gotos. Use ASIZE.
6485
04f4b72d
JD
64862009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6487
4da146f2
JD
6488 * xterm.c (x_focus_changed): If we get a focusout and pointer
6489 is invisible, make it visible.
6490
04f4b72d
JD
6491 * xterm.h: Remove condition for declaration of
6492 x_*_window_to_frame.
6493
7cef7ce3
SM
64942009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6495
6496 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6497 initial terminal as well.
6498
a54fa5b7
JD
64992009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6500
6501 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6502 x_menubar_window_to_frame.
a54fa5b7 6503
50426a04 6504 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6505 (XTmouse_position): Do not return valid positions
6506 for clicks in the menubar and the toolbar for Gtk+.
6507
6508 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6509 if the widget for the event has the same top level as a frame,
6510 return the frame.
6511 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6512 internal windows, bug #4122.
6513 (x_non_menubar_window_to_frame): Remove.
6514
5a021dd0
GM
65152009-09-02 Glenn Morris <rgm@gnu.org>
6516
6517 * buffer.c (default-major-mode): Move most of the doc from here...
6518 (major-mode): ... to here.
6519
548fe2f3
NR
65202009-08-30 Nick Roberts <nickrob@snap.net.nz>
6521
6522 * process.c (wait_reading_process_output): Keep the descriptor
6523 when pty is used by a non-child process, e.g., in I/O buffer of
6524 GDB this allows inferior to be restarted.
6525
e0840eef
EZ
65262009-08-29 Eli Zaretskii <eliz@gnu.org>
6527
6528 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6529 both branches into one.
6530
82e98df4
SM
65312009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6532
6533 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6534 (main): Use enable-multibyte-characters rather than
6535 default-enable-multibyte-characters. Output a warning message when
6536 running a unibyte session.
6537
890617cb
YM
65382009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6539
6540 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6541 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6542 (copy_data_segment): Also copy __program_vars section.
6543 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6544 (dump_it) [LC_DYLD_INFO]: Use it.
6545
6546 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6547
e7adeadc
EZ
65482009-08-28 Eli Zaretskii <eliz@gnu.org>
6549
6550 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6551 $(SRC)/buildobj.h.
6552 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6553 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6554 $(SRC)/buildobj.h.
6555 (clean): Add buildobj.h.
6556
3ed8bbdc
TZ
65572009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6558
6559 * print.c (print_object): Set escapeflag to 1 when printing
6560 hashtable keys and values.
6561
155a6764
SM
65622009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6563
6564 * lread.c (read_integer): Use doubles (and potentially return a float
6565 number) as we do in string-to-number.
6566 (read1): Use strtol to read integers, signal errors on strtol's
6567 overflow and use floats if strtol's output is too large for
6568 Elisp integers.
6569
877610de
EZ
65702009-08-27 Eli Zaretskii <eliz@gnu.org>
6571
6572 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6573 (make-buildobj-SH): Fix last change.
6574 (SRC): Move to before where it's first used.
6575
ef73e7be
KH
65762009-08-27 Kenichi Handa <handa@m17n.org>
6577
550c8289
KH
6578 * process.c (send_process): Use encode_coding_object instead of
6579 encode_coding_string to perform eol-conversion even if the string
6580 is unibyte.
6581
60afa08d
KH
6582 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6583 character.
6584
ef73e7be 6585 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6586 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6587
7b3a82d7
DN
65882009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6589
5654bf63
DN
6590 * callproc.c (Fcall_process): Remove always true #if.
6591
7b3a82d7
DN
6592 * lisp.h: Replace #if 0 code for checking with text pointing to
6593 the --enable-checking configure flag.
6594
6595 * emacs.c (main): Mention the --enable-profiling configure flag
6596 instead of using CFLAGS.
6597
878bde49
KR
65982009-08-26 Ken Raeburn <raeburn@raeburn.org>
6599
6600 * Makefile.in (buildobj.h): New target.
6601 (doc.o): Depend on it.
6602 (temacs${EXEEXT}): Don't generate buildobj.lst.
6603 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6604 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6605 ($(BLD)/doc.$(O)): Depend on it.
6606 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6607 provided by Eli Zaretskii.)
6608 ($(TEMACS)): Don't generate buildobj.lst.
6609 * doc.c: Include buildobj.h.
6610 (buildobj): New static variable.
6611 (Fsnarf_documentation): Use it, instead of opening and reading
6612 buildobj.lst.
6613
1574224c
MA
66142009-08-25 Michael Albinus <michael.albinus@gmx.de>
6615
6616 * dbusbind.c (Fdbus_call_method)
6617 (Fdbus_call_method_asynchronously): Use English numeric format for
6618 timeout values in doc string.
6619
d9da2f45
KH
66202009-08-25 Kenichi Handa <handa@m17n.org>
6621
ef73e7be
KH
6622 * alloc.c (mark_char_table): New function.
6623 (mark_object): Use mark_char_table for a char-table.
6624
d9da2f45
KH
6625 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6626 (CHAR_TABLE_REF): Use it.
6627
c8edcc01
KR
66282009-08-23 Ken Raeburn <raeburn@raeburn.org>
6629
6630 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6631 before invoking the newly build emacs to check for load-path
6632 shadowing.
6633
7763401b
GM
66342009-08-22 Glenn Morris <rgm@gnu.org>
6635
6636 * Makefile.in (bootstrap_exe): New variable.
6637 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6638 Use ${bootstrap_exe}.
6639
729eadda
EZ
66402009-08-22 Eli Zaretskii <eliz@gnu.org>
6641
6642 * coding.h (encode_coding_string): Don't encode unibyte strings.
6643 (Bug#4047)
6644
eb4c6ace
MA
66452009-08-22 Michael Albinus <michael.albinus@gmx.de>
6646
6647 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6648
6649 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6650 intended as hotfix only.
6651 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6652
36e34d1b
AR
66532009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6654
6655 * nsterm.m (ns_get_color): Update documentation properly for last
6656 change, and clean up loose ends in the code left by it. Fix
6657 longstanding bug with 16-bit hex parsing, and add support for
6658 yet another X11 format (rgb:r/g/b) for compatibility.
6659 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6660 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6661
f983eb8a
SM
66622009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6663
6664 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6665
3f56d3c6
MA
66662009-08-20 Michael Albinus <michael.albinus@gmx.de>
6667
6668 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6669 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6670 (xd_initialize, xd_pending_messages): Check, whether
6671 $DBUS_SESSION_BUS_ADDRESS is set.
6672
fb641d68
YM
66732009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6674
6675 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6676
6677 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6678
cf59a374
GM
66792009-08-20 Glenn Morris <rgm@gnu.org>
6680
6681 * emacs.c (system-type): Doc fix.
6682
1373f3be
SM
66832009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6684
6685 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6686 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6687
058ed861
MA
66882009-08-18 Michael Albinus <michael.albinus@gmx.de>
6689
1373f3be
SM
6690 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6691 New functions.
058ed861
MA
6692 (xd_initialize): Revert change from 2009-08-16.
6693
563a866e 66942009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6695
6696 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6697 font-group vector, return nil.
5fc05db0 6698
e42bdf01
CY
66992009-08-17 Chong Yidong <cyd@stupidchicken.com>
6700
6701 * process.c (status_notify): Don't perform redisplay.
6702 (Fdelete_process, list_processes_1, process_send_signal):
6703 Expliticly perform redisplay.
6704 (wait_reading_process_output): Always check process status, but
6705 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6706
4230ab74
KR
67072009-08-17 Ken Raeburn <raeburn@raeburn.org>
6708
1373f3be 6709 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6710 (XFLOAT_INIT): New macro for storing a float value.
6711 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6712 * fns.c (sxhash): Copy out the value of a float in order to
6713 examine its bytes.
6714 * dbusbind.c (xd_append_arg): Likewise.
6715
4230ab74
KR
6716 * emacs.c (main): Don't call syms_of_data twice.
6717
a0645cdd
MA
67182009-08-16 Michael Albinus <michael.albinus@gmx.de>
6719
6720 * dbusbind.c (xd_initialize): Add connection file descriptor to
6721 input_wait_mask, in order to let select() detect, whether a new
6722 message has been arrived.
ca4f31ea 6723 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6724
485db0ba
MA
67252009-08-15 Michael Albinus <michael.albinus@gmx.de>
6726
1373f3be
SM
6727 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6728 New functions.
485db0ba
MA
6729
6730 * lisp.h (xd_pending_messages): Declare.
6731
6732 * keyboard.c (readable_events): Call xd_pending_messages.
6733
b5b98ff4
CY
67342009-08-15 Chong Yidong <cyd@stupidchicken.com>
6735
1373f3be 6736 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6737
f8354c6e
CY
6738 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6739
b5b98ff4
CY
6740 * buffer.c (set_buffer_internal_1)
6741 (swap_out_buffer_local_variables): Check for unbound local
6742 variables (Bug#4138).
6743
8b9fc636
EZ
67442009-08-14 Eli Zaretskii <eliz@gnu.org>
6745
6746 * process.c (create_pty): Fix last change.
6747
ce959360
CY
67482009-08-13 Chong Yidong <cyd@stupidchicken.com>
6749
6750 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6751 (xbm_load_image): Caller changed.
64b807c9 6752 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6753
c7baf7e9
NR
67542009-08-13 Nick Roberts <nickrob@snap.net.nz>
6755
6756 * process.c (create_pty): New function.
6757 (Fstart_process): Use it to allow Emacs to just associate a pty
6758 with the buffer. See associated change in gdb-mi.el.
6759 (list_processes_1): Deal with no program name.
6760 (start_process_unwind): Use pid == -2 to mean no process.
6761
1ac9108a
SM
67622009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6763
6764 * cmds.c (nonundocount): New global variable.
6765 (keys_of_cmds): Initialize it.
6766 (Fself_insert_command): Use it to combine upto 20 sequential chars
6767 into a single undo entry, just like the Qself_insert_command code in
6768 keyboard.c does.
6769 Call frame_make_pointer_invisible, also like the Qself_insert_command
6770 code in keyboard.c does.
6771 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6772 than its own local replacement for it.
6773
e267324c
KR
67742009-08-10 Ken Raeburn <raeburn@raeburn.org>
6775
1ac9108a 6776 * fns.c (concat): Don't re-set string length to its current value.
77437343 6777
1ac9108a
SM
6778 * coding.h (decode_coding_string, encode_coding_string):
6779 Use SBYTES macro.
f0bed503 6780
1ac9108a 6781 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6782 (doprnt): Merge with doprnt1, discarding lispstrings code.
6783 * lisp.h (doprnt_lisp): Don't declare.
6784
416e006d
JL
67852009-08-07 Juri Linkov <juri@jurta.org>
6786
6787 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6788
6f7d5780
DN
67892009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6790
6791 * print.c (syms_of_print): Undo previous change.
6792
f19a0f5b
TZ
67932009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6794
6795 * lread.c (read1, syms_of_lread): Read hashtables back from the
6796 readable format.
6797
6798 * print.c (print_preprocess, print_object): Print hashtables fully
6799 and readably.
6800 (syms_of_print): Provide 'hashtable-print-readable.
6801
b9173dc2
AR
68022009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6803
6804 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6805 no family set.
6806 (nsfont_open): Handle case when entity has no family.
6807
1586503c
AR
68082009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6809
6810 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6811 element, not a list, for match case.
6812
087048cd
KH
68132009-07-28 Kenichi Handa <handa@m17n.org>
6814
6815 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6816 rigidly.
6817
6818 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6819 font_parse_xlfd. Check font properties more rigidly.
6820
780c2506
DN
68212009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6822
31fd7c5c
JB
6823 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6824 bsd-common.h.
780c2506 6825
a8c0cc18
KH
68262009-07-27 Kenichi Handa <handa@m17n.org>
6827
6828 * xfaces.c (face_with_height): Call font_clear_prop.
6829
4fbe2306
CY
68302009-07-26 Chong Yidong <cyd@stupidchicken.com>
6831
111d9af3
CY
6832 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6833
6834 * xterm.c (x_term_init): Use Qx.
6835
4fbe2306
CY
6836 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6837
1ac9108a 6838 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6839 (ns_get_color): Revert 2009-07-16 change.
6840
beb0b7f9
EZ
68412009-07-25 Eli Zaretskii <eliz@gnu.org>
6842
6843 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6844 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6845
2baf5e76
KR
68462009-07-25 Ken Raeburn <raeburn@raeburn.org>
6847
1ac9108a
SM
6848 * coding.h (decode_coding_string, encode_coding_string):
6849 Use SCHARS macro.
8890e5f5 6850
2baf5e76 6851 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6852 (load_depth): Delete.
2baf5e76
KR
6853 (Qload_in_progress): New variable.
6854 (load_unwind): Don't reference load_depth or load_in_progress.
6855 (Fload): Likewise; specbind Qload_in_progress instead.
6856 (init_lread): Don't initialize load_depth.
6857 (syms_of_lread): Initialize and protect Qload_in_progress.
6858
1395c6f5
AR
68592009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6860
6861 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6862
4e2f36cf
AR
68632009-07-23 Yavor Doganov <yavor@gnu.org>
6864
6865 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6866
5dd9a6f7
AR
68672009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6868
6869 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6870 Bugs 3792, 3720, 2402.
6871 (ns_lookup_indexed_color): Check for bad index.
6872 (ns_index_color): Init unused slot to 0.
6873 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6874 Bug 3714, possibly 3082.
5dd9a6f7 6875
c902b920
JR
68762009-07-22 Jason Rumney <jasonr@gnu.org>
6877
1ac9108a
SM
6878 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6879 Position IME window at cursor (Bug#2570).
c902b920
JR
6880 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6881 (globals_of_w32fns): Dynamically load functions required above.
6882
6883 * w32term.c (w32_draw_window_cursor): Send message to reposition
6884 any IME window.
6885
090101cf
CY
68862009-07-21 Chong Yidong <cyd@stupidchicken.com>
6887
6888 * fileio.c: Revert 2009-07-16 changes.
6889 (Vauto_save_include_big_deletions): New variable.
6890 (Fdo_auto_save): Disable auto-save only if
6891 auto-save-include-big-deletions is nil.
6892
e6583e3d
CY
68932009-07-21 Chong Yidong <cyd@stupidchicken.com>
6894
6895 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6896 the overflowed pixels into account (Bug#3879).
6897
ece435a5
KR
68982009-07-21 Ken Raeburn <raeburn@raeburn.org>
6899
6900 * lread.c (load_depth): New variable.
6901 (Fload, load_unwind, init_lread): Set it to the load recursion
6902 depth; set load_in_progress as a simple boolean based on the
6903 current load_depth. (Bug#3892)
6904
40b2d973
AR
69052009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6906
6907 * nsfont.m (ns_has_attribute): Remove.
6908 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6909
10be7e0d
JL
69102009-07-18 Juri Linkov <juri@jurta.org>
6911
6912 * process.c (Fset_process_query_on_exit_flag): Mention killing
6913 a buffer in docstring.
6914
fa055055
KH
69152009-07-17 Kenichi Handa <handa@m17n.org>
6916
6917 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6918
042f7b69
YM
69192009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6920
6921 * nsfns.m (Fns_set_alpha): Remove function.
6922 (syms_of_nsfns): Don't defsubr it.
6923
6924 * nsterm.m (ns_get_color): Remove incompatible color formats.
6925 (ns_color_to_lisp): Generate #rrggbb color format string.
6926
4be941e3
RS
69272009-07-16 Richard Stallman <rms@gnu.org>
6928
6929 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6930 (Fset_buffer_auto_saved): Handle save_length = -2.
6931
4e6b227d
CY
69322009-07-16 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * xterm.c (Qx_gtk_map_stock): New var.
6935
6936 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6937 of calling intern each time.
6938
a1856973
YM
69392009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6940
6941 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6942 does tiling.
6943
6944 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6945
497e54d8
KH
69462009-07-14 Kenichi Handa <handa@m17n.org>
6947
72d36834
KH
6948 * font.c (font_vconcat_entity_vectors): New function.
6949 (struct font_sort_data): New member font_driver_preference.
6950 (font_compare): Check font_driver_preference.
6951 (font_sort_entities): The format of the first argument changed.
6952 (font_delete_unmatched): Likewise.
6953 (font_list_entities): The return type changed.
6954 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6955 (font_find_for_lface): Adjuste for the above changes.
6956 Don't suppress the checking of C even if the repertory supports it.
6957 (Flist_fonts): Adjust for the above changes.
72d36834 6958
1ac9108a
SM
6959 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6960 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6961 Reject a font who has adstyle property that is different from a
6962 langname derived from registry property.
1ac9108a 6963 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6964
b6046155
EZ
69652009-07-13 Eli Zaretskii <eliz@gnu.org>
6966
6967 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6968 local copy of dirfilename.
6969
fb6b6049
KH
69702009-07-13 Kenichi Handa <handa@m17n.org>
6971
e2402a5e
KH
6972 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6973 against max_char.
6974
fb6b6049
KH
6975 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6976 calling XSYMBOL (sym).
6977
65156807
EZ
69782009-07-11 Eli Zaretskii <eliz@gnu.org>
6979
1ac9108a
SM
6980 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6981 New function.
6982 (directory_files_internal) [WINDOWSNT]:
6983 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6984 the filesystem of the directory is fast or slow.
6985
6986 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6987 file name.
6988 (is_slow_fs): New function.
6989 (stat): Use it to determine whether to issue more system calls to
6990 get accurate file attributes, when w32-get-true-file-attributes is
6991 `local'.
6992
e0ab5fcf
JD
69932009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6994
6995 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6996 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6997 parameter font-parameter as default to the font dialog.
6998
784ceded
KH
69992009-07-10 Kenichi Handa <handa@m17n.org>
7000
7001 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7002
fb8edc0b
EZ
70032009-07-09 Eli Zaretskii <eliz@gnu.org>
7004
1ac9108a 7005 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7006
fb8edc0b
EZ
7007 * w32.c (stat): Treat UNC file names as residing on remote
7008 drives. (Bug#3542)
7009
635c75b1
KH
70102009-07-09 Kenichi Handa <handa@m17n.org>
7011
7012 * fontset.c (fontset_find_font): Fix previous change.
7013
c1d5ce94
MA
70142009-07-08 Michael Albinus <michael.albinus@gmx.de>
7015
7016 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7017 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7018 error flag.
7019
edb61b39
KH
70202009-07-08 Kenichi Handa <handa@m17n.org>
7021
374bf7e4
KH
7022 * fontset.c (fontset_find_font): Fix the logic of handling
7023 charset_matched.
7024 (font_for_char): Delete unused var.
7025 (generate_ascii_font_name): Delete it.
7026
edb61b39
KH
7027 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7028
7029 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7030 (encode_coding_sjis): Fix the code range check.
7031
0f3f018c
CY
70322009-07-07 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7035 (Fexpand_file_name): Copy string data properly (Bug#3772).
7036
fcaf6f3a
JD
70372009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7038
7039 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7040 first MapNotify.
7041
6809ca75
KH
70422009-07-07 Kenichi Handa <handa@m17n.org>
7043
7044 * character.h (unibyte_has_multibyte_table): Delete extern.
7045 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7046
7047 * charset.c (Fset_charset_priority): Update charset_unibyte.
7048 (syms_of_charset): Initialize charset_unibyte.
7049
7050 * character.c (unibyte_has_multibyte_table): Delete it.
7051 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7052 charset_unibyte.
7053 (multibyte_char_to_unibyte_safe): Likewise.
7054 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7055
1ac9108a 7056 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7057 (x_produce_glyphs): Likewise.
7058
7059 * .gdbinit (xcharset): Fix the treating $arg0.
7060
ad9e2d54
EZ
70612009-07-04 Eli Zaretskii <eliz@gnu.org>
7062
7063 Emulation of `getloadavg' on MS-Windows.
50426a04 7064 * w32.c: Include float.h.
ad9e2d54
EZ
7065 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7066 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7067 (get_native_system_info, get_system_times): New functions.
7068 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7069 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7070 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7071 g_b_init_get_system_times, and num_of_processors.
7072
0a3472c7
JR
70732009-07-03 Jason Rumney <jasonr@gnu.org>
7074
7075 * w32term.c (w32_initialize): Use standard types.
7076
80904120
EZ
70772009-07-03 Eli Zaretskii <eliz@gnu.org>
7078
7079 * dired.c (Ffile_attributes): Decode user and group names by the
7080 locale's encoding. (Bug#3443)
7081
6978862d
DN
70822009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7083
f8d23104
DN
7084 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7085 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7086
7087 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7088
7089 * term.c (init_tty): Remove spurious #ifdef.
7090
6978862d
DN
7091 * m/mips.h: Mention this file is also used for netbsd.
7092 * m/pmax.h: Remove file.
7093
e044e4fc
JD
70942009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7095
7096 * xterm.h (struct x_display_info): Add invisible_cursor.
7097 (struct x_output): Add current_cursor.
7098
7099 * xterm.c (XTtoggle_invisible_pointer): New function.
7100 (x_define_frame_cursor): Don't define cursor if invisible or the
7101 same as before. Set current_cursor.
7102 (x_create_terminal): Set toggle_invisible_pointer_hook.
7103
7104 * xfns.c (make_invisible_cursor): New function.
7105 (x_set_mouse_color): Call make_invisible_cursor.
7106 Set current_cursor.
7107 (x_window): Set current_cursor.
7108
7109 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7110
7111 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7112 inserting a character.
7113 (read_avail_input): Call frame_make_pointer_visible.
7114
7115 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7116 (frame_make_pointer_invisible, frame_make_pointer_visible):
7117 New functions.
e044e4fc
JD
7118 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7119
7120 * frame.h: Declare frame_make_pointer_invisible and
7121 frame_make_pointer_visible.
7122 (struct frame): Add pointer_invisible.
7123
574c8efa
JD
71242009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7125
7b507248
JD
7126 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7127 frame isn't visible.
7128 (xg_frame_resized): If width/height is -1, get size of window
7129 from X server.
7130
7131 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7132 for MapNotify.
7133
835bdaa7 7134 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7135 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7136 (flush_and_sync): Reintroduce.
574c8efa 7137
3f1c6666 71382009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7139
31fd7c5c 7140 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7141
7142 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7143 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7144
7145 * frame.h: Declare Qsticky.
7146
cad9ef74
JD
7147 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7148
7149 * nsfns.m (ns_frame_parm_handlers): Ditto.
7150
7151 * frame.c: Declare Qsticky.
7152 (frame_parms): Add sticky.
7153
7154 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7155
7156 * xterm.h: Declare x_set_sticky.
7157
7158 * xterm.c (x_set_sticky): New function.
7159
69b16610
JD
7160 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7161 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7162 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7163
7164 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7165
7166 * frame.c: Qmaximized is new.
7167 (x_set_frame_parameters): Do not handle fullscreen specially.
7168 Only set width and height if explicitly set.
7169 (x_set_fullscreen): Handle Qmaximized.
7170 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7171 (syms_of_frame): Initialize Qmaximized.
7172
1ac9108a
SM
7173 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7174 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7175
7176 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7177 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7178 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7179 set gravity to NorthWestGravity when USE_GTK.
7180 (set_wm_state): New function.
31fd7c5c 7181 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7182 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7183 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7184 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7185 to x_real_positions and x_fullscreen_adjust.
7186
7187 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7188 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7189 flush_and_sync.
7190 (xg_height_changed): New function.
7191 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7192 and gtk_window_set_policy. Set frame gravity after parsing the
7193 geometry string.
3f1c6666
JD
7194 (xg_update_frame_menubar, free_frame_menubar)
7195 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7196 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7197 Remove calls to xg_frame_set_char_size.
7198
fd503d99
KH
71992009-07-01 Kenichi Handa <handa@m17n.org>
7200
7201 * keyboard.c (decode_keyboard_code): New function.
7202 (tty_read_avail_input): Decode the input bytes if necessary.
7203
1ac9108a
SM
7204 * coding.c (setup_coding_system):
7205 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7206 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7207 use Qno_conversion.
7208
24ed93fb
YM
72092009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7210
7211 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7212
99061dfc
CY
72132009-06-30 Chong Yidong <cyd@stupidchicken.com>
7214
1ac9108a 7215 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7216
ff90fbde
JR
72172009-06-30 Jason Rumney <jasonr@gnu.org>
7218
7219 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7220 is already loaded.
7221 Set user model ID if supported (bug#1849).
7222
5f445726
JM
72232009-06-29 Jim Meyering <meyering@redhat.com>
7224
7225 Remove useless if-before-xfree test.
7226 * nsfont.m (nsfont_close): Remove useless test.
7227 * term.c (delete_tty): Likewise.
7228 * w32.c (system_process_attributes): Likewise.
7229 * w32font.c (w32font_close): Likewise.
7230 * xfaces.c (x_free_gc): Likewise.
7231 * xselect.c (buffer): Likewise.
7232
b9607587
AS
72332009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7234
7235 * process.c (send_process): Keep decoded string in a local
7236 variable and protect it from GC. (Bug#3521)
7237
89ba96f4
EZ
72382009-06-28 Eli Zaretskii <eliz@gnu.org>
7239
7240 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7241 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7242
098a1589
CY
72432009-06-28 Chong Yidong <cyd@stupidchicken.com>
7244
485422be
CY
7245 * xdisp.c (start_display, handle_face_prop)
7246 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7247 (redisplay_window, try_window_id, produce_image_glyph):
7248 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7249
098a1589
CY
7250 * xterm.c (x_update_window_begin, x_new_focus_frame)
7251 (x_scroll_bar_handle_click, handle_one_xevent)
7252 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7253 (x_make_frame_visible, x_make_frame_invisible)
7254 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7255 code chunks that are now obsolete.
7256
78c38319
MA
72572009-06-28 Michael Albinus <michael.albinus@gmx.de>
7258
7259 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7260 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7261 for hours, when optimzation is enabled.
7262 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7263 (xd_read_message): Make them static.
7264
4189ed40
CY
72652009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7266
7267 * term.c (turn_on_face): Allow simultaneously bold and dim
7268 terminal faces (Bug#3530).
7269
cd9b5e16
CY
72702009-06-27 Chong Yidong <cyd@stupidchicken.com>
7271
4e23bedb
CY
7272 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7273
cd9b5e16
CY
7274 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7275 truncation glyphs (Bug#3686).
7276
07cc3c35
GM
72772009-06-27 Glenn Morris <rgm@gnu.org>
7278
7279 * m/pmax.h: Restore file, with only netbsd portions.
7280
31fd7c5c 72812009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7282
cd9b5e16 7283 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7284
42d4a64f
KH
72852009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7286
7287 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7288 the arg FORCE_SYMBOL.
7289
930fe55b 72902009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7291
7292 * fontset.c (fontset_find_font): When a usable rfont_def is found
7293 in a fallback font-group, make it the first element of the group.
7294
57ebc3fd
CY
72952009-06-24 Chong Yidong <cyd@stupidchicken.com>
7296
7297 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7298
f084f942
KH
72992009-06-24 Kenichi Handa <handa@m17n.org>
7300
7301 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7302 set for C.
7303 (fontset_font): Record the availability of a font for C both in
7304 the realized fontsets of the current one and the default one.
7305
2f686c87
DN
73062009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7307
7308 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7309 conditional, it is always defined on AIX.
7310
666e158e
MB
73112009-06-23 Miles Bader <miles@gnu.org>
7312
7313 * window.c (Vrecenter_redisplay): New variable.
7314 (syms_of_window): Initialize it.
7315 (Qtty): New extern declaration.
7316 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7317
c6da7cd2
JM
73182009-06-23 Jim Meyering <meyering@redhat.com>
7319
1ac9108a
SM
7320 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7321 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7322 pointer dereferences are guaranteed to be valid.
c6da7cd2 7323
678dca3d
KH
73242009-06-23 Kenichi Handa <handa@m17n.org>
7325
74d75424
KH
7326 * emacs.c (main): Call init_font ().
7327
7328 * font.h (Vfont_log): Extern it.
7329 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7330
7331 * font.c (font_sort_entities, font_list_entities)
7332 (font_matching_entity, font_open_entity)
7333 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7334 (Vfont_log): Delete static.
7335 (font_log_env_checked): Delete this variable.
7336 (font_add_log): Don't check font_log_env_checked.
7337 (font_deferred_log): Check Vfont_log.
7338 (init_font): New function.
7339
678dca3d
KH
7340 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7341
7342 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7343
7344 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7345
7346 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7347
7348 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7349 (face_for_char): Don't call font_deferred_log here.
7350 (font_for_char): Likewise.
7351
8a668709
CY
73522009-06-22 Chong Yidong <cyd@stupidchicken.com>
7353
9a01ee33
CY
7354 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7355 rather than its background_width for drawing the overline and
7356 underline (Bug#489).
7357
7358 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7359 rather than its background_width for drawing the overline and
7360 underline (Bug#489).
ec7c9926
CY
7361 (xg_default_icon_file): New variable.
7362 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7363 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7364
8a668709
CY
7365 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7366 (load_overlay_strings): Remove externs.
7367 (fast_find_position): Function deleted.
7368 (mouse_face_from_buffer_pos): New function, based on
7369 fast_find_position. Correctly handle before-strings,
7370 display-strings, and after-strings (Bug#1220).
7371 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7372
4d4c02d8
CY
73732009-06-21 Chong Yidong <cyd@stupidchicken.com>
7374
1ac9108a 7375 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7376 (move_it_in_display_line_to, move_it_in_display_line_to)
7377 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7378
70243478
CY
73792009-06-21 Chong Yidong <cyd@stupidchicken.com>
7380
7381 * Branch for 23.1.
7382
13087e59
JR
73832009-06-21 Jason Rumney <jasonr@gnu.org>
7384
7385 * w32term.c (keyboard_codepage): New static variable.
7386 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7387 (w32_read_socket) [WM_CHAR]: Use it to decode character
7388 input (bug#3237).
7389 (w32_initialize): Initialize it.
7390 (codepage_for_locale): New function.
7391
4735b74e
KR
73922009-06-20 Ken Raeburn <raeburn@raeburn.org>
7393
7394 * process.c (status_message): Pass Faset index argument as a lisp
7395 object, so as to work with USE_LISP_UNION_TYPE.
7396
0e727afa
YM
73972009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7398
7399 * coding.c (Ffind_coding_systems_region_internal):
7400 Cache checked characters.
7401
cf299835
KH
74022009-06-18 Kenichi Handa <handa@m17n.org>
7403
1ac9108a 7404 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7405
90f20d94
AS
74062009-06-18 Andreas Schwab <aschwab@redhat.com>
7407
7408 * xdisp.c (redisplay_internal): Check that the frame is still
7409 live after redisplay of its windows.
7410 (redisplay_windows): Check that the window is still live.
7411
7f1faf1c
KH
74122009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7413
7414 * coding.c (detect_coding_utf_16): Fix previous change.
7415
cc13543e
KH
74162009-06-16 Kenichi Handa <handa@m17n.org>
7417
7418 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7419 UTF-16 by checking the dispersion of Eth and Oth bytes.
7420
977b85f4
AS
74212009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7422
7423 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7424
66bd43d1
KH
74252009-06-15 Kenichi Handa <handa@m17n.org>
7426
7427 * process.c (status_message): Fix previous change. Be sure to
7428 decode a localized string.
7429
cb5ca9c5
YM
74302009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7431
7432 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7433 add comment explaining why.
7434
ec7709ba 74352009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7436
ec7709ba 7437 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7438
4b7f335c
AR
74392009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7440
7441 * nsfont.m (ns_attribute_value): Remove.
7442 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7443 (ns_has_attribute): Shrink the normal range.
7444 (ns_findfonts): Don't worry about requested spec in determining
7445 need for synthItal.
e41820ee 7446 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7447
73b26103
SZ
74482009-06-14 Seiji Zenitani <zenitani@mac.com>
7449
7450 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7451
5753e4da
KH
74522009-06-11 Kenichi Handa <handa@m17n.org>
7453
7454 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7455 overhang for the static composition case.
7456
3561b671
KH
74572009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7458
5753e4da
KH
7459 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7460 overhang for the automatic composition case.
7461
3561b671
KH
7462 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7463 composition case.
7464
852bbd41
CY
74652009-06-10 Chong Yidong <cyd@stupidchicken.com>
7466
7467 * xdisp.c (get_next_display_element): When handling wrap-prefix
7468 and line-prefix, treat \n as a control character (bug#3502).
7469
9903d1e6
KH
74702009-06-10 Kenichi Handa <handa@m17n.org>
7471
7472 * font.c (font_parse_family_registry): Fix for one-char foundry.
7473 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7474
0bcbaaaa
CY
74752009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7476
7477 * process.c (status_message): Fix handling of multibyte signal
7478 string (Bug#3499).
7479
40aa3f13
JM
74802009-06-09 Jim Meyering <meyering@redhat.com>
7481
1f80c7e2
CY
7482 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7483 color name is missing.
40aa3f13 7484
72d51285
KH
74852009-06-09 Kenichi Handa <handa@m17n.org>
7486
7487 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7488 FROM-CODE and TO-CODE are codepoints of CHARSET.
7489
c1d04d84
AR
74902009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7491
7492 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7493
74942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7495
7496 Changes to support :script/:lang/:otf in NS font driver.
7497 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7498 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7499 indicate not part of font driver interface, and change callers.
7500 (ns_get_family): Remove pointless null check.
7501 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7502 ns_spec_to_descriptor, ns_descriptor_to_entity.
7503 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7504 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7505 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7506 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7507 (ns_get_req_script, ns_accumulate_script_ranges)
7508 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7509 New functions.
7510 (nsfont_list, nsfont_match): Use ns_findfonts.
7511 (nsfont_open): Use font descriptor instead of traits.
7512 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7513 (dump_glyphstring): Rename to ns_dump_glyphstring.
7514
c7eb9816
AR
7515 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7516
c1d04d84
AR
7517 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7518
7519 * fontset.c (fontset_from_font): Remove NS-specific code.
7520
ec7709ba 75212009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7522
7523 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7524 nonactive windows.
7525
31fd7c5c 75262009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7527
1ac9108a 7528 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7529
68852c13 75302009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7531
7532 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7533
6756cd1d
CY
75342009-06-07 Chong Yidong <cyd@stupidchicken.com>
7535
7536 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7537 account for the overflowing of newlines into the last glyph on the
7538 display line (Bug#3482).
7539
28bf482a
DR
75402009-06-05 David Reitter <david.reitter@gmail.com>
7541
ec7709ba
JB
7542 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7543 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7544 Fns_selection_exists_p, Fns_selection_owner_p.
7545
fdb55376
JR
75462009-06-03 Jason Rumney <jasonr@gnu.org>
7547
7548 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7549 available. (Bug#3379)
7550
05129fbe
KH
75512009-05-29 Kenichi Handa <handa@m17n.org>
7552
1ac9108a
SM
7553 * coding.c (get_translation_table):
7554 Check Venable_character_translation.
05129fbe 7555
ec7709ba 75562009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7557
ec7709ba
JB
7558 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7559 (x_make_frame_visible): Move frame to front rather than calling
15891144 7560 ns_raise_frame().
ec7709ba 7561 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7562 isn't key window.
ec7709ba 7563 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7564 drawRect may be called by NSView even if the frame is hidden.
7565
ec7709ba
JB
7566 * nsfns.m (Fx_create_frame): Follow other ports in
7567 determining visibility; default to t. Ensure async_visible is set.
15891144 7568
21f73755
EZ
75692009-05-23 Eli Zaretskii <eliz@gnu.org>
7570
7571 * dired.c (Ffile_attributes): Doc fix.
7572
34001e41
CY
75732009-05-22 Chong Yidong <cyd@stupidchicken.com>
7574
7575 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7576
46306a17
SM
75772009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7578
7579 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7580 and xfont_scratch_props.
7581 (syms_of_xfont): Do it here instead.
7582 (xfont_find_ccl_program): Delete, unused.
7583 (xfont_open): Delete unused var `i'.
7584
ef6e0694
KH
75852009-05-21 Kenichi Handa <handa@m17n.org>
7586
7587 * fontset.c (Qlatin): Don't make it static.
7588
46306a17
SM
7589 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7590 New functions.
ef6e0694
KH
7591 (xfont_scripts_cache, xfont_scratch_props): New variables.
7592 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7593 (xfont_list_pattern): Argument changed. Callers changed.
7594 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7595 (xfont_list): Don't reject a font spec with :script property.
7596 (xfont_has_char): Fix setting of encoding.
7597 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7598 xfont_scratch_props.
7599
76002009-05-19 Kenichi Handa <handa@m17n.org>
7601
46306a17 7602 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7603 Callers changed.
7604
76052009-05-18 Kenichi Handa <handa@m17n.org>
7606
7607 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7608
ac71ced7
SM
76092009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7610
7611 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7612 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7613
1c6d1051
YM
76142009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7615
7616 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7617 (x_delete_terminal): Dissociate resource database from display and
7618 then call XrmDestroyDatabase before closing display.
7619
9b9b779c
AR
76202009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7621
7622 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7623 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7624 whether selected frame is viable before raising it (based on patch
7625 by David Reitter), and improve commentary.
7626 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7627
cccd42d5
KH
76282009-05-15 Kenichi Handa <handa@m17n.org>
7629
7630 * font.c (Ffont_spec): Check arguments.
7631
337fbd17
CY
76322009-05-14 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7635 weight when testing attributes (Bug#3282).
7636
47a6002f
JD
76372009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7638
7639 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7640 what we expect to get in the next ConfigureNotify event.
7641
9cb363db
YM
7642 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7643 before Xft one (Bug#1696).
7644
b9126609
CY
76452009-05-07 David Reitter <david.reitter@gmail.com>
7646
7647 * nsfns.m (Fx_display_planes): Compute bitplanes using
7648 NSBitsPerPixelFromDepth (Bug#3207).
7649
27a69fd9
CY
76502009-05-10 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7653
00f37552
TTN
76542009-05-10 Ulrich Mueller <ulm@gentoo.org>
7655
7656 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7657
2d82a920
DR
76582009-05-07 David Reitter <david.reitter@gmail.com>
7659
ec7709ba
JB
7660 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7661 Respect mouse face background.
2d82a920 7662
46b0d52d
DR
76632009-05-07 David Reitter <david.reitter@gmail.com>
7664
ec7709ba
JB
7665 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7666 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7667 in ns_update_begin and ns_update_end.
7668
ce1b23bb
SM
76692009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7670
5996e1b7
SM
7671 * nsfns.m (ns_get_screen): Rewrite.
7672 Don't presume selected-frame is of type `ns'.
7673
ba98e3a0
SM
7674 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7675 all drivers.
7676
ce1b23bb
SM
7677 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7678
bcda200f
YM
76792009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7680
7681 * keyboard.h (add_user_signal): Fix typo in extern.
7682
7683 * lisp.h (add_user_signal): Remove extern.
7684
7685 * unexelf.c (unexec): Consider a section to precede the .bss section
7686 if its addresses overlap that of .bss.
7687 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7688 instead of dumping process.
7689
864660a2
SM
76902009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7691
7692 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7693
50da4e56
SM
76942009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7695
7696 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7697
51520a1a
DN
76982009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7699
7700 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7701 any statements.
7702
409ea3a1
AS
77032009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7704
59c4c60f
AS
7705 * process.c (read_process_output): Make sure the current buffer is
7706 always restored.
7707
409ea3a1
AS
7708 * coding.c (record_conversion_result): Don't modify
7709 Vlast_code_conversion_error for successful result.
7710 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7711
56f00ed2
KH
77122009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7713
7714 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7715 (load_charset_map): Remove unnecessary code.
56f00ed2 7716
4491c9d2
DR
77172009-04-30 David Reitter <david.reitter@gmail.com>
7718
35f5b128 7719 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7720 through f24.
7721
6970f632
CY
77222009-04-30 Chong Yidong <cyd@stupidchicken.com>
7723
7724 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7725
7726 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7727 face_at_buffer_position.
7728 (face_before_or_after_it_pos, get_next_display_element)
7729 (note_mouse_highlight): Update face_at_buffer_position call.
7730
7731 * term.c (term_mouse_highlight):
7732 * msdos.c (IT_note_mouse_highlight):
7733 * fontset.c (Finternal_char_font):
35f5b128 7734 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7735
7736 * dispextern.h (face_at_buffer_position): Update prototype.
7737
0c616f63
KH
77382009-04-30 Kenichi Handa <handa@m17n.org>
7739
35f5b128 7740 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7741
ad3aaf33
AS
77422009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7743
7744 * callproc.c (Fcall_process): Fix GC protection. Make sure
7745 current buffer is always restored.
7746
c3c963a0
YM
77472009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7748
7749 * atimer.c (init_atimer): Also clear stopped_atimers.
7750
7751 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7752
7e3386cb
YM
7753 * process.c (create_process): Clean up merger residues of
7754 2008-07-17 change.
7755
91f68422
CY
77562009-04-29 Ulrich Mueller <ulm@gentoo.org>
7757
7758 * lread.c (Vread_circle): New variable.
7759 (read1): Disable recursive read if Vread_circle is nil.
7760
24b34550
KH
77612009-04-29 Kenichi Handa <handa@m17n.org>
7762
7763 * fontset.h (set_default_ascii_font): Delete extern.
7764
7765 * fontset.c (set_default_ascii_font): Delete this unused function.
7766
7767 * frame.c (x_set_font): When ARG is a font-object, check if the
7768 font-object matches with the ASCII font-spec of the frame's
9c358bda 7769 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7770
77bf07e1
AS
77712009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7772
7773 * fns.c (Flocale_info): Protect vector from GC during decoding.
7774
7775 * process.c (Fstart_process): Protect argv strings from GC during
7776 encoding.
7777
2c55aacf
AS
77782009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7779
7780 * sysdep.c: Include <ctype.h>.
7781
b892d3c9
DR
77822009-04-27 David Reitter <david.reitter@gmail.com>
7783
35f5b128 7784 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7785 Remove commented-out code.
7786
9d0644c4
JB
77872009-04-26 Johan Bockgård <bojohan@gnu.org>
7788
7789 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7790
b7053016
JR
77912009-04-25 Jason Rumney <jasonr@gnu.org>
7792
7793 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7794
4e8231f3
YM
77952009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7796
7797 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7798 Swap bytes in short integer if fringe bitmap width > 8.
7799
493dcf2c
KH
78002009-04-23 Kenichi Handa <handa@m17n.org>
7801
7802 * xfaces.c (Fx_list_fonts): If a font size is specified in
7803 PATTERN, set it in returned scalable fonts.
7804
401e9e57
CY
78052009-04-22 Chong Yidong <cyd@stupidchicken.com>
7806
708e05dc
CY
7807 * keyboard.c (Fset_input_meta_mode): Doc fix.
7808
7809 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7810
1ac9108a 7811 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7812
7813 * coding.c (Fterminal_coding_system): Doc fix.
7814
7815 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7816 (Fx_display_pixel_height, Fx_display_planes)
7817 (Fx_display_color_cells, Fx_server_max_request_size)
7818 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7819 (Fx_display_mm_height, Fx_display_mm_width)
7820 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7821 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7822 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7823 (check_x_display_info): Handle terminal objects instead of
7824 terminal ids.
7825
401e9e57
CY
7826 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7827 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7828 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7829 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7830
df80c7f0
KH
78312009-04-21 Kenichi Handa <handa@m17n.org>
7832
5a8f12af 7833 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7834 (font_score): Check AVGWIDTH too.
908567ef 7835
df80c7f0
KH
7836 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7837 worst case.
1ac9108a
SM
7838 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7839 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7840
705af33f
JR
78412009-04-19 Jason Rumney <jasonr@gnu.org>
7842
7843 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7844 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7845
7846 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7847 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7848 get_phys_cursor_geometry.
7849
b71ac3dd 7850 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7851 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7852 using get_phys_cursor_geometry.
7853
7854 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7855 correctly calculated.
7856
dc2933eb
JD
78572009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7858
1ac9108a
SM
7859 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7860 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7861 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7862 is deprecated.
7863
973e7849
AS
78642009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7865
7866 * font.c (font_put_frame_data): Use xfree instead of free.
7867
314d66f4
JB
78682009-04-17 Juanma Barranquero <lekktu@gmail.com>
7869
7870 * w32font.c (Qja, Qko): Remove declarations.
7871 (syms_of_w32font): Don't DEFSYM them.
7872
cf702558
CY
78732009-04-17 Chong Yidong <cyd@stupidchicken.com>
7874
7875 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7876
7877 * font.h (Qja, Qko): Extern them.
7878
7879 * ftfont.c (Qja, Qko): Remove declarations.
7880
7881 * xfont.c (Qja, Qko): Remove declarations.
7882
b50504f5
KH
78832009-04-17 Kenichi Handa <handa@m17n.org>
7884
bde25748
KH
7885 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7886 string from a vector to handle Latin-1 characters correctly.
7887
b50504f5
KH
7888 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7889 entity even if the cache hits.
7890
f4646fff
AS
78912009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7892
7893 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7894 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7895
e7deaab0
AS
7896 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7897 * lisp.h: Adjust prototypes.
7898
0a0e7d49
CY
78992009-04-16 Chong Yidong <cyd@stupidchicken.com>
7900
7901 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7902 change (Bug#3003).
7903
3c908a57
KH
79042009-04-16 Kenichi Handa <handa@m17n.org>
7905
1ac9108a 7906 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7907
7908 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7909 adstyle.
7910
7911 * ftfont.c (Qja, Qko): Don't make them static.
7912 (enum ftfont_cache_for): New enum.
7913 (fc_charset_table): Undo the previous change.
7914 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7915 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7916 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7917 non-scarable font, try to get AVERAGE_WIDTH.
7918 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7919 Change ft_face_cache from a list of a hash-table. Don't check
7920 `ja' and `ko' adstyle here.
7921 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7922 FTFONT_CACHE_FOR_CHARET.
7923 (ftfont_get_charset): Undo the previous change.
1ac9108a 7924 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7925 (ftfont_close): Likewise.
7926 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7927
7928 * font.c (font_sort_entites): Change the meaning of the arg
7929 BEST-ONLY. Don't optimize for VEC of lenght 1.
7930 (font_select_entity): Just return the value of font_sort_entites.
7931
7932 * xfaces.c (merge_face_vectors): Reflect font properties in
7933 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7934 font_clear_prop if a face attribute doesn't change.
7935
3c908a57
KH
7936 * charset.h (charset_ksc5601): Extern it.
7937
7938 * charset.c (charset_ksc5601): New variable.
7939 (Fdefine_charset_internal): Set charset_ksc5601.
7940 (init_charset_once): Initialize charset_ksc5601 to -1.
7941
d65859c3
DN
79422009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7943
7944 * fileio.c (history_delete_duplicates): Remove unused declaration.
7945
7946 * callint.c (history_delete_duplicates): New declaration.
7947 (Fcall_interactively): Remove command history duplicates when
7948 history_delete_duplicates is true.
7949
3ba010e5
EZ
79502009-04-14 Eli Zaretskii <eliz@gnu.org>
7951
7952 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7953
06f19b91
KH
79542009-04-14 Kenichi Handa <handa@m17n.org>
7955
7956 * font.c (Ffont_info): Fix docstring. Fix the second element of
7957 the returned value (bug#2949).
7958
2cce8bfc
CY
79592009-04-14 Chong Yidong <cyd@stupidchicken.com>
7960
7961 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7962
d156542d
KH
79632009-04-14 Kenichi Handa <handa@m17n.org>
7964
7965 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7966 encoding charset is ascii_compatible.
7967
7968 * charset.c (Fdefine_charset_internal): Make charset
7969 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7970 code_offset is 0, and covers all ASCII characters.
7971
86fa089e
SM
79722009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7973
7974 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7975 (ns_string_to_pasteboard_internal):
7976 * nsmenu.m (process_dialog):
7977 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7978 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7979 * lisp.h (Fx_load_color_file): Declare.
7980
a8a3728b
KH
79812009-04-13 Kenichi Handa <handa@m17n.org>
7982
1ac9108a 7983 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7984 (font_select_entity): Suppress the code to optimize for the same
7985 kind of fonts.
7986 (font_load_for_lface): Get a font that supports at least ASCII
7987 characters.
7988
7989 * ftfont.c (Qja, Qko): New variables.
7990 (fc_charset_table): Delete uniquifier data for iso8859-1.
7991 (ftfont_get_latin1_charset): New function.
7992 (get_adstyle_property): New function.
7993 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7994 bitmap fonts.
7995 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7996 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7997 `ko' or `ja'.
7998 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7999 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8000 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8001 property.
8002 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8003 (syms_of_ftfont): DEFSYM Qja and Qko.
8004
483670b5
KH
80052009-04-09 Kenichi Handa <handa@m17n.org>
8006
12b55765
KH
8007 * charset.c (map_charset_chars): For a charset of `superset'
8008 method, fix calculation of code range.
8009
483670b5
KH
8010 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8011 from the list of extra properties.
8012 (font_clear_prop): Be sure to delete `:name' font property.
8013
57d3b93b
KH
80142009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8015
b4b2c2ca
YM
8016 * dispnew.c (redraw_overlapping_rows): Fix detection of
8017 overlapping for topmost and bottommost rows.
8018
1ac9108a 8019 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8020
472c3609
JR
80212009-04-06 Jason Rumney <jasonr@gnu.org>
8022
8023 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8024
ab193662
KH
80252009-04-06 Kenichi Handa <handa@m17n.org>
8026
8027 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8028
8029 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8030
0c26f026
KH
80312009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8032
8033 * ftfont.c (ftfont_open): Fix checking of the return value of
8034 FT_Load_Char. Fix setting font->underline_thickness.
8035
e173bbce
CY
80362009-04-04 Chong Yidong <cyd@stupidchicken.com>
8037
8038 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8039 (Fterminal_parameters, Fterminal_parameter)
8040 (Fset_terminal_parameter): In doc string, refer to terminal
8041 objects rather than terminal ids.
8042
693a2698
EZ
80432009-04-04 Eli Zaretskii <eliz@gnu.org>
8044
8045 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8046 ret_lim_data. (Bug#2867)
8047
d5221487
CY
80482009-04-03 Chong Yidong <cyd@stupidchicken.com>
8049
8050 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8051 so they don't get wider than the window, matching 2006-01-23
8052 change to the partner function in xdisp.c (Bug#2800).
8053
223509a3
KH
80542009-04-03 Kenichi Handa <handa@m17n.org>
8055
8056 * print.c (print_object): Make each lowest sub_char_table start a
8057 new line (Bug#2866).
8058
74fcd0b1
KH
80592009-04-02 Kenichi Handa <handa@m17n.org>
8060
8061 * fontset.c (fontset_font): Record no-font when a fontset
8062 explicitly tells not to try another font-specs.
8063
c542407d
SM
80642009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8065
8066 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8067
e3869731
KH
80682009-03-30 Kenichi Handa <handa@m17n.org>
8069
d8d2f142
KH
8070 * fontset.c (fontset_from_font): Specify only registry in a
8071 font-spec for all characters supported by that registry.
8072
e3869731
KH
8073 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8074 even if HAVE_M17N_FLT is not defined.
8075
5da5f805
CY
80762009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8077
8078 * ftfont.c: Conditionalize prototyping and use of
8079 ftfont_variation_glyphs.
8080
ab226c50
SM
80812009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8082
9628fed7
SM
8083 * frame.c (delete_frame): Work around compiler bug.
8084
8085 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8086 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8087 Some more EMACS_INT.
8088 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8089
8090 * xdisp.c (dump_glyph): Fix typo.
8091
ae19ba7c
SM
8092 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8093 (adjust_markers_gap_motion, adjust_markers_for_delete)
8094 (adjust_markers_for_insert, adjust_point)
8095 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8096 (make_gap, copy_text, count_size_as_multibyte, insert)
8097 (insert_and_inherit, insert_before_markers)
8098 (insert_before_markers_and_inherit, insert_1)
8099 (count_combining_before, count_combining_after, insert_1_both)
8100 (insert_from_string, insert_from_string_before_markers)
8101 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8102 (insert_from_buffer_1, adjust_after_replace)
8103 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8104 (replace_range_2, del_range, del_range_1, del_range_byte)
8105 (del_range_both, del_range_2, modify_region)
8106 (prepare_to_modify_buffer, signal_before_change)
8107 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8108 for buffer positions and sizes.
8109 * lisp.h: Adjust prototypes accordingly.
8110
8111 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8112 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8113 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8114
ab226c50
SM
8115 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8116
46dfb8fb
JD
81172009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8118
8119 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8120 lines and columns so we keep the same pixel height and width.
8121
8122 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8123 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8124 (x_handle_net_wm_state): New function to update frame parameter
8125 fullscreen.
8126 (x_term_init): Initialize atoms for _NET_WM_STATE.
8127
8128 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8129
d347e494
SM
81302009-03-27 Kevin Ryde <user42@zip.com.au>
8131
8132 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8133 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8134 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8135 (Fgpm_mouse_stop): Pass that new parameter.
8136 * termhooks.h (close_gpm): Adjust prototype.
8137
84db11d6
SM
81382009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8139
c95a5008
SM
8140 * lisp.h (Fx_focus_frame): Declare.
8141
84db11d6
SM
8142 * callint.c (Fcall_interactively): For '^' just delegate the work to
8143 handle-shift-selection.
8144 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8145
0a1958d6
CY
81462009-03-24 Chong Yidong <cyd@stupidchicken.com>
8147
0bfdff23
CY
8148 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8149
0a1958d6
CY
8150 * data.c (Qinteractive_form): New variable.
8151 (Finteractive_form): Use it.
8152
8153 * eval.c (Fcommandp): Use Qinteractive_form.
8154
58aec0d6
JR
81552009-03-24 Jason Rumney <jasonr@gnu.org>
8156
8157 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8158 Calculate total size precisely. Decode environment variables
8159 before substituting. (Bug#38)
8160
553dd618
KH
81612009-03-24 Kenichi Handa <handa@m17n.org>
8162
8163 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8164 encoding (Bug#2722).
553dd618 8165
c39ea606
JD
81662009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8167
8168 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8169 that gdpy is set.
8170
bc9b2b5e
AM
81712009-03-22 Alan Mackenzie <acm@muc.de>
8172
8173 * callint.c (Finteractive): Clarify the doc string - even
8174 promptless elements need \n separators.
8175
9f995a76
JR
81762009-03-22 Jason Rumney <jasonr@gnu.org>
8177
8178 * w32term.c (syms_of_w32term): Doc fix for
8179 x-use-underline-position-properties.
8180
22749e9a
EZ
81812009-03-21 Eli Zaretskii <eliz@gnu.org>
8182
8183 * w32.c (getpwuid): Change argument type to unsigned.
8184 (struct w32_id): Change type of `rid' member to unsigned.
8185 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8186 argument ID to unsigned. All callers changed.
8187 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8188
e00553bf
EZ
81892009-03-20 Eli Zaretskii <eliz@gnu.org>
8190
8191 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8192 negative, produce a float value.
8193
8194 * dired.c (make_uid, make_gid): New functions.
8195 (Ffile_attributes): Use them to avoid negative UID and GID.
8196
f761d6b6
JB
81972009-03-20 Juanma Barranquero <lekktu@gmail.com>
8198
8199 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8200 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8201 Fix typos in docstrings.
8202
d507f8d7
KH
82032009-03-19 Kenichi Handa <handa@m17n.org>
8204
8205 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8206 changed, use font_load_for_lface to get a new font object.
8207 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8208
8209 * frame.c (x_set_font): Handle the case that ARG is a cons.
8210
c68845e0
GM
82112009-03-19 Glenn Morris <rgm@gnu.org>
8212
8213 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8214
bfa49dd1
CY
82152009-03-19 Chong Yidong <cyd@stupidchicken.com>
8216
8217 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8218
8458d4c1
KH
82192009-03-19 Kenichi Handa <handa@m17n.org>
8220
8221 * charset.c (load_charset_map_from_file): When a mapfile can't be
8222 loaded, signal an error.
8223
78e7d1fe
EZ
82242009-03-18 Eli Zaretskii <eliz@gnu.org>
8225
8226 * dired.c (Ffile_attributes): Make sure UID and GID are always
8227 positive, even if the value is too large for a positive EMACS_INT.
8228 Doc fix.
8229
8230 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8231
5da9fdfa
YM
82322009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8233
8234 * xmenu.c (xdialog_show): Move Fredisplay call ...
8235 (Fx_popup_dialog): ... here.
8236
7519c40d
SM
82372009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8238
8239 * dired.c (file_name_completion): Disable the first optimization just
8240 installed, since it is not implemented correctly.
8241
2cd298e2
SM
82422009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8243
8244 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8245 only if the entry can affect bestmatch.
2cd298e2
SM
8246 Stop the search early, as Ftry_completion already does.
8247
48d37adf
CY
82482009-03-17 Chong Yidong <cyd@stupidchicken.com>
8249
e10c9c93 8250 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8251
9286b16a
CY
82522009-03-15 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * keyboard.c (parse_menu_item): Don't display remappings as menu
8255 equivalent bindings (Bug#788).
8256
f7b146dc
JR
82572009-03-15 Jason Rumney <jasonr@gnu.org>
8258
8259 * w32term.h (WM_EMACS_PAINT): New message.
8260 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8261 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8262 before passing to lisp thread. (Bug#950)
8263
f761d6b6 82642009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8265
d93f9575
CY
8266 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8267 variable as it was never reset.
8268 (ns_term_init): Remove initialization of Lisp-settable defaults
8269 and ns_expand_space.
8270 (-setPanelFromDefaultValues): Remove ns_expand_space.
8271 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8272 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8273 i.e. no additional spacing, similar to Carbon port.
8274
d93f9575
CY
8275 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8276 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8277
305018ec
JD
82782009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8279
8280 * sound.c (alsa_configure): Remove call to deprecated
8281 snd_pcm_sw_params_set_xfer_align.
8282
f761d6b6 82832009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8284
8285 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8286 after clicking in a detached tool bar.
8287 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8288
46e722a9
SM
82892009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8290
348db3dd
SM
8291 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8292 int/Lisp_Object mixup).
46e722a9 8293
a3d16f39
KH
82942009-03-13 Kenichi Handa <handa@m17n.org>
8295
8296 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8297 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8298 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8299 (set_fontset_font): Change ARG to a vector. Handle range_list in
8300 ARG correctly.
8301 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8302 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8303 the above change.
8304 (fontset_from_font): Fix previous change.
fe24f56a 8305 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8306 entry. If FONTSET is the default fontset, don't set the extra
8307 slot of the returning char-table.
8308
b066e6b6
JB
83092009-03-12 Juanma Barranquero <lekktu@gmail.com>
8310
8311 * nsfns.m (Fx_close_connection): Doc fix.
8312 (Fns_do_applescript): Reflow docstring.
8313 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8314 (Fx_display_pixel_width, Fx_display_pixel_height)
8315 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8316 Fix typos in docstrings.
8317 (Fns_set_alpha): Fix typos in error messages.
8318
d472514e 83192009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8320
d472514e 8321 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8322 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8323 were used for such events.
8324
d472514e
JB
8325 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8326 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8327
d472514e 8328 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8329 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8330
fb930676
KH
83312009-03-11 Kenichi Handa <handa@m17n.org>
8332
ff85581a
KH
8333 * font.h (font_open_by_spec): Extern it.
8334
c50b7e98
KH
8335 * font.c (font_open_by_spec): New function.
8336 (font_open_by_name): Use font_open_by_spec.
8337
fb930676
KH
8338 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8339 fontset of the frame.
8340
8341 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8342 modify the default font of frames that use this fontset.
8343 (num_auto_fontsets): New variable.
8344 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8345 name. Be sure to set FONTSET_ASCII to the correct font name.
8346 (update_auto_fontset_alist): New function.
8347
df4e8455
JB
83482009-03-11 Juanma Barranquero <lekktu@gmail.com>
8349
8350 * makefile.w32-in: Update dependencies.
8351
0a375797
AR
83522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8353
8354 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8355
61313fa3
SM
83562009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8357
8358 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8359
b55103fb
CY
83602009-03-10 Chong Yidong <cyd@stupidchicken.com>
8361
8362 * lread.c (Feval_buffer): Doc fix.
8363
dde2559c
KH
83642009-03-09 Kenichi Handa <handa@m17n.org>
8365
8366 * charset.c (Qfile_name_handler_alist): Extern it.
8367 (load_charset_map_from_file): Temporarily bind
8368 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8369
df4e8455 83702009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8371
47f588bb
GM
8372 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8373 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8374
4ddf94bd
AR
83752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8376
4c9bdfc2
AR
8377 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8378 (x_set_window_size): Change back to calculated method of setting
8379 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8380 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8381 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8382
fe41ae9e
AR
8383 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8384
4c9bdfc2
AR
8385 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8386 accelerator in parens under GNUstep.
8387
825d0875
KH
83882009-03-06 Kenichi Handa <handa@m17n.org>
8389
8390 These changes are to detect incorrect composition sequence without
f3b3be74 8391 looking ahead the source. (Bug#2370)
825d0875
KH
8392
8393 * coding.h: Include "composite.h".
8394 (enum compisition_state): New enum.
8395 (struct compisition_status): New struct.
8396 (struct iso_2022_spec): New member cmp_status.
8397 (struct emacs_mule_spec): New struct.
8398 (struct coding_system): New members ctext_extended_segment_len and
8399 embedded_utf_8. Change the union member
8400 spec.emacs_mule_full_support to spec.emacs_mule.
8401
8402 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8403 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8404 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8405 (ADD_COMPOSITION_DATA): New arg nbytes.
8406 (emacs_mule_char): New arg cmp_status.
8407 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8408 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8409 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8410 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8411 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8412 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8413 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8414 (EMACS_MULE_COMPOSITION_END): New macro.
8415 (emacs_mule_finish_composition): New function.
8416 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8417 (decode_coding_emacs_mule): Avoid long looking ahead while
8418 handling composition.
8419 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8420 (ENCODE_COMPOSITION_RULE): New macro.
8421 (finish_composition): New function.
8422 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8423 (DECODE_COMPOSITION_START): New implementation.
8424 (DECODE_COMPOSITION_END): Likewise.
8425 (STORE_COMPOSITION_RULE): New macro.
8426 (decode_coding_iso_2022): Avoid long looking ahead while handling
8427 composition, CTEXT extended segment, and embedded UTF-8.
8428 (setup_coding_system): For a coding of type iso-2022, reset
8429 CODING_ISO_EXTSEGMENT_LEN (coding) and
8430 CODING_ISO_EMBEDDED_UTF_8 (coding).
8431 (get_translation): Delete arguments last_block, from_nchars,
8432 to_nchars. Callers changed.
8433 (produce_chars): Don't modify charbuf. Adjusted for the change of
8434 get_translation.
98a326f7 8435 (produce_composition): Adjust for the new annotation sequence.
825d0875 8436 (handle_composition_annotation): Likewise.
98a326f7 8437 (consume_chars): Adjust for the change of get_translation.
825d0875 8438
ccbc4452
AR
84392009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8440
4ddf94bd 8441 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8442
988a7ddb
KH
84432009-03-05 Kenichi Handa <handa@m17n.org>
8444
8445 * font.c (font_select_entity): New function.
8446 (font_find_for_lface): Use font_select_entity to select a font.
8447
8448 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8449 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8450 font with C restriction.
8451
98a326f7 84522009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8453
be1bce46 8454 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8455
10ea2b82
JR
84562009-03-04 Jason Rumney <jasonr@gnu.org>
8457
2c93b248 8458 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8459 characters that have already been read. (Bug#2569)
2c93b248 8460
10ea2b82
JR
8461 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8462 Log an error message if check_image_size failed.
8463 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8464 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8465
71a0c011
EZ
84662009-03-02 Eli Zaretskii <eliz@gnu.org>
8467
8468 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8469 when decoding process output.
8470
2f63bba8
RS
84712009-03-01 Richard M Stallman <rms@gnu.org>
8472
8473 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8474
8475 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8476
0a9564cb
EZ
84772009-02-28 Eli Zaretskii <eliz@gnu.org>
8478
8479 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8480 (decode_coding_emacs_mule, decode_coding_iso_2022)
8481 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8482 (decode_coding_raw_text, decode_coding_charset)
8483 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8484 Honor inhibit-eol-conversion. (Bug #2186)
8485
449148b3
JR
84862009-02-28 Jason Rumney <jasonr@gnu.org>
8487
8488 * coding.c (detect_coding_charset): If not checking latin extra,
8489 fail on characters between 0x80 and 0xA0. (Bug#2354)
8490
a4aee864
EZ
84912009-02-28 Eli Zaretskii <eliz@gnu.org>
8492
8493 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8494 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8495
d88bee5a
GM
84962009-02-27 Glenn Morris <rgm@gnu.org>
8497
8498 * callint.c (Finteractive): Doc fix.
8499
a808f22d
KH
85002009-02-27 Kenichi Handa <handa@m17n.org>
8501
8502 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8503
caf8d60c
CY
85042009-02-27 Chong Yidong <cyd@stupidchicken.com>
8505
8506 * font.c (font_style_to_value): Set value for unknown symbols to
8507 100 instead of 255.
b61137ea
CY
8508 (weight_table, slant_table, width_table): Treat "unspecified" as
8509 the default value.
caf8d60c 8510
1a0de25c
JB
85112009-02-26 Juanma Barranquero <lekktu@gmail.com>
8512
8513 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8514
8fc45744
JB
85152009-02-25 Juanma Barranquero <lekktu@gmail.com>
8516
107bd7d1
JB
8517 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8518 error as soon as a recursive load is detected.
8fc45744 8519
f097e223
AR
85202009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8521
8522 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8523 before caching.
8524
8810a12f
KH
85252009-02-24 Kenichi Handa <handa@m17n.org>
8526
8527 * fontset.c (fontset_find_font): Fix the condition for checking
8528 unavailable font.
8529
2c7d1565
GM
85302009-02-24 Glenn Morris <rgm@gnu.org>
8531
8532 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8533 whitespace that confuses documentation.
8534
a20878b6
MB
85352009-02-23 Miles Bader <miles@gnu.org>
8536
8537 * process.c (Flist_system_processes, Fprocess_attributes)
8538 (syms_of_process): Rename `system-process-attributes' to
8539 `process-attributes'.
8540
b3b58c01
AS
85412009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8542
1b3b981b
AS
8543 * coding.h (struct coding_system): Make safe_charsets a pointer to
8544 unsigned char.
8545 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8546 being 255.
8547 (SAFE_CHARSET_P): Likewise.
8548 (setup_iso_safe_charsets): Properly setup safe_charsets.
8549 (Fdefine_coding_system_internal): Likewise.
8550 (setup_coding_system): Likewise. Remove unneeded casts.
8551 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8552 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8553 unneeded casts.
8554
b3b58c01
AS
8555 * insdel.c (del_range_2): Don't modify gap contents when called
8556 from decode_coding_object. (Bug#1809)
8557
0b6f228c
CY
85582009-02-21 Chong Yidong <cyd@stupidchicken.com>
8559
8560 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8561 Qfont_object.
8562 (Ftype_of): Recognize font objects.
8563
8564 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8565
8566 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8567 moved to data.c.
8568
52f8870b
AR
85692009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8570
8571 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8572 async_iconified. Based on a patch by Christian Lynbech
8573 <christian.lynbech@tieto.com>.
8574 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8575
7087d5e9
GM
85762009-02-20 Glenn Morris <rgm@gnu.org>
8577
8578 * syntax.c (Fskip_chars_forward): Fix doc typo.
8579
41d2ceef
CY
85802009-02-20 Chong Yidong <cyd@stupidchicken.com>
8581
8582 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8583
1a3b7ca6
CY
85842009-02-19 Chong Yidong <cyd@stupidchicken.com>
8585
8586 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8587
73cce38d
KH
85882009-02-19 Kenichi Handa <handa@m17n.org>
8589
8590 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8591 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8592
a51092ee
DN
85932009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8594
8595 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8596
c423ecca
KH
85972009-02-18 Kenichi Handa <handa@m17n.org>
8598
8599 * font.c (font_check_otf_features): Fix handling of `nil' element.
8600 (Ffont_spec): Describe :lang and :otf in the docstring.
8601
4c1958f4
AS
86022009-02-16 Andreas Schwab <schwab@suse.de>
8603
8604 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8605 string.
8606
5704f39a
KH
86072009-02-16 Kenichi Handa <handa@m17n.org>
8608
8609 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8610 (Bug#1723)
5704f39a 8611
8f0085aa
CY
86122009-02-14 Chong Yidong <cyd@stupidchicken.com>
8613
a057d86a 8614 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8615
8616 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8617 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8618
aff01dd9
EZ
86192009-02-14 Eli Zaretskii <eliz@gnu.org>
8620
8621 * msdos.c (MAX_SCREEN_BUF): New macro.
8622 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8623 Encode the entire run of glyphs sharing the same face, instead of
8624 doing that one glyph at a time (fixes a bug with displaying
8625 double-size characters).
8626
ba301db3
AR
86272009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8628
8629 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8630
8631 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8632 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8633 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8634
8635 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8636 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8637
51d861de
SM
86382009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8639
ac146f82 8640 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8641 invisible areas.
8642
7fed8996
JR
86432009-02-12 Jason Rumney <jasonr@gnu.org>
8644
631ea4fb
JR
8645 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8646 (add_font_entity_to_list): Call check_face_name even when family
8647 is unspecified.
8648
cb4a3e42
JR
8649 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8650 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8651 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8652
7fed8996 8653 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8654 raster fonts. (Bug#2219)
7fed8996 8655
895416e3
KH
86562009-02-12 Kenichi Handa <handa@m17n.org>
8657
8658 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8659 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8660 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8661 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8662 (find_automatic_composition): While looking forward and backward,
8663 check static composition. Fix where to stop looking forward.
8664 (composition_adjust_point): Fix checking of static composition.
8665 (Fcomposition_get_gstring): Pay attention to
1dacf998 8666 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8667
8668 * lisp.h (fast_looking_at): Extern it.
8669
8670 * search.c (fast_looking_at): New function.
8671
51d861de 8672 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8673 <struct glyph>.u.cmp.to.
8674 (append_composite_glyph): Likewise.
8675
51d861de 8676 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8677 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8678 composition.
51d861de 8679 (append_composite_glyph): Adjust for the change of
895416e3
KH
8680 <strcut glyph>.u.cmp.to.
8681
8510724d
JB
86822009-02-11 Juanma Barranquero <lekktu@gmail.com>
8683
8684 * casetab.c (init_casetab_once):
8685 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8686 * font.c (font_update_lface):
8687 * fontset.c (Fnew_fontset):
8688 * ftfont.c (ftfont_drive_otf):
8689 * xfont.c (xfont_open):
8690 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8691
294fa707
SM
86922009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8693
8694 * fileio.c (Fwrite_region): !NILP -> CONSP.
8695
b5bfebec
AS
86962009-02-10 Andreas Schwab <schwab@suse.de>
8697
8698 * process.c (send_process): Properly relocate pointer into data
adab88bd 8699 when using encoded data. (Bug#2272)
b5bfebec 8700
cb84a2be
KH
87012009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8702
8703 * coding.c (detect_coding_charset): Fix previous change.
8704
89e09428
JR
87052009-02-08 Jason Rumney <jasonr@gnu.org>
8706
8707 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8708 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8709
4470a277
AS
87102009-02-07 Andreas Schwab <schwab@suse.de>
8711
8712 * unexelf.c (unexec): Fix error message.
8713
3175b12a
AR
87142009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8715
8716 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8717 when modal window is active. (Bug #2152)
3175b12a
AR
8718 (applicationShouldTerminate:): Remove now-unneeded while loop
8719 around NSRunAlertPanel.
8720
8721 * nsmenu.m (popupSession): New file-global variable.
8722 (pop_down_menu): End the popupSession before closing dialog.
8723 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8724 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8725 don't query NSApp for events (just sleep instead).
8726
8434d0b8
EZ
87272009-02-07 Eli Zaretskii <eliz@gnu.org>
8728
51d861de
SM
8729 * coding.c (syms_of_coding) <translation-table-for-input>:
8730 Modify doc string to discourage use for character code unification.
8434d0b8 8731
aa82edfd
CY
87322009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8733
8734 * atimer.c (run_timers): Update pending_atimers.
8735
2d283c7c
CY
87362009-02-06 Chong Yidong <cyd@stupidchicken.com>
8737
eb306cab
CY
8738 * image.c (svg_load_image): Fix last change.
8739
2d283c7c
CY
8740 * xfns.c (Fx_create_frame): Signal an error if no font is
8741 found (Bug#2147).
8742
4d8e170e
JB
87432009-02-05 Juanma Barranquero <lekktu@gmail.com>
8744
8745 * character.c (syms_of_character) <script-representative-chars>:
8746 Fix typo in docstring.
8747
c96169a0
AR
87482009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8749
8750 * nsmenu.m (pop_down_menu): New function.
8751 (ns_popup_dialog): Call it on unwind.
8752 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8753 call timer_check() (Bug#2154).
8754 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8755 handling_signal is set.
8756 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8757
31fd7c5c 8758 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8759
8760 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8761
8762 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8763
51d861de
SM
8764 * keyboard.c (poll_for_input_1, handle_async_input):
8765 Set handling_signal under HAVE_NS.
c96169a0 8766
aacd8ba1
GM
87672009-02-04 Glenn Morris <rgm@gnu.org>
8768
8769 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8770
4cb75c4b
KH
87712009-02-04 Kenichi Handa <handa@m17n.org>
8772
8773 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8774
8775 * charset.c (Fchar_charset): New optional arg restriction.
8776
8777 * coding.h (coding_system_charset_list): Extern it.
8778
8779 * coding.c (coding_system_charset_list): New function.
8780
8781 * composite.c: Include coding.h and termhooks.h.
8782 (composition_gstring_p): Fix for the terminal case.
8783 (composition_gstring_width): Likewise.
8784 (fill_gstring_body): Likewise.
8785 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8786 the frame.
8787 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8788 is within a composition.
867d4bb3 8789 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8790
8791 * term.c (encode_terminal_code): Fix handling of composition.
8792 (produce_composite_glyph): For static composition, get pixel_width
8793 from struct composition.
8794
826ba17e
AS
87952009-02-02 Andreas Schwab <schwab@suse.de>
8796
8797 * unexelf.c (unexec): Handle unaligned bss offset.
8798
8ad093db
AR
87992009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8800
8801 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8802 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8803
8ad093db
AR
8804 * keyboard.c (handle_interrupt): Don't call
8805 quit_throw_to_read_char() under NS.
d0a76a6e 8806
8ad093db
AR
8807 * blockinput.h: Remove NS-specific code.
8808
4d18a7a2
DN
88092009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8810
db878925
DN
8811 * dispnew.c (window_change_signal): Don't try to get the size of a
8812 suspended tty frame.
8813 * term.c (Fresume_tty): Resize if the size has changed while the
8814 tty was suspended.
8815
4d18a7a2
DN
8816 * alloc.c (mark_stack): Properly conditionalize previous change.
8817
8984df7c
JB
88182009-01-30 Juanma Barranquero <lekktu@gmail.com>
8819
8820 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8821 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8822 Remove; this code is not used on Windows.
8823
75f4f1ac
EZ
88242009-01-30 Eli Zaretskii <eliz@gnu.org>
8825
8826 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8827 EOLs that also has stray ^M characters.
8828
07a1e794
JB
88292009-01-30 Juanma Barranquero <lekktu@gmail.com>
8830
8831 * atimer.c (run_timers, alarm_signal_handler):
8832 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8833 * w32inevt.c (w32_console_read_socket):
8834 * w32term.c (w32_read_socket):
8835 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8836
a8b11cc9
CY
88372009-01-30 Chong Yidong <cyd@stupidchicken.com>
8838
8839 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8840 Initialize it as a relative filename pattern.
8841 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8842 (Fcall_process_region): Simplify temp file creation using
8843 temporary-file-directory.
8844
c279587b
EZ
88452009-01-29 Eli Zaretskii <eliz@gnu.org>
8846
8847 * msdos.c: Rename pending_signals to msdos_pending_signals.
8848 (sig_suspender, sigprocmask): Adjust.
8849
a8fe3242
CY
88502009-01-29 Chong Yidong <cyd@stupidchicken.com>
8851
8852 * keyboard.c (pending_signals): New var.
8853 (poll_for_input, input_available_signal, init_keyboard): Set it.
8854 (process_pending_signals): New function.
8855
8856 * lisp.h (QUIT): Check pending_signals instead of
8857 interrupt_input_pending. Use process_pending_signals.
8858
51d861de 8859 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8860
51d861de 8861 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8862
8863 * sysdep.c (emacs_write): Use process_pending_signals.
8864
8865 * xterm.c (XTread_socket): Update pending_signals.
8866
8867 * w32term.c (w32_read_socket): Update pending_signals.
8868
8869 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8870
6570a1c4
KH
88712009-01-29 Kenichi Handa <handa@m17n.org>
8872
8873 * xftfont.c (xftfont_has_char): New function.
8874 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8875
d72a4afa
AR
88762009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8877
8878 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8879 under GNUstep.
8880 (ns_query_color): New declaration.
8881
8882 * nsterm.m (ns_confirm_quit): New variable.
8883 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8884 (EmacsApp-applicationShouldTerminate:): Use it.
8885 (EmacsPrefsController): Let user set it.
8886 (ns_query_color): New function.
8887 (ns_defined_color): Use it.
8888 (ns_initialize): Drop.
8889 (ns_term_init): Add two lines from ns_initialize(), and set
8890 input_interrupt_mode to nil.
8891
8892 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8893 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8894
9fe78804
KH
88952009-01-28 Kenichi Handa <handa@m17n.org>
8896
8897 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8898 (fontset_get_font_group): Remember that no font-group is specified
8899 for C.
9fe78804 8900
fa57de36
CY
89012009-01-27 Chong Yidong <cyd@stupidchicken.com>
8902
930600e9
CY
8903 * fns.c (concat): Check for string overflow (bug#1787).
8904
fa57de36
CY
8905 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8906 Quadruple undo limits (bug#1501).
8907
7179ce7b
KH
89082009-01-27 Kenichi Handa <handa@m17n.org>
8909
8910 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8911 directly use GT_Get_Char_index.
8912
8913 * xftfont.c (struct xftfont_info): New member `index'.
8914
8915 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8916 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8917
5be8fcc0
CY
89182009-01-26 Kenichi Handa <handa@m17n.org>
8919
8920 * fontset.c (fontset_find_font): Fix handling of non-cons return
8921 value of fontset_get_font_group.
8922 (fontset_font): Revert last change.
8923
19ae3e61
JR
89242009-01-26 Jason Rumney <jasonr@gnu.org>
8925
8926 * w32font.c (w32font_list_internal): Return quickly if registry is
8927 unknown. Simplify final return.
8928 (add_font_entity_to_list): Break complex logic down into more
8929 manageable chunks. Move unknown registry check to
8930 w32font_list_internal.
8931
8612b71a
AR
89322009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8933
8934 Changes to remove Feval calls from GUI under NS.
8935
d8038940
JB
8936 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8937 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8938 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8939
8940 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8941 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8942 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8943 instead of NON_ASCII_KEYSTROKE_EVENT.
8944 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8945 (EmacsApp-applicationShouldTerminate:): Query user.
8946 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8947 instead of Feval.
8948
8949 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8950
8951 * keyboard.c (kbd_buffer_get_event): Check for it.
8952 (keys_of_keyboard): Define lispy keys for
8953 ns-put/unput-working-text.
8954
8955 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8956 versions.
8957 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8958
6288ae55
CY
89592009-01-25 Chong Yidong <cyd@stupidchicken.com>
8960
8961 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8962 setting current_buffer directly. (Bug#2044)
6288ae55 8963
289e7f8f
CY
89642009-01-24 Chong Yidong <cyd@stupidchicken.com>
8965
5ce87308 8966 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8967 any work. (Bug#1952, bug#1990).
5ce87308 8968
64cc3cf6 8969 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8970
b3243e6f
AR
89712009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8972
8973 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8974 (ns_no_defaults): New declaration.
8975 (main): Use it.
e0d2e69a 8976
d900b2af 8977 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8978
d900b2af 8979 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8980
d900b2af
AR
8981 * nsterm.m (ns_no_defaults): New variable.
8982 (ns_initialize): Don't read defaults when ns_no_defaults.
8983 (EmacsView-readSelectionFromPasteboard:)
8984 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8985 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8986 (ns_dumpglyphs_stretch): New function.
8987 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8988 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8989
e0d2e69a
AR
8990 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8991
3ac71f5d
CY
89922009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8993
8994 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8995 call for Sparc64.
8996
3fe53a83
AR
89972009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8998
8999 * nsfns.m:
9000 * nsgui.h:
9001 * nsmenu.m:
9002 * nsselect.m:
9003 * nsterm.h:
9004 * nsterm.m: Remove '23' comments that indicated code added during
9005 update from emacs-20 -> emacs-23.
9006
10f87c6f 90072009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9008
9009 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9010 ns_alternate_modifier. (Bug#1217)
a3b53a85 9011
c7cef62d
AR
9012 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9013 Display all shortcuts, including those w/o super modifier.
9014
575fb8bd
AR
9015 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9016
918b848b
CY
90172009-01-22 Chong Yidong <cyd@stupidchicken.com>
9018
9019 * fileio.c (Vwrite_region_post_annotation_function)
9020 (Vwrite_region_annotation_buffers): New vars.
9021 (build_annotations_unwind): Just reset
9022 Vwrite_region_annotation_buffers.
9023 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9024 Call write-region-post-annotation-function.
9025 (build_annotations): Add to Vwrite_region_annotation_buffers if
9026 buffer changes.
9027
a39e2539
AR
90282009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9029
9030 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9031 Tiger.
51d861de
SM
9032 * nsfns.m (ns_do_applescript):
9033 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9034
35ed44db
AR
90352009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9036
9037 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9038
cbe0b5bf
AR
90392009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9040
9041 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9042
6049d3a0
AR
9043 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9044
9045 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9046 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9047 handle Ctrl-tab. (Bug#1841)
9048 (ns_get_color): Use unsigned long long for scanned hex string value.
9049 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9050 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9051 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9052 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9053 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9054 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9055 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9056
d3810c21 9057 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9058 DPI. (Bug#1316)
d3810c21
AR
9059 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9060 values in onTiger section.
4c7077c3 9061
e301e634
CY
90622009-01-19 Chong Yidong <cyd@stupidchicken.com>
9063
7f82490b
CY
9064 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9065 Check return value of font_spec_from_name.
64cc3cf6 9066 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9067
9068 * font.c (font_spec_from_name): Return Qnil if font name could not
9069 be parsed.
9070 (font_parse_name): Treat a `?' character as part of an XLFD.
9071
e301e634
CY
9072 * fns.c (Fsubstring): Doc fix.
9073
1c0db158
KH
90742009-01-19 Kenichi Handa <handa@m17n.org>
9075
51d861de 9076 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9077 (ftfont_list): Likewise.
9078
acf20901
JB
90792009-01-18 Juanma Barranquero <lekktu@gmail.com>
9080
fff4e459
JB
9081 * dbusbind.c (Fdbus_register_signal):
9082 * process.c (conv_sockaddr_to_lisp):
9083 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9084
acf20901
JB
9085 * callproc.c (Fgetenv_internal): Doc fix.
9086
e7abcdfb
CY
90872009-01-16 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9090 it is not even used.
9091
b60861e6
GM
90922009-01-16 Glenn Morris <rgm@gnu.org>
9093
9094 * font.c (Ffont_variation_glyphs): Silence compiler.
9095
8db52afe
JB
90962009-01-15 Juanma Barranquero <lekktu@gmail.com>
9097
9098 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9099 Reported by David Robinow <drobinow@gmail.com>.
9100
4cddb209
KH
91012009-01-15 Kenichi Handa <handa@m17n.org>
9102
51d861de 9103 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9104
f247f67b
JR
91052009-01-14 Jason Rumney <jasonr@gnu.org>
9106
9107 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9108 never a fontset. (Bug#1562)
f247f67b 9109
f56a4450
KH
91102009-01-14 Kenichi Handa <handa@m17n.org>
9111
9112 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9113 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9114
4e99855e
CY
91152009-01-13 Chong Yidong <cyd@stupidchicken.com>
9116
9117 * font.c (font_clear_prop): If clearing the family, clear the font
9118 width index too.
9119
fff4e459 9120 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9121
24f01470
JB
91222009-01-12 Juanma Barranquero <lekktu@gmail.com>
9123
9124 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9125 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9126 functions, use sizeof.
9127
a41240a3
MR
91282009-01-12 Martin Rudalics <rudalics@gmx.at>
9129
9130 * keyboard.c (read_char): Fix case where last_nonmenu_event
9131 returned a bad value with submenus. (Bug#447)
9132
944636b8
CY
91332009-01-12 Chong Yidong <cyd@stupidchicken.com>
9134
9135 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9136 family, clear the font width index too.
9137
0dad7c6f
JR
91382009-01-11 Jason Rumney <jasonr@gnu.org>
9139
9140 * keyboard.c (cmd_error_internal): Exit when errors occur before
9141 frame creation and not in daemon mode. (Bug#1836)
9142
7c2363af
CY
91432009-01-10 Chong Yidong <cyd@stupidchicken.com>
9144
9145 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9146 of a display vector, backtrack.
9147 (try_window_reusing_current_matrix): Check glyph type before
9148 referencing charpos member.
9149
97b1b294
EZ
91502009-01-10 Eli Zaretskii <eliz@gnu.org>
9151
9152 Fix Bug #876:
9153
9154 * coding.c (inhibit_null_byte_detection): New variable.
9155 (detect_coding, detect_coding_system): Don't pay attention to null
9156 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9157 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9158 <inhibit-iso-escape-detection>: Doc fix.
9159
4624b6e3
JR
91602009-01-09 Jason Rumney <jasonr@gnu.org>
9161
9162 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9163 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9164 Only report Unicode Plane 2 fonts as unicode-sip.
9165
323b840c
CY
91662009-01-09 Chong Yidong <cyd@stupidchicken.com>
9167
51d861de
SM
9168 * xfaces.c (Fx_font_family_list): Delete function.
9169 Move compatibility version to faces.el.
323b840c 9170
51d861de 9171 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9172
eba7400d
MR
91732009-01-09 Martin Rudalics <rudalics@gmx.at>
9174
9175 * frame.c (x_set_frame_parameters): Remember requested value for
9176 fullscreen before it's reset by the parameter handler.
9177
4b09796d
GM
91782009-01-09 Glenn Morris <rgm@gnu.org>
9179
9180 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9181 (last_command_event): ... and update all users.
4b09796d
GM
9182 (last_input_char): For clarity, rename to...
9183 (last_input_event): ... and update all users.
9184 (last-command-char, last-input-char): Move to subr.el as aliases.
9185 * cmds.c, commands.h: Update for last_command_char rename.
9186
14ccea62
CY
91872009-01-08 Chong Yidong <cyd@stupidchicken.com>
9188
51d861de 9189 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9190
5f004711
JR
91912009-01-08 Jason Rumney <jasonr@gnu.org>
9192
9193 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9194 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9195 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9196 Don't declare.
fff4e459 9197 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9198 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9199
b71f6f73
KH
92002009-01-07 Kenichi Handa <handa@m17n.org>
9201
50b06221 9202 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9203 remember the coding system used for decoding in
50b06221
KH
9204 coding_system (Bug#1039).
9205
b71f6f73 9206 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9207 breaking the loop. (Bug#870)
b71f6f73
KH
9208 (decode_coding_utf_16, decode_coding_emacs_mule)
9209 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9210 (decode_coding_charset): Likewise.
9211
56f668f7
MR
92122009-01-05 Martin Rudalics <rudalics@gmx.at>
9213
9214 * frame.c (x_set_frame_parameters): Make sure height (width) get
9215 applied when fullwidth (fullheight) is set. (Bug#1522)
9216
5da9424d
JB
92172009-01-04 Juanma Barranquero <lekktu@gmail.com>
9218
9219 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9220 (utc_base): Declare as ULONGLONG, not long double.
9221 (convert_time_raw): Delete.
9222 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9223 (initialize_utc_base): New function.
9224 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9225 (convert_from_time_t): Use initialize_utc_base; compute result with
9226 64-bit arithmetic.
9227 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9228
c4605e09
EZ
92292009-01-03 Eli Zaretskii <eliz@gnu.org>
9230
9acef61c 9231 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9232 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9233 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9234 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9235 [!subprocesses]: Define.
9236 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9237 (Flist_system_processes, Fsystem_process_attributes)
9238 [!subprocesses]: Call list_system_processes and
9239 system_process_attributes instead of returning Qnil.
9240
9acef61c
JB
9241 * dosfns.c (system_process_attributes, list_system_processes):
9242 New functions.
c4605e09
EZ
9243
9244 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9245
9246 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9247 Don't use the default (no-op) implementation.
9248
8b7d0a16
JR
92492009-01-03 Jason Rumney <jasonr@gnu.org>
9250
a6d46bc1
JR
9251 * keyboard.c (parse_modifiers_uncached): Wheel events are
9252 clicks (bug#687).
9253
8b7d0a16
JR
9254 * w32term.c (x_query_colors, x_query_color): New functions.
9255
9256 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9257 (svg_load_image): Cast returned pointers from dynamically loaded
9258 functions. Eliminate W32 specific code.
9259
bfe11752
DN
92602009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9261
89e2438a
DN
9262 * nsfns.m (x_set_foreground_color, x_set_background_color)
9263 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9264 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9265 x_ prefix instead of ns_. Update references.
9266 (syms_of_nsfns): Add a FIXME comment.
9267
9268 * nsterm.m (x_set_cursor_type): New prototype.
9269 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9270
bfe11752
DN
9271 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9272 for Solaris instead of incorrectly providing Qutime and Qcutime.
9273
031da700
EZ
92742009-01-02 Eli Zaretskii <eliz@gnu.org>
9275
9276 * w32.c (process_times): Compute sum of utime and stime.
9277 (system_process_attributes): Add Qtime to the alist.
9278
9279 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9280 and add them to the alist.
9281
9282 * process.c (top level) <Qtime, Qctime>: New variables.
9283 (syms_of_process): staticpro them.
9284 (Fsystem_process_attributes): Add their documentation to the doc
9285 string.
9286
9287 * process.h: Declare Qtime and Qctime.
9288
df23bf08
JR
92892009-01-02 Jason Rumney <jasonr@gnu.org>
9290
9acef61c 9291 * image.c (Qgobject): New symbol.
df23bf08
JR
9292 (syms_of_image): Initialize it.
9293 (init_svg_functions): Load some functions from gobject library.
9294
5bbdf7aa
DN
92952009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9296
9297 * frame.c (make_terminal_frame): Remove redundant code and useless
9298 block.
9299
63136da6
AS
93002009-01-01 Andreas Schwab <schwab@suse.de>
9301
9302 * process.c (conv_sockaddr_to_lisp): Add workaround for
9303 getsockname bug on BSD.
9304
9ef69046
CY
93052009-01-01 Chong Yidong <cyd@stupidchicken.com>
9306
d6fafbe0
CY
9307 * xfns.c (x_create_tip_frame): Set border width of the X window.
9308
51d861de 9309 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9310
f9c34147
JR
93112009-01-01 Jason Rumney <jasonr@gnu.org>
9312
9acef61c 9313 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9314 Don't block input, as per earlier xterm.c changes.
9315
f5497e45
AR
93162008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9317
9318 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9319 (ns_appkit_version_int): New function.
9320 (x-server-version): Use ns_appkit_version_int and follow 21+
9321 convention of returning 3 integers.
9322
c19cab20
KH
93232008-12-30 Kenichi Handa <handa@m17n.org>
9324
9325 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9326 (CHAR_SURROGATE_PAIR_P): New macro.
9327
9328 * font.h (struct font_driver): New member get_variation_glyphs.
9329
9acef61c 9330 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9331 (Ffont_variation_glyphs): New function.
9332 (syms_of_font): Defsubr it.
9333
9334 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9335 ftfont_variation_glyphs.
9336 (setup_otf_gstring): New function.
9337 (ftfont_drive_otf): Use it.
9338 (ftfont_shape_by_flt): Handle variation selector.
9339 (ftfont_variation_glyphs): New function.
9340
28cd591f
MR
93412008-12-30 Martin Rudalics <rudalics@gmx.at>
9342
9343 * frame.c (Vemacs_iconified): Remove.
9344
7f714baf
JR
93452008-12-30 Jason Rumney <jasonr@gnu.org>
9346
9347 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9348 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9349
9d2d22ab
CY
93502008-12-30 Chong Yidong <cyd@stupidchicken.com>
9351
9352 * indent.c (Fvertical_motion): Don't advance iterator if we have
9353 reseated to the desired position.
9354
9355 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9356 checking for pos match.
9357
545312c2
KH
93582008-12-30 Kenichi Handa <handa@m17n.org>
9359
1ede3eb6
KH
9360 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9361 just get the low 8-bit of the code.
9362
545312c2
KH
9363 * font.c (font_intern_prop): Validate str as multibyte.
9364
bd7bbf29
DN
93652008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9366
31e0750e
DN
9367 * dispextern.h (struct face): Move lface and hash from the middle
9368 of bitfields.
9369
bd7bbf29
DN
9370 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9371
b5672e7c
DN
93722008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9373
9374 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9375 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9376 instead of intervals.h.
9377
d704470f
AS
93782008-12-26 Andreas Schwab <schwab@suse.de>
9379
9380 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9381 cons.
9382
54b33868
MR
93832008-12-26 Martin Rudalics <rudalics@gmx.at>
9384
9385 * textprop.c (Qminibuffer_prompt): New variable.
9386 (syms_of_textprop): Initialize it.
9387 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9388 in minibuffer-prompt face. (Bug#1662)
9389
40b615d6
JR
93902008-12-25 Jason Rumney <jasonr@gnu.org>
9391
9392 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9393
baae5c2d
JR
93942008-12-24 Jason Rumney <jasonr@gnu.org>
9395
9396 * ralloc.c (r_alloc_reset_variable): New function.
9397
9398 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9399 record of what points where. (Bug#716)
baae5c2d 9400
a9051c88
DN
94012008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9402
9403 * minibuf.c (read_minibuf): Follow the non-interactive case when
9404 running as a daemon, before detaching.
9405
8b146312
AS
94062008-12-22 Andreas Schwab <schwab@suse.de>
9407
9408 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9409 * gtkutil.c (free_widget_value): Use xfree instead of free.
9410
56f2de10
MR
94112008-12-22 Martin Rudalics <rudalics@gmx.at>
9412
9413 * frame.c (delete_frame): New function derived from
9414 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9415 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9416 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9417 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9418 * frame.h: Extern delete_frame.
9419 * window.c (window_loop):
9420 * terminal.c (delete_terminal):
9421 * xterm.c (x_connection_closed):
9422 * xfns.c (Fx_hide_tip):
9acef61c 9423 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9424
1fc200d6
JR
94252008-12-21 Jason Rumney <jasonr@gnu.org>
9426
9427 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9428 when character maps to .notdef character.
9429
5e252df2
SM
94302008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9431
9432 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9433
99b72cc4
JR
94342008-12-20 Jason Rumney <jasonr@gnu.org>
9435
9436 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9437 a graphical frame on Windows. (Bug#1325)
99b72cc4 9438
acc49a52
JD
94392008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9440
9441 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9442
6ea15123
CY
94432008-12-20 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * minibuf.c (Fread_buffer): Doc fix.
9446
b2dab6c8
JR
94472008-12-20 Jason Rumney <jasonr@gnu.org>
9448
54ea0c87 9449 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9450 server name in UNC paths. (Bug#719)
54ea0c87 9451
b2dab6c8 9452 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9453 charbuf. (Bug#1035)
b2dab6c8 9454
6d1921be
DN
94552008-12-19 Daniel Engeler <engeler@gmail.com>
9456
9457 * sysdep.c (serial_configure): Fix typo.
9458
53934c98
DN
94592008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9460
9461 * sysdep.c: Include alloca.h.
f4f634e8
DN
9462 (system_process_attributes): Add implementation for Solaris.
9463
9464 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9465
06e111a6
DN
94662008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9467
9468 Reorganize implementation of Flist_system_processes and
9469 Fsystem_process_attributes. No functional changes.
9470 * process.c: Don't #include pwd.h, grp.h and limits.h.
9471 (Flist_system_processes): Just call list_system_processes.
9472 (Fsystem_process_attributes): Just call system_process_attributes.
9473 (procfs_list_system_processes, time_from_jiffies)
9474 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9475 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9476
9477 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9478 (list_system_processes): Rename from
9479 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9480 Provide a do nothing implementation.
9481 (system_process_attributes): Rename from
9482 procfs_list_system_processes.
9483 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9484 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9485
9486 * w32.c (list_system_processes): Rename from
9487 w32_list_system_processes.
9488 (system_process_attributes): Rename from
9489 w32_system_process_attributes.
9490
9491 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9492
9493 * process.h (w32_list_system_processes)
9494 (w32_system_process_attributes): Remove.
362654a6
JB
9495 (list_system_processes, system_process_attributes):
9496 New prototypes.
06e111a6 9497
6a705b23
KH
94982008-12-19 Kenichi Handa <handa@m17n.org>
9499
9500 * xfont.c (xfont_decode_coding_xlfd): New function.
9501 (xfont_encode_coding_xlfd): New function.
9502 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9503 (xfont_list): Decode and encode XLFD by iso-8859-1.
9504 (xfont_match): Likewise.
9505 (xfont_list_family): Likewise.
9506 (xfont_open): Likewise.
9507
d66c0241 9508 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9509 names are utf-8.
9510
d66c0241 9511 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9512 names are utf-8.
9513
5a130941
JD
95142008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9515
9516 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9517 changed.
bfd20325
JD
9518 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9519 clicked on a detached tool bar button.
5a130941 9520
fd95644b
DN
95212008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9522
9523 * emacs.c (main): Print and error and exit when no data is read
9524 from the pipe.
9525
e6eee6ae
JR
95262008-12-17 Jason Rumney <jasonr@gnu.org>
9527
9528 * w32font.c (w32font_has_char): Always return -1.
9529
a35dd56b
KH
95302008-12-16 Kenichi Handa <handa@m17n.org>
9531
9532 * font.c (font_open_entity): Fix previous change.
9533
0e3635c2
DN
95342008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9535
9536 * process.c: Include <limits.h>.
9537
d4835507 95382008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9539
9540 * font.c (font_update_drivers): Fix mistake in reconstructing the
9541 driver list.
9542
95432008-12-16 Chong Yidong <cyd@stupidchicken.com>
9544
9545 * font.c (font_clear_cache): Fix format of font cache data.
9546
e2cbc401
CY
95472008-12-15 Chong Yidong <cyd@stupidchicken.com>
9548
9549 * xftfont.c (xftfont_open): Free Xft font pattern if
9550 XftFontOpenPattern fails.
9551
9552 * xterm.c (x_free_frame_resources): Remove extraneous call to
9553 free_frame_faces.
9554
b131d535
CY
95552008-12-13 Chong Yidong <cyd@stupidchicken.com>
9556
9557 * xterm.c (x_delete_display): Move xim_close_dpy call to
9558 x_delete_terminal.
9559 (x_delete_terminal): Call xim_close_dpy.
9560
e6df5336
JR
95612008-12-13 Jason Rumney <jasonr@gnu.org>
9562
9563 * w32font.c (intern_font_name): New function.
9564 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9565 (w32font_open_internal, Fx_select_font): Decode font name.
9566 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9567
9568 * w32font.h (intern_font_name): Declare new function.
9569
9570 * w32uniscribe.c (add_opentype_font_name_to_list):
9571 Use intern_font_name.
9572
20d68145
CY
95732008-12-13 Chong Yidong <cyd@stupidchicken.com>
9574
9f2554de
CY
9575 * frame.c (Fdelete_frame): Call free_font_driver_list.
9576
3d9bec9a
CY
9577 * font.c (free_font_driver_list): Implement missing function.
9578
20d68145
CY
9579 * w32term.c (w32_term_init): Don't initialize the image cache
9580 here; it will be done in init_frame_faces.
9581
9582 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9583 (struct x_display_info): Remove unused member null_pixel. New
9584 member xim_callback_data.
9585
9586 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9587 (xim_initialize): Save pointer to callback function data.
9588 (xim_close_dpy): Free callback function data. Call XCloseIM,
9589 reverting 2008-11-04 change by David Smith.
9590 (x_term_init): Don't initialize the image cache here; it will be
9591 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9592 (x_delete_display): Free x_dnd_atoms member.
9593
96f9306b
KH
95942008-12-13 Kenichi Handa <handa@m17n.org>
9595
6dec9044
JB
9596 * font.c (font_rescale_ratio): Moved from xfaces.c.
9597 Argument type changed. Handle a font-spec too.
96f9306b 9598 (font_score): Check Vface_font_rescale_alist.
6dec9044 9599 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9600
9601 * xfaces.c (font_rescale_ratio): Moved to font.c.
9602
8d5b4964
CY
96032008-12-13 Chong Yidong <cyd@stupidchicken.com>
9604
9605 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9606
e6df5336
JR
96072008-12-12 Jason Rumney <jasonr@gnu.org>
9608
9609 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9610 Vwindow_system_version to the real w32 major version.
9611
97c6058a
DN
96122008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9613
9614 * term.c (init_tty): Move setting the terminal name before the
9615 potential user: maybe_fatal.
9616
ec4e88d7
CY
96172008-12-11 Chong Yidong <cyd@stupidchicken.com>
9618
d4835507
JB
9619 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9620 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9621
b4233ec9
JR
96222008-12-11 Jason Rumney <jasonr@gnu.org>
9623
8ec71e23 9624 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9625 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9626
b4233ec9 9627 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9628 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9629
011a0143
JB
96302008-12-11 Juanma Barranquero <lekktu@gmail.com>
9631
9632 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9633
3c309f34
JB
96342008-12-11 Juanma Barranquero <lekktu@gmail.com>
9635
9636 * process.c (Fsystem_process_attributes, syms_of_process):
9637 Fix typo in name of Ssystem_process_attributes.
9638 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9639
fedc6ab5
JB
96402008-12-11 Juanma Barranquero <lekktu@gmail.com>
9641
9642 * syntax.c (Fmodify_syntax_entry): Doc fix.
9643
ba3de0e8
JB
96442008-12-10 Juanma Barranquero <lekktu@gmail.com>
9645
9646 * font.c (Ffont_spec): Move usage to end of docstring.
9647
174f1c74
JR
96482008-12-10 Jason Rumney <jasonr@gnu.org>
9649
9650 * w32font.c (Qcham): New symbol.
9651 (font_supported_scripts): Add cham, and comments for other new
9652 scripts in bitfield from OpenType spec.
9d32f818
JR
9653 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9654 contain characters beyond the bmp.
174f1c74 9655
7b649478
KH
96562008-12-10 Kenichi Handa <handa@m17n.org>
9657
9658 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9659 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9660 Qunicode_sip.
9661
2133e2d1
JB
96622008-12-10 Juanma Barranquero <lekktu@gmail.com>
9663
9664 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9665 (Fcoding_system_put): Use QCdefault_char.
9666 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9667
9af886ee
CY
96682008-12-09 Chong Yidong <cyd@stupidchicken.com>
9669
74d819eb
CY
9670 * xftfont.c (syms_of_xftfont): Fix typo.
9671
4ccfa1c0 9672 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9673
7c19d3ae
DN
96742008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9675
9676 * emacs.c (main): Close daemon_pipe on exec.
9677
567826bb
CY
96782008-12-08 Chong Yidong <cyd@stupidchicken.com>
9679
9680 * termchar.h (struct tty): New members termcap_term_buffer and
9681 termcap_strings_buffer.
9682
9683 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9684 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9685 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9686 All callers changed.
9687 (init_tty): Store termcap data and string buffers in new struct
9688 tty members termcap_term_buffer and termcap_strings_buffer.
9689 (delete_tty): Free them.
4ccfa1c0 9690 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9691
aa96c42b
SZ
96922008-12-07 Seiji Zenitani <zenitani@mac.com>
9693
9694 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9695 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9696
b7e1d896
CY
96972008-12-06 Chong Yidong <cyd@stupidchicken.com>
9698
9699 * coding.c (make_conversion_work_buffer): Disable buffer
9700 modification hooks in the work buffer.
9701
b5ec91a5
EZ
97022008-12-05 Eli Zaretskii <eliz@gnu.org>
9703
9704 * process.c (procfs_system_process_attributes): If `nread' has a
9705 negative value, assign zero to it.
9706
a5d2a52b
CY
97072008-12-05 Chong Yidong <cyd@stupidchicken.com>
9708
68c5540b 9709 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9710
7bf1bb21
KH
97112008-12-05 Kenichi Handa <handa@m17n.org>
9712
9713 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9714 second character is a combining character.
9715
2fdc7d00
EZ
97162008-12-05 Eli Zaretskii <eliz@gnu.org>
9717
9718 * process.c (procfs_system_process_attributes): Don't use cmd,
9719 cmdsize, and q without initializing them first.
9720
bf6bfba8
JR
97212008-12-04 Jason Rumney <jasonr@gnu.org>
9722
9723 * w32font.c (w32font_draw): Initialize orig_clip before getting
9724 it, and delete it when finished.
9725
a3b1a468
DN
97262008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9727
9728 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9729 case when running as a daemon before detaching.
9730
8b8be8eb
JB
97312008-12-03 Juanma Barranquero <lekktu@gmail.com>
9732
805f2638 9733 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9734
b1bde622
KH
97352008-12-03 Kenichi Handa <handa@m17n.org>
9736
e500c47d
KH
9737 * font.c (font_at): Set `multibyte' at first.
9738
ca516334
KH
9739 * coding.c (decode_coding_charset): Check type of an element of
9740 vector VALIDS.
7bf1bb21 9741 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9742
4ccfa1c0 9743 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9744 (font_for_char): Likewise.
9745
1e5ecd37
CY
97462008-12-03 Chong Yidong <cyd@stupidchicken.com>
9747
d5b01609 9748 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9749 (font_update_lface): Handle fonts with corrupted size specs,
9750 i.e. non-int and non-float.
d5b01609 9751
11e3a6e4 9752 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9753 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9754 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9755
ab06788b
CY
9756 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9757
1e5ecd37 9758 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9759 underline_minimum_offset for underline position.
1e5ecd37 9760
63c125ab
DN
97612008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9762
9763 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9764
9765 * character.c (c_string_width): Specify the type for LEN.
9766
3a8406e1
KH
97672008-12-03 Kenichi Handa <handa@m17n.org>
9768
4ccfa1c0 9769 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9770 (decode_coding_utf_8): Likewise.
4ccfa1c0 9771 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9772 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9773
651df7d9
CY
97742008-12-02 Chong Yidong <cyd@stupidchicken.com>
9775
9776 * keyboard.c (make_lispy_position): Only use PT if the selected
9777 window is current.
9778
1f625c6c
AS
97792008-12-02 Andreas Schwab <schwab@suse.de>
9780
f7741ce9
AS
9781 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9782
1f625c6c
AS
9783 * doprnt.c (doprnt1): Fix size of charbuf.
9784
92bc2678
CY
97852008-12-02 Chong Yidong <cyd@stupidchicken.com>
9786
9787 * keyboard.c (timer_check): Revert last change.
9788
93b9e8cc
JB
97892008-12-02 Juanma Barranquero <lekktu@gmail.com>
9790
9791 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9792
fd7a37d5
JB
97932008-12-01 Juanma Barranquero <lekktu@gmail.com>
9794
9795 * makefile.w32-in: Update dependencies.
9796 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9797
c115043b
AS
97982008-12-01 Andreas Schwab <schwab@suse.de>
9799
9800 * font.c (register_font_driver): Use xmalloc.
9801 (font_put_frame_data): Likewise.
9802
f5668d2a
CY
98032008-12-01 Chong Yidong <cyd@stupidchicken.com>
9804
860d96be
CY
9805 * xfaces.c (realize_x_face): Make abort condition clearer.
9806
f5668d2a
CY
9807 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9808
379c17e7
CY
98092008-11-30 Chong Yidong <cyd@stupidchicken.com>
9810
9811 * keyboard.c (timer_check): After a timer runs, ensure that the
9812 selected window's buffer is current.
9813
35f36d65
JB
98142008-11-30 Juanma Barranquero <lekktu@gmail.com>
9815
f952c61c
JB
9816 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9817 It was accidentally restored by the Unicode merge.
9818
35f36d65
JB
9819 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9820
b23077df
JB
98212008-11-29 Juanma Barranquero <lekktu@gmail.com>
9822
9823 * w32proc.c: Include "coding.h".
9824 (Fw32_short_file_name): Encode filename passed to Windows API.
9825 (Fw32_long_file_name): Encode filename passed to Windows API and
9826 decode back the result. (Bug#1433)
9827
b8ebe9dd
KH
98282008-11-29 Kenichi Handa <handa@m17n.org>
9829
8cc53f96
KH
9830 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9831 not before accessing it.
9832
b8ebe9dd
KH
9833 * charset.c (Fdefine_charset_internal): After calculating
9834 min_char, max_char, and fastmap, copy the charset structure again.
9835 (encode_char): Fix the previous change.
9836
59bc82c0
SZ
98372008-11-28 Seiji Zenitani <zenitani@mac.com>
9838
9839 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9840
9841 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9842
9843 * nsterm.m (x_set_frame_alpha): New function.
9844
32247e3d
EZ
98452008-11-27 Eli Zaretskii <eliz@gnu.org>
9846
9847 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9848
b003e5ff
JB
98492008-11-27 Juanma Barranquero <lekktu@gmail.com>
9850
9851 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9852 pointer to check_face_name.
9853
708550f5
KH
98542008-11-27 Kenichi Handa <handa@m17n.org>
9855
9856 * category.h (SET_CATEGORY_SET): Call set_category_set.
9857 (set_category_set): Extern it.
9858
9859 * category.c (hash_get_category_set): New function.
9860 (Fmodify_category_entry): Adjusted for the change of
9861 char_table_ref_and_range. Call hash_get_category_set to get a
9862 category set to store in the table.
9863
9864 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9865 Funify_charset.
9866
2ae37cf0 9867 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9868 (DECODE_CHAR): Check if the decoder vector is ready.
9869 (ENCODE_CHAR): Check if the encoder char-table is ready.
9870 (maybe_unify_char): Extern it.
9871
9872 * charset.c (Vchar_unified_charset_table): Delete it.
9873 (inhibit_load_charset_map): New variable.
9874 (temp_charset_work): New variable.
9875 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9876 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9877 New macros.
9878 (load_charset_map): Meaning of control_flag changed. If
9879 inhibit_load_charset_map is nonzero, setup a table in
9880 temp_charset_work.
9881 (load_charset): New argument control_flag.
9882 (map_charset_for_dump): New function.
9883 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9884 map_charset_for_dump.
9885 (Fdefine_charset_internal): If the charset method is MAP, load
9886 mapping tables by calling load_charset.
9887 (Funify_charset): Don't load a mapping table but directly set
9888 Vchar_unify_table.
9889 (maybe_unify_char): New function.
9890 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9891 Handle the case of inhibit_load_charset_map being nonzero.
9892 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9893 Handle the case of inhibit_load_charset_map being nonzero.
9894 (Fclear_charset_maps): Just free temp_charset_work.
9895 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9896 variable.
9897
9898 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9899 change of char_table_ref_and_range.
9900 (char_table_ref_and_range): Change the meaning of argument FROM
9901 and TO. Now the caller must provide initial values for *FROM
9902 and *TO.
9903
9904 * fontset.c (fontset_add): Adjusted for the change of
9905 char_table_ref_and_range.
9906 (fontset_get_font_group): Likewise.
9907 (Ffontset_info): Likewise.
9908
9909 * keymap.c (describe_vector): Adjusted for the change of
9910 char_table_ref_and_range. For char-table, put boundary between
9911 non-ASCII and 8-bit characters.
9912
9913 * print.c (print_object): For bool-vector, delete unnecessary
9914 check of ASCII_BYTE_P.
9915
9196133b
JR
99162008-11-26 Jason Rumney <jasonr@gnu.org>
9917
9918 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9919 leading in font height. (Bug#879)
9196133b 9920
9f688acf
GM
99212008-11-26 Glenn Morris <rgm@gnu.org>
9922
9923 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9924 redefinition with ifdef. (Bug#1383)
9925
90d19aff
AR
99262008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9927
9928 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9929
4ccfa1c0 99302008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9931
9932 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9933 New EmacsView methods.
9934 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9935 Fixes bug #1048,1357,1414.
9936
99372008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9938
9939 Fix bug #1362.
9940 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9941 is not an indexed color.
9942 * nsterm.m (free_indexed_color): Add argument checking.
9943 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9944
e7d5ecb3
CY
99452008-11-24 Chong Yidong <cyd@stupidchicken.com>
9946
9947 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9948 Document confirm-after-completion value for
9949 minibuffer-completion-confirm.
9950
c285743c
JR
99512008-11-24 Jason Rumney <jasonr@gnu.org>
9952
9953 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9954 warning.
9955
b0857706
JR
99562008-11-23 Jason Rumney <jasonr@gnu.org>
9957
9958 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9959 restored before returning.
9960
9961 * w32font.c (check_face_name): New function.
9962 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9963 fonts. (Bug#642)
b0857706 9964
ee50ff07
MR
99652008-11-22 Martin Rudalics <rudalics@gmx.at>
9966
9967 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9968 confirm-nonexistent-file-or-buffer in doc-string.
9969
b8ff72fa
SM
99702008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9971
9972 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9973 Fix copy/paste typo. Add checks.
9974
cee53ed4
KH
99752008-11-21 Kenichi Handa <handa@m17n.org>
9976
9977 * coding.c (detect_coding_iso_2022): Reject invalid composition
9978 sequence.
9979 (DECODE_COMPOSITION_START): If the current source is the last
9980 block, and the current composition doesn't end, regard this
9981 sequence as invalid.
9982 (decode_coding_iso_2022): Handle invalid composition sequence.
9983
f6ef1e65
MR
99842008-11-20 Martin Rudalics <rudalics@gmx.at>
9985
9986 * window.c (coordinates_in_window): Don't return
9987 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9988 line when the window is not the rightmost one. (Bug#1372)
9989
e08b1705
MR
99902008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9991
9992 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9993
ad98e89f
EZ
99942008-11-15 Eli Zaretskii <eliz@gnu.org>
9995
9996 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9997 and bright_bg if noninteractive is non-zero.
9998
fb098a4b
CY
99992008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10000
10001 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10002 x_draw_glyph_string_background.
10003
10004 * w32term.c (x_draw_glyph_string): Likewise.
10005
ce952b6e
CY
100062008-11-15 Chong Yidong <cyd@stupidchicken.com>
10007
10008 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10009 the next glyph string once past the overhang width.
10010
10011 * nsterm.m (ns_draw_glyph_string): Likewise.
10012
10013 * w32term.c (x_draw_glyph_string): Likewise.
10014
26ea7079
CY
100152008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10016
10017 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10018 double file close.
10019
1c33c906
MR
100202008-11-14 Martin Rudalics <rudalics@gmx.at>
10021
10022 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10023 dedicated status of window before attempting to display another
10024 buffer in it.
10025
8fc29035
JB
100262008-11-14 Juanma Barranquero <lekktu@gmail.com>
10027
10028 * msdos.c (Fmsdos_long_file_names):
10029 (syms_of_msdos) <dos-unsupported-char-glyph>:
10030 * dosfns.c (Fint86): Fix typos in docstrings.
10031
55fb4286
EZ
100322008-11-14 Eli Zaretskii <eliz@gnu.org>
10033
10034 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10035
3fda0315
KY
100362008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10037
10038 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10039
7e849c17
CY
100402008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10041
10042 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10043
10044 * frame.h: Negative alpha means "don't touch".
10045
10046 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10047
10048 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10049
b9fd67bd
DN
100502008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10051
10052 * hftctl.c:
10053 * chpdef.h:
10054 * acldef.h: Remove files used only for systems no longer supported.
10055
10056 * Makefile.in: Fix .o alphabetical ordering.
10057 (hftctl.o): Remove dependency, file removed.
10058 (keymap.o, print.o): Depend on charset.h.
10059
d5998e03
KH
100602008-11-10 Kenichi Handa <handa@m17n.org>
10061
2ae37cf0 10062 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10063
be70e183
CY
100642008-11-08 Chong Yidong <cyd@stupidchicken.com>
10065
10066 * dired.c (file_name_completion): If completion_ignore_case is
10067 enabled, ignore case when checking completion-regexp-list.
10068
7cf94eac
EZ
100692008-11-08 Eli Zaretskii <eliz@gnu.org>
10070
10071 * vm-limit.c (get_lim_data): Fix last change.
10072
ee107a89
KH
100732008-11-08 Kenichi Handa <handa@m17n.org>
10074
10075 * character.c (Fget_byte): New function.
10076 (syms_of_character): Defsubr Fget_byte.
10077
5fd15622
CY
100782008-11-07 Chong Yidong <cyd@stupidchicken.com>
10079
10080 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10081 cursor position is valid after scrolling.
10082
13d62fad
JB
100832008-11-06 Juanma Barranquero <lekktu@gmail.com>
10084
10085 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10086
a1dd2936
GM
100872008-11-06 Glenn Morris <rgm@gnu.org>
10088
10089 * xterm.c (handle_one_xevent): Don't let popup menus cause
10090 mouse-autoselect-window related window switching. (Bug#1261)
10091
860cd236
CY
100922008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10093
10094 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10095
653a3150
AS
100962008-11-04 Andreas Schwab <schwab@suse.de>
10097
10098 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10099
870f5cac
CY
101002008-11-03 Chong Yidong <cyd@stupidchicken.com>
10101
10102 * xfns.c (Fx_wm_set_size_hint): New function.
10103
1e02f3cb
MR
101042008-11-03 Martin Rudalics <rudalics@gmx.at>
10105
10106 * textprop.c (Fprevious_single_char_property_change): Return 0
10107 when there's no change in a string. (Bug#1301)
10108
e630dfc6
MR
101092008-11-02 Martin Rudalics <rudalics@gmx.at>
10110
10111 * frame.c (do_switch_frame): New argument NORECORD passed to
10112 Fselect_window.
10113 (Fselect_frame): New argument NORECORD passed to
10114 do_switch_frame.
10115 (Fset_frame_selected_window): New argument NORECORD passed to
10116 Fselect_frame.
10117 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10118 in call of do_switch_frame.
10119 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10120 Handle NORECORD argument in call of Fselect_frame.
10121 * lisp.h (do_switch_frame, Fselect_frame)
10122 (Fset_frame_selected_window): Adjust declarations.
10123 * window.c (select_frame_norecord): New function.
10124 (run_window_configuration_change_hook): Use it and call
10125 Fselect_frame with NORECORD set.
10126 (Fselect_window): Pass NORECORD to Fselect_frame.
10127 (Fset_window_configuration): Handle NORECORD argument in call of
10128 do_switch_frame.
10129 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10130 Fset_frame_selected_window.
10131 * keyboard.c (command_loop_1): Handle NORECORD in call of
10132 Fselect_frame (currently ifdefd).
10133
9020b223
GM
101342008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10135
10136 * emacs.c (USAGE2): Untabify.
10137
793ffee8
SM
101382008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10139
10140 * composite.c (fill_gstring_header): Fix copy/paste typo.
10141
ab6d1131
MR
101422008-10-31 Martin Rudalics <rudalics@gmx.at>
10143
10144 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10145 (Fother_window): Rename argument and rewrite doc-string.
10146 (select_window_norecord): Fix return value. (Bug#1276)
10147
601a9cf1
JB
101482008-10-30 Juanma Barranquero <lekktu@gmail.com>
10149
10150 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10151 new frames overriding foreground for tooltips. Based on similar patch
10152 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10153
813b0652
CY
101542008-10-29 Chong Yidong <cyd@stupidchicken.com>
10155
10156 * emacs.c (Fdaemon_initialized): Initialize nfd.
10157
4414f58f
MR
101582008-10-29 Martin Rudalics <rudalics@gmx.at>
10159
10160 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10161 (Fwindow_text_height): Clarify doc-strings.
10162 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10163 doc-string of window-scroll-functions.
10164
ecdcaa09
RS
101652008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10166
10167 * category.c (syms_of_category): Fix typo in docstring.
10168
23fe745a
JB
101692008-10-28 Juanma Barranquero <lekktu@gmail.com>
10170
10171 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10172 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10173 Fix typos in docstrings.
10174
ff808935
DN
101752008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10176
10177 * emacs.c (daemon_pipe): Make non-static.
10178 (IS_DAEMON): Move definition ...
10179 * lisp.h (IS_DAEMON): ... here.
10180 (daemon_pipe): Declare.
10181 (is_daemon): Remove.
10182 * dispnew.c (init_display): Use IS_DAEMON.
10183
fc012771
SM
101842008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10185
10186 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10187 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10188
10189 * emacs.c (is_daemon): Remove.
10190 (main): Don't set is_daemon.
10191 (IS_DAEMON): New macro.
10192 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10193 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10194 parent exits.
10195 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10196
d8bdbe6f
CY
101972008-10-27 Chong Yidong <cyd@stupidchicken.com>
10198
d1a072bf
CY
10199 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10200 over-sized glyph, draw it with the default glyph width.
10201
e2e325aa
CY
10202 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10203 glyph, draw it with the default glyph width.
10204
10205 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10206 glyph, draw it with the default glyph width.
10207
d8bdbe6f
CY
10208 * xdisp.c (try_scrolling): When computing the distance from the
10209 scroll margin to PT, try moving some distance past the window
10210 bottom before giving up.
10211
7bfac547
MR
102122008-10-27 Martin Rudalics <rudalics@gmx.at>
10213
10214 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10215 (Fset_window_buffer): Explain in doc-string that a window can be
10216 "strongly" dedicated to its buffer.
10217
4ff029f6
DN
102182008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10219
10220 * emacs.c (daemon_name): New variable.
10221 (main): Deal with --daemon=SERVER_NAME.
10222 (Fdaemonp): Return a name if one was passed to --daemon.
10223
5790ef40
DN
102242008-10-26 Romain Francoise <romain@orebokech.com>
10225
f9bd0df9 10226 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10227 (main): Create a pipe before forking, make the parent exit only after
10228 the child has closed its end of the pipe. Move closing the
10229 descriptors ...
10230 (Fdaemon_initialized): ... here. New function.
10231
f5385255
SM
102322008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10233
4d632321
SM
10234 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10235 the previous unoptimized table.
10236
f5385255
SM
10237 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10238 the distinction between non-nil and non-t value of `dedicated'.
10239
6c56a0f3
CY
102402008-10-25 Chong Yidong <cyd@stupidchicken.com>
10241
10242 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10243 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10244
fec89261
MR
102452008-10-25 Martin Rudalics <rudalics@gmx.at>
10246
10247 * window.c (Fget_buffer_window, Fdelete_windows_on)
10248 (Freplace_buffer_in_windows): Make buffer argument optional and
10249 rename to buffer_or_name.
10250
34fcddd0
CY
102512008-10-24 Chong Yidong <cyd@stupidchicken.com>
10252
f5385255
SM
10253 * xdisp.c (handle_single_display_spec, handle_display_prop):
10254 Undo 2005-05-16 change.
34fcddd0
CY
10255 (handle_stop): Pop iterator if it's loaded with an empty string.
10256 (get_overlay_strings_1): Don't save iterator if it's loaded with
10257 an empty string (bug#1201).
10258
064766f2
KH
102592008-10-24 Kenichi Handa <handa@m17n.org>
10260
10261 * ftfont.c (ftfont_otf_features): Fix previous change.
10262 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10263 calling ftfont_otf_features.
10264
f9bd0df9 102652008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10266
10267 * font.c (font_match_p): Fix for the case that a vector of
10268 characters is in script-representative-chars.
10269
1dae9197
MA
102702008-10-24 Michael Albinus <michael.albinus@gmx.de>
10271
10272 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10273 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10274 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10275 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10276 macro. (Bug#1186)
1dae9197 10277
f9bd0df9 102782008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10279
10280 * s/sol2-10.h: New file.
10281
878a4584
JB
102822008-10-23 Juanma Barranquero <lekktu@gmail.com>
10283
10284 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10285 poor beast has survived 9+ years and the jump from xterm.c!).
10286
cd265ca6
MR
102872008-10-23 Martin Rudalics <rudalics@gmx.at>
10288
10289 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10290 Reword doc-string.
f5385255 10291 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10292
472a4dc9
JB
102932008-10-23 Juanma Barranquero <lekktu@gmail.com>
10294
10295 * character.c (syms_of_character) <script-representative-chars>:
10296 <unicode-category-table>: Doc fixes.
10297
159bd5a2
NF
102982008-10-23 Noah Friedman <friedman@splode.com>
10299
10300 * coding.c (make_conversion_work_buffer): Check that
10301 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10302 Fget_buffer_create.
10303
49f9c344
KH
103042008-10-23 Kenichi Handa <handa@m17n.org>
10305
10306 * font.c (font_add_log): Check the values of extra properties.
10307
12bb3111
MR
103082008-10-22 Martin Rudalics <rudalics@gmx.at>
10309
10310 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10311 Reword doc-string.
10312 (Fset_window_parameter): Use NILP.
10313 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10314 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10315
bbeb4e99
JB
103162008-10-22 Juanma Barranquero <lekktu@gmail.com>
10317
10318 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10319
103202008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10321
10322 * nsfns.m (ns_appkit_version): New function.
10323 (x-server-version): Use it.
10324 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10325 (x-server-vendor): Don't check_ns().
10326
10327 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10328
a9b555d3
JB
103292008-10-22 Juanma Barranquero <lekktu@gmail.com>
10330
10331 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10332 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10333
4626499f
KH
103342008-10-22 Kenichi Handa <handa@m17n.org>
10335
e3681952
KH
10336 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10337 scripts.
10338
4626499f
KH
10339 * category.c (word_boundary_p): Check scripts instead of charset.
10340 Handle nil value in word-separating-categories and
10341 word-combining-categories.
10342 (syms_of_category): Fix docstrings of word-separating-categories
10343 and word-combining-categories.
10344
1560f91a
EZ
103452008-10-21 Eli Zaretskii <eliz@gnu.org>
10346
10347 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10348 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10349
f4668441
MR
103502008-10-21 Martin Rudalics <rudalics@gmx.at>
10351
10352 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10353 Rename arg "buffer" to "buffer_or_name".
10354 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10355 it optional.
10356 (no_switch_window): Remove since the return value is not used.
a9b555d3 10357 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10358 Consider window as dedicated when Fwindow_dedicated_p returns a
10359 non-nil value.
10360 * lisp.h: Remove prototype for no_switch_window.
10361
fd75ddb2
JD
103622008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10363
10364 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10365 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10366
07295713
KH
103672008-10-21 Kenichi Handa <handa@m17n.org>
10368
10369 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10370 check Vlatin_extra_code_table.
10371
712adc82
EZ
103722008-10-20 Eli Zaretskii <eliz@gnu.org>
10373
10374 * fileio.c (Fset_file_modes): Doc fix.
10375
f549eb0b
MA
103762008-10-19 Michael Albinus <michael.albinus@gmx.de>
10377
10378 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10379 in arrays.
10380
aac0c6e3
MR
103812008-10-19 Martin Rudalics <rudalics@gmx.at>
10382
10383 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10384 Mention kill-buffer in doc-string.
10385 (Fset_window_buffer): Reinsert tem check removed in last commit.
10386 (Fenlarge_window, Fshrink_window): Have argument names and
10387 doc-string follow Elisp manual more closely.
10388
103892008-10-18 Eli Zaretskii <eliz@gnu.org>
10390
10391 * fileio.c (Fset_file_modes): Doc fix.
10392
103932008-10-18 Martin Rudalics <rudalics@gmx.at>
10394
10395 * window.c (Fwindow_width, Fset_window_start)
10396 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10397 (Fdelete_windows_on, Freplace_buffer_in_windows):
10398 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10399 (Fwindow_dedicated_p): Make window argument optional.
10400 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10401 (Fset_window_buffer): Respect any non-nil dedicated value for
10402 window. Rename "buffer" argument to "buffer_or_name".
10403
104042008-10-18 Ulrich Mueller <ulm@gentoo.org>
10405
10406 * m/sh3.h: New file, machine description for SuperH.
10407
104082008-10-17 Martin Rudalics <rudalics@gmx.at>
10409
10410 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10411
104122008-10-17 Kenichi Handa <handa@m17n.org>
10413
10414 * ftfont.c (ftfont_otf_features): Fix indexing
10415 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10416
104172008-10-16 Magnus Henoch <mange@freemail.hu>
10418
10419 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10420 (Fdbus_call_method_asynchronously): Ditto.
10421 This change makes C-h f display the argument list.
10422
104232008-10-16 Chong Yidong <cyd@stupidchicken.com>
10424
10425 * fileio.c (Fexpand_file_name): Doc fix.
10426
10427 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10428 of :foreground and :background equivalent to unspecified (20.x
10429 compatibility).
10430
104312008-10-15 Eli Zaretskii <eliz@gnu.org>
10432
10433 * buffer.c (syms_of_buffer): Doc fix.
10434
104352008-10-14 Kenichi Handa <handa@m17n.org>
10436
10437 * font.c (font_clear_prop): When clearing font width, clear the
10438 average width field too.
10439
104402008-10-12 Andreas Schwab <schwab@suse.de>
10441
10442 * ftfont.c (ftfont_shape_by_flt): Make static.
10443 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10444
10445 * font.c: Don't include <m17n-flt.h>.
10446
104472008-10-10 Eli Zaretskii <eliz@gnu.org>
10448
10449 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10450
104512008-10-09 Eli Zaretskii <eliz@gnu.org>
10452
10453 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10454 away code.
10455
104562008-10-09 Chong Yidong <cyd@stupidchicken.com>
10457
10458 * dispnew.c (update_text_area): Avoid looping due to large glyph
10459 overhangs (bug#1070).
10460
104612008-10-09 Kenichi Handa <handa@m17n.org>
10462
10463 * fontset.c (face_for_char): If face->fontset is negative, just
10464 return ascii_face.
10465
f5385255
SM
10466 * font.c (font_delete_unmatched): Fix previous change.
10467 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10468
104692008-10-09 Martin Rudalics <rudalics@gmx.at>
10470
10471 * frame.c (Fraise_frame): On text-only terminals select frame in
10472 order to make it visible. (Bug#1061)
10473
104742008-10-08 Chong Yidong <cyd@stupidchicken.com>
10475
10476 * fontset.c (fontset_find_font): Check frame validity.
10477
104782008-10-07 Chong Yidong <cyd@stupidchicken.com>
10479
a9b555d3 10480 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10481 (xg_display_close): Allow Emacs to close all displays (bug#985).
10482
104832008-10-06 Andreas Schwab <schwab@suse.de>
10484
f5385255 10485 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10486
104872008-10-06 Chong Yidong <cyd@stupidchicken.com>
10488
f5385255 10489 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10490
a9b555d3 10491 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10492
10493 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10494 during initialization.
10495
104962008-10-04 Eli Zaretskii <eliz@gnu.org>
10497
10498 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10499 whole thing on MSDOS frames as well as on a TTY.
10500
10501 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10502 well as for TTY.
10503 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10504 well as on a TTY.
10505
10506 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10507 as well as for TTY.
10508
10509 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10510
10511 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10512 MSDOS frames as well.
10513
105142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10515
10516 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10517 correct arguments.
b71ac3dd 10518 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10519
105202008-10-03 Glenn Morris <rgm@gnu.org>
10521
10522 * emacs.c (USAGE1): Add --daemon.
10523
105242008-10-02 Eli Zaretskii <eliz@gnu.org>
10525
10526 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10527 100, so it's in percents as advertised.
10528
105292008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10530
10531 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10532 (ns_output.current_cursor, ns_output.desired_cursor)
10533 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10534 (FRAME_NEW_CURSOR_COLOR): Remove.
10535
10536 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10537 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10538 enumeration (HOLLOW_BOX_CURSOR, etc.).
10539
10540 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10541 (draw_window_cursor): Simplify code.
f5385255
SM
10542 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10543 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10544 updates manually.
a9b555d3
JB
10545 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10546 Use core Emacs cursor types.
aac0c6e3 10547
b8ff72fa 10548 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10549
105502008-10-02 Martin Rudalics <rudalics@gmx.at>
10551
10552 * process.c (Faccept_process_output): Fix doc-string.
10553
105542008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10555
10556 * gmalloc.c (__sbrk): Also define for uClibc.
10557
10558 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10559 for uClibc.
10560
105612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10562
10563 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10564 styles.
10565 (nsfont_open): Reenable the cache.
10566
105672008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10568
10569 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10570 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10571
105722008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10573
10574 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10575 a suspended terminal.
10576
105772008-09-30 Michael Albinus <michael.albinus@gmx.de>
10578
10579 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10580
105812008-09-30 Eli Zaretskii <eliz@gnu.org>
10582
10583 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10584
105852008-09-30 Chong Yidong <cyd@stupidchicken.com>
10586
10587 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10588 in a continued line coincides with a line beginning.
10589
105902008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10591
10592 * nsfont.m (nsfont_trait_distance): Fix bug.
10593 (nsfont_list): Return a list rather than a vector (syncs with Handa
10594 changes of 2008-05-14).
10595 (nsfont_open): Improve logging.
10596
105972008-09-29 Andreas Schwab <schwab@suse.de>
10598
10599 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10600
106012008-09-28 Martin Rudalics <rudalics@gmx.at>
10602
10603 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10604 name as char-resolve-modifiers.
10605 Reported by: Markus Triska <markus.triska@gmx.at>
10606
106072008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10608
10609 * dispnew.c (init_display): Return earlier when running as a daemon.
10610
106112008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10612
10613 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10614
106152008-09-27 Eli Zaretskii <eliz@gnu.org>
10616
10617 * composite.c (Fcomposition_get_gstring)
10618 (Fcompose_region_internal, Fcompose_string_internal)
10619 (Ffind_composition_internal): Doc fix.
10620 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10621 (syms_of_composite) <auto-composition-function>: Doc fix.
10622 (syms_of_composite) <composition-function-table>: Doc fix.
10623
106242008-09-25 Chong Yidong <cyd@stupidchicken.com>
10625
10626 * search.c (wordify): New argument for lax word-ends.
10627 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10628
106292008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10630
10631 * lisp.h (is_daemon): Declare.
10632 * dispnew.c (init_display): Do not try to initialize the terminal
10633 when running as a daemon.
10634
106352008-09-22 Chong Yidong <cyd@stupidchicken.com>
10636
10637 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10638 x_display_pixel_height.
10639
106402008-09-22 Martin Rudalics <rudalics@gmx.at>
10641
10642 * undo.c (record_point): Don't call Fundo_boundary for first
10643 change. (Bug#731)
10644
106452008-09-22 Juanma Barranquero <lekktu@gmail.com>
10646
10647 * emacs.c (Fdaemonp): Doc fix.
10648
106492008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10650
10651 * emacs.c (main): Place #ifdef in the proper place.
10652
106532008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10654
10655 * emacs.c (standard_args): Add --daemon.
10656 (main): Disconnect from the terminal when --daemon is passed.
10657 (is_daemon): New variable.
10658 (Fdaemonp): New function.
10659 (syms_of_emacs): Defsubr it.
10660
106612008-09-20 Chong Yidong <cyd@stupidchicken.com>
10662
10663 * xdisp.c (get_next_display_element): Handle string display
10664 correctly when checking for the end of a box run.
10665
106662008-09-20 Glenn Morris <rgm@gnu.org>
10667
10668 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10669 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10670 (Frename_file): Avoid copying to trash if a rename involves
10671 a delete. (Bug#964).
10672
106732008-09-20 Eli Zaretskii <eliz@gnu.org>
10674
10675 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10676 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10677 frames as well as termcap frames.
10678 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10679 get_named_tty.
10680
106812008-09-19 Eli Zaretskii <eliz@gnu.org>
10682
10683 * process.c (procfs_system_process_attributes): Fix cmdline in
10684 case /proc/PID/cmdline is empty.
10685
10686 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10687 x_display_pixel_height.
10688
106892008-09-19 Juanma Barranquero <lekktu@gmail.com>
10690
10691 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10692
10693 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10694 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10695
106962008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10697
10698 * dispextern.h (struct it): Move line_wrap away from the middle of
10699 bitfields. Move voffset in struct iterator_stack_entry after the
10700 bitfields. Move tab_width near after another short.
10701
107022008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10703
10704 * frame.h (struct frame): Move alpha from the middle of bitfields.
10705
10706 * window.h (struct window): Move frozen_window_start_p after the
10707 rest of the bitfields to reduce padding.
10708
107092008-09-18 Chong Yidong <cyd@stupidchicken.com>
10710
10711 * xterm.h (x_display_info): Remove `height' and `width' members.
10712
10713 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10714
10715 * w32term.h (w32_display_info): Remove `height', `width',
10716 `height_in', and `width_in' members.
10717
b8ff72fa
SM
10718 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10719 New functions.
aac0c6e3
MR
10720 (x_calc_absolute_position): Use them.
10721 (x_term_init): Omit removed `height' and `width' members.
10722
b8ff72fa
SM
10723 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10724 New functions.
aac0c6e3
MR
10725 (w32_read_socket, x_calc_absolute_position): Use them.
10726 (w32_initialize_display_info, w32_term_init): Omit removed members
10727 of w32_display_info.
10728
b8ff72fa
SM
10729 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10730 New functions.
10731 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10732
b8ff72fa
SM
10733 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10734 New functions.
aac0c6e3
MR
10735 (x_calc_absolute_position): Use them.
10736 (x_term_init): Omit removed `height' and `width' members.
10737
10738 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10739 (compute_tip_xy):
10740 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10741 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10742 x_display_pixel_width.
10743
107442008-09-18 Kenichi Handa <handa@m17n.org>
10745
10746 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10747 (composition_compute_stop_pos): Fix handling of static composition.
10748 (Fcomposition_get_gstring): Check FROM and TO at first.
10749
107502008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10751
46e722a9 10752 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10753 mixup (YAILOM).
10754
107552008-09-17 Chong Yidong <cyd@stupidchicken.com>
10756
10757 * indent.c (Fvertical_motion): Use position reported by iterator
10758 instead of PT for determining screen motion (bug#943).
10759
107602008-09-17 Romain Francoise <romain@orebokech.com>
10761
10762 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10763
107642008-09-17 Kenichi Handa <handa@m17n.org>
10765
10766 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10767
10768 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10769 if necessary.
10770
107712008-09-16 Kenichi Handa <handa@m17n.org>
10772
10773 * coding.c (make_conversion_work_buffer): Avoid calling
10774 Fget_buffer_create if it is not necessary.
10775
107762008-09-15 Martin Rudalics <rudalics@gmx.at>
10777
10778 * window.c (Fselect_window): Don't update window_select_count and
10779 use_time when norecord is not nil.
10780
107812008-09-14 Kenichi Handa <handa@m17n.org>
10782
10783 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10784 specpdl_ptr.
10785
107862008-09-12 Kenichi Handa <handa@m17n.org>
10787
10788 * indent.c (scan_for_column): Don't handle automatic composition
10789 if the current buffer is not associated with a window.
10790
10791 * composite.c (composition_reseat_it): If the current buffer is
10792 not associated with a window, ignore the automatic composition.
10793 (find_automatic_composition): Likewise.
10794
107952008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10796
10797 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10798 (Fgpm_mouse_stop): Use it.
10799 * termhooks.h (close_gpm): Declare.
10800 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10801 connection if Gpm_GetEvent fails.
10802
10803 * window.c (set_window_buffer): Always preserve current-buffer.
10804
108052008-09-12 Glenn Morris <rgm@gnu.org>
10806
10807 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10808
108092008-09-11 Glenn Morris <rgm@gnu.org>
10810
10811 * charset.c (charset-map-path): Doc fix.
10812
108132008-09-10 Kenichi Handa <handa@m17n.org>
10814
10815 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10816
10817 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10818 compose a grapheme cluster with the preceding base glyph.
10819
10820 * composite.c (composition_compute_stop_pos): Fix previous change.
10821 Reset cmp_it->id to -1 at first.
10822
108232008-09-10 Glenn Morris <rgm@gnu.org>
10824
10825 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10826
108272008-09-09 Chong Yidong <cyd@stupidchicken.com>
10828
10829 * keyboard.c (read_key_sequence): Reapply translation maps when
10830 switching keyboards.
10831
108322008-09-09 Kenichi Handa <handa@m17n.org>
10833
10834 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10835 characters.
10836
10837 * composite.c (FORWARD_CHAR): Fix calculation
10838 of (POSITION).pos_byte.
10839 (composition_compute_stop_pos): Limit the search of composition to
10840 at most 500 characters ahead. If we reach the limit or find a
10841 newline, set cmp_it->ch to -2 and return 0.
10842 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10843
108442008-09-08 Kenichi Handa <handa@m17n.org>
10845
10846 * indent.c (Fvertical_motion): Be sure to set
10847 it_overshoot_expected if it.cmp_it.id is non-negative.
10848
108492008-09-07 Andreas Schwab <schwab@suse.de>
10850
10851 * callproc.c (Fcall_process): Don't hold references to string data
10852 across garbage collection. Move initialisation of new_argv down
10853 to avoid compiler bug.
10854
108552008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10856
10857 * process.c (Fsystem_process_attributes): Doc fix.
10858
108592008-09-07 Chong Yidong <cyd@stupidchicken.com>
10860
10861 * callproc.c (Fcall_process): Canonicalize current directory name.
10862
10863 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10864 iterator advances to the next line if the current line ends in a
10865 continued tab.
10866
108672008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10868
10869 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10870 member to point to cmp_from.
10871
10872 * xdisp.c: Doc fix for references to gidx data member.
10873
108742008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10875
10876 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10877
108782008-09-07 Kenichi Handa <handa@m17n.org>
10879
10880 * composite.c (FORWARD_CHAR): Check STOP after
10881 incrementing (POSITION).pos.
10882
108832008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10884
10885 * process.c (Fsystem_process_attributes): Doc fix.
10886
108872008-09-06 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * keyboard.c (Ftop_level): Doc fix.
10890
108912008-09-06 Eli Zaretskii <eliz@gnu.org>
10892
10893 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10894 minibuffer, don't let lower part of menu invade the echo area.
10895
10896 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10897 "char *q" to access menu text and advance through it. Revert the
10898 change that displayed ">" instead of ASCII character 0x10.
10899
109002008-09-05 Eli Zaretskii <eliz@gnu.org>
10901
10902 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10903 toggle boxes and radio buttons on MS-DOS as well.
10904
109052008-09-05 Kenichi Handa <handa@m17n.org>
10906
10907 * composite.c (autocmp_chars): Check lookback count.
10908 (composition_compute_stop_pos): Set cmp_it->lookback.
10909 (composition_reseat_it): Check lookback count.
10910 (struct position_record): New struct.
10911 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10912 (find_automatic_composition): New function.
10913 (composition_adjust_point): Use find_automatic_composition.
10914
10915 * dispextern.h (struct composition_it): New member lookback.
10916
109172008-09-02 Chong Yidong <cyd@stupidchicken.com>
10918
10919 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10920 if moving by a single line.
10921
109222008-09-02 Andreas Schwab <schwab@suse.de>
10923
10924 * xterm.c (x_delete_display): Fix merge error.
10925
10926 * fileio.c (Fexpand_file_name): Remove unused variables.
10927
109282008-09-02 Eli Zaretskii <eliz@gnu.org>
10929
10930 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10931 storage on all platforms, not just on DOS_NT.
10932
109332008-09-02 Jason Rumney <jasonr@gnu.org>
10934
b8ff72fa
SM
10935 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10936 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10937
109382008-09-01 Chong Yidong <cyd@stupidchicken.com>
10939
10940 * xfaces.c (Finternal_set_alternative_font_family_alist)
10941 (Finternal_set_alternative_font_registry_alist): Properly copy
10942 entire alist structure.
10943
109442008-09-01 Kenichi Handa <handa@m17n.org>
10945
d66c0241 10946 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10947 representative chars of the script is a vector.
d66c0241
JB
10948 (ftfont_list): Handle the case where the representative chars of
10949 the script is a vector.
aac0c6e3
MR
10950
10951 * character.c (syms_of_character): Docstring of
10952 script-representative-chars fixed.
10953
109542008-08-31 Eli Zaretskii <eliz@gnu.org>
10955
10956 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10957 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10958 the menu. Allocate larger buffer for `text', to account for
10959 possible ^C characters.
10960
109612008-08-31 Martin Rudalics <rudalics@gmx.at>
10962
10963 * xdisp.c (prepare_menu_bars): Don't call
10964 Vwindow_size_change_functions with arg Qt.
10965
109662008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10967
10968 * font.h (font_range):
10969 * fileio.c (report_file_error):
46e722a9
SM
10970 * composite.c (composition_update_it): Yet another int/Lisp_Object
10971 mixup (YAILOM).
aac0c6e3
MR
10972
109732008-08-30 Glenn Morris <rgm@gnu.org>
10974
10975 * data.c (Fmake_variable_frame_local): Doc fix.
10976
10977 * frame.c (Fmodify_frame_parameters): Doc fix.
10978
109792008-08-30 Eli Zaretskii <eliz@gnu.org>
10980
10981 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10982 needed by GetTokenInformation.
10983 (w32_system_process_attributes): Check return values of all system
10984 APIs.
10985
10986 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10987 only when the state changes.
10988 (IT_update_begin, IT_update_end): Add termscript trace.
10989
10990 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10991 clipboard is unavailable. Set dst to NULL if it doesn't point to
10992 malloc'ed data.
10993 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10994 passing random values to xfree.
10995
10996 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10997 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10998
109992008-08-29 Jason Rumney <jasonr@gnu.org>
11000
11001 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11002
110032008-08-29 Eli Zaretskii <eliz@gnu.org>
11004
11005 * composite.c (fill_gstring_body): Avoid compiler warnings.
11006
11007 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11008 LGLYPH_SET_CODE to avoid compiler warnings.
11009
2ae37cf0 11010 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11011
11012 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11013
11014 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11015 LGLYPH_SET_CODE.
11016
110172008-08-29 Kenichi Handa <handa@m17n.org>
11018
11019 * fileio.c (report_file_error): Don't downcase the first character
11020 of errstring if it is still unibyte.
11021
110222008-08-29 Kenichi Handa <handa@m17n.org>
11023
11024 These changes are to re-implement the automatic composition so
11025 that it doesn't use text properties.
11026
11027 * Makefile.in (ftfont.o): Depend on composite.h.
11028 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11029
11030 * character.h (Vunicode_category_table): Extern it.
11031
11032 * character.c (Vunicode_category_table): New variable.
11033 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11034
11035 * chartab.c (optimize_sub_char_table): Perform more greedy
11036 optimization.
11037
b8ff72fa
SM
11038 * composite.h (enum composition_method):
11039 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11040 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11041 (Vcomposition_function_table): Extern it.
11042 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11043 (composition_gstring_put_cache, composition_gstring_from_id)
11044 (composition_gstring_p, composition_gstring_width)
11045 (composition_compute_stop_pos, composition_reseat_it)
11046 (composition_update_it, composition_adjust_point): Extern them.
11047 (Fcomposition_get_gstring): EXFUN it.
11048
d66c0241 11049 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11050 (Vcomposition_function_table)
11051 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11052 (gstring_hash_table, gstring_work, gstring_work_headers):
11053 New variables.
aac0c6e3
MR
11054 (gstring_lookup_cache, composition_gstring_put_cache)
11055 (composition_gstring_from_id, composition_gstring_p)
11056 (composition_gstring_width, fill_gstring_header)
11057 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11058 (composition_reseat_it, composition_update_it)
b8ff72fa 11059 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11060 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11061 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11062 Defsubr composition_get_gstring.
aac0c6e3
MR
11063
11064 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11065 cmp_id.
11066 (struct glyph_string): Delete the member gidx. New members
11067 cmp_id, cmp_from, and cmp_to.
11068 (enum it_method): Delete GET_FROM_COMPOSITION.
11069 (struct composition_it): New struct.
11070 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11071 Delete c, len, cmp_id, cmp_len in u.comp.
11072
11073 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11074 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11075 (enum lglyph_indices): Likewise.
b8ff72fa 11076 (font_range): Adjust extern.
aac0c6e3
MR
11077 (font_fill_lglyph_metrics): Extern it.
11078
11079 * font.c (QCf): New variable.
11080 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11081 (font_prepare_composition): Delete this function.
11082 (font_range): Type and arguments changed.
11083 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11084 (font_fill_lglyph_metrics): New function.
b8ff72fa 11085 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11086 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11087 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11088 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11089
11090 * fontset.h (font_for_char): Extern it.
11091
11092 * fontset.c (font_for_char): New function.
11093
11094 * ftfont.c: Include composite.h.
11095 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11096 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11097
11098 * indent.c: Include composite.h and dispextern.h.
11099 (check_composition): Delete this function.
11100 (scan_for_column): Handle composition by
11101 composition_compute_stop_pos, composition_reseat_it, and
11102 composition_update_it.
11103 (compute_motion): Likewise.
11104 (Fvertical_motion): Fix checking of composition.
11105
11106 * keyboard.c (adjust_point_for_property): Check composition by
11107 composition_adjust_point.
11108
b8ff72fa 11109 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11110 struct glyph_string.
11111
b8ff72fa
SM
11112 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11113 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11114 struct glyph.
11115 (produce_composite_glyph): Likewise.
11116
b8ff72fa
SM
11117 * w32term.c (x_draw_composite_glyph_string_foreground):
11118 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11119 (x_draw_glyph_string): Likewise.
11120
11121 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11122 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11123
11124 * xdisp.c: Include font.h.
11125 (it_props): Delete the entry for Qauto_composed.
11126 (init_iterator): Initialize it->cmp_it.id to -1.
11127 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11128 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11129 (handle_auto_composed_prop): Delete it.
11130 (handle_composition_prop): Handle only static composition.
11131 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11132 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11133 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11134 (pop_it): Likewise.
11135 (get_next_element): Delete next_element_from_composition.
11136 (CHAR_COMPOSED_P): New macro.
11137 (get_next_display_element): For automatic composition, get a face
11138 from the font in the glyph-string.
11139 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11140 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11141 (next_element_from_string): Check if the character at the current
11142 position is composed by CHAR_COMPOSED_P.
11143 (next_element_from_buffer): Likewise.
d66c0241
JB
11144 (next_element_from_composition): Adjust for the change of struct it.
11145 Update it->cmp_it.
b8ff72fa
SM
11146 (dump_glyph): Adjust for the change of struct glyph.
11147 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11148 it and struct glyph. Don't handle automatic composition here.
11149 (fill_gstring_glyph_string): New function.
11150 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11151 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11152 (BUILD_GSTRING_GLYPH_STRING): New macro.
11153 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11154 automatic composition.
b8ff72fa 11155 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11156 struct glyph.
b8ff72fa 11157 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11158
b8ff72fa 11159 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11160 the change of struct glyph_string.
11161 (x_draw_glyph_string): Likewise.
11162
111632008-08-29 Glenn Morris <rgm@gnu.org>
11164
11165 * buffer.c (word-wrap): Doc fix.
11166 * xdisp.c (truncate-partial-width-windows): Doc fix.
11167 Increase default to 50.
11168
111692008-08-29 Chong Yidong <cyd@stupidchicken.com>
11170
11171 * xdisp.c (update_tool_bar_unwind): New function.
11172 (update_tool_bar): Temporarily set selected frame before building
11173 tool-bar items.
11174
111752008-08-28 Michael Albinus <michael.albinus@gmx.de>
11176
11177 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11178 snprintf, respectively.
11179 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11180
111812008-08-28 Chong Yidong <cyd@stupidchicken.com>
11182
11183 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11184 LDFLAGS to GNUstep CC invocation.
11185
111862008-08-27 Chong Yidong <cyd@stupidchicken.com>
11187
11188 * indent.c (Fvertical_motion): Revert last change. Handle the
11189 general case where we are moving forward, and PT spans multiple
11190 screen lines.
11191
11192 * eval.c (find_handler_clause): Temporarily increase
11193 max-lisp-eval-depth while printing the backtrace buffer, to
11194 guarantee that help-mode code can run.
11195
111962008-08-27 Eli Zaretskii <eliz@gnu.org>
11197
11198 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11199 colors under -rv.
11200 (IT_set_frame_parameters): Don't swap foreground and background
11201 colors if `(reverse . t)' is present in the frame properties.
11202 (internal_terminal_init): Call init_frame_faces only for the
11203 initial frame.
11204
112052008-08-27 Andreas Schwab <schwab@suse.de>
11206
11207 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11208
112092008-08-27 Andreas Schwab <schwab@suse.de>
11210
11211 * search.c (search_buffer): Set char_base to zero only at the end.
11212
112132008-08-27 Kenichi Handa <handa@m17n.org>
11214
b8ff72fa 11215 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11216
112172008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11218
11219 * xterm.c (x_term_init): Temporarily hide the partially
11220 initialized terminal while calling vendor-specific-keysyms.
11221
112222008-08-26 Eli Zaretskii <eliz@gnu.org>
11223
11224 * msdos.c (internal_terminal_init): Most initializations done only
11225 once, especially initial_screen_colors[] and termscript open.
11226
112272008-08-26 Chong Yidong <cyd@stupidchicken.com>
11228
11229 * eval.c (Fcondition_case): Doc fix.
11230
11231 * widgetprv.h (EmacsFramePart): Change font member to the new font
11232 struct.
11233
11234 * widget.c: Include character.h and font.h for XSETFONT.
11235 (setup_frame_gcs): Compute X font id from font struct, just once.
11236
112372008-08-26 Eli Zaretskii <eliz@gnu.org>
11238
11239 * term.c (get_named_tty): Fix last change.
11240
112412008-08-26 Chong Yidong <cyd@stupidchicken.com>
11242
11243 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11244 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11245
112462008-08-25 Eli Zaretskii <eliz@gnu.org>
11247
11248 * frame.c (do_switch_frame): Mark previously displayed frame as
11249 obscured for FRAME_MSDOS_P frames as well.
11250
112512008-08-24 Eli Zaretskii <eliz@gnu.org>
11252
11253 * frame.c (make_terminal_frame): Initialize f->terminal,
11254 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11255 Set the top frame to newly created frame.
11256 (Fmake_terminal_frame): Reuse the_only_display_info.
11257
11258 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11259 estimating available memory.
11260
b97439ce 112612008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11262
11263 * nsterm.m (ns_draw_window_cursor): Don't call
11264 NSDisableScreenUpdates and NSEnableScreenUpdates on
11265 non-NS_IMPL_COCOA systems.
11266
112672008-08-23 Andreas Schwab <schwab@suse.de>
11268
11269 * process.c (procfs_system_process_attributes): Fix use of
11270 uninitialized variables.
11271
112722008-08-23 Eli Zaretskii <eliz@gnu.org>
11273
11274 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11275
11276 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11277 calling tty-set-up-initial-frame-faces.
11278
b8ff72fa
SM
11279 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11280 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11281
11282 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11283 addition to output_termcap.
11284
11285 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11286
11287 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11288 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11289 highlight.
11290
11291 * process.c [!subprocesses]: Define QCname.
11292 (syms_of_process): Intern and staticpro it.
11293
11294 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11295 Adjust for changes in encoding/decoding routines.
11296 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11297 encode_coding and decode_coding.
11298
b8ff72fa 11299 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11300
11301 * dosfns.c: Include frame.h before termhooks.h.
11302 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11303 variable termscript.
11304
11305 * s/msdos.h (USER_FULL_NAME): Define.
11306 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11307
11308 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11309 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11310 pw->pw_gecos.
11311
11312 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11313 SELECTED_FRAME as additional (1st) argument.
11314 (tty_read_avail_input): Handle output_msdos_raw in
11315 addition to output_termcap.
11316
11317 * msdos.c: Include frame.h before termhooks.h.
11318 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11319 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11320 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11321 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11322 (IT_set_terminal_modes, IT_reset_terminal_modes)
11323 (IT_set_frame_parameters): Use tty->termscript instead of a global
11324 variable termscript.
11325 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11326 global variable terminal_coding. Don't refer to
11327 Vnonascii_translation_table.
11328 (internal_terminal_init): Set Vwindow_system in current_kboard.
11329 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11330 Announce date and time of session start, if termscript is open.
11331 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11332 term.c:init_tty). Open termscript only of not already open.
11333 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11334 here instead of dos_ttraw. Don't initialize display if this is an
11335 initial tty. Don't set FRAME_FONT.
11336 (Vwindow_system_version): Bump to 23.
11337 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11338 is available, set up mouse_position_hook.
11339 (dos_ttraw, IT_set_terminal_modes): If called with initial
11340 terminal, do nothing.
11341 (IT_set_frame_parameters): Handle the Qtty_type frame
11342 parameter by calling internal_terminal_init.
11343 (dos_set_window_size, show_mouse_face)
11344 (clear_mouse_face, IT_note_mode_line_highlight)
11345 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11346 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11347 (initialize_msdos_display): New function.
11348 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11349 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11350 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11351 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11352 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11353 (request_sigio, unrequest_sigio): Don't define, now defined on
11354 sysdep.c.
11355 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11356
11357 * term.c [MSDOS]: Include msdos.h.
11358 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11359 conditional to DOS_NT. Allow only one call to this function in a
11360 session. Don't allocate a new struct tty_display_info; instead,
11361 reuse the_only_display_info. Call get_tty_size to get screen
11362 dimensions. Call init_baud_rate to set bad_rate.
11363 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11364 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11365 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11366 (get_tty_terminal, get_named_tty, Ftty_type)
11367 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11368 output_termcap.
b8ff72fa
SM
11369 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11370 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11371 only when subprocesses are supported.
aac0c6e3
MR
11372
11373 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11374 f->output_data.x.
11375 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11376 terminal devices.
11377
5582fbc7 11378 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11379 x_output.
11380 (FRAME_FONT): Use output_data.tty.
11381 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11382 (struct x_display_info): Rename from display_info. Update all users in
11383 msdos.c.
aac0c6e3 11384 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11385 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11386 (dos_ttraw): Update prototype.
11387
11388 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11389 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11390
113912008-08-23 Jason Rumney <jasonr@gnu.org>
11392
11393 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11394 (fn_TIFFSetDirectory): New library function used.
11395 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11396 (tiff_load): Use :index to select among multiple images. Set count
11397 property when multiple images exist.
11398 (gif_format): Use :index, not :image.
11399
114002008-08-23 Chong Yidong <cyd@stupidchicken.com>
11401
11402 * xdisp.c (try_scrolling): Check INT_MAX instead of
11403 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11404 to obtain INT_MAX.
11405
114062008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11407
11408 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11409
114102008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11411
11412 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11413 GNUstep library location.
11414
114152008-08-21 Chong Yidong <cyd@stupidchicken.com>
11416
11417 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11418 before using it.
11419
11420 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11421
114222008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11423
11424 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11425 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11426 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11427 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11428 (EmacsApp-cursor_blink_handler): Remove declaration.
11429 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11430 match 01 Feb 2008 changes in xterm.c.
11431 (ns_read_socket): Add cast to avoid warning.
11432 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11433 GNUstep.
11434
114352008-08-20 Chong Yidong <cyd@stupidchicken.com>
11436
11437 * xselect.c (x_get_foreign_selection): Return nil if desired
11438 selection could not be obtained, instead of signalling an error.
11439
114402008-08-20 David Reitter <david.reitter@gmail.com>
11441
11442 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11443 * nsterm.m: Remove ns-specific code for cursor blinking.
11444 (ns_draw_window_cursor): Clear cursor properly rather than
11445 redrawing the area. Respect width of bar cursors.
11446 These changes enable the use of generic blink-cursor-mode and
11447 generic cursor types in NS and support smooth cursor movements (do
11448 not blink off after command).
11449 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11450 Nextstep, too.
11451
114522008-08-19 Kenichi Handa <handa@m17n.org>
11453
11454 * font.c (Vfont_log_deferred): New variable.
11455 (font_add_log): Check Vfont_log_deferred.
11456 (font_deferred_log): New function.
11457
11458 * font.h (font_deferred_log): Extern it.
11459
11460 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11461 for sorting.
11462 (face_for_char): Use deferred log.
11463
114642008-08-18 Kenichi Handa <handa@m17n.org>
11465
11466 * fontset.c (face_for_char): Add font log.
11467
11468 * font.c (font_add_log): Add the font properties :script, :lang,
11469 and :otf in the log.
11470
114712008-08-17 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * xdisp.c: Remove dead code.
11474 (handle_invisible_prop, next_overlay_string): Defer call to
11475 setup_for_ellipsis.
11476 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11477
114782008-08-15 Chong Yidong <cyd@stupidchicken.com>
11479
11480 * xfaces.c (lookup_derived_face): Properly handle possible zero
11481 return value of get_lface_attributes.
11482 (merge_faces): Don't tell lookup_derived_face to signal an error
11483 if face is not found.
11484
11485 * dired.c (Fdirectory_files): Doc fix.
11486
11487 * process.c (make_process): Initialize kill_without_query struct
11488 member.
11489
114902008-08-15 Eli Zaretskii <eliz@gnu.org>
11491
11492 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11493 Alternative calculation of totphys for Visual Studio 6.
11494
11495 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11496
11497 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11498 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11499 All users changed.
11500 (stat): Only root directory passed to GetDriveType. Allow RAM
11501 disk as well as local fixed disk when w32-get-true-file-attributes
11502 is set to `local'.
11503 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11504 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11505 (w32_cached_id, w32_add_to_cache): New functions.
11506 (get_name_and_id): Look account names in the cache before calling
11507 lookup_account_sid.
11508 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11509 New initialization flags.
11510 (globals_of_w32): Initialize them to zero.
11511 (w32_system_process_attributes): Use w32_cached_id and
11512 w32_add_to_cache.
11513
115142008-08-14 Lawrence Mitchell <wence@gmx.li>
11515
11516 * lread.c (Fread_char, Fread_char_exclusive): If no character
11517 event is read before timeout is reached, return nil, rather than
11518 converting to a number.
11519
115202008-08-14 Chong Yidong <cyd@stupidchicken.com>
11521
11522 * fns.c (use_dialog_box): Doc fix.
11523
11524 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11525 on OS X.
11526
115272008-08-13 Chong Yidong <cyd@stupidchicken.com>
11528
11529 * frame.c (Qns_parse_geometry): New var.
11530 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11531
115322008-08-11 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11535 space character in calculating tabs.
11536
115372008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11538
11539 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11540
115412008-08-10 Glenn Morris <rgm@gnu.org>
11542
11543 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11544 silence gcc "limited range of data type" warnings in some
11545 make_fixnum_or_float calls.
11546
115472008-08-09 Eli Zaretskii <eliz@gnu.org>
11548
11549 * w32.c (w32_system_process_attributes): If the process does not
11550 exist, return nil.
11551
11552 * w32.c: Include thelp32.h, psapi.h and coding.h.
11553 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11554 declarations.
11555 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11556 (Process32Next_Proc): New typedefs.
11557 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11558 (g_b_init_process32_next, g_b_init_open_thread_token)
11559 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11560 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11561 (g_b_init_get_process_working_set_size)
11562 (g_b_init_global_memory_status_ex): New static variables.
11563 (globals_of_w32): Initialize them.
11564 (create_toolhelp32_snapshot, process32_first, process32_next)
11565 (open_thread_token, impersonate_self, revert_to_self)
11566 (get_process_memory_info, get_process_working_set_size)
11567 (global_memory_status, global_memory_status_ex): New wrapper
11568 functions.
11569 (w32_list_system_processes, w32_system_process_attributes)
11570 (enable_privilege, restore_privilege, ltime, process_times):
11571 New functions.
11572 (convert_time_raw): New function.
11573 (convert_time): Remove conversion of FILETIME into time in 100
11574 nsec units, call convert_time_raw instead.
11575
11576 * process.h (w32_list_system_processes, w32_system_process_attributes):
11577 Add prototypes.
11578 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11579 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11580 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11581 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11582
11583 * process.c (Fsystem_process_attributes): Doc fix.
11584
115852008-08-08 Chong Yidong <cyd@stupidchicken.com>
11586
11587 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11588 a continued multi-char glyph; if so, advance to the actual glyph.
11589
115902008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11591
11592 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11593
11594 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11595 (.m.o): Use it.
11596 * config.in: Regenerate.
11597
115982008-08-07 Chong Yidong <cyd@stupidchicken.com>
11599
11600 * xdisp.c (redisplay_window): Revert last change.
11601 (try_window): Check bottom scroll margin too.
11602
116032008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11604
11605 * config.in: Regenerate.
11606
11607 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11608 -list-load-path-shadows'.
11609 (nsgui.h): Reduce number of things depending on it.
11610
116112008-08-06 Chong Yidong <cyd@stupidchicken.com>
11612
11613 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11614 instead of window-end which does the wrong thing at eob.
11615 (try_cursor_movement): Minor optimization.
11616 (redisplay_window): If scroll margin is defined, don't assume
11617 window doesn't need scrolling.
11618
116192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11620
11621 * config.in: Regenerate.
11622
11623 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11624 (mostlyclean): Don't delete *.d under NS.
11625
11626 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11627
116282008-08-06 Kenichi Handa <handa@m17n.org>
11629
11630 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11631
116322008-08-06 Andreas Schwab <schwab@suse.de>
11633
11634 * config.in: Regenerate.
11635
116362008-08-05 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11639 forcing a window start.
11640
11641 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11642 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11643
116442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11645
11646 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11647 argument.
11648
116492008-08-05 Juanma Barranquero <lekktu@gmail.com>
11650
11651 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11652 <scroll-down-aggressively, before-change-functions>:
11653 <after-change-functions>: Reflow docstrings.
11654
116552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11656 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11657
11658 Dock menu customization, based on a patch by Ken Raeburn, plus some
11659 other fixes.
11660 * nsmenu.m (dockMenu): New variable.
11661 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11662
11663 * nsterm.h (dockMenu): Declare.
11664
11665 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11666 (ns_term_init): Initialize dockMenu.
11667 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11668 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11669 left.
11670
11671 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11672
116732008-08-04 Chong Yidong <cyd@stupidchicken.com>
11674
11675 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11676
11677 * config.in: Regenerate.
11678
116792008-08-04 Seiji Zenitani <zenitani@mac.com>
11680
11681 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11682
116832008-08-04 Chong Yidong <cyd@stupidchicken.com>
11684
11685 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11686
116872008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11688
11689 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11690
11691 * keyboard.h: Comment an #endif.
11692
11693 * lisp.h (have_menus_p): Adjust comment.
11694
11695 * menu.c (find_and_return_menu_selection): Fix comparison with
11696 client_data.
11697
11698 * nsmenu.m (popup_activated_flag): New variable.
11699 (popup_activated): New function.
11700 (menu-or-popup-active-p): New exported lisp definition.
11701 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11702 when popup done.
11703 (ns_popup_dialog): Set popup_activated_flag.
11704
11705 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11706 version for GNUstep (handled by conditional typedef in nsterm.m).
11707 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11708 in rgb.txt).
11709
11710 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11711
11712 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11713
11714 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11715
11716 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11717 shortcircuit if popup_activated like GTK and X toolkit.
11718
11719 * m/inter386.h: Change DARWIN to DARWIN_OS.
11720
11721 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11722 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11723 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11724 comment on NO_SOCK_SIGIO.
11725
117262008-08-03 Chong Yidong <cyd@stupidchicken.com>
11727
11728 * nsterm.m (windowDidResize): Remove stopModal call.
11729
117302008-08-03 Andreas Schwab <schwab@suse.de>
11731
11732 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11733 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11734
117352008-08-02 Chong Yidong <cyd@stupidchicken.com>
11736
11737 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11738 Don't use uninitialized pointer variable when using getrlimit.
11739
117402008-08-02 Jason Rumney <jasonr@gnu.org>
11741
11742 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11743
117442008-08-02 Eli Zaretskii <eliz@gnu.org>
11745
11746 * alloc.c (NSTATICS): Bump to 0x640.
11747
11748 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11749
11750 * lisp.h: Add prototype for directory_files_internal.
11751
11752 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11753 New functions.
11754 (syms_of_process): Defsubr them. Add initializations for various
11755 Q* symbols used in procfs_system_process_attributes.
11756 (procfs_list_system_processes, procfs_system_process_attributes)
11757 [HAVE_PROCFS]: New functions.
11758 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11759 (procfs_get_total_memory): New functions.
11760
117612008-08-01 Juanma Barranquero <lekktu@gmail.com>
11762
11763 * xfaces.c (Fx_load_color_file): Fix previous change;
11764 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11765
117662008-08-01 Michael Albinus <michael.albinus@gmx.de>
11767
11768 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11769
117702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11771
11772 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11773
117742008-08-01 Chong Yidong <cyd@stupidchicken.com>
11775
11776 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11777
11778 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11779 define NSApplicationDelegateReplySuccess.
11780 (EmacsView -converstationIdentifier): Use long instead of
11781 NSInteger for GNUstep, since it doesn't have NSInteger.
11782
11783 * xmenu.c: Revert last change.
11784
11785 * keyboard.h: Fix last change.
11786
117872008-08-01 Juanma Barranquero <lekktu@gmail.com>
11788
11789 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11790 on Windows.
11791
117922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11793
11794 Warning clearing and clean-up in NS port.
11795 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11796 Add prototypes.
11797 * nsgui.h (FACE_DEFAULT): Remove, unused.
11798 (XGCValues): Change colors to unsigned long.
11799 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11800 nsterm.m.
11801 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11802 (ns_list_fonts): Remove, unused.
11803 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11804 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11805 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11806 (nsfont_draw): Compare face colors to 0, not nil.
11807 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11808 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11809 (-addSubmenuWithTitle:): Use NSMenuItem class.
11810 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11811 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11812 (ns_clip_to_row): Make gc arg a BOOL.
11813 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11814 ns_clip_to_row() call.
11815 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11816 used). Cast FRAME_FONT assignments.
11817 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11818 (ns_string_to_lispmod): Change arg to const char.
11819 (ns_term_init): Use NSMenuItem class.
11820 (EmacsApp -openFile:): Move to different section of file.
11821 (EmacsApp -application:openFiles:): Don't return a value, call
11822 -replyToOpenOrPrint:.
11823 (EmacsView -keyDown:): Fix up cast.
11824 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11825 (EmacsView -menuDown:): Cast tag in call to
11826 find_and_call_menu_selection().
11827 (ns_list_fonts): Remove, unused.
11828 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11829 (ns_fontname_to_xlfd): Make static.
11830 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11831 Remove prototypes (now in keyboard.h).
11832 (next_menubar_widget_id): Remove, unused.
11833 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11834 Remove prototypes (now in keyboard.h).
11835 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11836
118372008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11838
11839 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11840 (floatfns.o): Depend on syssignal.h.
11841 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11842
11843 * systty.h: Fix previous change that removed BSD_TERMIOS.
11844 Add comments to #ifdefs.
11845
118462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11847
11848 * w32fns.c (w32-load-color-file): Remove.
11849 (x-open-connection): Use renamed Fx_load_color_file.
11850 * xfaces.c (x-load-color-file): Add.
11851 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11852 Emacs.clr.
11853 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11854
118552008-07-31 Michael Albinus <michael.albinus@gmx.de>
11856
11857 * dbusbind.c (Fdbus_call_method_asynchronously)
11858 (Fdbus_method_error_internal): New defuns.
11859 (xd_read_message): Handle also reply messages.
11860 (Vdbus_registered_functions_table): Extend docstring.
11861
118622008-07-31 Juanma Barranquero <lekktu@gmail.com>
11863
11864 * keyboard.c (gobble_input): Fix previous change.
11865
118662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11867
11868 * bitmaps/README:
11869 * xfns.c:
11870 * termcap.c:
11871 * term.c:
11872 * syswait.h:
11873 * systty.h:
11874 * systime.h:
11875 * syssignal.h:
11876 * sysdep.c:
11877 * process.h:
11878 * process.c:
11879 * print.c:
11880 * ndir.h:
11881 * lread.c:
11882 * keyboard.c:
11883 * getpagesize.h:
11884 * floatfns.c:
11885 * fileio.c:
11886 * emacs.c:
11887 * doc.c:
11888 * dispnew.c:
11889 * dired.c:
11890 * data.c:
11891 * callproc.c:
11892 * buffer.c:
11893 * README:
11894 * Makefile.in:
11895 * s/template.h:
11896 * s/msdos.h:
11897 * m/vax.h: Remove VMS support.
11898 * s/vms.h:
11899 * vlimit.h:
11900 * uaf.h:
11901 * temacs.opt:
11902 * param.h:
11903 * ioctl.h: Remove file.
11904
119052008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11906
11907 * s/ms-w32.h (MULTI_KBOARD): Remove.
11908 * xterm.c:
11909 * xselect.c:
11910 * xfns.c:
11911 * window.c:
11912 * w32term.c:
11913 * w32fns.c:
11914 * terminal.c:
11915 * termhooks.h:
11916 * term.c:
11917 * sysdep.c:
11918 * keyboard.h:
11919 * keyboard.c:
11920 * frame.h:
11921 * frame.c:
11922 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11923 * config.in: Regenerate.
11924
119252008-07-30 Jason Rumney <jasonr@gnu.org>
11926
11927 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11928
11929 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11930 (w32font_open_internal): Get unicode version of textmetrics.
11931 Don't enable or disable glyph indices here.
11932 (w32font_open): Disable use of glyph indices.
11933
11934 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11935
119362008-07-30 Chong Yidong <cyd@stupidchicken.com>
11937
11938 * minibuf.c (Vread_buffer_function): Doc fix.
11939
119402008-07-30 John Paul Wallington <jpw@pobox.com>
11941
11942 * minibuf.c (read_buffer_completion_ignore_case): New var.
11943 (Fread_buffer): Use it.
11944
119452008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11946
11947 * systty.h (sensemode): Remove empty #if. Remove reference to
11948 BSD_TERMIOS, unused.
11949
11950 * sysdep.c: Remove reference to DGUX.
11951 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11952
11953 * config.in: Regenerate.
11954
119552008-07-30 Jason Rumney <jasonr@gnu.org>
11956
11957 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11958
119592008-07-29 Jason Rumney <jasonr@gnu.org>
11960
11961 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11962 is populated.
11963 (uniscribe_encode_char): Always use uniscribe.
11964 Avoid using context if cache is populated.
11965
119662008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11967
11968 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11969 open menu.
11970
11971 * gtkutil.c (menu_nav_ended): Remove.
11972 (create_menus): Remove signal connect for menu_nav_ended.
11973
119742008-07-28 Chong Yidong <cyd@stupidchicken.com>
11975
11976 * xdisp.c (redisplay_window): Check return value of
11977 compute_window_start_on_continuation_line before forcing a window
11978 start.
11979
119802008-07-28 Jason Rumney <jasonr@gnu.org>
11981
11982 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11983
11984 * w32term.c (w32_enable_unicode_output, cleartype_active):
11985 Remove obsolete display options.
11986 (x_draw_glyph_string_background): Don't use old cleartype_active
11987 workaround.
11988 (w32_initialize): Remove cleartype_active initialization.
11989 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11990
119912008-07-28 Andreas Schwab <schwab@suse.de>
11992
11993 * lisp.h (init_weak_hash_tables, syms_of_font)
11994 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11995 (remove_hash_entry): Don't declare.
11996 * eval.c (maybe_call_debugger): Make static and move before use.
11997 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11998 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11999 * xterm.h (x_set_frame_alpha): Declare.
12000
120012008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12002
12003 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12004 (create_menus): Connect selection-done to menu_nav_ended.
12005
120062008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12007
12008 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12009 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12010 parameter with read of 'alpha' one.
12011 (Qns_frame_parameter): Remove.
5582fbc7 12012 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12013 (next-selection-coding-system, Vselection_coding_system)
12014 (Vnext_selection_coding_system): Drop.
12015
120162008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12017
12018 * nsfns.m (do-applescript, do_applescript): Rename to
12019 ns-do-applescript, ns_do_applescript, and move within file.
12020
120212008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12022
12023 Remove support for Mac Carbon.
12024 * mactoolbox.c:
12025 * macterm.h:
12026 * macterm.c:
12027 * macselect.c:
12028 * macmenu.c:
12029 * macgui.h:
12030 * macfns.c:
12031 * mac.c: Remove file.
12032 * s/darwin.h:
12033 * m/intel386.h:
12034 * xfaces.c:
12035 * xdisp.c:
12036 * window.c:
12037 * tparam.c:
12038 * termhooks.h:
12039 * termcap.c:
12040 * term.c:
12041 * syssignal.h:
12042 * sysselect.h:
12043 * sysdep.c:
12044 * process.c:
12045 * lread.c:
12046 * lisp.h:
12047 * keyboard.c:
12048 * image.c:
12049 * fringe.c:
12050 * frame.h:
12051 * frame.c:
12052 * fontset.c:
12053 * font.h:
12054 * font.c:
12055 * fns.c:
12056 * fileio.c:
12057 * emacs.c:
12058 * dispnew.c:
12059 * dispextern.h:
12060 * config.in:
12061 * atimer.c:
2ae37cf0 12062 * Makefile.in: Remove code for Carbon.
aac0c6e3 12063
f0131492 120642008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12065
12066 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12067
120682008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12069
12070 * macterm.h (kCGBitmapByteOrder32Host): New define for
12071 non-universal SDKs.
12072
12073 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12074 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12075
12076 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12077 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12078
120792008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12080
12081 * w32inevt.c: Include dispextern.h.
12082
120832008-07-26 Andreas Schwab <schwab@suse.de>
12084
12085 * print.c (print_object): Fix off-by-one in last change.
12086
120872008-07-25 Juanma Barranquero <lekktu@gmail.com>
12088
12089 * term.c (syms_of_term): Don't initialize default_orig_pair,
12090 default_set_foreground and default_set_background on Windows.
12091
120922008-07-25 Jason Rumney <jasonr@gnu.org>
12093
12094 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12095 ScriptItemize. Clean up return value checking. Remove unused
12096 variables.
12097 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12098 shaping engine.
12099
12100 * w32font.c (w32font_has_char): Handle the case where we can't
12101 determine the script for a character.
12102
121032008-07-25 Chong Yidong <cyd@stupidchicken.com>
12104
12105 * term.c (syms_of_term): Initialize default_orig_pair,
12106 default_set_foreground, and default_set_background.
12107
12108 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12109 clash (bug#86).
12110 (getloadavg): Callers changed.
12111
12112 * image.c (svg_load_image): Fix last change.
12113 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12114 image size is valid. Use g_object_unref instead of deprecated
12115 rsvg_handle_free to free rsvg handle.
12116 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12117
121182008-07-25 Jason Rumney <jasonr@gnu.org>
12119
12120 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12121 surrogates before looking up glyph index.
12122 (w32font_text_extents): Encode as surrogates if falling back to
12123 functions that need UTF-16 wide chars.
12124
12125 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12126 BMP as surrogates before looking up glyph index.
12127
121282008-07-25 Chong Yidong <cyd@stupidchicken.com>
12129
12130 * image.c (svg_load_image): Check for failure in return value of
12131 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12132
121332008-07-25 Jason Rumney <jasonr@gnu.org>
12134
12135 * w32font.c (Fx_select_font): Reverse sense of second arg.
12136
121372008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12138
12139 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12140 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12141
12142 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12143 (PURESIZE): Use it.
12144
121452008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12146
12147 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12148 * m/alpha.h (TEXT_END):
12149 * m/ibmrs6000.h (TEXT_END):
12150 * m/macppc.h (TEXT_END):
12151 * s/darwin.h (TEXT_END):
12152 * s/msdos.h (TEXT_END): Remove, unused.
12153 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12154 * s/cygwin.h: Remove comment.
12155
12156 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12157 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12158 * m/intel386.h (DOT_GLOBAL_START):
12159 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12160 (USG): Remove, file not used on USG platforms.
12161
12162 * Makefile.in (HAVE_X11): Remove empty #else.
12163
121642008-07-24 Andreas Schwab <schwab@suse.de>
12165
12166 * fileio.c (Finsert_file_contents): Properly adjust undo list
12167 after format conversion.
12168
121692008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12170
12171 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12172 (menu_nav_ended): Remove.
12173 (create_menus): Remove signal connect for menu_nav_ended.
12174 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12175 create_menus.
12176 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12177
121782008-07-23 Jason Rumney <jasonr@gnu.org>
12179
12180 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12181 with opened font.
12182 (w32font_open): Set font type to gdi.
12183
12184 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12185
121862008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12187
12188 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12189 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12190 defines it.
12191 * unexec.c (ADDR_CORRECT): Define unconditionally.
12192
12193 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12194
12195 * unexec.c: Remove code depending on !COFF and USG, the file is
12196 not used for such systems.
12197
12198 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12199 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12200 (LD_SWITCH_SYSTEM_1): Remove, update users.
12201
12202 * s/darwin.h (DATA_END):
12203 * m/intel386.h (DATA_END):
12204 * m/ibmrs6000.h (DATA_END):
12205 * m/alpha.h (DATA_END): Remove, unused.
12206
12207 * config.in: Regenerate.
12208 * s/ms-w32.h (subprocesses): Define unconditionally.
12209 * s/template.h (subprocesses): Update comment.
12210 * s/vms.h (subprocesses):
12211 * s/usg5-4.h (subprocesses):
12212 * s/hpux10-20.h (subprocesses):
12213 * s/gnu-linux.h (subprocesses):
12214 * s/cygwin.h (subprocesses):
12215 * s/bsd-common.h (subprocesses):
12216 * s/aix4-2.h (subprocesses):
12217 * s/darwin.h (subprocesses): Do not define, defined by default now.
12218
12219 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12220 Remove all references.
12221 (temacs): Add GNUstep specific ld flags.
12222
12223 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12224 similarly to what X does.
12225
122262008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12227
12228 * nsfns.m (x-list-fonts): Remove.
12229 (syms_of_nsfns): Drop the x-list-fonts declaration.
12230 * nsterm.m: Get rid of remaining "//" comments.
12231
122322008-07-22 Chong Yidong <cyd@stupidchicken.com>
12233
12234 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12235
12236 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12237 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12238 (Fns_own_selection_internal, Fx_disown_selection_internal)
12239 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12240
12241 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12242 ... */' style of docstrings. Doc fixes.
12243
122442008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12245
12246 * terminfo.c (UP, BC, PC): Undo previous change.
12247
12248 * nsfns.m: Rename ns prefixed functions/variables to the
12249 corresponding x versions. Update references.
12250
122512008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12252
12253 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12254
122552008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12256
12257 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12258 Remove forwarding functions.
12259 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12260 non-static.
12261 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12262 non-static.
12263 (ns_frame_parm_handlers): Use the new names.
12264 (syms_of_nsfns): Move to the end of file.
12265
12266 * nsterm.m (syms_of_nsterm): Move to the end of file.
12267
12268 * dispnew.c (init_display): Remove code for X10.
12269
122702008-07-22 Jason Rumney <jasonr@gnu.org>
12271
12272 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12273 bare drive.
12274
122752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12276
12277 * nsterm.m (syms_of_nsterm): Remove debugging println.
12278
122792008-07-22 David Reitter <david.reitter@gmail.com>
12280
12281 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12282 Carbon implementation of the same functionality: execute arbitrary
12283 AppleScript code.
12284
122852008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12286
12287 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12288 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12289 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12290 (Fx_display_mm_height, Fx_display_mm_width)
12291 (Fx_display_backing_store, Fx_display_visual_class)
12292 (Fx_display_save_under, Fx_open_connection)
12293 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12294 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12295 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12296 (Fx_display_pixel_width, Fx_display_pixel_height)
12297 (Fx_display_usable_bounds, Fx_display_planes)
12298 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12299 ... */' style of docstrings.
12300
123012008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12302
12303 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12304 on this platform.
12305 (mips):
12306 * m/iris4d.h (mips): Do not define.
12307 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12308
12309 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12310
12311 * image.c:
12312 * nsfns.m:
12313 * nsselect.m:
12314 * nsterm.h:
12315 * nsterm.m: Rename ns prefixed functions/variables to the
12316 corresponding x versions. Update references.
12317
12318 * m/ibms390x.h (NO_REMAP): Do not undefine.
12319
12320 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12321
123222008-07-21 Chong Yidong <cyd@stupidchicken.com>
12323
12324 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12325 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12326 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12327 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12328 (Fns_display_mm_height, Fns_display_mm_width)
12329 (Fns_display_backing_store, Fns_display_visual_class)
12330 (Fns_display_save_under, Fns_open_connection)
12331 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12332 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12333 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12334 (Fns_display_pixel_width, Fns_display_pixel_height)
12335 (Fns_display_usable_bounds, Fx_display_planes)
12336 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12337
123382008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12339
12340 * print.c (print_object): Check print_depth before searching for
12341 circularities.
12342
123432008-07-21 Michael Albinus <michael.albinus@gmx.de>
12344
12345 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12346 only sprintf.
12347
123482008-07-21 Kenichi Handa <handa@m17n.org>
12349
12350 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12351
123522008-07-20 Andreas Schwab <schwab@suse.de>
12353
12354 * syntax.c (find_start_pos, find_start_value)
12355 (find_start_value_byte, find_start_begv, find_defun_start)
12356 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12357
123582008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12359
12360 * s/sol2-3.h: Insert contents of s/sol2.h.
12361 (LD_SWITCH_SYSTEM): Remove redundant definition.
12362 * s/sol2.h: Remove, unused.
12363
123642008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12365
12366 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12367
123682008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12369
12370 * Makefile.in (ns_appdir): Fix typo in find command.
12371
123722008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12373
12374 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12375
12376 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12377 added not supported anymore.
12378
12379 * s/usg5-4-2.h (LIBS_SYSTEM):
12380 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12381
12382 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12383 * s/lynxos.h (GETPGRP_NO_ARG):
12384 * s/hpux10-20.h (NO_SIOCTL_H):
12385 * s/gnu.h (GETPGRP_NO_ARG):
12386 * s/gnu-linux.h (NO_SIOCTL_H):
12387 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12388 * s/cygwin.h (GETPGRP_NO_ARG):
12389 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12390 (C_DEBUG_SWITCH): Remove duplicate definition.
12391
12392 * m/ibms390.h: Remove boilerplate comments.
12393
12394 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12395
12396 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12397 (wait_reading_process_output): Remove code for SunOS, platform not
12398 supported anymore. Use SOLARIS2 instead of sun.
12399
124002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12401
12402 * font.c (font_open_by_name): Under NS, default lface height to zero.
12403 (font_open_for_lface): Under NS, set size based on frame fontsize.
12404 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12405 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12406
124072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12408
12409 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12410 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12411 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12412 YES/NO.
12413 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12414 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12415 * Makefile.in (clean): Clear out build destination dir.
12416
124172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12418
12419 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12420 xterm, xselect.
12421 * lisp.h: Remove declaration of hash_remove.
12422 * nsgui.h: Remove redefinitions of hash_remove.
12423 * fns.c (hash_remove): Rename to hash_remove_from_table.
12424
124252008-07-19 Seiji Zenitani <zenitani@mac.com>
12426
12427 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12428 strdup() the family UTF8String before modifying it.
12429
124302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12431
12432 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12433 NS_FACE_BACKGROUND with 0 instead of nil.
12434 * nsfont.m (nsfont_draw): Same.
12435
124362008-07-19 Chong Yidong <cyd@stupidchicken.com>
12437
12438 * nsfns.m (ns_set_background_color): Fix crash.
12439
124402008-07-18 Chong Yidong <cyd@stupidchicken.com>
12441
12442 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12443
124442008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12445
12446 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12447
124482008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12449
12450 * gtkutil.c: Include <config.h> instead of "config.h".
12451
12452 * lisp.h (Foverlay_buffer): Add EXFUN.
12453
12454 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12455 child process to complete child_setup. Undo 2005-09-21 change.
12456
12457 * s/darwin.h: Mention setsid after vfork.
12458
124592008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12460
12461 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12462 Depend on macgui.h.
12463
12464 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12465 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12466
12467 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12468 and f19.
12469 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12470
12471 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12472 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12473 Remove enumerators.
12474
12475 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12476 Check if FACE_FROM_ID returns NULL.
12477
124782008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12479
12480 * w32inevt.c (change_frame_size): Remove extern declaration.
12481 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12482 change_frame_size.
12483
124842008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12485
12486 * getloadavg.c: Revert last change (2008-07-15).
12487
124882008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12489
12490 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12491 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12492 from configure.
12493
124942008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12495
12496 * s/sol2.h:
12497 * s/sol2-4.h: Reorganize conditionals.
12498
12499 * ecrt0.c: Remove code depending on m68000, not used anymore.
12500
12501 * fns.c (hash_remove): Make static.
12502 * lisp.h (hash_remove): Don't prototype.
12503
12504 * m/ibmrs6000.h:
12505 * m/ibms390x.h:
12506 * m/macppc.h: Remove boilerplate comments.
12507
12508 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12509 Solaris, which does not need them.
12510
12511 * m/vax.h: Remove comments about unsupported systems.
12512
12513 * s/darwin.h: Reorganize ifdefs.
12514
125152008-07-17 Andreas Schwab <schwab@suse.de>
12516
12517 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12518
125192008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12520
12521 Use SDATA. Follow coding convention of placing operators at
12522 beginning of next line rather than end of previous line, and placing
12523 spaces around infix operators.
12524
12525 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12526 in case it was defined already.
12527 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12528 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12529 ns_default.
12530 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12531 Lisp_Objects.
12532 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12533 (ns_defined_color, ns_color_to_lisp): Declare.
12534 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12535 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12536 it's accepted even with USE_LISP_UNION_TYPE.
12537 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12538 (update_frame_tool_bar): Remove apparently obsolete tests for
12539 non-integerness of f->tool_bar_lines.
12540 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12541 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12542 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12543 (nsfont_open): Don't confuse NULL for Qnil.
12544 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12545 * menu.h (find_and_call_menu_selection):
12546 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12547 (find_and_return_menu_selection): Always return something.
12548 * frame.h: Include dispextern.h for Display_Info.
12549 (display_x_get_resource): Declare.
12550
125512008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12552
12553 * syntax.c: Remove stdio.h include accidentally introduced in
12554 Emacs.app commit.
12555 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12556 NS_IMPL_COCOA.
12557 * keyboard.c (handle_async_input, input_available_signal): Remove
12558 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12559
125602008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12561
12562 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12563 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12564 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12565 Use SDATA.
12566
12567 * keymap.c: Remove all NS-specific code.
12568 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12569 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12570 where_is_preferred_modifier, return a different value depending on how
12571 preferred is the binding.
12572 (where_is_internal): Adjust accordingly.
12573 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12574 Adjust to new preferred_sequence_p.
12575 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12576 * keyboard.c (parse_solitary_modifier): Not static any more.
12577 * keyboard.h (parse_solitary_modifier): Declare.
12578
125792008-07-16 Andreas Schwab <schwab@suse.de>
12580
12581 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12582 of easymenu.
12583
125842008-07-16 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12587 that we don't move off the line.
12588
125892008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 * keyboard.c (Qsuper): Remove.
12592 (parse_menu_item): Don't call where_is_internal specially for NS.
12593
125942008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12595
12596 * s/gnu-linux.h: Remove boilerplate comments.
12597
12598 * m/alpha.h (__ELF__): Consolidate conditions.
12599
12600 * m/m68k.h (linux): Use GNU_LINUX instead.
12601 Remove boilerplate comments.
12602
12603 * m/intel386.h: Undo refactoring from previous change.
12604 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12605 too, remove dead code.
12606 (linux): Use GNU_LINUX instead.
12607
126082008-07-16 Jason Rumney <jasonr@gnu.org>
12609
12610 * w32gui.h: Repeat 26 June changes lost by last change.
12611
126122008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12613
12614 * systty.h: Remove code for Aix on 386, unsupported platform.
12615
12616 * s/ms-w32.h: Remove boilerplate comments.
12617 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12618
12619 * s/gnu-linux.h (TERM): Remove support.
12620 (HAVE_SYSVIPC): Remove, unused.
12621 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12622 for this system.
12623
12624 * process.c: Remove support for IRIS, unused.
12625 Remove support for TERM, not relevant anymore.
12626
12627 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12628 used with the definition.
12629
12630 * s/aix4-2.h (static): Do not undef.
12631
12632 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12633 only used on Aix.
12634 (HAVE_SYSVIPC): Remove, unused.
12635
12636 * m/hp800.h (CANNOT_DUMP): Do not undef.
12637
12638 * m/alpha.h: Fix comment.
12639
12640 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12641 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12642 used by this configuration.
12643 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12644 * unexec.c: Remove code depending on HPUX and
12645 USG_SHARED_LIBRARIES, not used with this file. Remove code
12646 depending on IRIS, unused. Remove if 0-ed code.
12647
12648 * s/template.h: Remove comments about static.
12649
12650 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12651 Remove if 0-ed code.
12652 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12653 were the same as the default.
12654 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12655 Remove boilerplate comments.
12656 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12657 (HAVE_SYSVIPC): Remove, unused.
12658 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12659
12660 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12661 Remove boilerplate comments.
12662 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12663 Remove boilerplate comments.
12664 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12665 Remove boilerplate comments.
12666 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12667
12668 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12669 USG systems which do not use DATA_SEG_BITS.
12670 Refactor code. Remove boilerplate comments.
12671
12672 * m/ibms390.h:
12673 * m/m68k.h:
12674 * s/bsd-common.h:
12675 * s/cygwin.h:
12676 * s/darwin.h:
12677 * s/freebsd.h:
12678 * s/gnu.h:
12679 * s/msdos.h: Remove boilerplate comments.
12680
12681 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12682 do not use this file.
aac0c6e3
MR
12683 (IRIS_4D): Remove, unused.
12684
12685 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12686 do not use this file.
aac0c6e3
MR
12687 (SIGN_EXTEND_CHAR):
12688 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12689 * unexmips.c: Remove file, unused.
12690
12691 * editfns.c (Fuser_full_name): Replace the only use of
12692 USER_FULL_NAME with its value.
12693 * config.in: Regenerate.
12694
126952008-07-16 David Reitter <david.reitter@gmail.com>
12696
12697 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12698 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12699
127002008-07-16 Glenn Morris <rgm@gnu.org>
12701
12702 * emacs.c (system-type): Doc fix.
12703
127042008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12705
12706 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12707 If the cache doesn't work, let's fix it, rather than work around it.
12708
127092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12710
12711 * Makefile.in: Correct additions for nsfont.o in last commit.
12712 * nsfont.m: New file (forgot last commit).
12713
127142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12715
12716 * callproc.c (set_initial_environment): Initialize
12717 Vprocess_environment under CANNOT_DUMP (fixes crash when
12718 batch-compiling for bootstrap).
12719
127202008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12721 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12722
c4cc8b9a
JB
12723 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12724 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12725
127262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12727
12728 Changes and additions for NeXTstep windowing system (Cocoa and
12729 GNUstep) support.
12730
12731 * Makefile.in:
12732 * config.in: Support defines and build commands for NS port.
12733 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12734 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12735 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12736 windowing.
12737 (struct face): Add synth_ital field.
12738 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12739 (init_display): Initialize Vinitial_window_system to "ns" when so
12740 compiled.
12741 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12742 (display_arg): Use under NS.
12743 (main): Under NS, allocate autorelease pool and handle command line
12744 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12745 (standard_args): Add NS-specific args.
12746 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12747 * font.c (DEFAULT_ENCODING): New variable.
12748 (font_find_for_lface): Use it.
12749 (syms_of_font): Load syms_of_nsfont under NS.
12750 * font.h: Declare nsfont_driver when compiled under NS.
12751 * fontset.c: When compiling under NS, include nsterm.h.
12752 (fontset_from_font): Autoconstruct fontset under NS.
12753 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12754 symbol, document and use it.
12755 (do_switch_frame): When for_deletion under Cocoa, add
12756 Fraise_frame(Qnil).
12757 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12758 (x_get_arg): Allow "yes" and "no" as boolean values.
12759 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12760 Qright under Cocoa.
12761 (focus-follows-mouse): Default to 0 under NS.
12762 * frame.h (enum output_method): Add output_ns.
12763 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12764 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12765 (FRAME_WINDOW_P): NS-specific definition.
12766 * fringe.c (max_used_fringe_bitmap): Make public.
12767 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12768 (getloadavg): Use NeXT code under descendant OS's.
12769 * image.c (includes and header section, x_create_bitmap_from_data)
12770 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12771 (image_background_transparent, x_clear_image_1)
12772 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12773 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12774 (x_to_xcolors, x_from_xcolors, x_disable_image)
12775 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12776 other GUIs, including XPM support using code originally written for
12777 Carbon GUI.
12778 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12779 using NS API.
12780 (image_ascent): Use font metrics macros instead of direct struct field
12781 access.
12782 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12783 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12784 Also, handle NS as GTK for menu bar purposes.
12785 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12786 toolkit where they differ.
12787 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12788 use cachelist, still needed under NS.
12789 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12790 (struct widget_value): Define it here for menu.c.
12791 * keymap.c (includes): Include modifier internals.
12792 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12793 NS.
12794 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12795 support for preferring sequences using certain modifiers, specified by
12796 the FIRSTONLY argument.
12797 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12798 under NS GNUstep implementation.
12799 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12800 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12801 * menu.c: Include nsterm.h under NS.
12802 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12803 (free_menubar_widget_tree_value, update_submenu_strings)
12804 (find_and_call_menu_selection): Treat NS as X and NT.
12805 (find_and_return_menu_selection): New function, used for popup menus.
12806 * nsgui.h:
12807 * nsterm.h:
12808 * nsfns.m:
12809 * nsimage.m:
12810 * nsmenu.m:
12811 * nsselect.m:
12812 * nsterm.m: New files.
12813 * process.c (wait_reading_process_output): Under NS, call ns_select()
12814 instead of plain select().
12815 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12816 beginning of buffer.
12817 * sysselect.h (init_process): Rename when compiling under Cocoa to
12818 avoid name conflict.
12819 * termhooks.h (display_info): Add ns_display_info to union.
12820 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12821 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12822 COCOA environment.
12823 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12824 unexec() signature. (Note, this will dump, but the resulting file
12825 crashes; unexosx is used instead; keeping around for reference and
12826 possible aid in getting dump working under GNUstep.)
12827 * w32gui.h (button_type, widget_value): Remove definitions (now in
12828 keyboard.h).
12829 * window.c: Include nsterm.h when compiling under NS.
12830 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12831 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12832 other GUI windowing systems.
12833 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12834 GTK.
12835 (x_consider_frame_title): Under NS, set icon type and frame
12836 modified-state indicator; use ns_set_name_as_filename() when using
12837 formatted title.
12838 (update_window_cursor): Make public when compiling under NS.
12839 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12840 (hourglass_atimer, Vhourglass_delay
12841 * xfaces.c (header section, init_frame_faces, clear_font_table)
12842 (defined_color, unload_color, x_face_list_fonts)
12843 (prepare_face_for_display): Add NS support parallel to other GUIs.
12844 Emulate GCs like other non-X GUIs.
12845 (split_font_name): Don't lowercase font name under NS.
12846 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12847 under NS.
12848 * s/darwin.h: Add support for compilation under NS.
12849
128502008-07-15 Jason Rumney <jasonr@gnu.org>
12851
12852 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12853 (w32_show_hourglass): Rename from show_hourglass.
12854 (w32_hide_hourglass): Rename from hide_hourglass.
12855 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12856 (Vhourglass_delay): Declare extern.
12857 (hourglass_started): Remove.
12858
12859 * xdisp.c (Vhourglass_delay): Remove static.
12860 (hourglass_started, start_hourglass, cancel_hourglass):
12861 Don't include these versions on WINDOWSNT.
12862
128632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12864
12865 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12866 variables (formerly in xfns.c).
12867 (show_hourglass, hide_hourglass): New prototypes (same).
12868 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12869 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12870 in xfns.c).
12871 (syms_of_xdisp): Declare/initialize display-hourglass,
12872 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12873 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12874 formerly in xfns.c.
12875 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12876 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12877 (start_hourglass, cancel_hourglass): Remove.
12878 (show_hourglass, hide_hourglass): Remove prototypes and static
12879 modifiers.
12880 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12881 hourglass_atimer, hourglass_shown_p declaration/initialization.
12882 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12883 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12884 (start_hourglass, cancel_hourglass): Remove.
12885 (show_hourglass, hide_hourglass): Remove prototypes and static
12886 modifiers.
12887 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12888 hourglass_atimer, hourglass_shown_p declaration/initialization.
12889 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12890 (DEFAULT_HOURGLASS_DELAY): Remove.
12891 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12892 hourglass_shown_p declaration/initialization.
12893
128942008-07-14 Jason Rumney <jasonr@gnu.org>
12895
12896 * w32fns.c (w32_get_arg): Remove wrapper function.
12897 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12898 directly.
12899 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12900
129012008-07-14 Kenichi Handa <handa@m17n.org>
12902
12903 * xfont.c (xfont_open): Add workaround for X's bug.
12904
129052008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12906
12907 * fontset.c: Include <stdio.h> unconditionally.
12908
129092008-07-13 Michael Albinus <michael.albinus@gmx.de>
12910
12911 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12912 for filtering.
12913
129142008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12915
12916 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12917
12918 * m/macppc.h:
12919 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12920
c4cc8b9a 12921 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12922 (SPECIAL_EMACS_INT):
12923 * m/ia64.h (SPECIAL_EMACS_INT):
12924 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12925 * s/gnu.h (NLIST_STRUCT):
12926 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12927 * s/gnu-linux.h (LINUX):
12928 * s/msdos.h (HAVE_FACES):
12929 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12930
12931 * systty.h:
12932 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12933 anymore.
12934
129352008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12936
12937 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12938 always defined as int.
12939
12940 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12941 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12942 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12943 * s/freebsd.h (HAVE_WAIT_HEADER):
12944 * s/bsd-common.h (HAVE_UNION_WAIT):
12945 * s/aix4-2.h (HAVE_WAIT_HEADER):
12946 * m/mips.h (HAVE_UNION_WAIT):
12947 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12948 (COFF, static): Do not define, they are undefined later in the file.
12949
12950 * process.c (update_status): Don't use a union.
12951 (status_convert):
12952 (sigchld_handler): Use int instead of WAITTYPE.
12953
129542008-07-12 Chong Yidong <cyd@stupidchicken.com>
12955
12956 * indent.c (Fvertical_motion): Restore hscroll before moving to
12957 goal column.
12958
129592008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12960
12961 * lisp.h: Remove left over code.
12962
129632008-07-11 Andreas Schwab <schwab@suse.de>
12964
12965 * lisp.h: Fix logic in last change.
12966
12967 * menu.h: New file.
12968 * menu.c: Include it.
12969 * xmenu.c: Likewise.
12970 * Makefile.in: Update dependencies.
12971
129722008-07-11 Kenichi Handa <handa@m17n.org>
12973
12974 * fontset.c (fontset_from_font): Cancel the previous change.
12975
129762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12977
12978 * lisp.h:
12979 * w32heap.c:
12980 * emacs.c:
12981 * alloc.c: Replace all references of NO_UNION_TYPE with
12982 USE_LISP_UNION_TYPE.
12983
12984 * m/xtensa.h (NO_UNION_TYPE):
12985 * m/vax.h (NO_UNION_TYPE):
12986 * m/template.h (NO_UNION_TYPE):
12987 * m/sparc.h (NO_UNION_TYPE):
12988 * m/mips.h (NO_UNION_TYPE):
12989 * m/macppc.h (NO_UNION_TYPE):
12990 * m/m68k.h (NO_UNION_TYPE):
12991 * m/iris4d.h (NO_UNION_TYPE):
12992 * m/intel386.h (NO_UNION_TYPE):
12993 * m/ibms390x.h (NO_UNION_TYPE):
12994 * m/ibms390.h (NO_UNION_TYPE):
12995 * m/ibmrs6000.h (NO_UNION_TYPE):
12996 * m/ia64.h (NO_UNION_TYPE):
12997 * m/hp800.h (NO_UNION_TYPE):
12998 * m/arm.h (NO_UNION_TYPE):
12999 * m/amdx86-64.h (NO_UNION_TYPE):
13000 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13001 defining it the same.
13002
130032008-07-10 Chong Yidong <cyd@stupidchicken.com>
13004
13005 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13006
130072008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13008
13009 * fileio.c:
50426a04 13010 * sysdep.c:
aac0c6e3
MR
13011 * systty.h:
13012 * m/ibmrs6000.h:
13013 * m/iris4d.h:
13014 * s/aix4-2.h:
13015 * s/freebsd.h:
13016 * s/gnu-linux.h:
13017 * s/hpux10-20.h:
13018 * s/hpux11.h:
13019 * s/netbsd.h:
13020 * s/sol2-3.h:
13021 * s/sol2-4.h:
13022 * s/sol2.h:
13023 * s/usg5-4.h:
13024 * s/vms.h: Remove references to unused variables.
13025
130262008-07-10 Andreas Schwab <schwab@suse.de>
13027
13028 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13029 pattern before matching the generic family.
13030
130312008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13032
13033 * unexec.c:
13034 * s/vms.h:
13035 * s/usg5-4-2.h:
13036 * s/sol2-5.h:
13037 * s/freebsd.h:
13038 * s/darwin.h: Remove dead code.
13039
13040 * m/template.h:
13041 * m/sparc.h:
13042 * m/mips.h:
13043 * m/m68k.h:
13044 * m/iris4d.h:
13045 * m/intel386.h:
13046 * m/ibms390x.h:
13047 * m/ibms390.h:
13048 * m/ia64.h:
13049 * m/hp800.h:
13050 * m/arm.h:
13051 * m/amdx86-64.h: Remove dead code and references to unused
13052 and compiler defined symbols.
13053
13054 * unexmips.c:
13055 * unexelf.c: Remove references to desupported systems.
13056
13057 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13058
13059 * m/powermac.h: Remove boilerplate comments.
13060 (NO_REMAP): Remove unused definition.
13061
13062 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13063 define them.
13064
130652008-07-10 Kenichi Handa <handa@m17n.org>
13066
13067 * xfont.c (xfont_open): Log the reason of failure.
13068
130692008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13070
13071 * fontset.c (fontset_get_font_group):
13072 * font.c (font_check_otf): Specify argument types.
13073
130742008-07-09 Kenichi Handa <handa@m17n.org>
13075
13076 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13077 non-ASCII char is found.
13078
13079 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13080 (reorder_font_vector): Change the arg preferred_family to font.
13081 Prefer the spec matching with font.
13082 (fontset_get_font_group): New function.
13083 (fontset_find_font): Change the format of an element of a realized
13084 fontset. Use fontset_get_font_group.
13085 (fontset_font): Try the current fontset, the default fontset, the
13086 fallbacks of the current fontset, and the fallbacks of the default
13087 fontset in this order.
13088 (face_for_char): Delete the shortcut to use the current font.
13089 (fontset_from_font): Don't set fonts for Latin in the fontset.
13090
13091 * font.h (font_make_object, font_match_p): Adjust prototypes.
13092
13093 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13094
13095 * font.c (font_make_object): New arg entity and pixelsize.
13096 (font_check_otf_features, font_check_otf): New functions.
13097 (font_match_p): Check :lang, :script, and :otf properties.
13098
13099 * xfont.c (xfont_open): Adjust it for the change of
13100 font_make_object.
13101 (xfont_text_extents): Fix initial setting of metrics.
13102
13103 * ftfont.c (struct ftfont_info): New member index, delete member
13104 fc_charset_idx. Make the member order compatible with struct
13105 xftfont_info.
13106 (fc_charset_table): Change charset names to registry names.
13107 (ftfont_pattern_entity): Delete the args registry and
13108 fc_charset_idx. Change the value of :font-entity property
13109 to (FONTNAME . INDEX). Always set :registry property to
13110 `iso10646-1'.
13111 (struct ftfont_cache_data): New struct.
13112 (ftfont_lookup_cache): New arg for_face.
13113 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13114 (ftfont_driver): Set the member otf_capability.
13115 (ftfont_get_charset): Adjust it for the change of
13116 fc_charset_table.
13117 (OTF_TAG_SYM): New macro.
13118 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13119 for the change of fc_charset_table.
13120 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13121 ftfont_pattern_entity. Add FC_INDEX to objset.
13122 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13123 and ftfont_pattern_entity.
13124 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13125 font_make_object, struct ftfont_info.
13126 (ftfont_has_char): Use ftfont_get_fc_charset.
13127 (ftfont_otf_features, ftfont_otf_capability): New functions.
13128 (ftfont_shape): Use ftfont_get_otf.
13129 (ftfont_text_extents): Fix initial setting of metrics.
13130
13131 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13132 member order compatible with struct ftfont_info.
13133 (xftfont_open): Add FC_CHARSET to the pattern. Set
13134 xftfont_info->ft_size. Don't unlock the face. Check BDF
13135 properties if appropriate.
13136 (xftfont_close): Unlock the face.
13137 (xftfont_anchor_point, xftfont_shape): Deleted.
13138 (syms_of_xftfont): Don't set members anchor_point and shape of
13139 xftfont_driver.
13140
13141 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13142 font_make_object.
13143
13144 * w32font.c (w32font_open): Adjust it for the change of
13145 font_make_object.
13146 (w32font_open_internal): Don't set properties of font_object here.
13147
131482008-07-08 Chong Yidong <cyd@stupidchicken.com>
13149
13150 * macfns.c (x_create_tip_frame):
13151 * w32fns.c (x_create_tip_frame):
13152 * xfns.c (x_create_tip_frame): Pass parameter argument to
13153 face-set-after-frame-default.
13154
13155 * xfaces.c (Finternal_merge_in_global_face): Save merged
13156 attributes for the default face back into the face vector.
13157
131582008-07-08 Andreas Schwab <schwab@suse.de>
13159
13160 * fontset.h: Declare fontset_from_font. Don't declare
13161 new_fontset_from_font and fontset_from_font_name.
13162 * xterm.c: Include "fontset.h".
13163 * Makefile.in (xterm.o): Update dependencies.
13164
131652008-07-08 Glenn Morris <rgm@gnu.org>
13166
13167 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13168 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13169
131702008-07-07 Chong Yidong <cyd@stupidchicken.com>
13171
13172 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13173 (x_set_frame_parameters): Don't bind it.
13174
131752008-07-07 Juanma Barranquero <lekktu@gmail.com>
13176
13177 * w32fns.c (map_w32_filename): Declare extern.
13178
131792008-07-07 Jason Rumney <jasonr@gnu.org>
13180
13181 * w32term.c (WS_EX_LAYERED): Define if not already.
13182
131832008-07-06 Chong Yidong <cyd@stupidchicken.com>
13184
13185 * xfaces.c (set_font_frame_param): Don't try to set the font
13186 parameter if it is still unspecified in the lface.
13187
131882008-07-05 Chong Yidong <cyd@stupidchicken.com>
13189
13190 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13191 face if it didn't already exist.
13192
13193 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13194
131952008-07-05 Andreas Schwab <schwab@suse.de>
13196
13197 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13198
131992008-07-05 Chong Yidong <cyd@stupidchicken.com>
13200
13201 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13202 word-wrapping.
13203 (IT_DISPLAYING_WHITESPACE): New macro.
13204 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13205 when word-wrapping. Simplify word-wrapping logic. Use correct
13206 pixel positions when saving copies of the iterator.
13207 (display_line): Use proper wrap point if the last character on a
13208 line was preceded by whitespace.
13209
132102008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13211
13212 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13213
132142008-07-04 Kenichi Handa <handa@m17n.org>
13215
13216 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13217
13218 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13219
132202008-07-02 Jason Rumney <jasonr@gnu.org>
13221
13222 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13223 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13224
13225 * xdisp.c (next_element_from_display_vector): Move assignment out
13226 of if statement.
13227
132282008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13229
13230 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13231
13232 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13233 (syms_of_fileio): Initialize and export them.
13234 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13235
13236 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13237 (Fsystem_move_file_to_trash): New function.
13238 (syms_of_w32fns): Export it to lisp.
13239
132402008-07-01 Jason Rumney <jasonr@gnu.org>
13241
13242 * w32font.c (w32font_text_extents): Don't count overhang as part
13243 of width.
13244
132452008-06-30 Miles Bader <miles@gnu.org>
13246
13247 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13248 Add `avoid_cursor_p' field.
13249
13250 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13251 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13252 (append_glyph, append_composite_glyph, produce_image_glyph)
13253 (append_stretch_glyph): Initialize avoid_cursor_p.
13254 (get_it_property): Rename from `get_line_height_property'.
13255 (x_produce_glyphs): Use get_it_property.
13256 (handle_line_prefix, push_display_prop): New functions.
13257 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13258 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13259 New variables.
13260 (syms_of_xdisp): Initialize them.
13261
132622008-06-30 Kenichi Handa <handa@m17n.org>
13263
13264 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13265 XftDefaultSubstitute (they are called in XftFontMatch).
13266 (xftfont_open): Fix args to ftfont_font_format.
13267
13268 * ftfont.c (fc_charset_table): New member lang.
13269 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13270 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13271 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13272 (ftfont_open): Fix args to ftfont_font_format.
13273 (ftfont_font_format): New arg filename.
13274
132752008-06-30 Chong Yidong <cyd@stupidchicken.com>
13276
13277 * xfaces.c (Finternal_merge_in_global_face): If default face was
13278 modified, realize it again. Update the font face attribute.
13279
132802008-06-29 Jason Rumney <jasonr@gnu.org>
13281
13282 * w32term.c (x_set_frame_alpha): Fix logic.
13283
132842008-06-29 Kenichi Handa <handa@m17n.org>
13285
13286 * fontset.c (Finternal_char_font): Return font-object instead of
13287 font-name.
13288
13289 * composite.c (get_composition_id): Fix the width calculation for TAB.
13290
132912008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13292
13293 * indent.c (Fvertical_motion): Properly handle float column arg.
13294
132952008-06-28 Jason Rumney <jasonr@gnu.org>
13296
13297 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13298 (pfnSetLayeredWindowAttributes): New function pointer.
13299 (w32_initialize): Initialize it when supported.
13300 (x_set_frame_alpha): New function.
13301
13302 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13303 (w32_frame_parm_handlers): Set alpha handler.
13304
13305 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13306
133072008-06-27 Jason Rumney <jasonr@gnu.org>
13308
13309 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13310 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13311 (w32_to_x_charset, x_to_w32_charset)
13312 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13313 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13314 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13315 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13316 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13317 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13318 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13319 (Qw32_charset_unicode): Remove.
13320 (syms_of_w32fns): Update for above changes.
13321
13322 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13323 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13324 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13325 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13326 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13327 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13328 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13329 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13330 (syms_of_w32font): Update for above changes.
13331
133322008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13333
13334 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13335 removed #if.
13336 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13337
133382008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13339 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13340
13341 * makefile.w32-in (LOCAL_FLAGS):
13342 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13343
13344 * sysdep.c (_spawnlp, _getpid):
13345 Declare with explicit _cdecl instead of _CRTAPI1.
13346
13347 * editfns.c (Fget_internal_run_time):
13348 Check for WINDOWSNT with #ifdef, not #if.
13349
133502008-06-26 Jason Rumney <jasonr@gnu.org>
13351
13352 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13353
13354 * w32term.c (x_draw_glyph_string_foreground)
13355 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13356 Use FONT_HANDLE macro.
13357 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13358
13359 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13360 (uniscribe_encode_char): Use FONT_HANDLE macro.
13361
13362 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13363 (w32font_text_extents): Use precast w32_font.
13364 (w32font_close): Free cached metrics.
13365 (w32font_open_internal): Allocate space for name on stack.
13366
133672008-06-26 Chong Yidong <cyd@stupidchicken.com>
13368
13369 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13370
133712008-06-26 Jason Rumney <jasonr@gnu.org>
13372
13373 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13374 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13375
133762008-06-26 Juanma Barranquero <lekktu@gmail.com>
13377
13378 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13379
133802008-06-26 Jason Rumney <jasonr@gnu.org>
13381
13382 * w32bdf.c, w32bdf.h: Remove obsolete files.
13383
13384 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13385
13386 * w32gui.h: Don't include w32bdf.h.
13387 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13388 Remove obsolete font support.
13389
13390 * w32font.h (struct w32font_info): Remove compat_w32_font.
13391 Add hfont member.
13392 (FONT_COMPAT): Remove obsolete macro.
13393
13394 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13395 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13396 (w32font_open_internal): Remove compat code. Set new hfont member.
13397 (Fx_select_font): Use new hfont member.
13398
13399 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13400 (uniscribe_encode_char): Use new hfont member.
13401
13402 * w32term.c (x_draw_glyph_string_foreground)
13403 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13404 (x_draw_glyph_string): Use metrics in w32font_info.
13405
134062008-06-26 Kenichi Handa <handa@m17n.org>
13407
13408 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13409
134102008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13411
13412 * unexnext.c:
13413 * m/ews4800.h:
13414 * m/hp9000s300.h:
13415 * m/ibm370aix.h:
13416 * m/mips-siemens.h:
13417 * m/ncr386.h:
13418 * m/next.h:
13419 * m/pmax.h:
13420 * m/powerpcle.h:
13421 * m/tandem-s2.h:
13422 * s/386bsd.h:
13423 * s/bsd386.h:
13424 * s/bsd4-1.h:
13425 * s/bsd4-2.h:
13426 * s/bsdos2-1.h:
13427 * s/bsdos2.h:
13428 * s/bsdos3.h:
13429 * s/bsdos4.h:
13430 * s/nextstep.h:
13431 * s/ultrix4-3.h:
13432 * s/usg5-0.h:
13433 * s/usg5-2-2.h:
13434 * s/usg5-2.h:
13435 * s/usg5-4-3.h:
13436 * s/ux4800.h:
13437 * s/uxpds.h:
13438 * s/uxpv.h: Remove support for obsolete systems.
13439 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13440 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13441 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13442 Remove, insert contents in s/aix4-2.h.
13443 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13444 * s/bsd4-3.h: Rename to ...
13445 * s/bsd-common.h: ... this.
13446 * data.c:
13447 * doc.c:
13448 * ecrt0.c:
13449 * emacs.c:
13450 * fileio.c:
13451 * floatfns.c:
13452 * keyboard.c:
13453 * mem-limits.h:
13454 * print.c:
13455 * process.c:
13456 * sysdep.c:
13457 * syssignal.h:
13458 * systty.h:
13459 * syswait.h:
13460 * term.c:
13461 * unexec.c:
13462 * unexelf.c:
13463 * unexhp9k800.c:
13464 * m/hp800.h:
13465 * m/ibmrs6000.h:
13466 * m/mips.h:
13467 * m/vax.h:
13468 * s/darwin.h:
13469 * s/freebsd.h:
13470 * s/gnu.h:
13471 * s/ms-w32.h:
13472 * s/msdos.h:
13473 * s/netbsd.h:
13474 * s/template.h: Remove references to obsolete variables.
13475
13476 * Makefile.in: Add dependencies for all unexec files.
13477 (admindir): Remove unused variable.
13478 (UNEXEC_SRC): Remove references.
13479
134802008-06-25 Chong Yidong <cyd@stupidchicken.com>
13481
13482 * xfns.c (x_default_font_parameter): If Xft is available, first
13483 try Monospace-12 for the default font.
13484
134852008-06-25 Jason Rumney <jasonr@gnu.org>
13486
13487 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13488
134892008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13490
13491 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13492
13493 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13494
134952008-06-25 Juanma Barranquero <lekktu@gmail.com>
13496
13497 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13498 <scroll-conservatively>: Fix typo in docstring.
13499
13500 * xselect.c (Fx_send_client_event): Doc fix.
13501
135022008-06-25 Kenichi Handa <handa@m17n.org>
13503
13504 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13505
13506 * font.c (font_parse_fcname): Remove unused variables.
13507 (font_sort_entites): Delete the arg SPEC. Caller changed.
13508 Fix for the case of ! best_only.
13509 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13510
13511 * lisp.h (Fstring_to_unibyte): EXFUN it.
13512
13513 * character.h (str_to_unibyte): Extern it.
13514
13515 * character.c (str_to_unibyte): New function.
13516
13517 * fns.c (Fstring_to_unibyte): New function.
13518 (syms_of_fns): Defsubr it.
13519
135202008-06-24 Kenichi Handa <handa@m17n.org>
13521
13522 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13523 DPI too.
13524 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13525
135262008-06-24 Andreas Schwab <schwab@suse.de>
13527
13528 * Makefile.in (${lispsource}loaddefs.el): Rename from
13529 ../lisp/loaddefs.el.
13530 (bootstrap-clean): Do what distclean does but don't remove
13531 Makefile.
13532 (distclean): Depend on bootstrap-clean and remove Makefile.
13533
135342008-06-24 Chong Yidong <cyd@stupidchicken.com>
13535
13536 * buffer.h (struct buffer): New member word_wrap.
13537
13538 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13539 word-wrap.
13540 (init_buffer_once): Initialize them.
13541
13542 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13543 line_wrap enum possessing three possible values.
13544
13545 * termopts.h: Replace truncate_partial_width_windows with
13546 Vtruncate_partial_width_windows.
13547
13548 * dispnew.c (direct_output_for_insert): Avoid direct output when
13549 inserting a space with word wrap on.
13550
13551 * indent.c (compute_motion): Obey integer values of
13552 truncate-partial-width-windows.
13553
13554 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13555 replacing truncate_partial_width_windows.
13556 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13557 truncate only if the window width is below that integer.
13558 (start_display, resize_mini_window, produce_stretch_glyph)
13559 (display_string, move_it_in_display_line_to): Use line_wrap.
13560 (back_to_previous_visible_line_start, reseat_1): Reset
13561 string_from_display_prop_p.
13562 (display_line): Extend default face to end of line when wrapping.
13563
135642008-06-24 Kim F. Storm <storm@cua.dk>
13565
13566 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13567 to wrap continued lines at word boundaries.
13568
135692008-06-24 Jason Rumney <jasonr@gnu.org>
13570
13571 * font.c (Ffont_face_attributes): Multiply pixel size before point
13572 conversion to avoid multiplying rounding error.
13573
135742008-06-23 Jason Rumney <jasonr@gnu.org>
13575
13576 * w32term.c (x_draw_glyph_string_background)
13577 (x_draw_glyph_string): Remove old bdf font code.
13578
13579 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13580
135812008-06-22 Kenichi Handa <handa@m17n.org>
13582
13583 * font.c (font_find_for_lface): Try the adstyle specified in
13584 the property of LFACE_FONT of LFACE (if any).
13585
135862008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13587 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13588
13589 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13590
135912008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13592
13593 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13594 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13595 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13596 (witness-emacs): Remove.
13597 (lisp, shortlisp): Move loaddefs.el earlier.
13598 (mostlyclean): Forget about witness-emacs.
13599
136002008-06-22 Glenn Morris <rgm@gnu.org>
13601
13602 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13603 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13604
136052008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13606
13607 * Makefile.in (PRECOMP): Remove.
13608 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13609 (witness-emacs): Run `compile-first'.
13610 (.el.elc): Use the new compile-onefile target.
13611
136122008-06-21 Kenichi Handa <handa@m17n.org>
13613
13614 * xftfont.c (xftfont_open): Handle QCembolden only when
13615 FC_EMBOLDEN is defined.
13616
136172008-06-21 Andreas Schwab <schwab@suse.de>
13618
13619 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13620 (.el.elc): Likewise.
13621
136222008-06-21 Miles Bader <miles@gnu.org>
13623
13624 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13625 build dir, not the lisp source dir.
13626
136272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13628
13629 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13630 (bootstrapclean): Remove.
13631 (.el.elc): New rule.
13632 (PRECOMP): New var.
13633 (../lisp/subdirs.el): Remove.
13634 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13635 (witness-emacs): New target.
13636 (mostlyclean): Remove witness-emacs as well.
13637 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13638 Add witness-emacs dependency.
13639
136402008-06-20 Chong Yidong <cyd@stupidchicken.com>
13641
13642 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13643 defined by the font.
13644
136452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13646
13647 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13648 (bootstrap-clean): New target that keeps TAGS around.
13649 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13650 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13651
136522008-06-20 Jason Rumney <jasonr@gnu.org>
13653
13654 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13655 Remove obsolete font code.
13656
13657 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13658 to determine language support.
13659
136602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13661
13662 * sysdep.c (cfsetspeed): New fun extracted from the code.
13663 (cfmakeraw): Move before first use.
13664
136652008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13666
13667 * sysdep.c (cfmakeraw): Provide fallback implementation.
13668 (serial_configure): Provide fallback implementation of cfsetspeed.
13669
136702008-06-20 Kenichi Handa <handa@m17n.org>
13671
13672 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13673 the pattern.
13674
13675 * fontset.c (fontset_from_font): Copy font_spec before changing
13676 the elements.
13677
13678 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13679
136802008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13681
13682 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13683 for explicit `font' parameters.
13684
13685 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13686
136872008-06-19 Kenichi Handa <handa@m17n.org>
13688
13689 * frame.c: Include <ctype.h>.
13690 (x_set_font_backend): Allow spacing characters in the X resource
13691 for FontBackend.
13692
136932008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13694
13695 * w32fns.c, xfns.c (Qfont_param): New var.
13696 (syms_of_w32fns): Initialize it.
13697 (x_default_font_parameter): Record explicit `font' into
13698 `font-parameter'.
13699
137002008-06-18 Kenichi Handa <handa@m17n.org>
13701
13702 * font.c (font_parse_xlfd): Fix previous change.
13703 (font_parse_fcname): Don't use :fc-unknown-spec.
13704 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13705 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13706 (font_add_log): Prepend the driver name to the resulting fonts.
13707
13708 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13709 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13710 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13711
13712 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13713 (QCembolden): New variables.
13714 (syms_of_xftfont): DEFSYM them.
13715 (xftfont_open): Call XftFontMatch. Don't trust the result of
13716 XftTextExtents8 if the pixel_size is less than 5.
13717
137182008-06-18 Andreas Schwab <schwab@suse.de>
13719
13720 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13721 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13722
137232008-06-18 Jason Rumney <jasonr@gnu.org>
13724
13725 * w32font.c (w32font_list, w32font_match): Add logging.
13726
13727 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13728
137292008-06-17 Chong Yidong <cyd@stupidchicken.com>
13730
13731 * font.c (font_parse_fcname): Store divider characters for
13732 unknown-spec list. For known key symbols, intern using correct
13733 symbol name.
13734
137352008-06-17 Kenichi Handa <handa@m17n.org>
13736
13737 * xfaces.c (realize_default_face): If the frame is not on window
13738 system, set the fontset of face to nil.
13739
137402008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13741
13742 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13743
137442008-06-16 Juanma Barranquero <lekktu@gmail.com>
13745
13746 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13747 (build_font_name_from_vector): Delete externs.
13748
13749 * xfaces.c (struct font_name): Don't declare.
13750
137512008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13752
13753 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13754
137552008-06-16 Chong Yidong <cyd@stupidchicken.com>
13756
13757 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13758
137592008-06-16 Juanma Barranquero <lekktu@gmail.com>
13760
13761 * font.c (Ffont_spec): Fix usage in docstring.
13762 (Ffont_face_attributes): Doc fix.
13763
137642008-06-16 Andreas Schwab <schwab@suse.de>
13765
13766 * font.c (Ffont_face_attributes): Fix definition.
13767
137682008-06-16 Jason Rumney <jasonr@gnu.org>
13769
13770 * font.h (font_style_symbolic_from_value): Remove.
13771
13772 * font.c (font_style_symbolic_from_value): Remove.
13773 (font_style_symbolic): Revert to pre 2008-06-13 version.
13774
13775 * w32font.c (w32_to_fc_weight): New function.
13776 (w32font_full_name, logfont_to_fcname): Use it.
13777
137782008-06-16 Kenichi Handa <handa@m17n.org>
13779
13780 * font.c (font_check_object): Delete it.
13781 (font_clear_cache): Check if a font-object is alive.
13782 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13783 font-object to nil.
13784 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13785 (font_at): Don't call font_check_object.
13786 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13787
137882008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13789
13790 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13791
137922008-06-16 Chong Yidong <cyd@stupidchicken.com>
13793
13794 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13795
137962008-06-15 Chong Yidong <cyd@stupidchicken.com>
13797
13798 * font.c (font_parse_fcname): Only one decimal point.
13799 (font_unparse_fcname): Handle data in family and foundry indices
13800 as symbols, not strings.
13801 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13802
13803 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13804
13805 * font.h (font_unparse_gtkname): Add prototype.
13806
138072008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13808
13809 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13810
138112008-06-15 Andreas Schwab <schwab@suse.de>
13812
13813 * font.c (font_update_drivers): Fix crash when no drivers match.
13814
138152008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13816
13817 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13818 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13819
138202008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13821
13822 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13823
138242008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13825
13826 * process.c (Fserial_process_configure, Fprocess_send_eof):
13827 Use EQ to compare Lisp_Objects.
13828
138292008-06-13 Jason Rumney <jasonr@gnu.org>
13830
13831 * w32fns.c (Fw32_select_font): Remove old font API function.
13832
13833 * w32font.c (logfont_to_fcname): New function.
13834 (Fx_select_font): New font dialog function compatible with
13835 GTK/fontconfig version.
13836
13837 * font.c (font_style_symbolic_from_value): New function.
13838 (font_style_symbolic): Use it.
13839
13840 * font.h (font_style_symbolic_from_value): Declare new function.
13841
138422008-06-13 Juanma Barranquero <lekktu@gmail.com>
13843
13844 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13845 <font-width-table>: Fix typos in docstrings.
13846
138472008-06-13 Daniel Engeler <engeler@gmail.com>
13848
13849 These changes add serial port access.
13850 * process.c: Add HAVE_SERIAL.
13851 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13852 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13853 (list_processes_1, select_wrapper, Fstop_process)
13854 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13855 (status_notify): Modify to handle serial processes.
13856 [HAVE_SERIAL] (Fserial_process_configure)
13857 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13858 New functions.
13859 * process.h (struct Lisp_Process): Add `type'.
13860 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13861 New functions.
13862 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13863 serial ports.
b71ac3dd 13864 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13865 * w32.h: Add FILE_SERIAL.
13866 (struct _child_process): Add ovl_read, ovl_write.
13867
138682008-06-13 Kenichi Handa <handa@m17n.org>
13869
13870 * dispextern.h (enum lface_attribute_index): New member
13871 LFACE_FOUNDRY_INDEX.
13872
13873 * font.c (font_score): Delete arg alternate_families. Check only
13874 weight, slant, width, and size. Ignore the difference of alias
13875 style symbols.
13876 (font_sort_entites): Adjust for the above change. Reflect the
13877 order of font-driver to scores.
13878 (font_list_entities): Don't check alternate_familes here.
13879 (font_clear_prop): Handle foundry.
13880 (font_update_lface): Don't parse "foundry-family" form here.
13881 Handle FONT_FOUNDRY_INDEX.
13882 (font_find_for_lface): Likewise. Handle alternate families here.
13883 If registry is nil, try iso8859-1 and ascii-0.
13884 (font_open_for_lface): Pay attention to size in ENTITY.
13885 (font_open_by_name): Simplify by calling font_load_for_lface.
13886 (free_font_driver_list): Delete it.
13887 (font_update_drivers): Preserve the order of backends.
13888 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13889 of font_score and font_sort_entites.
13890 (font_update_sort_order): Likewise.
13891
13892 * xfaces.c (LFACE_FOUNDRY): New macro.
13893 (check_lface_attrs): Check foundry.
13894 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13895 (merge_face_vectors): Check foundry.
13896 (merge_face_ref): Likewise.
13897 (Finternal_set_lisp_face_attribute): Likewise.
13898 (x_update_menu_appearance): Likewise.
13899 (Finternal_get_lisp_face_attribute): Likewise.
13900 (lface_hash): Likewise.
13901 (lface_same_font_attributes_p): Likewise.
13902 (x_supports_face_attributes_p): Likewise.
13903 (tty_supports_face_attributes_p): Likewise.
13904 (Finternal_set_alternative_font_family_alist): Intern strings.
13905 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13906 (realize_default_face): Set LFACE_FOUNDRY (lface).
13907
13908 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13909 font-driver at first.
13910
13911 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13912
139132008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13914
13915 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13916
139172008-06-12 Jim Meyering <meyering@redhat.com>
13918
13919 Make unexec_free handle NULL the same way free does.
13920 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13921
139222008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13925 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13926 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13927 (WEAK_ALIAS): Simplify.
13928 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13929 when searching a unibyte buffer.
13930
139312008-06-12 Chong Yidong <cyd@stupidchicken.com>
13932
13933 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13934
139352008-06-12 Juanma Barranquero <lekktu@gmail.com>
13936
13937 * w32font.c: Include ctype.h.
13938
139392008-06-11 Jason Rumney <jasonr@gnu.org>
13940
13941 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13942 misreported as space.
13943 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13944 as aliases for registry iso10646-1.
13945
139462008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13947
13948 * buffer.c (clone_per_buffer_values): Skip `name'.
13949
139502008-06-11 Chong Yidong <cyd@stupidchicken.com>
13951
13952 * font.c (font_parse_fcname): Fix last change; accept decimal
13953 points in font size.
13954
139552008-06-10 Jason Rumney <jasonr@gnu.org>
13956
13957 * w32uniscribe.c (add_opentype_font_name_to_list):
13958 Skip non unicode fonts.
13959
139602008-06-10 Chong Yidong <cyd@stupidchicken.com>
13961
13962 * xfns.c (Fx_font_dialog): New function.
13963
13964 * gtkutil.c (xg_dialog_response_cb): Rename from
13965 xg_file_response_callback.
13966 (pop_down_dialog): Rename from pop_down_file_dialog.
13967 (xg_get_file_name): Callers changed.
13968 (xg_get_font_name): New function.
13969
13970 * gtkutil.h (xg_get_font_name): Insert prototype.
13971
139722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13973
13974 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13975 x_underline_minimum_display_offset.
13976 (syms_of_xdisp): Declare it here rather than in xterm.c.
13977 * dispextern.h (underline_minimum_offset): Declare it.
13978 * w32term.c (x_draw_glyph_string): Use it.
13979 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13980 (syms_of_xterm): Don't declare it any more.
13981 (x_draw_glyph_string): Adjust to the new name.
13982
8719abec 139832008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13984
13985 * xterm.c (x_underline_minimum_display_offset): New var.
13986 (x_draw_glyph_string): Use it.
13987 (syms_of_xterm): Declare it.
13988
139892008-06-10 Chong Yidong <cyd@stupidchicken.com>
13990
13991 * font.c (font_parse_fcname): Accept GTK-style font names too.
13992
139932008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13994
13995 * dired.c (file_name_completion): Don't return t if the match is exact
13996 but with different capitalization.
13997 * minibuf.c (Ftry_completion): Simplify.
13998
13999 * window.c (Vwindow_point_insertion_type): New var.
14000 (set_window_buffer): Use it.
14001 (syms_of_window): Init and export it to Lisp.
14002
140032008-06-10 Kenichi Handa <handa@m17n.org>
14004
14005 * font.h (font_intern_prop): Prototype adjusted.
14006
14007 * font.c (font_intern_prop): New arg force_symbol.
14008 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14009 Adjust for the change of font_intern_prop.
14010
14011 * ftfont.c (ftfont_pattern_entity):
14012 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14013 (w32_registry):
14014 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14015 the change of font_intern_prop.
14016
140172008-06-09 Juanma Barranquero <lekktu@gmail.com>
14018
14019 * w32menu.c (digest_single_submenu): Declare extern.
14020
140212008-06-09 Jason Rumney <jasonr@gnu.org>
14022
14023 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14024
14025 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14026 (parse_single_submenu): Remove.
14027 (digest_single_submenu): Remove.
14028 (syms_of_w32menu): Don't initialise variables that have moved
14029 to menu.c.
14030 (set_frame_menubar): Sync with version in xmenu.c.
14031 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14032
14033 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14034 Make static again.
14035
140362008-06-09 Jason Rumney <jasonr@gnu.org>
14037
14038 Changes to w32 files related to the move of common menu code
14039 to menu.c on 2008-06-08 by Chong Yidong.
14040
14041 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14042 defs to w32gui.h.
14043 (single_keymap_panes, push_menu_item, push_menu_pane):
14044 Make globally visible.
14045
14046 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14047 (local_free, malloc_widget_value, free_widget_value)
14048 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14049 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14050 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14051 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14052 (menu_items, menu_items_allocated, menu_items_used)
14053 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14054 (init_menu_items, finish_menu_items, discard_menu_items)
14055 (grow_menu_items, push_submenu_start, push_submenu_end)
14056 (push_left_right_boundary, push_menu_pane, push_menu_item)
14057 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14058 (free_menubar_widget_tree_value, parse_single_submenu)
14059 (update_submenu_strings): Remove functions.
14060 (xmalloc_widget_value): Remove and declare extern.
14061
14062 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14063 (OBJ1): Build it.
14064
14065 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14066 (local_heap, local_alloc, local_free, malloc_widget_value)
14067 (free_widget_value): Define here.
14068
140692008-06-09 Kenichi Handa <handa@m17n.org>
14070
14071 * font.h (Qascii_0): Extern it.
14072
14073 * font.c (Qascii_0): New variable.
14074 (syms_of_font): DEFSYM it.
14075 (font_open_by_name): If the registry "iso8859-1" fails, try also
14076 "ascii-0".
14077
14078 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14079
140802008-06-08 Kenichi Handa <handa@m17n.org>
14081
14082 * .gdbinit (xfont): New command.
14083
140842008-06-08 Andreas Schwab <schwab@suse.de>
14085
14086 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14087 * Makefile.in (menu.o): Update dependencies.
14088
14089 * Makefile.in (obj): Always add menu.o.
14090 * emacs.c (main): Always call syms_of_menu.
14091 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14092
140932008-06-08 Chong Yidong <cyd@stupidchicken.com>
14094
14095 * Makefile.in: Compile menu.c.
14096
14097 * lisp.h: Declare syms_of_menu.
14098
14099 * emacs.c (main): Call syms_of_menu.
14100
14101 * keyboard.h: Relocate platform-independent menu definitions from
14102 xmenu.c.
14103
14104 * menu.c: New file. Relocate platform-independent menu
14105 definitions from xmenu.c. Suggested by Adrian Robert.
14106
14107 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14108 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14109 (menu_items_used, menu_items_n_panes)
14110 (menu_items_submenu_depth): Move to keyboard.h.
14111 (init_menu_items, finish_menu_items, unuse_menu_items)
14112 (discard_menu_items, restore_menu_items, save_menu_items)
14113 (grow_menu_items, push_submenu_start, push_submenu_end)
14114 (push_left_right_boundary, push_menu_pane, push_menu_item)
14115 (keymap_panes, single_keymap_panes, single_menu_item)
14116 (list_of_panes, list_of_items, find_and_call_menu_selection)
14117 (xmalloc_widget_value, free_menubar_widget_value_tree)
14118 (parse_single_submenu, digest_single_submenu)
14119 (update_submenu_strings): Move to menu.c.
14120
141212008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14122
14123 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14124
141252008-06-06 Miles Bader <miles@gnu.org>
14126
14127 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14128 face, not frame default.
14129
141302008-06-05 Martin Rudalics <rudalics@gmx.at>
14131
14132 * window.c (pop_up_windows, pop_up_frames)
14133 (display_buffer_reuse_frames, Vpop_up_frame_function)
14134 (Vdisplay_buffer_function, Veven_window_heights)
14135 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14136 (Vspecial_display_function, Vsame_window_buffer_names)
14137 (Vsame_window_regexps, split_height_threshold)
14138 (Vsplit_window_preferred_function): Move those vars to window.el.
14139 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14140 (Fdisplay_buffer): Move those functions to window.el.
14141 (syms_of_window): Remove corresponding declarations.
14142 (display_buffer): New function.
14143 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14144 * dispnew.c (Flast_nonminibuf_frame): New function.
14145 * buffer.c (Fpop_to_buffer): Move to window.el.
14146
141472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14148
14149 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14150
141512008-06-05 Kenichi Handa <handa@m17n.org>
14152
14153 * coding.c (detect_coding): Fix previous change.
14154 (detect_coding_system): Likewise.
14155
141562008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14157
14158 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14159
14160 * keymap.c (Vminibuffer_local_filename_must_match_map):
14161 Rename from Vminibuffer_local_must_match_filename_map.
14162 (syms_of_keymap):
14163 * minibuf.c (Fcompleting_read): Adjust accordingly.
14164 * commands.h: Rename declaration as well.
14165
141662008-06-05 Kenichi Handa <handa@m17n.org>
14167
14168 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14169 family name.
14170 (Ffont_put): Likewise.
14171
14172 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14173 current font-spec.
14174
14175 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14176 is unspecified.
14177
14178 * xfaces.c (realize_x_face): If the font-related face attributes
14179 are the same as those of default face, realize a new fontset from
14180 default->fontset.
14181 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14182
141832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14184
14185 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14186 (move_it_in_display_line): New wrapper.
14187
14188 * window.c (window_scroll_pixel_based_preserve_x)
14189 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14190 (window_scroll_pixel_based, window_scroll_line_based):
14191 Use them to preserve column positions.
14192 (syms_of_window): Initialize them.
14193
14194 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14195 (HPOS . VPOS) pair.
14196
14197 * dispextern.h (move_it_in_display_line): Declare.
14198
141992008-06-05 Juanma Barranquero <lekktu@gmail.com>
14200
14201 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14202 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14203 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14204
142052008-06-04 Juanma Barranquero <lekktu@gmail.com>
14206
14207 * window.c (Fset_window_parameter): Doc fix.
14208 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14209
142102008-06-04 Joakim Verona <joakim@verona.se>
14211
14212 * window.h (struct window): Add new member window_parameters.
14213
14214 * window.c (Fwindow_parameters, Fwindow_parameter)
14215 (Fset_window_parameter): New defuns.
14216 (syms_of_window): Defsubr the new defuns.
14217 (make_window): Initialize window_parameters to nil.
14218
142192008-06-04 John Paul Wallington <jpw@pobox.com>
14220
14221 * eval.c (Fdefmacro): Doc fix.
14222
142232008-06-04 Kenichi Handa <handa@m17n.org>
14224
14225 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14226 Be sure to call setup_coding_system when we find a proper coding system.
14227 (detect_coding_system): Fix handling of coding->head_ascii.
14228
142292008-06-03 Andreas Schwab <schwab@suse.de>
14230
14231 * font.c (font_prop_validate_spacing): Fix last change.
14232
142332008-06-03 Kenichi Handa <handa@m17n.org>
14234
14235 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14236 (font_parse_fcname): Fix handling of unknown key.
14237
14238 * xfont.c (xfont_list): Try an alias.
14239
14240 * charset.c (char_charset): Return NULL if the arg charset_list is
14241 specified and C doesn't belong to any of them.
14242
142432008-06-02 Chip Coldwell <coldwell@redhat.com>
14244
14245 * font.c (font_pixel_size): Don't take cdr of an integer.
14246
142472008-06-02 Jim Meyering <meyering@redhat.com>
14248
14249 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14250 * alloc.c (xfree): Return right away for a NULL arg.
14251 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14252 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14253 * mac.c (create_apple_event_from_event_ref): Likewise.
14254 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14255 Likewise.
14256 * doprnt.c (doprnt1): Likewise.
14257 * frame.c (frame): Likewise.
14258 * keyboard.c (wipe_kboard): Likewise.
14259 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14260 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14261 * term.c (tty_default_color_capabilities, maybe_fatal)
14262 (delete_tty): Likewise.
14263 * w16select.c (string): Likewise.
14264 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14265 * w32bdf.c (w32_free_bdf_font): Likewise.
14266 * w32fns.c (w32_unload_font): Likewise.
14267 * w32font.c (w32font_close): Likewise.
14268 * window.c (size_window): Likewise.
14269 * xselect.c (receive_incremental_selection): Likewise.
14270 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14271 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14272 * w32.c (stat): Likewise.
14273
14274 Remove useless if-before-free tests.
14275 * editfns.c (Fset_time_zone_rule): Likewise.
14276 * lread.c (nosuffix): Likewise.
14277 * ralloc.c (get_bloc): Likewise.
14278 * regex.c (reg_free): Likewise.
14279 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14280 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14281 * xsmfns.c (smc_save_yourself_CB): Likewise.
14282
142832008-06-02 Kenichi Handa <handa@m17n.org>
14284
14285 * font.c (font_find_for_lface): Handle float font size.
14286 (font_open_for_lface): Likewise.
14287
14288 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14289 comparing the properties.
14290
142912008-06-01 Jason Rumney <jasonr@gnu.org>
14292
14293 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14294 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14295 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14296 Don't add empty script list.
14297 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14298
142992008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14300
14301 * Makefile.in (dot, dotdot): Remove, update users.
14302 ".." has been used elsewhere in the file for a long time.
14303 (LIBXT_STATIC): Remove conditional based on unused variable.
14304
143052008-06-01 Miles Bader <miles@gnu.org>
14306
14307 * xfaces.c (Vface_remapping_alist): New variable.
14308 (syms_of_xfaces): Initialize it.
14309 (enum named_merge_point_kind): New type.
14310 (struct named_merge_point): Add `named_merge_point_kind' field.
14311 (push_named_merge_point): Make cycle detection respect different
14312 named-merge-point kinds.
14313 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14314 Remove face-name alias resolution.
14315 (lface_from_face_name): New definition using
14316 `lface_from_face_name_no_resolve'.
14317 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14318 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14319 (get_lface_attributes): New definition that layers face-remapping on
14320 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14321 (lookup_basic_face): New function.
14322 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14323 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14324 `get_lface_attributes'.
14325 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14326 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14327 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14328
14329 * xdisp.c (init_iterator): Pass base_face_id through
14330 `lookup_basic_face' when we actually use it as a face-id.
14331 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14332 DEFAULT_FACE_ID.
14333
14334 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14335 lookup the initial face-id.
14336
14337 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14338
143392008-06-01 Juanma Barranquero <lekktu@gmail.com>
14340
14341 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14342 (Fremove_text_properties): Fix typos in docstrings.
14343
143442008-05-31 Kenichi Handa <handa@m17n.org>
14345
14346 * font.c (font_list_entities): Fix the car part of data to be
14347 stored in the cache.
14348
14349 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14350
143512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14352
14353 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14354 Add a `test' argument so another predicate than `equal' can be used.
14355 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14356 (map_char_table): Remove unused vars `c' and `i'.
14357 * lisp.h (Foptimize_char_table): Adjust declaration.
14358 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14359
143602008-05-30 Kenichi Handa <handa@m17n.org>
14361
14362 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14363 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14364 defined.
14365
143662008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14367
14368 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14369 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14370 frame-local settings for the same variable.
14371
143722008-05-30 Kenichi Handa <handa@m17n.org>
14373
14374 * fontset.c (Ffont_info): Move to font.c.
14375 (syms_of_fontset): Delete defsubr of Sfont_info.
14376
14377 * font.c (font_style_to_value, font_score): Delete casting of the
14378 args to xstcasecmp.
14379 (register_font_driver): Increment num_font_drivers only when
14380 registering the driver globally.
14381 (Ffont_info): Move from fontset.c. Handle a font object too.
14382 (syms_of_font): Defsubr Sfont_info.
14383
143842008-05-29 Kenichi Handa <handa@m17n.org>
14385
14386 * coding.h (enum define_coding_utf8_arg_index): New enum.
14387 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14388 coding_attr_utf_bom.
14389 (enum utf_bom_type): Rename from utf_16_bom_type.
14390 (struct utf_16_spec): Adjust for the above change.
14391 (struct coding_system): Add utf_8_bom in `spec' union.
14392
14393 * coding.c (CODING_UTF_8_BOM): New macro.
14394 (enum coding_category): Delete coding_category_utf_8, add
14395 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14396 coding_category_utf_8_sig.
14397 (CATEGORY_MASK_UTF_8): Delete it.
14398 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14399 (CATEGORY_MASK_UTF_8_SIG): New macros.
14400 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14401 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14402 CATEGORY_MASK_UTF_8_SIG.
14403 (CATEGORY_MASK_UTF_8): New macro.
14404 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14405 (detect_coding_utf_8): Check BOM.
14406 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14407 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14408 (encode_coding_utf_16): Likewise.
14409 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14410 (detect_coding, detect_coding_system): Handle utf-8-auto.
14411 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14412 (syms_of_coding): Fix setting up of Vcoding_category_table.
14413
144142008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14415
14416 * process.c (Faccept_process_output): If `millisec' is non-nil,
14417 `seconds' default to 0.
14418 (wait_reading_process_output): Also return non-nil if we read output
14419 from a non-running process.
14420
144212008-05-29 Jason Rumney <jasonr@gnu.org>
14422
14423 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14424 `raster' specified.
14425 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14426 in the uniscribe backend, but disallow any font that has no
14427 unicode subrange support.
14428
144292008-05-29 Juanma Barranquero <lekktu@gmail.com>
14430
14431 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14432 Fix typos in docstrings.
14433
144342008-05-29 Kenichi Handa <handa@m17n.org>
14435
14436 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14437 (Fx_family_fonts): Set frame correctly.
14438
144392008-05-28 Jason Rumney <jasonr@gnu.org>
14440
14441 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14442
144432008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14446 calling build_annotations.
14447
144482008-05-28 Juanma Barranquero <lekktu@gmail.com>
14449
14450 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14451 (Fencode_coding_string):
14452 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14453 <latin-extra-code-table>: Fix typos in docstrings.
14454 (syms_of_coding) <coding-system-alist>: Doc fix.
14455 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14456
144572008-05-28 Kenichi Handa <handa@m17n.org>
14458
14459 * fontset.c (Ffont_info): Don't call font_close_object.
14460
14461 * font.c (font_parse_family_registry): Use Ffont_put to validate
14462 foundry and family.
14463 (font_delete_unmatched): Don't check spacing.
14464 (font_list_entities): Add spacing to the spec to list fonts.
14465
14466 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14467 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14468
14469 * coding.c (encode_coding_raw_text): Fix previous change.
14470 (encode_coding_object): When the dst_object is a buffer and is
14471 different from src_object, move gap to PT.
14472
144732008-05-27 Chong Yidong <cyd@stupidchicken.com>
14474
14475 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14476
144772008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14478
14479 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14480 all branches. Compute it differently.
14481
14482 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14483
144842008-05-27 Juanma Barranquero <lekktu@gmail.com>
14485
14486 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14487 into "else if () ... else ...".
14488
144892008-05-27 Jason Rumney <jasonr@gnu.org>
14490
14491 * w32font.c (w32font_open_internal): Determine if glyph indices
14492 are likely to work here.
14493
144942008-05-27 Chong Yidong <cyd@stupidchicken.com>
14495
14496 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14497 draw overlap glyphs with appropriate highlighting.
14498
144992008-05-27 Kenichi Handa <handa@m17n.org>
14500
14501 * xfont.c (xfont_open): Fix calculation of font->average_width.
14502
145032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14504
14505 * casefiddle.c (casify_object): Try to guess better whether the
14506 argument is a byte or a char.
14507
145082008-05-26 Andreas Schwab <schwab@suse.de>
14509
14510 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14511 Always send multiples of format size.
14512
14513 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14514
145152008-05-26 Jason Rumney <jasonr@gnu.org>
14516
14517 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14518 (compute_metrics): Don't set failure if we just cleared the cache.
14519 (w32_weight_table): Remove unused variable.
14520 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14521 backwards compatibility.
14522
145232008-05-25 Kenichi Handa <handa@m17n.org>
14524
14525 * w32term.c (x_draw_glyph_string):
14526 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14527
14528 * xfaces.c: Delete unused function prototypes.
14529 (xstrlwr, font_frame): Delete them.
14530 (clear_face_cache): Delete unused variable.
14531
14532 * xftfont.c (xftfont_open): Delete unused variable.
14533 If underline_thickness is not 1, adjust underline_position.
14534
14535 * ftxfont.c (ftxfont_open): Delete unused variable.
14536
14537 * fontset.c (face_for_char): Optimize for the case of no charset
14538 property.
14539
14540 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14541 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14542 (otf_open, font_otf_capability, generate_otf_features)
14543 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14544 Comment out by surrounding "#if 0" and "#endif" for the moment.
14545 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14546 (syms_of_font): Codes for accessing above commented out.
14547
145482008-05-24 Eli Zaretskii <eliz@gnu.org>
14549
14550 * w32proc.c: Include dispextern.h.
14551
14552 * w32.c: Include dispextern.h.
14553
145542008-05-23 Juanma Barranquero <lekktu@gmail.com>
14555
14556 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14557 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14558 Fix typos in docstrings.
14559
145602008-05-23 Jason Rumney <jasonr@gnu.org>
14561
14562 * xsmfns.c: Remove includes that are already included by config.h.
14563
145642008-05-23 Kenichi Handa <handa@m17n.org>
14565
14566 * charset.c (Qemacs, charset_emacs): New variables.
14567 (char_charset): Fix for non-Unicode characters.
14568 (syms_of_charset): Define charset_emacs.
14569
14570 * w32term.c (x_draw_glyph_string): Be sure to update
14571 s->underline_thickness and s->underline_position. Be sure to draw
14572 underline within the current line area.
14573
14574 * xterm.c (x_draw_glyph_string): Be sure to update
14575 s->underline_thickness and s->underline_position. Be sure to draw
14576 underline within the current line area.
14577
14578 * fontset.c: Delete unused variables and add casting for char *
14579 throughout the file.
14580 (fontset_font): Try the fallback fonts of the current fontset
14581 before consulting the default fontset.
14582
14583 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14584
14585 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14586
145872008-05-22 Jason Rumney <jasonr@gnu.org>
14588
14589 * font.c: Don't include strings.h.
14590
14591 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14592
14593 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14594 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14595 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14596 to call xstrcasecmp.
14597
14598 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14599
14600 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14601
14602 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14603
14604 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14605
146062008-05-22 Kenichi Handa <handa@m17n.org>
14607
14608 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14609
14610 * font.c (font_prop_validate_style): Adjust for the format
14611 change of font_style_table.
14612
14613 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14614 two args.
14615
14616 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14617 two args.
14618
146192008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14620
14621 * minibuf.c (keys_of_minibuf): Delete.
14622 * lisp.h (keys_of_minibuf): Delete.
14623 * emacs.c (main): Don't call keys_of_minibuf.
14624
146252008-05-22 Kenichi Handa <handa@m17n.org>
14626
14627 * ftfont.c (ftfont_resolve_generic_family): Rename from
14628 ftfont_list_generic_family. Return a single family for each
14629 generic family.
14630 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14631 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14632 Call font_add_log.
14633 (ftfont_match): Call font_add_log.
14634
14635 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14636 (FONT_DEBUG): Define it.
14637 (font_add_log): Extern it.
14638 (font_assert): Rename from xassert.
14639
14640 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14641 (xfont_list_family): Call font_add_log.
14642 (xfont_match): Likewise.
14643 (memq_no_quit): Delete.
14644
14645 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14646 call of Ffont_xlfd_name.
14647
14648 * xfaces.c (struct table_entry, slant_table, weight_table)
14649 (swidth_table): Move to font.c.
14650
14651 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14652 xassert are changed to font_assert. Delete many unused variables.
14653 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14654 New variables.
14655 (struct table_entry): Move from xfaces.c and modified.
14656 (weight_table, slant_table, width_table): Move from xfaces.c and
14657 contents adjusted for the change of struct table_entry.
14658 (font_style_to_value, font_style_symbolic): Adjust for the
14659 format change of font_style_table.
14660 (font_parse_family_registry): Don't overwrite existing foundry and
14661 family of font_spec.
14662 (font_score): Fix calculation of diff for sizes.
14663 (font_sort_entites): Call font_add_log.
14664 (font_delete_unmatched): Return a newly created list.
14665 (font_list_entities): Fix previous change. Call font_add_log.
14666 (font_matching_entity, font_open_entity, font_close_entity):
14667 Call font_add_log.
14668 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14669 (Finternal_set_font_style_table): Delete.
14670 (BUILD_STYLE_TABLE): New macro.
14671 (build_style_table): New function.
14672 (Vfont_log, font_log_env_checked): New variables.
14673 (font_add_log): New function.
14674 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14675 Declare Lisp variables "font-weight-table", "font-slant-table",
14676 "font-width-table", and "font-log". Initialize font_style_table.
14677
146782008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14679
14680 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14681
146822008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14683 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14684
14685 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14686 (Vframe_alpha_lower_limit): New variable.
14687 (x_set_alpha): New function.
14688
14689 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14690
14691 * xfns.c (x-create-frame, Qalpha):
14692 Initialize the frame parameter `alpha'.
14693 * xterm.c (OPAQUE, OPACITY): New.
14694 (x_set_frame_alpha): New function.
14695 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14696
14697 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14698 * w32fns.c (w32_frame_parm_handlers): Likewise.
14699
147002008-05-20 Jason Rumney <jasonr@gnu.org>
14701
14702 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14703 truetype fonts to opentype list.
14704
147052008-05-20 Juanma Barranquero <lekktu@gmail.com>
14706
14707 * fontset.c (Ffontset_info): Doc fix.
14708 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14709 <ignore-relative-composition>: Fix typos in docstrings.
14710
14711 * font.c (syms-of-font) <font-encoding-alist>:
14712 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14713 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14714 (Ffont_otf_alternates): Doc fixes.
14715
147162008-05-20 Kenichi Handa <handa@m17n.org>
14717
14718 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14719 font.h through out the file.
14720 (FONT_DRIVERS): Rename from FONTOBJ.
14721 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14722 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14723
14724 * emacs.c (main): Call syms_of_font unconditionally.
14725
14726 * font.h (find_font_encoding): Extern it.
14727
14728 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14729 fontset.c.
194d44e7 14730 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14731 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14732 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14733 only when HAVE_WINDOW_SYSTEM is defined.
14734 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14735 when HAVE_WINDOW_SYSTEM is defined.
14736
14737 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14738 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14739
14740 * xfaces.c: Include font.h unconditionally.
14741 (merge_face_ref, merge_face_vectors)
14742 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14743
147442008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14745
14746 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14747 indirect_variable.
14748 * eval.c (lisp_indirect_variable): New fun.
14749 (Fuser_variable_p): Use it.
14750
147512008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14752
14753 * lisp.h (indirect_variable):
14754 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14755 Use Lisp_Symbol pointers rather than Lisp_Object.
14756 Adjust callers.
14757 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14758 To this end, change calling-convention.
14759
14760 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14761 if some non-hidden buffers are selected by string&pred.
14762
147632008-05-19 Chong Yidong <cyd@stupidchicken.com>
14764
14765 * process.c (wait_reading_process_output): Always check status
14766 when in batch mode.
14767
147682008-05-19 Kenichi Handa <handa@m17n.org>
14769
14770 * font.c (font_list_entities): Fix handling of cache.
14771 (font_matching_entity): Likewise.
14772
14773 * ftfont.c (cs_iso8859_1): Delete.
14774 (ft_face_cache): New variable.
14775 (struct ftfont_info): New member fc_charset_idx.
14776 (ftfont_build_basic_charsets): Delete.
14777 (fc_charset_table): New variable.
14778 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14779 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14780 Callers changed.
14781 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14782 (ftfont_spec_pattern): New argument fc_charset_idx.
14783 Check registry more rigidly. Change callers.
14784 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14785 change of :font-entity property of the font.
14786
14787 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14788 property of the font.
14789
147902008-05-18 Juanma Barranquero <lekktu@gmail.com>
14791
14792 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14793 (Funencodable_char_position, Fcheck_coding_systems_region)
14794 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14795 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14796 (Ffind_operation_coding_system, Fset_coding_system_priority)
14797 (Fcoding_system_eol_type): Doc fixes.
14798
147992008-05-17 Glenn Morris <rgm@gnu.org>
14800
14801 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14802
148032008-05-16 Eli Zaretskii <eliz@gnu.org>
14804
14805 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14806 and st_gid.
14807
14808 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14809 HAVE_WINDOW_SYSTEM is not defined.
14810
14811 * xfaces.c (merge_face_ref, merge_face_vectors)
14812 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14813 HAVE_WINDOW_SYSTEM is defined.
14814 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14815
148162008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14817
14818 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14819
148202008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14821
14822 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14823
148242008-05-15 Kenichi Handa <handa@m17n.org>
14825
14826 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14827 preference.
14828
148292008-05-15 Glenn Morris <rgm@gnu.org>
14830
14831 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14832
148332008-05-15 Chong Yidong <cyd@stupidchicken.com>
14834
14835 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14836 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14837
14838 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14839
148402008-05-15 Kenichi Handa <handa@m17n.org>
14841
14842 * ftfont.c (ftfont_list): Downcase family name to check generic
14843 families.
14844
14845 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14846 font-spec for QCfont value.
14847
14848 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14849 buffer. Check the return value of it.
14850
148512008-05-14 Jason Rumney <jasonr@gnu.org>
14852
14853 * w32term.c (w32_get_glyph_overhangs): Remove.
14854 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14855
148562008-05-14 Kenichi Handa <handa@m17n.org>
14857
14858 * font.c (font_prop_validate): Make nil a valid value.
14859 (font_clear_cache): Check if the cached vector of entities is nil
14860 or not.
14861
148622008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14863
14864 * emacs.c (main_thread): Conditionalize on
14865 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14866 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14867
14868 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14869 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14870 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14871
148722008-05-14 Kenichi Handa <handa@m17n.org>
14873
14874 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14875 has no corresponding coding system.
14876
148772008-05-14 Jason Rumney <jasonr@gnu.org>
14878
14879 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14880
14881 * w32font.h (w32font_open_internal): Update declaration.
14882
14883 * w32font.c (w32font_open_internal): Change last argument from
14884 w32font_info struct to font object. Fill in font object from
14885 font_entity. Get Outline metrics if possible. Use them to
14886 calculate underline position and thickness. Use xlfd name as name
14887 property. Don't set codepage.
14888 (w32font_open): Pass font_object to w32font_open_internal. Don't
14889 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14890 (w32font_draw): Use s->font.
14891 (clear_cached_metrics): Don't clear non-existent blocks.
14892
14893 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14894 font was not found.
14895 (x_draw_glyph_string): Use underline position and thickness from font.
14896
14897 * w32uniscribe.c (uniscribe_open): Pass font_object to
14898 w32font_open_internal.
14899
149002008-05-14 Kenichi Handa <handa@m17n.org>
14901
14902 These changes are to delete all legacy font-handling codes, and
14903 make Emacs use only font-backends.
14904
14905 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14906 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14907
14908 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14909
14910 * charset.h (Vcharset_non_preferred_head)
14911 (Vcurrent_iso639_language): Extern them.
14912
14913 * charset.c (Vcharset_non_preferred_head): New variable.
14914 (Vcurrent_iso639_language): New variable.
14915 (syms_of_charset): Declare it as a Lisp variable.
14916 (char_charset): Don't check non preferred charsets. As a last
14917 resort, return charset_unicode.
14918 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14919
14920 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14921 conditionals. Don't check enable_font_backend. Delete all codes
14922 used only when USE_FONT_BACKEND is not defined.
14923
14924 * dispextern.h (struct glyph_string): Change type of `font' to
14925 `struct font *'.
14926 (struct glyph_string): New member underline_position and
14927 underline_thickness.
14928 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14929 (struct face): Change type of `font' to `struct font *'. Remove
14930 members `font_name', `font_info_id'.
14931 (per_char_metric, encode_char): Delete externs.
14932 (calc_pixel_width_or_height): Adjust the prototype.
14933
14934 * emacs.c (enable_font_backend): Delete extern.
14935 (main): Don't set enable_font_backend. Don't check the command
14936 line argument "-disable-font-backend".
14937
14938 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14939 (enum font_property_index): New members FONT_DPI_INDEX,
14940 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14941 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14942 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14943 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14944 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14945 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14946 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14947 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14948 (struct font_spec, struct font_entity): New structs.
14949 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14950 (struct font): Many members from old "struct font_info" moved to
14951 here. Members font and entity deleted.
14952 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14953 the new font-related objects.
14954 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14955 (CHECK_FONT_GET_OBJECT): Likewise.
14956 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14957 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14958 (struct font_driver): New members case_sensitive anc check. Type
14959 of the member list and open changed.
14960 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14961 (font_symbolic_width, font_find_object, font_get_spec)
14962 (font_set_lface_from_name): Delete extern.
14963 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14964
14965 * font.c: Include <strings.h>.
14966 (enable_font_backend): Delete it.
14967 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14968 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14969 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14970 (null_string): Delete it.
14971 (null_vector): Make it static.
14972 (font_family_alist): Delete it.
14973 (Qnormal): Extern it.
14974 (QCextra, QClanguage): Delete it.
14975 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14976 (font_make_spec, font_make_entity, font_make_object)
14977 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14978 the string. Callers changed.
14979 (font_pixel_size): Adjusted for the format change of font-related
14980 objects.
14981 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14982 (font_style_to_value, font_style_symbolic): New function.
14983 (build_font_family_alist): Delete it.
14984 (font_registry_charsets): Use Fassoc_string instead of
14985 assq_no_quit.
14986 (font_prop_validate_symbol): Don't return null_string.
14987 (font_prop_validate_style): Adjusted for the change of
14988 style-related values in a font vector.
14989 (font_property_table): Delete entries for QClanguage and
14990 QCantialias, add entries for QCavgwidth.
14991 (get_font_prop_index): Delete the 2nd argument FROM.
14992 (font_prop_validate): Arguments changed.
14993 (font_put_extra): Adjusted for the change of font-related objects.
14994 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14995 (font_parse_fcname, font_unparse_fcname)
14996 (font_prepare_composition): Likewise.
14997 (font_parse_family_registry): Renamed from font_merge_old_spec.
14998 (otf_open): Delete the 1st arg entity.
14999 (font_otf_capability): Adjusted for the above change.
15000 (font_score): New arg alternate_families. Adjusted for the change
15001 of font-related objects.
15002 (font_sort_entites): New arg best_only.
15003 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15004 Delete them.
15005 (font_match_p): Check alternate families.
15006 (font_find_object): Delete it.
15007 (font_check_object): New function.
15008 (font_clear_cache): Adjusted for the change of font-related objects.
15009 (font_delete_unmatched): New arg.
15010 (font_list_entities): Call font_driver->list with a spec that
15011 doesn't specify style-related properties.
15012 (font_matching_entity): Arguments changed. Caller changed.
15013 (font_open_entity): Adjusted for the change of font-related objects.
15014 (font_close_object, font_has_char, font_encode_char)
15015 (font_get_name, font_get_spec): Likewise.
15016 (font_spec_from_name, font_clear_prop, font_update_lface):
15017 New functions.
15018 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15019 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15020 (font_at): Adjusted for the change of font-related objects.
15021 (font_range): New function.
15022 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15023 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15024 (Fcopy_font_spec, Fmerge_font_spec): New function.
15025 (Ffont_family_list): Renamed from list-families.
15026 (Finternal_set_font_style_table): Arguments changed.
15027 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15028 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15029 change of font-related objects.
15030 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15031
15032 * fontset.h (struct font_info): Delete it. Most members go to
15033 struct font.
15034 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15035 (enum FONT_SPEC_INDEX): Delete it.
15036 (font_info, list_fonts_func, load_font_func, query_font_func)
15037 (set_frame_fontset_func, find_ccl_program_func)
15038 (get_font_repertory_func, new_fontset_from_font_name): Delete
15039 externs.
15040 (fontset_from_font_name): Extern it.
15041 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15042 (FONT_INFO_FROM_FACE): Deleted.
15043 (face_for_font): Adjust prototype.
15044
15045 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15046 conditionals. Don't check enable_font_backend. Delete all codes
15047 used only when USE_FONT_BACKEND is not defined.
15048 (get_font_info_func, list_font_func, load_font_func)
15049 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15050 (get_font_repertory_func): Delete them.
15051 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15052 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15053 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15054 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15055 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15056 (fontset_compare_rfontdef): New function.
15057 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15058 rfont-defs by qsort. Adjusted for the change of font-group vector.
15059 (load_font_get_repertory): Deleted.
15060 (fontset_find_font): Use new macros to ref/set elements of
15061 font-def and rfont-def.
15062 (fontset_font): Fix the timing of remembering that no font for C.
15063 (free_face_fontset): Do nothing if the face has no fontset.
15064 (face_suitable_for_char_p): Use new macros to ref/set elements of
15065 rfont-def.
15066 (face_for_char): Likewise. Call face_for_char with font_object.
15067 (fs_load_font): Delete. Delete #pragma surrounding it.
15068 (fs_query_fontset): Use strcasecmp instead of strcmp.
15069 (generate_ascii_font_name): Adjusted for the format change of
15070 font-spec.
15071 (Fset_fontset_font): Likewise. Use new macros to set elements of
15072 font-def.
15073 (Fnew_fontset): Use font_unparse_xlfd to generate
15074 FONTSET_ASCII (fontset).
15075 (new_fontset_from_font_name): Deleted.
15076 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15077 a fontset is already created for the font. FIx updating of
15078 Vfontset_alias_alist.
15079 (fontset_ascii_font): Deleted.
15080 (Ffont_info): Adjusted for the format change of font-spec.
15081 (Finternal_char_font): Likewise.
15082 (Ffontset_info): Likewise.
15083 (syms_of_fontset): Don't check load_font_func.
15084
15085 * fns.c (internal_equal): Handle PREV_FONT.
15086
15087 * frame.h: Delete USE_FONT_BACKEND conditional.
15088
15089 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15090 conditionals. Don't check enable_font_backend. Delete all codes
15091 used only when USE_FONT_BACKEND is not defined.
15092 (x_set_font): Call x_new_font, not x_new_fontset2.
15093 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15094 already set for the frame.
15095
15096 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15097 a font-entity by font_make_entity. Use font_intern_prop instead
15098 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15099 font property. If a font is scalable, set avgwidth property to 0.
15100 Set font-entity property by font_put_extra.
15101 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15102 (ffont_driver): Adjusted for the change of struct font_driver.
15103 (ftfont_spec_pattern): New function.
15104 (ftfont_list): Return a list, not vector.
15105 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15106 (ftfont_list_family): Don't downcase names.
15107 (ftfont_free_entity): Deleted.
15108 (ftfont_open): Return a font-object. Adjusted for the change of
15109 struct font. Get underline_thickness and underline_position from
15110 font property. Don't update dpyinfo->smallest_font_height and
15111 dpyinfo->smallest_char_width.
15112 (ftfont_close): Don't free `struct font'.
15113 (ftfont_has_char): Adjusted for the format change of font-entity.
15114 (ftfont_encode_char, ftfont_text_extents): Likewise.
15115
15116 * ftxfont.c (ftxfont_list): Return a list, not vector.
15117 (ftxfont_open): Return a font-object. Adjusted for the change of
15118 struct font. Get underline_thickness and underline_position from
15119 font property. Don't update dpyinfo->smallest_font_height and
15120 dpyinfo->smallest_char_width.
15121 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15122 (ftxfont_draw): Adjusted for the change of struct font.
15123
15124 * image.c (image_ascent): Don't include "charset.h". Include
15125 "character.h" and "font.h".
15126
15127 * lisp.h (enum pvec_type): New member PREV_FONT.
15128 (Fassoc_string): EXFUN it.
15129
15130 * print.c: Include font.h.
15131 (print_object): Handle font-related objects.
15132
15133 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15134 conditionals. Don't check enable_font_backend. Delete all codes
15135 used only when USE_FONT_BACKEND is not defined.
15136 (handle_auto_composed_prop): Do nothing if it->f is not on a
15137 window system. Check how many following characters can be
15138 displayed by the same font.
15139 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15140 'struct font *'.
15141 (get_char_face_and_encoding): Assign the whole encoding task to
15142 the `encode-char' method of a font driver.
15143 (fill_composite_glyph_string): Adjusted for the change of `struct
15144 face' and `struct glyph_string'.
15145 (fill_glyph_string): Likewise.
15146 (get_per_char_metric): Arguments changed.
15147 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15148 and `struct glyph_string'.
15149 (produce_stretch_glyph, calc_line_height_property)
15150 (x_produce_glyphs): Likewise.
15151
15152 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15153 conditionals. Don't check enable_font_backend. Delete all codes
15154 used only when USE_FONT_BACKEND is not defined. Use
15155 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15156 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15157 (Qp): Extern them.
15158 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15159 Deleted.
15160 (struct font_name): Deleted.
15161 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15162 (compare_fonts_by_sort_order): New function.
15163 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15164 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15165 Deleted.
15166 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15167 compare_fonts_by_sort_order.
15168 (Fx_font_family_list): Call Ffont_family_list.
15169 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15170 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15171 (face_symbolic_slant, face_symbolic_swidth)
15172 (split_font_name_into_vector, build_font_name_from_vector)
15173 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15174 (font_rescale_ratio, split_font_name, build_font_name)
15175 (free_font_names, sort_fonts, x_face_list_fonts)
15176 (face_font_available_p, sorted_font_list, cmp_font_names)
15177 (font_list_1, concat_font_list, font_list, remove_duplicates):
15178 Deleted.
15179 (Fx_list_fonts): Use Ffont_list.
15180 (LFACE_AVGWIDTH): Deleted.
15181 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15182 by FONTP.
15183 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15184 (set_lface_from_font_name): Delete it.
15185 (set_lface_from_font): Renamed from
15186 set_lface_from_font_and_fontset. Caller changed. Don't set
15187 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15188 for face.
15189 (merge_face_vectors): Copy font-spec if necessary.
15190 Clear properties of the font-spec if necessary.
15191 (merge_face_ref): Clear properties of the font-spec if necessary.
15192 (Finternal_set_lisp_face_attribute): Likewise.
15193 (set_font_frame_param): Use font_load_for_lface to load a
15194 font-object, and call Fmodify_frame_parameters with it.
15195 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15196 font name by Ffont_xlfd_name.
15197 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15198 QCslant, and QCwidth.
15199 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15200 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15201 Compare fonts by EQ.
15202 (lookup_non_ascii_face): Deleted.
15203 (face_for_font): The 2nd argument changed.
15204 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15205 Check atomic font properties by case insensitive.
15206 (realize_non_ascii_face): Set face->overstrike correctly.
15207 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15208 (dump_realized_face): Get font name from
15209 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15210
15211 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15212 conditionals. Don't check enable_font_backend. Delete all codes
15213 used only when USE_FONT_BACKEND is not defined.
15214 (xic_create_xfontset): Original code deleted and renamed from
15215 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15216 (x_make_gc): Don't set GCFont in GCs.
15217 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15218 opened by "fixed".
15219 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15220 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15221 get_font_repertory_func.
15222
15223 * xfont.c: Include <stdlib.h> and "ccl.h".
15224 (struct xfont_info): New structure.
15225 (xfont_query_font): Deleted.
15226 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15227 moved from xterm.c.
15228 (xfont_driver): Adjusted for the change of struct font_driver.
15229 (compare_font_names): New function.
15230 (xfont_list_pattern): Sort font names case insensitively. Make
15231 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15232 (xfont_list): Return a list, not vector.
15233 (xfont_match): If the font doesn't have QCname property, generate
15234 a name from the other font properties.
15235 (xfont_open): Return a font-object. Adjusted for the change of
15236 struct font. Get underline_thickness and underline_position from
15237 font property. Don't update dpyinfo->smallest_font_height and
15238 dpyinfo->smallest_char_width.
15239 (xfont_close): Don't free struct font.
15240 (xfont_prepare_face): Adjusted for the change of struct font.
15241 (xfont_done_face): Deleted.
15242 (xfont_has_char): Adjusted for the change of struct font.
15243 (xfont_encode_char, xfont_draw): Likewise.
15244 (xfont_check): New function.
15245
15246 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15247 callback function.
15248 (xftfont_match): Adjusted for the format change of font-entity.
15249 (xftfont_open): Adjusted for the format change of font-entity and
15250 font-object. Adjusted for the change of struct font. Return a
15251 font-object. Don't update dpyinfo->smallest_font_height and
15252 dpyinfo->smallest_char_width.
15253 (xftfont_close): Block input while calling XftFontClose.
15254 (xftfont_prepare_face): Don't block input while calling
15255 xftfont_get_colors. Adjusted for the change of struct font.
15256 (xftfont_shape): Return value of error case fixed.
15257
15258 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15259
15260 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15261 conditionals.
15262 (FONT_WIDTH): Return (f)->max_width.
15263 (struct x_display_info): Delete member `font'.
15264 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15265 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15266 (struct x_output): Change type of `font' to `struct font *'.
15267
15268 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15269 conditionals. Don't check enable_font_backend. Delete all codes
15270 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15271 (x_per_char_metric, x_encode_char): Deleted.
15272 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15273 (x_compute_glyph_string_overhangs): Adjusted for the change of
15274 `struct face'.
15275 (x_draw_glyph_string_foreground)
15276 (x_draw_composite_glyph_string_foreground): Likewise.
15277 (x_draw_glyph_string): Likewise. Use font->underline_position and
15278 font->underline_thickness.
15279 (x_new_font): Renamed from x_new_fontset2.
15280 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15281 (x_check_font): Call `check' method of a font driver.
15282 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15283 (x_query_font, x_get_font_repertory): Deleted.
15284 (x_find_ccl_program): Renamed and moved to xfont.c.
15285 (x_redisplay_interface): Adjusted for the change of `struct
15286 redisplay_interface'.
15287
15288 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15289 conditionals. Don't check enable_font_backend. Delete all codes
15290 used only when USE_FONT_BACKEND is not defined. Surround non-used
15291 code by "#ifdef OLD_FONT" and "endif".
15292 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15293
15294 * w32font.h (struct w32font_info): New member.
15295 (FONT_COMPAT): New macro.
15296 (w32font_open_internal): Prototype adjusted.
15297
15298 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15299 OLD_FONT" and "endif".
15300
15301 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15302 conditionals. Don't check enable_font_backend. Delete all codes
15303 used only when USE_FONT_BACKEND is not defined.
15304 (w32font_open): Return a font-object. Make a font-object by
15305 font_make_object. Adjusted for the change of struct w32font_info.
15306 (w32font_close): Don't free struct font. Adjusted for the change
15307 of struct w32font_info.
15308 (w32font_encode_char, w32font_text_extents, w32font_draw):
15309 Adjusted for the change of struct w32font_info.
15310 (w32font_draw): Likewise.
15311 (w32font_list_internal): Return a list, not vector.
15312 (w32font_open_internal): Change the 4th arg to font-object.
15313 Adjusted for the change of struct w32font_info and font-object format.
15314 (add_font_name_to_list): Don't downcase names.
15315 (w32_enumfont_pattern_entity): Make a font-entity by
15316 font_make_entity. Adjusted for the format change of font-entity.
15317 Use FONT_SET_STYLE to set a style-related font property. If a
15318 font is scalable, set avgwidth property to 0. Set font-entity
15319 property by font_put_extra.
15320 (font_matches_spec): Adjusted for the format change of font-entity.
15321 (w32_weight_table, w32_decode_weight): New variables.
15322 (w32_encode_weight): New function.
15323 (fill_in_logfont): Adjusted for the format change of font-spec.
15324 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15325 weight value.
15326 (w32font_driver): Adjusted for the change of struct font_driver.
15327
15328 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15329 conditionals. Don't check enable_font_backend. Surround non-used
15330 code by "#ifdef OLD_FONT" and "endif".
15331 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15332 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15333
15334 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15335 conditionals. Don't check enable_font_backend. Delete all codes
15336 used only when USE_FONT_BACKEND is not defined. Surround non-used
15337 code by "#ifdef OLD_FONT" and "endif".
15338
15339 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15340 (uniscribe_open): Return value changed to font-object.
15341 Adjusted for the format change of font-object.
15342 (uniscribe_otf_capability): Adjusted for the change of struct font.
15343 (add_opentype_font_name_to_list): Don't downcase names.
15344 (uniscribe_font_driver): Adjusted for the change of struct
15345 font_driver.
15346
153472008-05-13 Chong Yidong <cyd@stupidchicken.com>
15348
15349 * dispnew.c (update_frame_1): Check if tty output is still valid
15350 before flushing it.
15351
153522008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15353
15354 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15355 to Gtk+ menus.
15356
153572008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15358
15359 * dired.c (file_name_completion): Tweak the code so as to always do it
15360 in a single pass. Tighten the scope of some variables.
15361
15362 * dired.c (Qdefault_directory): New var.
15363 (file_name_completion): Use it instead of Fexpand_file_name.
15364 (syms_of_dired): Initialize it.
15365
153662008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15367
15368 * fileio.c (double_dollars): Remove dead code.
15369
153702008-05-10 Eli Zaretskii <eliz@gnu.org>
15371
15372 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15373 Mention w32-get-true-file-attributes in doc string.
15374
15375 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15376
153772008-05-09 Glenn Morris <rgm@gnu.org>
15378
15379 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15380 2008-04-23.
15381
153822008-05-09 Eli Zaretskii <eliz@gnu.org>
15383
15384 Support for reporting owner and group of each file on MS-Windows:
15385 * dired.c (stat_uname, stat_gname): New functions, with special
15386 implementation for w32.
15387 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15388
15389 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15390 (dflt_group_name): New static variable.
15391 (dflt_group): Rename from the_group.
15392 (init_user_info): Init dflt_group fields. Get user's group name
15393 from LookupAccountSid.
15394 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15395 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15396 New initialization states.
15397 (globals_of_w32): Initialize them to zero. Initialize the default
15398 group name to "None".
15399 (GetFileSecurity_Name): New global var, the name of the function
15400 to call for GetFileSecurity.
15401 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15402 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15403 (get_file_security, get_security_descriptor_owner)
15404 (get_security_descriptor_group, is_valid_sid)
15405 (get_file_security_desc, get_rid, get_name_and_id)
15406 (get_file_owner_and_group): New functions.
15407 (stat): Use get_file_security_desc and get_file_owner_and_group to
15408 report the owner and primary group of each file. Don't ignore the
15409 high 32 bits of file's size, now that st_size is 64-bit wide.
15410 Fix test when to get true file attributes.
15411 (init_user_info): Use get_rid instead of equivalent inline code.
15412 (fstat): Don't ignore the high 32 bits of file's size.
15413
154142008-05-09 Chong Yidong <cyd@stupidchicken.com>
15415
15416 * image.c (png_load): Use correct bit-depth for setting background
15417 color.
15418
154192008-05-08 Eli Zaretskii <eliz@gnu.org>
15420
15421 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15422 epa-hook.elc.
15423
154242008-05-08 Juanma Barranquero <lekktu@gmail.com>
15425
15426 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15427
154282008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15429
15430 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15431 because the original parameters are in pure storage now.
15432 (mac_window): Remove unused params. Update callers.
15433
154342008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15435
15436 * lread.c (substitute_object_recurse): Use lower-level primitives.
15437 Don't signal errors when traversing sub-char-tables.
15438 Don't loop over all the possible characters when traversing char-tables.
15439
15440 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15441 just like we do in print.c.
15442
154432008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15444
15445 * minibuf.c (Ftry_completion): Remove code left over from when we used
15446 scmp instead of Fcompare_strings.
15447
154482008-05-04 Juanma Barranquero <lekktu@gmail.com>
15449
15450 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15451
154522008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15453
15454 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15455 Create bitmap context in native byte order.
15456
15457 * macterm.c (XDrawLine)
15458 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15459 context in native byte order.
15460
154612008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15462
15463 * config.in: Regenerate.
15464
15465 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15466 New definitions for Image I/O support.
15467 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15468 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15469 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15470 (mac_data_provider_release_data, image_load_image_io)
15471 [USE_MAC_IMAGE_IO]: New functions.
15472 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15473 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15474 (init_image_func_pointer) [MAC_OSX]: Remove function.
15475 (image_load_quartz2d) [MAC_OSX]: Check availability of
15476 CGImageCreateWithPNGDataProvider at compile time.
15477 Use lowercase `false' for boolean constant.
15478 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15479 Use image_load_image_io.
15480 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15481 Don't check MyCGImageCreateWithPNGDataProvider.
15482 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15483 Don't call init_image_func_pointer.
15484
15485 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15486
15487 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15488 Make variable non-static.
15489 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15490 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15491
15492 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15493 (RED_FROM_ULONG): Mask off higher bits.
15494 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15495
15496 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15497 Include AvailabilityMacros.h.
15498 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15499 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15500
155012008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15502
15503 * chartab.c (Fset_char_table_range): If range is t, really set all
15504 chars to that value.
15505
155062008-05-03 Eli Zaretskii <eliz@gnu.org>
15507
15508 * dired.c (Ffile_attributes): Don't allow the device number become
15509 negative.
15510
155112008-05-02 Daiki Ueno <ueno@unixuser.org>
15512
15513 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15514
155152008-05-02 Juri Linkov <juri@jurta.org>
15516
15517 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15518 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15519 DEFAULT argument as a list of default values in docstrings.
15520
155212008-05-01 Chong Yidong <cyd@stupidchicken.com>
15522
15523 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15524
155252008-05-01 Martin Rudalics <rudalics@gmx.at>
15526
15527 * dispnew.c (change_frame_size_1): Preserve small windows when
15528 shrinking frames by calling set_window_height|width with third
15529 arg 2.
15530
15531 * window.h (struct window): Replace field too_small_ok by field
15532 resize_proportionally.
15533
15534 * window.c (make_window): Initialize resize_proportionally.
15535 (enlarge_window): Temporarily set resize_proportionally to make
15536 sure that shrink_windows does scale the window proportionally.
15537 (shrink_windows): When window has resize_proportionally set try
15538 to shrink it proportionally by stealing from other windows.
15539 (struct saved_window, Fset_window_configuration)
15540 (compare_window_configurations): Handle resize_proportionally.
15541 (WINDOW_TOTAL_SIZE): New macro.
15542 (window_min_size, shrink_windows, size_window): Use it.
15543 (check_min_window_sizes): Remove. Invalid values of
15544 window-min-height|width are handled by window_min_size_2 now.
15545 (size_window, Fsplit_window, enlarge_window)
15546 (adjust_window_trailing_edge, grow_mini_window): Don't call
15547 check_min_window_sizes.
15548 (window_min_size_2, window_min_size_1, window_min_size):
15549 New argument safe_p for retrieving "safe" minimum sizes.
15550 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15551 (adjust_window_trailing_edge, grow_mini_window):
15552 Adjust arguments of window_min_size... functions.
15553 (shrink_windows): Argument min_size removed. New argument
15554 safe_p allows shrinking windows to their safe minimum sizes.
15555 Calculate minimum size and decide whether a window shall be
15556 deleted for each window individually.
15557 (size_window): When nodelete_p equals 2, tell shrink_windows to
15558 delete windows only if their new minimum size is no more safe.
15559 (shrink_window_lowest_first): Call window_min_size_1 to make
15560 sure to preserve modeline of bottom-most window when resizing
15561 the minibuffer.
15562 (Fset_window_configuration, Fcurrent_window_configuration)
15563 (compare_window_configurations): Do not handle
15564 window-min-height|width any more.
15565 (syms_of_window): Clarify window-min-height|width doc-strings.
15566
155672008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15568
15569 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15570 some more. Copy some of the code from Ftry_completions.
15571 Remove special case code that dates back to initial revision when the
15572 slash was only added when necessary and that can't trigger nowadays.
15573
155742008-04-27 Kenichi Handa <handa@m17n.org>
15575
15576 * font.c (font_prop_validate): Signal `error' instead of `font'.
15577
155782008-04-29 Jason Rumney <jasonr@gnu.org>
15579
15580 * w32fns.c (Fw32_battery_status): New defun.
15581 (syms_of_w32fns): Defsubr it.
15582
155832008-04-28 Andreas Schwab <schwab@suse.de>
15584
15585 * dired.c (file_name_completion): Fix another mixing of encoded
15586 and decoded names.
15587
155882008-04-28 Juanma Barranquero <lekktu@gmail.com>
15589
15590 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15591
155922008-04-27 Juanma Barranquero <lekktu@gmail.com>
15593
15594 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15595
155962008-04-27 Andreas Schwab <schwab@suse.de>
15597
15598 * dired.c (file_name_completion): Fix inappropriate mixing of
15599 encoded and decoded names.
15600
15601 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15602
15603 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15604
156052008-04-26 Eli Zaretskii <eliz@gnu.org>
15606
15607 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15608 2008-03-31, it's not needed anymore with `struct stat' definition
15609 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15610 for the same reasons.
15611
156122008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15613
15614 * m/sparc.h: Additional redefinitions for GNU/Linux.
15615
156162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15617
15618 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15619 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15620 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15621 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15622 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15623 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15624 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15625 Likewise.
15626
15627 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15628 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15629 (mac_ax_number_of_characters): Add externs.
15630 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15631 [USE_MAC_TSM]: Likewise.
15632 (mac_handle_text_input_event) [MAC_OSX]:
15633 Handle kEventTextInputOffsetToPos for no active input area case.
15634 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15635 (mac_handle_document_access_event)
15636 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15637 (install_application_handler) [MAC_OSX]: Register handlers for
15638 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15639 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15640 Register mac_handle_document_access_event.
15641
15642 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15643 Make functions non-static.
15644
156452008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15646
15647 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15648 (read_file_name_completion_ignore_case, insert_default_directory)
15649 (Qdefault_directory): Move to minibuffer.el.
15650 (Fread_file_name): Call the new `read-file-name' instead.
15651
156522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15653
15654 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15655 Make function non-static.
15656 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15657 Remove function.
15658 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15659 Move to mactoolbox.c.
15660 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15661
15662 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15663 (mac_rect_make): New macro.
15664
15665 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15666 instead of float.
15667 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15668 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15669 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15670 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15671 CGRectMake.
15672 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15673 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15674 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15675 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15676 instead of WindowRef in argument type.
15677 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15678 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15679 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15680 instead of DISPLAY. All uses changed.
15681 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15682 (x_calc_absolute_position): Simplify so as not to use
15683 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15684
15685 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15686 instead of WindowRef in argument type.
15687 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15688 [TARGET_API_MAC_CARBON]: Remove externs.
15689 (create_apple_event, mac_event_parameters_to_lisp)
15690 [TARGET_API_MAC_CARBON]: Add externs.
15691
15692 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15693 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15694 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15695 is clicked.
15696 (x_activate_menubar): Remove extern for saved_menu_event_location.
15697 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15698 Move from mac.c.
15699
157002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15701
15702 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15703 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15704
157052008-04-23 Jason Rumney <jasonr@gnu.org>
15706
15707 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15708 attributes only for local files.
15709
15710 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15711 default to Qlocal.
15712
157132008-04-22 Juri Linkov <juri@jurta.org>
15714
15715 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15716 read-buffer-to-switch instead of using the letter "B".
15717
157182008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15719
15720 * fileio.c (Qdefault_directory): New variable.
15721 (Fread_file_name): Use it to pass `dir' to the completion functions.
15722
157232008-04-20 Chong Yidong <cyd@stupidchicken.com>
15724
15725 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15726
157272008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15728
15729 * keyboard.c (Vpre_help_message): Remove.
15730 (show_help_echo): Remove default C code.
15731
15732 * dired.c (directory_files_internal, file_name_completion):
15733 Only call ENCODE_FILE if the string is indeed decoded.
15734
157352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15736
15737 * Makefile.in (TOOLKIT_DEFINES): Remove.
15738 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15739
157402008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15741
15742 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15743 (mactoolbox.o): New target.
15744
15745 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15746 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15747
15748 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15749 Use mac_set_frame_window_background instead of XSetWindowBackground.
15750 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15751 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15752 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15753 instead of SetWindowTitleWithCFString.
15754 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15755 Move function to mactoolbox.c.
15756 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15757 Use mac_set_window_modified instead of SetWindowModified.
15758 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15759 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15760 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15761 FrontNonFloatingWindow. Use mac_activate_window instead of
15762 ActivateWindow. Use mac_active_non_floating_window instead of
15763 ActiveNonFloatingWindow.
15764 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15765 Use mac_show_hourglass and mac_hide_hourglass.
15766 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15767 instead of GetGlobalMouse.
15768 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15769 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15770 Use mac_bring_window_to_front instead of BringToFront.
15771 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15772 mactoolbox.c.
15773 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15774 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15775 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15776 mactoolbox.c.
15777
15778 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15779 (XtPointer): Move typedef from macmenu.c.
15780 (enum button_type): Move enum from macmenu.c.
15781 (widget_value): Move typedef from macmenu.c.
15782 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15783 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15784 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15785 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15786 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15787 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15788 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15789 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15790 (Selection): Move typedef from macselect.c.
15791 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15792 macterm.c.
15793 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15794 (mac_is_window_collapsed, mac_bring_window_to_front)
15795 (mac_send_window_behind, mac_hide_window, mac_show_window)
15796 (mac_collapse_window, mac_front_non_floating_window)
15797 (mac_active_non_floating_window, mac_activate_window)
15798 (mac_move_window_structure, mac_move_window, mac_size_window)
15799 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15800
15801 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15802 (enum mac_menu_kind): Move enum to mactoolbox.c.
15803 (min_menu_id): Move variable to mactoolbox.c.
15804 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15805 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15806 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15807 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15808 [TARGET_API_MAC_CARBON]: Likewise.
15809 (XtPointer): Move typedef to macgui.h.
15810 (enum button_type): Move enum to macgui.h.
15811 (widget_value): Move typedef to macgui.h.
15812 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15813 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15814 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15815 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15816 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15817 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15818 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15819 (popup_activated_flag): Make variable non-static.
15820 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15821 (add_menu_item, fill_menu, dispose_menus):
15822 Move functions to mactoolbox.c.
15823 (restore_show_help_function, menu_target_item_handler)
15824 (install_menu_target_item_handler, mac_handle_dialog_event)
15825 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15826 [TARGET_API_MAC_CARBON]: Likewise.
15827 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15828 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15829 (find_and_call_menu_selection, name_is_separator): Make function
15830 non-static.
15831 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15832 to mactoolbox.c.
15833 (set_frame_menubar): Don't call install_menu_quit_handler.
15834 (menu_item_selection): New variable.
15835 (mac_menu_show): Use create_and_show_popup_menu.
15836 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15837 selection but set variable menu_item_selection. All uses changed.
15838 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15839 Call install_menu_quit_handler. Move to mactoolbox.c.
15840
15841 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15842 (Selection): Move typedef to macgui.h.
15843 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15844 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15845 Make variables non-static.
15846 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15847 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15848 Make functions non-static.
15849 (Vmac_service_selection) [MAC_OSX]: Likewise.
15850 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15851 (mac_valid_selection_target_p, mac_clear_selection)
15852 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15853 (mac_put_selection_value, mac_selection_has_target_p)
15854 (mac_get_selection_value, mac_get_selection_target_list)
15855 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15856 Move functions to mactoolbox.c.
15857 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15858 Likewise.
15859 (copy_scrap_flavor_data, mac_handle_service_event)
15860 (install_service_handler) [MAC_OSX]: Likewise.
15861 (syms_of_macselect) <Vmac_dnd_known_types>:
15862 Use mac_dnd_default_known_types.
15863
15864 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15865 Move to mactoolbox.c.
15866 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15867 (Fx_selection_owner_p): Add EXFUN.
15868 (install_window_handler, remove_window_handler, XSetWindowBackground):
15869 Remove externs.
15870 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15871 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15872 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15873 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15874 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15875 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15876 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15877 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15878 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15879 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15880 (mac_valid_selection_target_p, mac_clear_selection)
15881 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15882 (mac_put_selection_value, mac_selection_has_target_p)
15883 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15884 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15885 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15886 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15887 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15888 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15889 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15890 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15891 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15892
15893 * mactoolbox.c: New file.
15894
158952008-04-18 Jason Rumney <jasonr@gnu.org>
15896
15897 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15898
158992008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15900
15901 * character.c (Fmultibyte_char_to_unibyte):
15902 Return latin1 chars unchanged.
15903
15904 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15905 relocated if it points to `name'.
15906
159072008-04-17 Kenichi Handa <handa@m17n.org>
15908
15909 * data.c (Faset): Allow setting a multibyte character in an
15910 ASCII-only unibyte string.
15911
15912 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15913
159142008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15915
15916 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15917 done in config.h.
15918
159192008-04-16 Juanma Barranquero <lekktu@gmail.com>
15920
15921 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15922 (Fchar_direction): Add usage in the docstring.
15923
159242008-04-15 Chong Yidong <cyd@stupidchicken.com>
15925
15926 * keyboard.c (read_key_sequence): Remove always-true checks.
15927
159282008-04-14 Jason Rumney <jasonr@gnu.org>
15929
15930 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15931 compatibility struct, for better underline positioning.
15932
159332008-04-13 David Hansen <david.hansen@gmx.net>
15934
15935 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15936 string.
15937
159382008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15939
15940 * m/hp800.h (XUINT, XSET): Remove.
15941
159422008-04-12 Juanma Barranquero <lekktu@gmail.com>
15943
15944 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15945 previous change.
15946
159472008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15948
15949 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15950 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15951
159522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15953
15954 * keymap.h (map_keymap_canonical): Declare.
15955 * xmenu.c (single_keymap_panes): Use it.
15956
159572008-04-11 Glenn Morris <rgm@gnu.org>
15958
15959 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15960 set the target's value to that of the alias.
15961
159622008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15963
15964 * term.c (set_tty_color_mode): Left over typo.
15965
159662008-04-10 Michael Albinus <michael.albinus@gmx.de>
15967
15968 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15969 only after check for file name handler functions. Signal, when
15970 native functionality is not supported.
15971 (syms_of_fileio): Declare it unconditionally.
15972
159732008-04-10 Jason Rumney <jasonr@gnu.org>
15974
15975 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15976 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15977
15978 * w32.c (logon_network_drive): Also logon to remote drives that
15979 are mapped to drive letters.
15980
159812008-04-10 Glenn Morris <rgm@gnu.org>
15982
15983 * xdisp.c (truncate-partial-width-windows): Doc fix.
15984
159852008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15986
15987 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15988 Move functions to minibuffer.el.
15989 (syms_of_fileio): Don't declare them.
15990
159912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15992
15993 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15994 (syms_of_minibuf): Remove its initialization.
15995
15996 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15997
159982008-04-09 Juanma Barranquero <lekktu@gmail.com>
15999
16000 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16001
160022008-04-09 Jason Rumney <jasonr@gnu.org>
16003
16004 * makefile.w32-in (distclean): Delete makefile too.
16005 (maintainer-clean): New target.
16006
16007 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16008
16009 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16010 for new font backend and composite cases.
16011
160122008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16013
16014 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16015 Most of the code moved to run_timers.
16016 (do_pending_atimers): Call run_timers.
16017 (run_timers): New function.
16018
16019 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16020 run atimers.
16021
16022 * process.c (wait_reading_process_output): The same as above.
16023
160242008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16025
16026 * minibuf.c (last_exact_completion): Remove variable.
16027 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16028 (complete_and_exit_1, complete_and_exit_2)
16029 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16030 (Fdisplay_completion_list, display_completion_list_1)
16031 (Fminibuffer_completion_help, Fself_insert_and_exit)
16032 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16033 minibuffer.el.
16034 (syms_of_minibuf): Remove corresponding initializations.
16035
16036 * keyboard.c (Qdeactivate_mark): New var.
16037 (command_loop_1): Use it to call `deactivate-mark'.
16038 (syms_of_keyboard): Initialize it.
16039
16040 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16041 to another frame.
16042 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16043 Don't call set_tty_color_mode.
16044 (store_frame_param): Reset previous_frame rather than call
16045 set_tty_color_mode.
16046 * term.c (set_tty_color_mode): Rewrite.
16047 * dispextern.h (set_tty_color_mode): New type.
16048 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16049
160502008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16051
16052 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16053 for generic chars, which do not exist any more in emacs-unicode.
16054
160552008-04-08 Michael Albinus <michael.albinus@gmx.de>
16056
16057 * coding.c (detect_coding_emacs_mule)
16058 (Ffind_operation_coding_system): Fix typo.
16059
160602008-04-08 Jason Rumney <jasonr@gnu.org>
16061
16062 * w32uniscribe.c (SNAME): Extract only symbol name.
16063
16064 * w32font.h (struct w32_metric_cache): New struct.
16065 (w32font_info): Use it.
16066 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16067 (CACHE_BLOCKSIZE): New constants.
16068
16069 * w32font.c (Qja, Qko, Qzh): New symbols.
16070 (syms_of_w32font): Initialise them.
16071 (font_matches_spec): Use them to filter by language.
16072 (recompute_cached_metrics): Remove function.
16073 (compute_metrics, clear_cached_metrics): New functions.
16074 (w32font_encode_char): Use them to manage metric cache.
16075 (w32font_text_extents): Cache metrics for all glyphs on demand.
16076 Delay converting glyph indices to WORD until needed.
16077 (w32font_open_internal): Initialize metric cache to empty.
16078 (registry_to_w32_charset): Charset should always be a symbol.
16079 (fill_in_logfont, list_all_matching_fonts): Family should
16080 always be a symbol.
16081
160822008-04-06 Jason Rumney <jasonr@gnu.org>
16083
16084 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16085 Give up if glyph indices not supported. Use uniscribe obtained
16086 ABC widths for individual metrics. Map glyph clusters back to
16087 characters using fClusterStart flag. Return number of glyphs
16088 produced, not chars processed.
16089 (uniscribe_shape): Map char at FROM to current glyph.
16090
160912008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16092
16093 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16094 Use SetMenuItemHierarchicalMenu.
16095
160962008-04-05 Jason Rumney <jasonr@gnu.org>
16097
16098 * image.c (pbm_load): Allow color values up to 65535.
16099 Throw an error if max_color_idx is outside the supported range.
16100 Report an error when image size is invalid.
16101 Read two bytes at a time when raw images have max_color_idx above 255.
16102
aac0c6e3
MR
161032008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16104
16105 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16106 append "CCL: Quitted" when the CCL program is quitted.
16107 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16108
16109 * ccl.h (struct ccl_program): New member quit_silently.
16110
161112008-04-05 Chong Yidong <cyd@stupidchicken.com>
16112
16113 * search.c (compile_pattern_1): Treat non-nil and non-string of
16114 search-spaces-regexp as nil.
16115
16116 * minibuf.c (Fassoc_string): Tweak docstring.
16117
161182008-04-05 Eli Zaretskii <eliz@gnu.org>
16119
16120 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16121 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16122 2008-03-14 to force inode be positive.
16123
16124 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16125 _S_* ones, since we now use our own sys/stat.h.
16126 (stat, fstat): Don't mangle the inode number.
16127 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16128
161292008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16130
16131 * frame.h (struct frame): Give one more bit to `visible' since we use
16132 values larger than 1 to indicate obscured frames on ttys.
16133
16134 * keymap.c (Qkeymap_canonicalize): New var.
16135 (Fmap_keymap_internal): New fun.
16136 (describe_map): Use keymap-canonicalize.
16137
16138 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16139 (Fundo_boundary): Set them.
16140 (syms_of_undo): Initialize them.
16141 (record_point): Use them instead of last_point_position*.
16142 (last_undo_buffer): Change type.
16143
161442008-04-04 Jason Rumney <jasonr@gnu.org>
16145
16146 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16147 (recompute_cached_metrics): Don't set ascent and descent per char.
16148
16149 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16150 (uniscribe_check_otf): Add GC protection before consing.
16151 Rearrange loop for counting features.
16152
161532008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16154
16155 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16156 buffer with byte-size of source buffer.
16157
161582008-04-03 Chong Yidong <cyd@stupidchicken.com>
16159
16160 * callint.c (Fcall_interactively): Handle temporary region even
16161 when shift-select-mode is off.
16162
161632008-04-03 Jason Rumney <jasonr@gnu.org>
16164
16165 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16166
161672008-04-03 Kenichi Handa <handa@m17n.org>
16168
16169 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16170 (CATEGORY_MASK_UTF_16): Likewise.
16171 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16172 binary file.
16173 (detect_coding): Add null-byte detection for a binary file.
16174 (detect_coding_system): Likewise.
16175
161762008-04-03 Jason Rumney <jasonr@gnu.org>
16177
16178 * w32uniscribe.c: New file.
16179
16180 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16181
16182 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16183
16184 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16185 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16186 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16187 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16188 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16189 (Qphonetic): New symbols.
16190 (syms_of_w32font): Initialize them.
16191 (font_supported_scripts): Use them.
16192 (w32font_list_family): List all charsets.
16193 (w32font_text_extents, recompute_cached_metrics): Fix metric
16194 calculations.
16195 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16196 Give opentype fonts their own format.
16197 (font_matches_spec): New arguments backend and logfont.
16198 Handle :otf spec for uniscribe backend.
16199 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16200 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16201
16202 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16203 font backend.
16204 (globals_of_w32fns): Initialize uniscribe font backend.
16205
16206 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16207 dependencies.
16208 (w32uniscribe.$(O)): New file to build.
16209 (FONT_OBJ): Include w32uniscribe.$(O).
16210 (LIBS): Add uniscribe libraries.
16211
16212 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16213
162142008-04-02 Chong Yidong <cyd@stupidchicken.com>
16215
16216 * callint.c (Vshift_select_mode): New var.
16217 (Finteractive): Document new ^ spec.
16218 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16219 is present.
16220
16221 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16222 (command_loop_1): Avoid running the direct display versions of
16223 forward-char and backward-char if shift-selection may occur.
16224 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16225 shift-translation takes place.
16226
16227 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16228 avoid clobbering by define-minor-mode.
16229
16230 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16231 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16232
16233 * syntax.c (Fforward_word): Add ^ interactive spec.
16234
16235 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16236 (Fscroll_right): Add ^ interactive spec.
16237
162382008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16239
16240 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16241
16242 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16243
16244 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16245
162462008-03-31 Juri Linkov <juri@jurta.org>
16247
16248 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16249
162502008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16251
16252 * gtkutil.c (xg_set_geometry): Fix indentation.
16253 (xg_resize_outer_widget): Remove.
16254 (x_wm_size_hint_off): Fix indentation.
16255 (xg_frame_set_char_size): Call flush_and_sync after
16256 gtk_window_resize.
16257 (x_wm_set_size_hint): Pass NULL as geometry window to
16258 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16259 Add menu bar and tool bar height to base height.
16260 (xg_update_frame_menubar, free_frame_menubar)
16261 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16262 (update_frame_tool_bar, free_frame_tool_bar):
16263 Change xg_resize_outer_widget to xg_frame_set_char_size.
16264
162652008-03-30 Michael Albinus <michael.albinus@gmx.de>
16266
16267 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16268 (Fdbus_call_method): New parameter TIMEOUT.
16269 (dbus-send-signal): Optimize UNGCPRO call.
16270
162712008-03-29 Juri Linkov <juri@jurta.org>
16272
16273 * window.c (Fdisplay_buffer): Move call to
16274 Vsplit_window_preferred_function out of conditions that check
16275 if window is eligible for vertical splitting.
16276 When Vsplit_window_preferred_function is non-nil, call it and use
16277 its non-nil return value as window. Otherwise, continue doing
16278 vertical splitting using Fsplit_window with arg horflag=nil.
16279 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16280 default value from `split-window' to nil.
16281
162822008-03-29 Juri Linkov <juri@jurta.org>
16283
16284 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16285 for interactive code letters 'b' and 'B'.
16286
162872008-03-29 Eli Zaretskii <eliz@gnu.org>
16288
16289 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16290 multibyte string.
16291
162922008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16293
16294 * keyboard.c (pending_funcalls): New var.
16295 (timer_check): Run it.
16296 (syms_of_keyboard): Initialize it.
16297 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16298 (Vdelete_terminal_functions): New vars.
16299 (syms_of_terminal): Initialize them.
16300 (Fdelete_terminal): Run delete-terminal-functions.
16301 * xdisp.c (safe_eval): Rewrite.
16302 (safe_call2): New fun.
16303 * frame.c (Qdelete_frame_functions): New var.
16304 (syms_of_frame): Initialize it.
16305 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16306 * lisp.h (safe_call2, pending_funcalls): Declare.
16307
163082008-03-28 Andreas Schwab <schwab@suse.de>
16309
16310 * indent.c (Fmove_to_column): Move declaration before statements.
16311
163122008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16313
16314 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16315 (struct frame): Use bit fields for boolean vars.
16316
16317 * process.c (server_accept_connection): Simplify naming.
16318 (emacs_get_tty_pgrp): Use SDATA.
16319
16320 * coding.c (decode_coding_object): Fix last change.
16321
163222008-03-27 Jason Rumney <jasonr@gnu.org>
16323
16324 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16325
163262008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16327
16328 * charset.c (Fdefine_charset_internal): Change the way of
16329 registering charsets in Vcharset_order_list.
16330 (syms_of_charset): Make the charset `eight-bit' supplementary.
16331
163322008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16333
16334 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16335 operations, to avoid having the difference between pointers
16336 overflow.
16337
163382008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16339
16340 * indent.c (check_display_width): New fun.
16341 (scan_for_column): Use it.
16342
16343 * data.c (syms_of_data): Mark most-positive-fixnum and
16344 most-negative-fixnum as constants.
16345
16346 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16347
16348 * indent.c (scan_for_column): Extract from current_column_1.
16349 Merge with the same code from Fmove_to_column.
16350 (current_column_1, Fmove_to_column): Use it.
16351
163522008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16353
16354 * keymap.c (map_keymap_internal): New fun.
16355 (map_keymap): Use it.
16356 (Fmap_keymap_internal): New fun.
16357 (Fmap_keymap): Remove left-out test from before make_save_value.
16358
16359 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16360
16361 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16362 Use XCAR/XCDR.
16363
16364 * process.h (struct Lisp_Process): Remove filter_multibyte.
16365 * process.c (QCfilter_multibyte): Remove.
16366 (setup_process_coding_systems): Don't use filter_multibyte.
16367 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16368 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16369 (Fset_process_filter_multibyte): Change the coding-system to
16370 approximate the previous behavior.
16371 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16372 coding-system.
16373
16374 * coding.c (decode_coding_object): When not decoding into a buffer,
16375 obey the coding system's preference of (uni|multi)byte.
16376
163772008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16378
16379 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16380 every char is changed and has a different byte-length.
16381 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16382 Fix int -> EMACS_INT.
16383
163842008-03-23 David Hansen <david.hansen@gmx.net>
16385
16386 * dbusbind.c (xd_read_message): Remove extra copying of message
16387 strings. Check for NULL `interface' or `member'.
16388
163892008-03-22 Eli Zaretskii <eliz@gnu.org>
16390
16391 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16392 cFileName a file name that includes `?' characters, use the 8+3
16393 alias in cAlternateFileName instead.
16394
163952008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16396
16397 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16398
163992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16400
16401 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16402 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16403 work on current_buffer only instead (that was already the case
16404 for some of the code anyway).
16405 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16406 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16407 (SET_PT, SET_PT_BOTH): Adjust.
16408 * intervals.h (set_point, temp_set_point, set_point_both)
16409 (temp_set_point_both): Remove redundant declarations.
16410
164112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16412
16413 * fileio.c (Finsert_file_contents):
16414 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16415 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16416 when buffer != current_buffer anyway.
16417
164182008-03-20 Andreas Schwab <schwab@suse.de>
16419
16420 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16421 as default.
16422
164232008-03-19 Jason Rumney <jasonr@gnu.org>
16424
16425 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16426 (syms_of_w32fns): Initialize them.
16427 (HOURGLASS_ID): New constant.
16428 (x_window_to_frame): Don't check hourglass_window.
16429 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16430 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16431 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16432 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16433 Only change the cursor if hourglass is not active.
16434 (Fx_create_frame): Initialize frame's current_cursor.
16435 (hourglass_atimer): Remove.
16436 (hourglass_started): New function.
16437 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16438 (show_hourglass): Adapt to w32, changing argument to frame.
16439
16440 * w32term.h (struct w32_output): Remove hourglass_window.
16441 Add current_cursor.
16442
16443 * eval.c (call_debugger, Fsignal):
16444 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16445 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16446 (Fexecute_extended_command, cancel_hourglass_unwind):
16447 * minibuf.c (read_minibuf):
16448 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16449
164502008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16451
16452 * window.c (run_funs): New fun.
16453 (run_window_configuration_change_hook): Use it to run the buffer-local
16454 and the global part of the hook.
16455
16456 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16457 (unwind_format_mode_line): Restore selected window.
16458 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16459
164602008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16461
16462 * editfns.c (Fchar_equal): Check they are valid characters.
16463
16464 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16465
164662008-03-17 Andreas Schwab <schwab@suse.de>
16467
16468 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16469 against a charset.
16470
16471 * lisp.h (Fbuffer_list): Declare.
16472
164732008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16474
aac0c6e3
MR
16475 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16476 handlebox_widget is != 0.
16477
164782008-03-16 Juri Linkov <juri@jurta.org>
16479
16480 * callint.c (Fcall_interactively): For interactive code letters
16481 'b' and 'B' put the buffer list into the list of default "future"
16482 values of the minibuffer.
16483
164842008-03-16 Andreas Schwab <schwab@suse.de>
16485
16486 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16487 modifiers.
16488
16489 * regex.c (re_match_2_internal): Correct matching of a charset
16490 against latin-1 characters.
16491
164922008-03-16 Kenichi Handa <handa@m17n.org>
16493
16494 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16495 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16496 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16497 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16498 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16499 CHAR_STRING_ADVANCE.
16500 (produce_chars): Fix for the case that the source and the
16501 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16502 instead of CHAR_STRING_ADVANCE.
16503 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16504 STRING_CHAR_ADVANCE.
16505
165062008-03-15 Andreas Schwab <schwab@suse.de>
16507
16508 * regex.c (re_match_2_internal): Correct matching of eight bit
16509 characters in unibyte strings.
16510
165112008-03-15 Martin Rudalics <rudalics@gmx.at>
16512
16513 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16514 at end of range when it coincides with the end of the buffer.
16515
165162008-03-14 Eli Zaretskii <eliz@gnu.org>
16517
16518 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16519
16520 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16521
165222008-03-14 Jason Rumney <jasonr@gnu.org>
16523
16524 * editfns.c (initial_tz): New variable.
16525 (syms_of_editfns): Initialize it.
16526 (Fset_time_zone_rule): Set it when first called.
16527 Use it when TZSTRING is nil.
16528
16529 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16530 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16531 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16532 (globals_of_w32fns): Initialize them.
16533 (compute_tip_xy): Use them to position tooltips.
16534
165352008-03-14 Glenn Morris <rgm@gnu.org>
16536
16537 * emacs.c (main): Revert previous change.
16538 (standard_args): Revert -internal-script back to -scriptload,
16539 and remove the long-option form.
16540
165412008-03-13 Glenn Morris <rgm@gnu.org>
16542
16543 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16544 Remove option -enable-font-backend.
16545
165462008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16547
16548 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16549
165502008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16551
16552 * xterm.c (x_connection_closed): For GTK: If this is the last
16553 terminal just exit without closing the display.
16554
165552008-03-11 Jason Rumney <jasonr@gnu.org>
16556
16557 * w32font.c (w32font_full_name): Use floor to round.
16558
f0131492 165592008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16560
16561 * sound.c (alsa_configure): Declare vol at beginning of block.
16562
16563 * fontset.c (Ffontset_info): Remove extra semicolon.
16564
165652008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16566
16567 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16568 size of resulting string.
16569
165702008-03-10 Jason Rumney <jasonr@gnu.org>
16571
16572 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16573
165742008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16575
16576 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16577 Don't pretend as if characters with display property haven't been
16578 consumed for string-replacing-string case.
16579
165802008-03-08 Kim F. Storm <storm@cua.dk>
16581
16582 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16583 (get_next_display_element, next_element_from_string)
16584 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16585
165862008-03-08 Andreas Schwab <schwab@suse.de>
16587
16588 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16589
165902008-03-06 Jason Rumney <jasonr@gnu.org>
16591
16592 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16593 when charset not specified. Only translate ANSI to unicode when
16594 font_type is truetype.
16595 (w32font_coverage_ok): New function.
16596 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16597
165982008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16599
16600 * lread.c (Fread_char): Resolve modifiers.
16601 (Fread_char_exclusive): Likewise.
16602
16603 * character.c (char_resolve_modifier_mask): New function.
16604 (char_string): Use char_resolve_modifier_mask.
16605 (Fchar_resolve_modifiers): New function.
16606 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16607 function.
16608
166092008-03-04 Jason Rumney <jasonr@gnu.org>
16610
16611 * makefile.w32-in: Always include w32font.c in the build.
16612 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16613
166142008-03-04 Andreas Schwab <schwab@suse.de>
16615
16616 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16617 (versionclean): Likewise.
16618
166192008-03-04 Juanma Barranquero <lekktu@gmail.com>
16620
16621 * .cvsignore: Add oo.
16622
166232008-03-03 Andreas Schwab <schwab@suse.de>
16624
16625 * coding.c (decode_coding_object): Inhibit gap shrinking while
16626 decoding in place.
16627
166282008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16629
16630 * w32term.c: Remove unused include "gnu.h".
16631 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16632
16633 * gnu.h: Rename to ...
16634 * emacs-icon.h: ... this.
16635 * xterm.c: Use emacs-icon.h instead of gnu.h.
16636 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16637
166382008-03-03 Juanma Barranquero <lekktu@gmail.com>
16639
16640 * w32font.c: Include math.h.
16641
166422008-03-03 Jason Rumney <jasonr@gnu.org>
16643
16644 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16645 Compute options separately.
16646 (w32font_open_internal): Set glyph_idx before caching metrics.
16647
16648 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16649 Define if system headers don't.
16650 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16651 (w32font_encode_char): Don't declare here.
16652
16653 * w32font.c (Quniscribe, QCformat): New symbols.
16654 (syms_of_w32font): Define them.
16655 (w32font_has_char): Indicate uncertainty.
16656 (w32font_encode_char): Encode as glyph point. Make static.
16657 (recompute_cached_metrics): New function.
16658 (w32font_open_internal): Use it. Set font to use glyph points
16659 initially. Set format based on type of font.
16660 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16661 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16662 on it. Set format based on information available here.
16663 (add_font_entity_to_list): Identify backend based on opentype_only.
16664
166652008-03-02 Andreas Schwab <schwab@suse.de>
16666
16667 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16668
16669 * coding.c (decode_coding_big5, produce_chars):
16670 Fix typos in last change.
16671
166722008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16673
16674 * gnu.h: New icon.
16675
166762008-03-02 Kenichi Handa <handa@m17n.org>
16677
16678 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16679 `dos', don't decode '\r' if that is the last in the source.
16680 (decode_coding_utf_16, decode_coding_emacs_mule)
16681 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16682 (decode_coding_raw_text, decode_coding_charset): Likewise.
16683 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16684
166852008-03-01 Jason Rumney <jasonr@gnu.org>
16686
16687 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16688
166892008-03-01 Kim F. Storm <storm@cua.dk>
16690
16691 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16692
166932008-03-01 Jason Rumney <jasonr@gnu.org>
16694
16695 * w32font.c (w32font_full_name): New function.
16696 (w32font_open_internal): Use it.
16697
166982008-03-01 Kim F. Storm <storm@cua.dk>
16699
16700 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16701
167022008-03-01 Jason Rumney <jasonr@gnu.org>
16703
16704 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16705
167062008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16707
16708 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16709 xg_frame_resized when the event is for the edit widget.
16710
16711 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16712
16713 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16714 set_char_size.
16715 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16716 operations on widgets here. Just set frame size if needed.
16717 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16718 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16719 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16720 the whole frame.
16721 (xg_create_tool_bar): Move attachment of the tool bar to
16722 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16723 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16724
167252008-03-01 Jason Rumney <jasonr@gnu.org>
16726
16727 * w32fns.c (w32_msg_pump): Disable debug code.
16728
167292008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16730
16731 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16732
167332008-02-29 Chong Yidong <cyd@stupidchicken.com>
16734
16735 * xdisp.c (next_overlay_string): Don't set
16736 overlay_strings_at_end_processed_p if we're currently reading from
16737 a display string.
16738
167392008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16740
16741 * xdisp.c (get_overlay_strings_1): Fix typo.
16742
167432008-02-29 Chong Yidong <cyd@stupidchicken.com>
16744
16745 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16746
167472008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16748
16749 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16750
16751 * xdisp.c (display_mode_element): Cancel the previous change.
16752 (decode_mode_spec): Likewise.
16753 (handle_auto_composed_prop): Don't make composition if it->string
16754 is a string.
16755
167562008-02-27 Kim F. Storm <storm@cua.dk>
16757
16758 * lisp.h (GLYPH): Change type from int to struct with separate char
16759 and face_id members.
16760 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16761 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16762 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16763 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16764 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16765 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16766 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16767 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16768 handle new Lisp glyph code encoding, either an integer or a cons.
16769
16770 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16771 (GLYPH_ALIAS): Delete.
16772 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16773 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16774 (GLYPH_FROM_CHAR): Replace macro by ...
16775 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16776
16777 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16778 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16779 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16780 (GLYPH_INVALID_P): New macro.
16781 (spec_glyph_lookup_face): Update prototype.
16782
16783 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16784 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16785 new glyph code encoding.
16786 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16787 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16788
16789 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16790 Adapt to new glyph type and new glyph code encoding.
16791
16792 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16793
16794 * indent.c (current_column, current_column_1, Fmove_to_column)
16795 (compute_motion): Adapt to new glyph code encoding.
16796
16797 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16798
167992008-02-27 Chong Yidong <cyd@stupidchicken.com>
16800
16801 * process.c (wait_reading_process_output): Check for window
16802 changes caused by timers.
16803 Suggested by Johan Bockgård.
16804
168052008-02-27 Glenn Morris <rgm@gnu.org>
16806
16807 * emacs.c (USAGE1): Add `--disable-font-backend'.
16808
168092008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16810
16811 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16812 is made to the buffer.
16813
168142008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16815
16816 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16817 (face_at_string_position):
16818 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16819 (face_at_string_position):
16820 * xdisp.c (display_string, next_overlay_change):
16821 * buffer.h (overlays_at):
16822 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16823 Update callers.
16824
168252008-02-26 Chong Yidong <cyd@stupidchicken.com>
16826
16827 * editfns.c (Fformat): Doc fix.
16828
168292008-02-26 Juanma Barranquero <lekktu@gmail.com>
16830
16831 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16832 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16833 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16834
168352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16836
16837 * buffer.c (Fbuffer_swap_text): New function.
16838 (syms_of_buffer): Defsubr it.
16839
168402008-02-25 Chong Yidong <cyd@stupidchicken.com>
16841
16842 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16843
168442008-02-25 Jason Rumney <jasonr@gnu.org>
16845
16846 * w32font.c (w32font_draw): Draw one character at a time when padding.
16847
168482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16849
16850 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16851 Handle a nil arg. Use run_window_configuration_change_hook.
16852 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16853 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16854 Use run_window_configuration_change_hook.
16855
168562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16857
16858 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16859 1-pixel width.
16860
168612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16862
16863 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16864 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16865 if the glyph in the font is zero pixel with.
16866
16867 * dispextern.h (struct glyph_string): New member padding_p.
16868
16869 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16870
16871 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16872
16873 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16874
16875 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16876
16877 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16878
168792008-02-25 Jason Rumney <jasonr@gnu.org>
16880
16881 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16882
168832008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16884
16885 Allow fine-grained image-cache flushing.
16886 * dispextern.h (struct image): Add `dependencies' field.
16887 (clear_image_caches): Change arg to Lisp_Object.
16888 * image.c (make_image): Initialize `dependencies' field.
16889 (clear_image_cache): Change arg to allow fine-grained flushing.
16890 Perform the flush even if image-cache-eviction-delay is nil.
16891 (clear_image_caches): Change arg to Lisp_Object.
16892 (Fclear_image_cache): Expand meaning of the argument.
16893 (mark_image): Mark `dependencies' field.
16894 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16895 (lface_hash): Use XHASH rather than XFASTINT.
16896 (face_at_buffer_position): Fix int -> EMACS_INT position.
16897 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16898 (select_frame_for_redisplay): Remove code duplication.
16899 (redisplay_internal): Adapt arg to call to clear_image_caches.
16900
169012008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16902
16903 * s/vms4-0.h:
16904 * s/vms4-2.h:
16905 * s/vms4-4.h:
16906 * s/vms5-5.h: Remove, unused.
16907
16908 * s/irix5-2.h:
16909 * s/irix6-0.h:
16910 * s/riscos5.h:
16911 * s/mach-bsd4-3.h:
16912 * m/mips4.h: Remove files for obsolete systems.
16913
16914 * Makefile.in:
16915 * filelock.c:
16916 * unexmips.c:
16917 * m/hp9000s300.h:
16918 * m/iris4d.h:
16919 * s/aix3-1.h:
16920 * s/hpux.h:
16921 * s/msdos.h:
16922 * s/usg5-0.h:
16923 * s/usg5-2-2.h:
16924 * s/usg5-2.h:
16925 * s/usg5-3.h: Remove references to obsolete variables.
16926
16927 * s/irix5-0.h: Remove, move all the contents ...
16928 * s/irix6-5.h: ... here. Simplify.
16929 * config.in: Regenerate.
16930
169312008-02-24 Jason Rumney <jasonr@gnu.org>
16932
16933 * w32term.c (x_draw_glyph_string_background): Clear the background
16934 manually when cleartype is in use.
16935 (x_draw_glyph_string_foreground): Draw text transparently when
16936 cleartype is in use.
16937
16938 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16939 a font into it unless we have to.
16940
169412008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16942
16943 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16944 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16945
aac0c6e3
MR
169462008-02-18 Jason Rumney <jasonr@gnu.org>
16947
16948 * w32fns.c (Fw32_shell_execute): Encode parameters.
16949
169502008-02-09 Eli Zaretskii <eliz@gnu.org>
16951
16952 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16953
169542008-02-05 Juanma Barranquero <lekktu@gmail.com>
16955
16956 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16957
169582008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16959
16960 * xterm.c (x_set_offset): Don't change the gravity if
16961 CHANGE_GRAVITY is -1.
16962
169632008-02-23 Chong Yidong <cyd@stupidchicken.com>
16964
16965 * fileio.c (auto_save_error_occurred): New var.
16966 (auto_save_error): Set it.
16967 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16968 error occurred.
16969
169702008-02-23 Eli Zaretskii <eliz@gnu.org>
16971
16972 * w32.c (globals_of_w32): Add initializations for
16973 g_b_init_get_sid_sub_authority and
16974 g_b_init_get_sid_sub_authority_count.
16975
169762008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16977
16978 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16979 (font_parse_xlfd): Use them for sanity check.
16980 (Finternal_set_font_style_table): Make sure the table is bijective.
16981
16982 Consolidate the image_cache to the terminal struct.
16983 * termhooks.h (P_): Remove redundant def.
16984 (struct terminal): New field `image_cache'.
16985 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16986 of FRAME_X_IMAGE_CACHE.
16987 * xterm.h (struct x_display_info): Remove image_cache field.
16988 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16989 * w32term.h (struct w32_display_info): Remove image_cache field.
16990 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16991 * macterm.h (struct mac_display_info): Remove image_cache field.
16992 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16993 * xterm.c (x_term_init):
16994 * w32term.c (w32_term_init):
16995 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16996 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16997 Remove declarations.
16998 (clear_image_caches, mark_image_cache): New declarations.
16999 * xfaces.c (clear_face_cache):
17000 * xdisp.c (redisplay_internal): Use clear_image_caches.
17001 * image.c (clear_image_cache): Don't check that a frame is on
17002 a window-system before checking if it shares the same cache.
17003 (clear_image_caches): New function.
17004 (Fclear_image_cache): Use it.
17005 (mark_image): Move from allo.c.
17006 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17007 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17008 (mark_object): Don't call mark_image_cache for frames.
17009 (mark_terminals): Call mark_image_cache.
17010
17011 * lisp.h (Fdelete_terminal): Declare.
17012
17013 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17014 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17015 wrong_type_argument.
17016
170172008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17018
17019 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17020 malayalam.el, and tamil.el. Add sinhala.el.
17021
170222008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17023
17024 * xterm.c (x_connection_closed): Consolidate identical tests.
17025 (x_delete_terminal): Don't crash if called via x_connection_closed.
17026
170272008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17028
17029 * xdisp.c (decode_mode_spec): New arg string.
17030 (display_mode_element): Adjust for the above change.
17031
170322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17033
17034 * callint.c (Fcall_interactively): Use AREF.
17035
170362008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17037
17038 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17039
170402008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17041
17042 * xfns.c (Fx_show_tip): Set string to " " if empty.
17043
170442008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17045
17046 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17047 with Qt.
17048
170492008-02-17 Kenichi Handa <handa@m17n.org>
17050
17051 * ftfont.c (ftfont_shape): Return Lispy number.
17052
17053 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17054 for GCs.
17055 (Finternal_set_font_selection_order): Call font_update_sort_order
17056 only when enable_font_backend is set.
17057 (realize_x_face): Set face->font_info to that of default face only
17058 when enable_font_backend is set.
17059
17060 * xdisp.c (handle_composition_prop): Set it->c to the fist
17061 character of the composed region.
17062 (fill_composite_glyph_string): Set base_face->font_info to
17063 s->font_info. Get a face for ascii from base_face->ascii_face.
17064 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17065 with a face already decided.
17066 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17067 non-negative.
17068 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17069 call font_prepare_composition unconditionally.
17070
17071 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17072
17073 * xterm.h (struct x_display_info): New member font.
17074
17075 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17076 (x_set_mouse_face_gc, x_new_font): Likewise.
17077 (x_term_init): Setup display_info->font.
17078 (x_delete_terminal): Free display_info->font.
17079
17080 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17081
17082 * ftxfont.c (ftxfont_default_fid): Delete it.
17083 (ftxfont_open): Set xfont->fid to 0.
17084 (ftxfont_end_for_frame): Clear data specific to the frame and the
17085 font-driver.
17086
17087 * xftfont.c (xftfont_default_fid): Delete it.
17088 (xftfont_open): Set xfont->fid to 0.
17089
17090 * fontset.c (FONTSET_OBJLIST): New macro.
17091 (fontset_find_font): Update font-object list of the fontset.
17092 (free_realized_fontset): New function.
17093 (free_face_fontset): Call free_realized_fontset.
17094 (Ffont_info): Call font_close_object only when enable_font_backend
17095 is set.
17096
17097 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17098 [HAVE_NTGUI]: Include w32term.h.
17099 [MAC_OS]: Include macterm.ch.
17100 (font_otf_ValueRecord): Use make_number.
17101 (font_finish_cache): Fix handling of reference count.
17102 (font_clear_cache): Update num_fonts.
17103 (font_open_entity): Update smallest_char_width and
17104 smallest_font_height of the frame.
17105 (font_close_object): Update num_fonts.
17106 (Fclear_font_cache): Fix finding the target cache data.
17107
171082008-02-16 Glenn Morris <rgm@gnu.org>
17109
17110 * fontset.c (Finternal_char_font): Fix compilation warning.
17111
171122008-02-16 Eli Zaretskii <eliz@gnu.org>
17113
17114 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17115 instead of char arrays. Enlarge the size of array passed to
17116 get_token_information.
17117
17118 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17119 warnings.
17120
171212008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17122
17123 * .gdbinit: Don't set `args', it breaks gdb --args.
17124
171252008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17126
17127 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17128 within a narrowed buffer.
17129
171302008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17131
17132 * coding.c (decode_coding_object, encode_coding_object):
17133 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17134
171352008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17136
17137 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17138 hardcoding 1.
17139 (detect_coding_system):
17140 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17141 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17142 * insdel.c (insert_from_gap):
17143 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17144 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17145 (string_to_multibyte):
17146 * character.c (chars_in_text, multibyte_chars_in_text):
17147 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17148
17149 * character.h (FETCH_STRING_CHAR_ADVANCE)
17150 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17151 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17152 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17153
17154 * casefiddle.c (casify_region): Only call after-change and composition
17155 functions on the part of the region that was changed.
17156
17157 * keyboard.c (read_avail_input):
17158 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17159
171602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17161
17162 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17163 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17164
171652008-02-11 Juanma Barranquero <lekktu@gmail.com>
17166
17167 * w32menu.c (push_submenu_start, push_submenu_end)
17168 (push_left_right_boundary, push_menu_pane, push_menu_item):
17169 * keyboard.c (read_key_sequence): Don't pass args with side effects
17170 to AREF, it fails when compiling with -DENABLE_CHECKING.
17171
171722008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17173
17174 * Makefile.in (${lispsource}international/charprop.el):
17175 Delete this target.
17176
17177 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17178 emacs-unicode-2.
17179
171802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17181
17182 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17183
171842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17185
17186 * frame.c (Qnoelisp): New symbol.
17187 (syms_of_frame): Initialize it.
17188 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17189 harmless Elisp code, from a strong `force' from x_connection_closed.
17190 * frame.h (Qnoelisp): Declare.
17191 * xterm.c (x_connection_closed): Pass `noelisp'.
17192
17193 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17194 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17195 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17196 rather than `int' for the type of `type'.
17197
171982008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17199
17200 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17201
17202 * Makefile.in (GNUC): Remove support for gcc-1.x.
17203
172042008-02-10 Richard Stallman <rms@gnu.org>
17205
17206 * lisp.h (ASET): Use AREF, not ASLOT.
17207
172082008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17209
17210 * lisp.h (ASET): Check bounds.
17211
172122008-02-10 Glenn Morris <rgm@gnu.org>
17213
17214 * buffer.c (mode-name): Doc fix.
17215
172162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17217
17218 * Makefile.in:
17219 * emacs.c:
17220 * gmalloc.c:
17221 * keyboard.c:
17222 * lisp.h:
17223 * m/ibm370aix.h:
17224 * process.c:
17225 * regex.c:
17226 * s/hpux.h:
17227 * sysdep.c:
17228 * sysselect.h:
17229 * systty.h:
17230 * unexec.c:
17231 * w32term.c:
17232 * xsmfns.c:
17233 * xterm.c: Remove code that deals with obsolete variables.
17234
17235 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17236
17237 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17238 nothing else needs it anymore.
17239
172402008-02-09 Eli Zaretskii <eliz@gnu.org>
17241
17242 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17243 instead of unibyte_char_to_multibyte.
17244
172452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17246
17247 * s/gnu-linux.h: Remove commented out code.
17248
17249 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17250
17251 * Makefile.in: Update what RMS says about using autoconf.
17252 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17253 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17254 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17255 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17256
172572008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17258
17259 * keymap.c (Fkey_description): Move side effect outside of macro call.
17260
17261 * xfaces.c (Finternal_make_lisp_face):
17262 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17263
17264 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17265 (syms_of_fontset): Use ASET.
17266
17267 * fns.c (concat): Move side effect outside of macro call.
17268 (hash_clear): Use ASET.
17269
172702008-02-08 Richard Stallman <rms@gnu.org>
17271
17272 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17273 If FORCE, and frame has a surrogate minibuffer for another frame,
17274 delete the other frame first.
17275
172762008-02-07 Timo Savola <timo.savola@iki.fi>
17277
17278 * xterm.c (x_detect_focus_change): Handle embed client message.
17279 (handle_one_xevent): Ditto.
17280 (handle_one_xevent): If embedded and we get a button press/release,
17281 request focus.
17282 (xembed_set_info, xembed_send_message): New functions.
17283 (x_make_frame_visible): Call xembed_set_info if embedded.
17284 (x_make_frame_invisible): Call xembed_set_info if embedded.
17285 (x_term_init): Initialize Xatom_XEMBED.
17286 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17287 (x_iconify_frame): Ditto.
17288
17289 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17290 (enum xembed_info, enum xembed_message, enum xembed_focus)
17291 (enum xembed_modifier, enum xembed_accelerator): New.
17292 (xembed_set_info, xembed_send_message): Declare.
17293 (FRAME_X_EMBEDDED_P): New.
17294
17295 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17296 gtk_plug_new.
17297
17298 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17299 window ID of a frame.
17300 (x_window): Reparent frame if embedded.
17301 (Fx_create_frame): Don't set border width if embedded.
17302
17303 * emacs.c (USAGE3): Add --parent-id.
17304 (standard_args): Ditto.
17305
173062008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17307
17308 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17309
173102008-02-07 Jim Meyering <meyering@redhat.com>
17311
17312 Use "do...while (0)", not "if (1)...else" in macro definitions.
17313 The latter provokes a warning from gcc about the empty else, when
17314 followed by ";". Also, without that trailing semicolon, it would
17315 silently swallow up any following statement.
17316 * syntax.h (SETUP_SYNTAX_TABLE)
17317 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17318 * buffer.h (DECODE_POSITION): Likewise.
17319 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17320 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17321 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17322 (FETCH_CHAR_ADVANCE): Likewise.
17323 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17324
173252008-02-07 Jim Meyering <meyering@redhat.com>
17326
17327 * lread.c [lint]: Don't include <sys/inode.h>.
17328
173292008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17330
17331 * xselect.c (x_handle_dnd_message):
17332 * xmenu.c (digest_single_submenu, xmenu_show):
17333 * xdisp.c (with_echo_area_buffer_unwind_data)
17334 (format_mode_line_unwind_data, unwind_format_mode_line)
17335 (display_menu_bar):
17336 * eval.c (Ffetch_bytecode):
17337 * doc.c (store_function_docstring):
17338 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17339 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17340 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17341
173422008-02-07 Kenichi Handa <handa@m17n.org>
17343
17344 * ftxfont.c (ftxfont_open): Don't set
17345 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17346
17347 * ftfont.c (ftfont_open): Fix previous change.
17348
173492008-02-06 Jason Rumney <jasonr@gnu.org>
17350
17351 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17352 Use cached metrics for ASCII characters.
17353 (w32font_open_internal): Don't set font's owning_frame.
17354 Cache metrics for ASCII characters.
17355
17356 * w32font.h (struct w32font_info): Add ascii_metrics.
17357 Remove owning_frame.
17358
173592008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17360
17361 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17362 to negative value.
17363
17364 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17365
17366 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17367
17368 * charset.c (syms_of_charset): Set QCtest and Qeq.
17369
173702008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17371
17372 * process.c (Fstart_process):
17373 * callproc.c (Fcall_process): Handle the case where
17374 Funhandled_file_name_directory returns nil.
17375
17376 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17377 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17378 * font.c (check_gstring): Use them and AREF to access the vector before
17379 we know it's really a gstring.
17380 (Ffont_shape_text): Fix typo.
46e722a9 17381 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17382
17383 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17384 Declare.
17385
17386 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17387
173882008-02-05 Jason Rumney <jasonr@gnu.org>
17389
17390 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17391 Set smallest_font_height and smallest_char_width in display info.
17392
173932008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17394
17395 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17396
173972008-02-05 Miles Bader <miles@gnu.org>
17398
17399 * xfaces.c (get_lface_attributes, merge_named_face)
17400 (lookup_named_face, lookup_derived_face, realize_named_face):
17401 Revert 2008-02-01 change by cyd@stupidchicken.com.
17402
174032008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17404
17405 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17406 fallback fonts.
17407 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17408
174092008-02-04 Jason Rumney <jasonr@gnu.org>
17410
17411 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17412 set full_name.
17413 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17414
174152008-02-03 Jason Rumney <jasonr@gnu.org>
17416
17417 * makefile.w32-in (OBJ1): Include font.o here.
17418 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17419
174202008-02-02 Jason Rumney <jasonr@gnu.org>
17421
17422 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17423
174242008-02-01 Jason Rumney <jasonr@gnu.org>
17425
17426 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17427
17428 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17429
174302008-02-01 Andreas Schwab <schwab@suse.de>
17431
17432 * Makefile.in (shortlisp, lisp): Update for rename of
17433 ../lisp/language/myanmar.el.
17434
174352008-02-01 Chong Yidong <cyd@stupidchicken.com>
17436
17437 * xfaces.c (get_lface_attributes): Delete function.
17438 (merge_named_face, lookup_named_face, lookup_derived_face)
17439 (realize_named_face): Call lface_from_face_name directly, and use
17440 the fact that merge_face_vectors does not alter its FROM argument.
17441
174422008-02-01 Jason Rumney <jasonr@gnu.org>
17443
17444 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17445 input in the default locale. Handle non-Unicode multibyte input.
17446
174472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17448
17449 * fontset.c (reorder_font_vector): Exclude nil elements from the
17450 font group. Don't try multiple fonts.
17451 (fontset_font): Adjust for the above change.
17452 (Finternal_char_font): Return nil if the found font doesn't
17453 contain the character ch.
17454
17455 * Makefile.in (lisp, shortlisp): Add cham.el.
17456
174572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17458
17459 * font.h (FONTP): Make it return 1 also for a font-object.
17460
17461 * .gdbinit (xfontset): New function.
17462
17463 * font.c (font_find_for_lface): Check if the character C is
17464 supported or not only for the first font.
17465
17466 * fontset.c (reorder_font_vector): Fix typo.
17467 (fontset_find_font): Don't add a font-spec specifying a script.
17468 Use 0 (not Qt) for the indication of empty font-group. Change the
17469 format of RFONT-DEF. Return Qt if no font in the font-group
17470 support the character.
17471 (fontset_font): Adjust for the above change. If no font was
17472 found the character, remember that.
17473 (face_for_char): Adjust for the change of RFONT-DEF.
17474 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17475 no font for the target.
17476 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17477
174782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17479
17480 * font.c (font_load_for_face): Handle the case that the font in
17481 face->lface is a string.
17482
174832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17484
17485 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17486
174872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17488
17489 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17490 Fix previous change. If the frame is not on a window system,
17491 signal an error.
17492
174932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17494
17495 * coding.c (decode_coding_object, encode_coding_object): Adjust
17496 marker positions after conversion.
17497
17498 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17499
175002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17501
17502 * font.c (font_find_for_lface): Fix the handling of the return
17503 value of font_has_char.
17504 (Ffont_shape_text): Fix previous change.
17505
17506 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17507 (fontset_ref_and_range): Delete it.
17508 (fontset_find_font): Call char_table_ref_and_range instead of
17509 FONTSET_REF_AND_RANGE.
17510 (make_fontset): Don't setup font groups of Latin here.
17511 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17512 (new_fontset_from_font): Make the specified font the default for
17513 all Latin characters.
17514
175152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17516
17517 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17518 is on a window system before accessing the fontset of the frame.
17519
175202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17521
17522 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17523
17524 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17525 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17526
17527 * font.c (Ffont_shape_text): If the font driver doesn't have a
17528 shaper function, make zero-width glyphs to have at least one-pixel
17529 width. Fix setting of `to' field of glyphs.
17530
175312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17532
17533 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17534 glyphs.
17535
17536 * font.h (struct font_driver): Improve docstring of member `shape'.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * composite.c (syms_of_composite): Fix docstring of
17541 auto-composition-function.
17542
17543 * font.h (LGLYPH_SIZE): New macro.
17544
17545 * font.c (Ffont_fill_gstring): Stop filling when a character not
17546 supported by the font is found.
17547 (Ffont_shape_text): When a shape callback function returns nil,
17548 try at most two more times with larger gstring.
17549 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17550
17551 * xdisp.c (handle_auto_composed_prop): Change the argument to
17552 auto-composition-function.
17553
17554 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17555 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17556 Lispy glyph and store it in the lgstring.
17557
17558 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17559
17560 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17561
175622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17563
17564 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17565
17566 * fontset.c (Vfont_encoding_charset_alist): New variable.
17567 (syms_of_fontset): DEFVAR it.
17568 (reorder_font_vector, fontset_find_font): Optimize for the case of
17569 no need of reordering.
17570 (face_for_char): Map the charset property by
17571 Vfont_encoding_charset_alist.
17572
175732008-02-01 Jason Rumney <jasonr@gnu.org>
17574
17575 * w32font.c (logfonts_match): Don't check adstyle here.
17576 (font_matches_spec): Check here against physical font instead.
17577 (add_font_entity_to_list): Avoid some substitutions.
17578
17579 * font.c (font_parse_fcname): Default weight and slant to normal.
17580 (font_score): Prefer normal fonts if weight or slant unspecified.
17581 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17582 match freetype scores.
17583
175842008-02-01 Jason Rumney <jasonr@gnu.org>
17585
17586 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17587 font, as it may have been deleted.
17588 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17589 most common hyphenless variation.
17590 (logfonts_match): Check generic family.
17591 (font_matches_spec): Don't check generic family here.
17592 (fill_in_logfont): Set generic family based on adstyle.
17593
17594 * w32font.h (w32font_get_cache): Update declaration.
17595
175962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17597
17598 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17599
17600 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17601 If none of the new drivers are available, call font_update_drivers
17602 with the old drivers.
17603
17604 * w32font.c (w32font_get_cache): Adjust the argument type.
17605
17606 * xfont.c (xfont_get_cache): Adjust the argument type.
17607
17608 * font.h (struct font_driver): Change argument type of get_cache.
17609
17610 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17611
17612 * font.c (Ffont_get): Fix arguments to Fassoc.
17613 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17614 (font_clear_cache): New function.
17615 (font_list_entities, font_matching_entity): Use font_get_cache.
17616 (font_update_drivers): Call font_clear_cache when finishing a driver.
17617
17618 * fontset.c (fontset_find_font): Fix previous change.
17619
176202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17621
17622 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17623 dpyinfo->font_table.
17624 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17625 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17626
17627 * font.c (font_at): Handle the case that the arg C is negative.
17628 Handle the unibyte case.
17629 (Ffont_at): Call font_at with the arg C -1.
17630
17631 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17632 the position here, and call font_at with the arg C -1.
17633 Don't check the range of the existing composition at the point.
17634
176352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17636
17637 * fontset.c (fontset_add): New args charset_id and family.
17638 Change caller.
17639 (load_font_get_repertory, fontset_find_font): Assume that
17640 font_spec is always a font-spec object.
17641 (Fset_fontset_font): Always store a font-spec object in a fontset.
17642
17643 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17644 instead of get_property_and_range.
17645
176462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17647
17648 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17649 (xftfont_open): Don't keep locking face.
17650 (xftfont_close): Don't unlock face.
17651 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17652
17653 * fontset.c (fontset_find_font): Don't prefer a font of
17654 supplementary charset.
17655
176562008-02-01 Kenichi Handa <handa@m17n.org>
17657
17658 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17659 script, langsys_tag to langsys, new member script.
17660 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17661 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17662 listing to the script specified in that property. Fix arg to
17663 OTF_check_features.
17664
176652008-02-01 Jason Rumney <jasonr@gnu.org>
17666
17667 * w32font.h: New file.
17668
17669 * w32font.c: Include it.
17670 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17671 (w32font_open): Set owning_frame.
17672 (w32font_text_extents): Use owning_frame.
17673 (struct font_callback_data): Add opentype_only field.
17674 (add_font_entity_to_list): Use it to filter fonts.
17675 Don't check against full name.
17676 (w32font_list_internal): New function.
17677 (w32font_list): Use it.
17678 (w32font_match_internal): New function.
17679 (w32font_match): Use it.
17680 (w32font_open_internal): New function.
17681 (w32font_open): Use it.
17682 (w32font_get_cache, w32font_close, w32font_has_char)
17683 (w32font_encode_char, w32font_text_extents, w32font_draw):
17684 Make non-static.
17685
17686 * makefile.w32-in (w32font.o): Depend on w32font.h.
17687
176882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17689
17690 * charset.c (Fdefine_charset_internal): Record a supplementary
17691 charset at the tail of Vcharset_order_list.
17692
17693 * font.c (Ffont_shape_text): Fix the return value.
17694
17695 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17696
17697 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17698
176992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17700
17701 * ftfont.c (struct OpenTypeSpec): New struct.
17702 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17703 (ftfont_get_open_type_spec): New function.
17704 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17705
17706 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17707
177082008-02-01 Jason Rumney <jasonr@gnu.org>
17709
17710 * w32font.c (add_font_entity_to_list): Compare only the beginning
17711 of full name.
17712
177132008-02-01 Kenichi Handa <handa@m17n.org>
17714
17715 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17716 Never return HANDLED_RECOMPUTE_PROPS.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * font.c (font_gstring_produce): Delete it.
17721
17722 * composite.h (COMPOSITION_METHOD):
17723 Handle COMPOSITION_WITH_GLYPH_STRING.
17724
177252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17726
17727 * xfont.c (Qx): Delete.
17728 (syms_of_xfont): Don't initialize Qx.
17729
17730 * composite.h (enum composition_method):
17731 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17732
177332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17734
17735 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17736 (choose_face_font): Accept new form of font-spec.
17737
17738 * frame.h (font_driver_list): Declare it unconditionally.
17739 (struct frame): Define members font_driver_list and font_data_list
17740 unconditionally.
17741
17742 * fontset.c: Include "font.h" unconditionally.
17743 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17744 (Fset_fontset_font): Accept a font-spec object.
17745
17746 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17747 PIXEL_SIZE part a wild card.
17748
17749 * dispextern.h (struct glyph_string): Define members clip and
17750 num_clips unconditionally.
17751 (struct face): Define members font_info and extra unconditionally.
17752
17753 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17754 ftfont_info only when HAVE_LIBOTF is defined.
17755
177562008-02-01 Andreas Schwab <schwab@suse.de>
17757
17758 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17759 and end.
17760
177612008-02-01 Jason Rumney <jasonr@gnu.org>
17762
17763 * w32font.c (w32font_driver): Add new fields.
17764
177652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17766
17767 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17768 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17769 (LIBES): Add @M17N_FLT_CFLAGS@.
17770
17771 * composite.c (compose_text): Don't treat the new style
17772 composition specially.
17773
17774 * emacs.c (main): Call syms_of_font unconditionally.
17775
17776 * font.h (FONT_ENTITY_NOT_LOADABLE)
17777 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17778 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17779 (struct font_driver): New member shape.
17780 (font_registry_charsets): Extern it.
17781 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17782 (font_otf_capability, font_drive_otf): Delete their externs.
17783
17784 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17785 (font_charset_alist, font_registry_charsets): Move from xfont.c
17786 and rename.
17787 (font_prop_validate_otf): New function.
17788 (font_property_table): Register it for QCotf.
17789 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17790 (font_drive_otf): Delete.
17791 (font_prepare_composition): New arg F. Adjust for the change of
17792 lispy gstring.
17793 (font_find_for_lface): New arg C.
17794 (font_load_for_face): Adjust for the change of font_find_for_lface.
17795 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17796 lispy gstring.
17797 (Ffont_shape_text): New function.
17798 (Fopen_font): If the font size is not given, use 12-pixel.
17799 (Ffont_at): New arg STRING.
17800 (syms_of_font): Initalize font_charset_alist.
17801 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17802 conditionally.
17803
17804 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17805 fonts of the same font-spec. Change the format of RFONT-DEF.
17806 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17807 Adjust for the change of RFONT-DEF.
17808 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17809
17810 * ftfont.h: New file.
17811
17812 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17813 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17814 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17815 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17816 font_otf_capability and font_drive_otf, set ftfont_shape.
17817 (ftfont_list): Adjust for the change of :otf property value.
17818 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17819 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17820 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17821 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17822 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17823 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17824
17825 * w32term.c (x_draw_composite_glyph_string_foreground):
17826 Adjust for the change of lispy gstring.
17827
17828 * xdisp.c (handle_composition_prop): Adjust for the change of
17829 lispy gstring. Call a function for auto-composition with the
17830 third arg it->window.
17831 (fill_composite_glyph_string): Adjust for the change of lispy string.
17832 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17833
17834 * xfaces.c (set_font_frame_param): Adjust for the change of
17835 font_find_for_lface.
17836
17837 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17838 (xfont_registry_charsets): Likewise. Change caller.
17839 (syms_of_xfont): Don't handle x_font_charset_alist.
17840
17841 * xftfont.c: Include "ftfont.h".
17842 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17843 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17844 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17845 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17846 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17847 Set xftfont_driver.shape to xftfont_shape.
17848
17849 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17850 the change of lispy gstring.
17851
178522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17853
17854 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17855
178562008-02-01 Jason Rumney <jasonr@gnu.org>
17857
17858 * w32font.c (w32font_draw): Fill background manually.
17859
178602008-02-01 Jason Rumney <jasonr@gnu.org>
17861
17862 * font.c (Qfontp): Remove unused symbol.
17863 (QCantialias): New symbol.
17864 (syms_of_font): Define it.
17865 (font_property_table): Set a validator for QCantialias.
17866
17867 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17868 Define if not already.
17869 (QCfamily): Share with xfaces.c.
17870 (Qstandard, Qsubpixel, Qnatural): New symbols.
17871 (syms_of_w32font): Define them. Don't define QCfamily here.
17872 (w32_antialias_type, lispy_antialias_type): New functions.
17873 (w32_enumfont_pattern_entity): New arg requested_font.
17874 Set antialias parameter if non-default was requested.
17875 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17876
178772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17878
17879 * lread.c (read1): Undo the previous change.
17880
178812008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17882
17883 * frame.c (Fdelete_frame): Call font_update_drivers only when
17884 USE_FONT_BACKEND is defined.
17885
178862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17887
17888 * font.h (struct font_bitmap): New member bits_per_pixel.
17889 (struct font_driver): New members start_for_frame and end_for_frame.
17890 (struct font_data_list): New struct.
17891 (font_put_frame_data, font_get_frame_data): Extern them.
17892
17893 * frame.h (struct frame): New member font_data_list.
17894
17895 * font.c (font_update_drivers): Call driver->start_for_frame and
17896 driver->end_for_frame at proper timings.
17897 (font_put_frame_data, font_get_frame_data): New functions.
17898 (Ffont_spec): Add usage in the docstring.
17899
17900 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17901 (Fdelete_frame): Call font_update_drivers.
17902
17903 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17904 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17905 (xftfont_get_xft_draw): New function.
17906 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17907 (xftfont_end_for_frame): New function.
17908 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17909
17910 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17911 Change argument. Cache GCs in the per-frame data.
17912 (struct ftxfont_frame_data): New struct.
17913 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17914 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17915 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17916 (ftxfont_end_for_frame): New function.
17917 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17918
17919 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * xselect.c (Vselection_coding_system)
17924 (Vnext_selection_coding_system): Delete them.
17925 (syms_of_xselect): Don't declare selection-coding-system and
17926 next-selection-coding-system. They are declared in select.el.
17927
179282008-02-01 Jason Rumney <jasonr@gnu.org>
17929
17930 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17931
17932 * w32fns.c: Include imm.h.
17933 (get_composition_string_fn, get_ime_context_fn): New optional
17934 system functions.
17935 (globals_of_w32fns): Load them from imm32.dll.
17936 (ignore_ime_char): New flag.
17937 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17938 WM_IME_ENDCOMPOSITION messages.
17939
17940 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17941 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17942
179432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17944
17945 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17946 (READCHAR_REPORT_MULTIBYTE): New macro.
17947 (readchar): New 2nd arg MULTIBYTE.
17948 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17949 Make symbol's name multibyte according to the multibyteness of the
17950 source.
17951
179522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17953
17954 * xfaces.c (face_for_overlay_string): Call lookup_face with
17955 correct arguments (fix of synching with the trunk).
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17960 (font_prop_validate_non_neg, font_prop_validate_spacing):
17961 Delete argument prop_index.
17962 (font_property_table): Change arguments to validater. Change Callers.
17963 (font_lispy_object): Delete.
17964 (font_at): Use font_find_object instead fo font_lispy_object.
17965
179662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17967
17968 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17969 and file names.
17970
179712008-02-01 Jason Rumney <jasonr@gnu.org>
17972
17973 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17974 (font_matches_spec): Remove debug output.
17975 (add_font_entity_to_list): Avoid using substituted fonts.
17976
179772008-02-01 Jason Rumney <jasonr@gnu.org>
17978
17979 * doc.c (Fsnarf_documentation):
17980 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17981
179822008-02-01 Miles Bader <miles@gnu.org>
17983
17984 * dispextern.h (struct glyph_row): Only define "clip" field if
17985 HAVE_WINDOW_SYSTEM is defined.
17986
179872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17988
17989 Fix up multi-tty merge.
17990
17991 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17992 and indentation.
17993
17994 * xfaces.c (free_realized_face, clear_face_gcs):
17995 Include font_done_for_face in the input_blocked section, just in case.
17996
17997 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17998 (get_char_face_and_encoding): Undo last change and remove the *other*
17999 duplicate definition (i.e. keep the one that's better scoped and that
18000 includes code for the font-backend).
18001
18002 * terminal.c (create_terminal): Default keyboard_coding to
18003 `no-conversion' and terminal_coding to `undecided'.
18004
18005 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18006
18007 * fontset.c (free_realized_fontsets): Check that the table entry does
18008 contain a fontset before trying to compare it to `base'.
18009
18010 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18011 syms_of_charset, and syms_of_coding earlier because init_window_once
18012 now needs Vcoding_system_hash_table to be setup.
18013
18014 * coding.h (default_buffer_file_coding): Remove.
18015
18016 * coding.c (default_buffer_file_coding): Remove.
18017 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18018 than ->symbol, and use the terminal-local coding system.
18019 (syms_of_coding): Don't setup the coding-systems that are not
18020 terminal-local.
18021 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18022
18023 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18024 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18025
18026 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18027 in chartab.c and were re-added here by mistake.
18028 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18029
18030 * doc.c (Fsnarf_documentation):
18031 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18032 src to etc.
18033
18034 * ChangeLog.10: Add mistakenly removed entry.
18035
180362008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18037
18038 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18039
180402008-02-01 Miles Bader <miles@gnu.org>
18041
18042 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18043 Add extra args to FACE_FOR_CHAR.
18044
180452008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18048 in sequence.
18049
18050 * chartab.c (map_sub_char_table, map_char_table): If the range
18051 contains just one character, call the function with that character
18052 even if the depth is not 3.
18053
180542008-02-01 Jason Rumney <jasonr@gnu.org>
18055
18056 * w32font.c (w32font_text_extents): Calculate metrics for the
18057 whole string.
18058
180592008-02-01 Jason Rumney <jasonr@gnu.org>
18060
18061 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18062
180632008-02-01 Jason Rumney <jasonr@gnu.org>
18064
18065 * w32term.c (x_set_glyph_string_clipping): Use
18066 get_glyph_string_clip_rects.
18067 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18068 Adjust for the change of struct glyph_string.
18069
18070 * w32font.c (w32font_draw): Do clipping here.
18071
180722008-02-01 Kenichi Handa <handa@m17n.org>
18073
18074 * xftfont.c (xftfont_draw): Adjust for the change of struct
18075 glyph_string.
18076
18077 * xterm.c (x_set_glyph_string_clipping): Use
18078 get_glyph_string_clip_rects.
18079 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18080 Adjust for the change of struct glyph_string.
18081
18082 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18083 the resulting clip(s}.
18084 (expose_overlaps): Add arg r. Change callers. Set it to
18085 row->clip temporarily.
18086 (expose_window): Redraw rows overlapping the exposed area.
18087
18088 * dispextern.h (struct glyph_row): New member clip.
18089 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18090 clip_height, new member clip, and num_clips.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * data.c (Fchar_or_string_p): Fix docstring.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18099 create a temporary XftDraw object.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * font.c (Ffontp): Fix docstring.
18104
18105 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18106 strong evidence of ISO-2022.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18111 SYNTAX_ENTRY_FOLLOW_PARENT.
18112
181132008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18114
18115 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18116 its type.
18117 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18118 Update to the new type of weak_hash_tables and next_weak.
18119
18120 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18121 a plain C pointer to Lisp_Hash_Table.
18122
18123 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18124 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18125 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18126 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18127 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18128 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18129 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18130 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18131 (GC_EQ): Remove since they've been identical to their non-GC_
18132 alter-egos ever since the markbit was eradicated.
18133
18134 * alloc.c:
18135 * buffer.c:
18136 * buffer.h:
18137 * data.c:
18138 * fileio.c:
18139 * filelock.c:
18140 * fns.c:
18141 * frame.h:
18142 * lisp.h:
18143 * macterm.c:
18144 * print.c:
18145 * process.c:
18146 * w32fns.c:
18147 * w32menu.c:
18148 * w32term.c:
18149 * xfns.c:
18150 * xmenu.c:
18151 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * chartab.c (map_sub_char_table): Make it work for the top-level
18156 char-table. Fix handling of parent char-table.
18157 (map_char_table): Adjust for the above change.
18158
181592008-02-01 Jason Rumney <jasonr@gnu.org>
18160
18161 * w32font.c (Qgdi): Rename from Qw32.
18162
181632008-02-01 Jason Rumney <jasonr@gnu.org>
18164
18165 * w32bdf.c (get_quoted_string): Make function static.
18166
181672008-02-01 Kenichi Handa <handa@m17n.org>
18168
18169 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18170 bigger ascent and descent than those of the font, use them as
18171 font's ascent and descent.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * Makefile.in (${lispsource}international/charprop.el): Move this
18176 target within "#ifdef HAVE_UNIDATA" and "#endif".
18177
181782008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18181 (shortlisp): Add ../lisp/language/tai-viet.el.
18182
181832008-02-01 Ulrich Mueller <ulm@gentoo.org>
18184
18185 * Makefile.in (${lispsource}international/charprop.el): Depend on
18186 temacs${EXEEXT}.
18187
181882008-02-01 Jason Rumney <jasonr@gnu.org>
18189
18190 * w32font.c (w32font_close): Delete the GDI font object.
18191
18192 * w32menu.c: Include character.h.
18193
18194 * w32proc.c: Likewise.
18195
18196 * w32select.c: Likewise.
18197
18198 * makefile.w32-in (w32proc.o): Depend on character.h.
18199
182002008-02-01 Jason Rumney <jasonr@gnu.org>
18201
18202 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18203
18204 * w32menu.c (syms_of_w32menu): Likewise.
18205
18206 * w32proc.c (syms_of_ntproc): Likewise.
18207
18208 * w32select.c (syms_of_w32select): Likewise.
18209
18210 * w32term.c (syms_of_w32term): Likewise.
18211
182122008-02-01 Jason Rumney <jasonr@gnu.org>
18213
18214 * w32font.c (w32font_draw): Delete brush after using it.
18215
182162008-02-01 Jason Rumney <jasonr@gnu.org>
18217
18218 * w32font.c (w32font_open): Don't set font_idx.
18219 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18220 to font settings.
18221 (w32font_draw): Fill background explicitly.
18222
182232008-02-01 Jason Rumney <jasonr@gnu.org>
18224
18225 * w32term.c (w32_initialize): Don't call w32font_initialize.
18226
18227 * w32font.c (w32font_info): Remove subranges.
18228 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18229 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18230 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18231 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18232 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18233 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18234 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18235 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18236 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18237 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18238 New symbols.
18239 (font_callback_data): New struct.
18240 (w32font_list, w32font_match): Use it.
18241 (w32font_open): Don't populate subranges.
18242 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18243 (w32font_encode_char): Always return unicode code-point as-is.
18244 (w32font_text_extents): Supply a transformation matrix to
18245 GetGlyphOutline. Never look up by glyph index. Avoid looping
18246 twice. Use unicode version of GetTexExtentPoint32 instead of
18247 glyph index version.
18248 (set_fonts_frame): Remove.
18249 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18250 set frame parameter. Use backward compatible fake foundries.
18251 Save generic family in extra slot under QCfamily. Make width slot
18252 constant. Save QCspacing value. Save list of scripts instead of
18253 binary subranges.
18254 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18255 (add_font_entity_to_list): Use font_callback_data struct. Filter
18256 unwanted fonts.
18257 (add_one_font_entity_to_list): Use font_callback_data struct.
18258 (w32_registry): Default to iso10646_1.
18259 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18260 string font registries. Don't fill in font name if it is a generic
18261 family name, fill family instead. Use spacing, family and script
18262 extra info to fill pitch, family and charset fields.
18263 (list_all_matching_fonts): Use font_callback_data struct.
18264 (unicode_range_for_char): Remove.
18265 (font_supported_scripts): New function.
18266 (w32font_initialize): Remove.
18267 (syms_of_w32font): Update which symbols are defined.
18268
182692008-02-01 Jason Rumney <jasonr@gnu.org>
18270
18271 * font.c (font_pixel_size): Reverse assq_no_quit args.
18272
18273 * w32term.h (FONT_WIDTH): Report max width, not average.
18274 (FONT_MAX_WIDTH): Remove.
18275 (FONT_AVG_WIDTH): New macro.
18276
18277 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18278 redefinition of FONT_WIDTH.
18279
18280 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18281 (w32_cache_char_metrics): Use FONT_WIDTH.
18282
18283 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18284
182852008-02-01 Jason Rumney <jasonr@gnu.org>
18286
18287 * w32font.c (w32font_open): Make lfHeight negative.
18288
18289 * w32fns.c (x_default_font_parameter): Use new style font name.
18290 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18291
182922008-02-01 Jason Rumney <jasonr@gnu.org>
18293
18294 * w32font.c (QCsubranges): New symbol.
18295 (w32font_open, w32font_has_char): Get subranges from subproperty
18296 of extra.
18297 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18298 (syms_of_w32font): Define :subranges symbol.
18299
18300 * font.c (font_put_extra): Expose externally.
18301
18302 * font.h (font_put_extra): Move declaration from font.c.
18303
18304 * font.c (Ffont_get): Use font driver to determine otf capability.
18305 (adjust_anchor): Check if driver defines anchor_point before using.
18306
18307 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18308 (w32font_draw): Use options.
18309 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18310 Fix detection of truetype fonts.
18311 (registry_to_w32_charset): Handle charsets other than iso8859-1
18312 expressed as lisp symbols.
18313 (w32_registry): Express charset as lisp symbol.
18314 (fill_in_logfont): Reverse pixel and point height logic.
18315 Don't set width here. Set quality to default.
18316
18317 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18318 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18319
18320 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18321 Remove redundant loop and allocation.
18322
18323 * makefile.w32-in (font.o, w32font.o): New objects.
18324 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18325 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18326
18327 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18328 STORE_XCHARB a valid l-value.
18329
18330 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18331 calculations for non-Truetype fonts.
18332 (x_draw_glyph_string): Sync with xterm.c.
18333 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18334 Remove redundant code.
18335 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18336
18337 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18338 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18339
18340 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18341 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18342
18343 * w32font.c: New file for w32 font backend.
18344
183452008-02-01 Kenichi Handa <handa@m17n.org>
18346
18347 * term.c: Don't include "buffer.h" twice.
18348
183492008-02-01 Kenichi Handa <handa@m17n.org>
18350
18351 * character.c (Funibyte_string): New function.
18352 (syms_of_character): Defsubr it.
18353
183542008-02-01 Jason Rumney <jasonr@gnu.org>
18355
18356 * w32term.c [USE_FONT_BACKEND]:
18357 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18358 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18359 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18360 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18361 (x_free_frame_resources): Sync with xterm.c.
18362
183632008-02-01 Andreas Schwab <schwab@suse.de>
18364
18365 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18366 char-table size.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18371
183722008-02-01 Kenichi Handa <handa@m17n.org>
18373
18374 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18375 font_otf_gpos, add font_drive_otf.
18376
18377 * fontset.c (fontset_find_font): Pay attention to font size
18378 specified for a font.
18379 (reorder_font_vector): Check contents of font_def.
18380
18381 * font.c (struct otf_list): Delete it.
18382 (otf_list): Make it a lisp variable.
18383 (otf_open): Use lispy otf_list.
18384 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18385 (check_otf_features): New function.
18386 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18387 New functions.
18388 (font_drive_otf): New function merging font_otf_gsub and
18389 font_otf_gpos.
18390 (font_open_for_lface): New arg spec. Change argument order.
18391 (font_load_for_face): Adjust for the change of font_open_for_lface.
18392 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18393 Ffont_otf_gpos.
18394 (syms_of_font): Staticpro otf_list. Delete defsubr of
18395 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18396
18397 * xfaces.c (set_font_frame_param): Adjust for the change of
18398 font_open_for_lface.
18399
18400 * font.h (font_open_for_lface): Adjust prototype.
18401 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18402 member otf_drive.
18403 (font_otf_gsub, font_otf_gpos): Delete externs.
18404 (font_drive_otf): Extern it.
18405
184062008-02-01 Kenichi Handa <handa@m17n.org>
18407
18408 * font.c (font_at): If the window W is not on a window system,
18409 return Qnil.
18410
18411 * coding.c (produce_chars, encode_coding): Don't call
18412 insert_from_gap if no characters to produce.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18417 Fclear_face_cache.
18418
18419 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18420
184212008-02-01 Miles Bader <miles@gnu.org>
18422
18423 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18424 Parse "--disable-font-backend" option.
18425 (standard_args): Add "--disable-font-backend" option.
18426
184272008-02-01 Kenichi Handa <handa@m17n.org>
18428
18429 * fontset.c (fontset_find_font): New function.
18430 (fontset_font): Use fontset_find_font.
18431 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18432 Register the specified font for all Latin characters.
18433 (new_fontset_from_font): Register the specified font for all Latin
18434 characters.
18435 (dump_fontset): For a realized fontset, include the base fontset
18436 name in the returned vector.
18437
184382008-02-01 Kenichi Handa <handa@m17n.org>
18439
18440 * character.h (CHAR_STRING): Cast C to unsigned on calling
18441 char_string.
18442
18443 * character.c (char_string): Type of arg C changed to unsigned.
18444 Signal an error if C is an invalid character code.
18445
18446 * editfns.c (general_insert_function, Fchar_to_string):
18447 Use CHARACTERP, not INTEGERP.
18448
184492008-02-01 Kenichi Handa <handa@m17n.org>
18450
18451 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18452 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18453
18454 * regex.c (analyse_first): Fix for multibyte characters in "case
18455 charset:" and "case categoryspec:".
18456
184572008-02-01 Andreas Schwab <schwab@suse.de>
18458
18459 * Makefile.in (LIBES): Move standard libraries to the end.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18464 nonzero, don't shrink the buffer nextb.
18465
18466 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18467
18468 * coding.c (coding_alloc_by_making_gap): New arg offset.
18469 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18470 offset.
18471 (decode_coding_iso_2022): Update coding->safe_charsets.
18472 (decode_coding_gap): Temporarily set
18473 current_buffer->text->inhibit_shrinking to 1.
18474
184752008-02-01 Kenichi Handa <handa@m17n.org>
18476
18477 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18478 indexing into elements of s->cmp and s->char2b.
18479
184802008-02-01 Juanma Barranquero <lekktu@gmail.com>
18481
18482 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18483
184842008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18487 target_multibyte instead of multibyte.
18488 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18489 (bcmp_translate): Change the argument name from multibyte to
18490 target_multibyte.
18491
184922008-02-01 Kenichi Handa <handa@m17n.org>
18493
18494 These changes are to compile a regexp into a pattern that can be
18495 used both for multibyte and unibyte targets.
18496
18497 * Makefile.in (search.o): Depend on charset.h.
18498
18499 * character.c (multibyte_char_to_unibyte_safe): New function.
18500
18501 * search.c: Include "charset.h".
18502 (compile_pattern_1): Delete argument multibyte. Don't set
18503 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18504 (compile_pattern): Don't compare cp->buf.target_multibyte.
18505 Compare cp->buf.charset_unibyte.
18506 (compile_pattern): Set cp->buf.target_multibyte.
18507
18508 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18509
18510 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18511
18512 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18513 multibyte. Change callers.
18514 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18515 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18516 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18517 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18518 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18519 (regex_compile): Make the compiled pattern usable both for
18520 multibyte and unibyte targets.
18521 (analyse_first): Make the fastmap usable both for multibyte and
18522 unibyte targets.
18523 (TRANSLATE_VIA_MULTIBYTE): Delete.
18524 (re_match_2_internal): Pay attention to the case that the
18525 multibyteness of bufp and target may be different.
18526
185272008-02-01 Kenichi Handa <handa@m17n.org>
18528
18529 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18530 empty box occupy at least one column width.
18531
185322008-02-01 Miles Bader <miles@gnu.org>
18533
18534 * Makefile.in: Remove redundant HAVE_XFT clause.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18539
185402008-02-01 Kenichi Handa <handa@m17n.org>
18541
18542 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18543 being nil.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18548
185492008-02-01 Kenichi Handa <handa@m17n.org>
18550
18551 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18552
185532008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * search.c (simple_search): Fix previous change.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * xftfont.c (ftfont_font_format): Extern declaration.
18560
18561 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18562
18563 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18564 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18565
18566 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18567 (ftfont_font_format): Fix previous change.
18568
18569 * font.h (Ffont_xlfd_name): EXFUN it.
18570
18571 * font.c (font_parse_xlfd): Fix the array size of `f'.
18572 (register_font_driver): Use EQ to compare driver->type.
18573
18574 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18575 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18576 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18577
185782008-02-01 Kenichi Handa <handa@m17n.org>
18579
18580 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18581 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18582
185832008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * xfont.c (xfont_open): Set font->format.
18586
18587 * xftfont.c (xftfont_open): Set font->format.
18588
18589 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18590 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18591 (ftfont_open): Set font->format.
18592 (ftfont_font_format): New function.
18593
18594 * font.h (struct font): New member format.
18595
18596 * font.c (Qopentype): New variable.
18597 (syms_of_font): Defsym it.
18598 (Fquery_font): Change the format of the last element of the return
18599 value.
18600
186012008-02-01 Kenichi Handa <handa@m17n.org>
18602
18603 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18604 last resort.
18605
186062008-02-01 Kenichi Handa <handa@m17n.org>
18607
18608 * coding.c (detect_coding_charset): Fix detection of multi-byte
18609 charset.
18610
186112008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18612
18613 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18614
186152008-02-01 Kenichi Handa <handa@m17n.org>
18616
18617 * xdisp.c (get_next_display_element): Set it->face_id for the
18618 first component of a composition.
18619 (x_produce_glyphs): Check if the font is changed or not for composition.
18620
186212008-02-01 Kenichi Handa <handa@m17n.org>
18622
18623 * fontset.c (Qlatin): New variable.
18624 (syms_of_fontset): Define it as a lisp symbol.
18625 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * font.c (font_unparse_fcname): Pay attention to the case that
18630 some of font property is a null string.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * term.c: Include "composite.h".
18635 (encode_terminal_code): Output all components of composition.
18636 Check the size of encode_terminal_src.
18637 (produce_glyphs): For composition, call produce_composite_glyph.
18638 (append_composite_glyph, produce_composite_glyph): New functions.
18639
18640 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18641 is not found, get font_info from the current ascii face.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18646 buffer-file-name to Qnil before calling insert_from_buffer.
18647
18648 * font.c (font_unparse_fcname): Pay attention to the case that
18649 foundry is a null string.
18650
186512008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18654
18655 * font.c (Qunicode_sip): New variable.
18656 (syms_of_font): Declare it as a Lisp symbol.
18657
18658 * font.h (Qunicode_sip): Extern it.
18659
186602008-02-01 Kenichi Handa <handa@m17n.org>
18661
18662 * composite.c (get_composition_id): Pay attention to TAB component.
18663
18664 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18665 TAB. Adjust for the change of s->char2b which always points to
18666 the first element of allocated memory.
18667
18668 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18669
18670 * xdisp.c (handle_composition_prop): Set it->c to the first
18671 non-TAB component.
18672 (fill_composite_glyph_string): Change argument.
18673 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18674 (x_produce_glyphs): Fix handling of left/right padding.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * coding.c (detect_coding_system): Fix for handling off
18679 inhibit_iso_escape_detection. Fix for the case that no coding
18680 system is defined for a specific coding category.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * font.c (font_matching_entity): Delete unused local var.
18685
18686 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18687 opening a font.
18688
18689 * fileio.c (Finsert_file_contents): On recovering a file, assume
18690 Unix-like eol.
18691 (choose_write_coding_system): On auto-saving a file, force
18692 Unix-like eol.
18693
18694 * coding.c (setup_coding_system): Fix setting of
18695 coding->common_flags based on eol_type.
18696 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18697 inherit from it.
18698
186992008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * alloc.c (NSTATICS): Increas to 0x600.
18702
187032008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18706 (ftfont_list): Don't check :name property.
18707 (ftfont_match): New function.
18708 (ftfont_pattern_entity): If the pattern doesn't contain
18709 FC_SPACING, don't assume FC_MONO.
18710
18711 * font.h (struct font_driver): New member `match'.
18712 (font_update_drivers): Adjust prototype.
18713
18714 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18715 property of FONT.
18716 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18717 them unconditionally.
18718 (font_matching_entity): New function.
18719 (font_open_by_name): Try font_matching_entity if exact match is
18720 not found.
18721 (font_update_drivers): Delete the arg FONT. Return a list of
18722 actually used backends. Don't free faces, font caches here.
18723 Don't store data in frame parameters. Don't call x_set_font.
18724 (Ffont_spec): Store :name property as is.
18725 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18726 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18727 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18728 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18729 Call font->driver->otf_gsub instead of font_otf_gsub.
18730
18731 * frame.c (x_set_font_backend): Do more works that were done in
18732 font_update_drivers before.
18733
18734 * xfont.c (xfont_match): New function.
18735 (xfont_driver): Set xfont_driver.match to xfont_match.
18736 (xfont_draw): Set font in GC if necessary.
18737
18738 * ftxfont.c (ftxfont_match): New function.
18739 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18740
18741 * xftfont.c (xftfont_match): New function.
18742 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * font.h (struct font): New member scalable.
18747 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18748 (font_otf_gsub): Adjust prototype.
18749
18750 * font.c (font_otf_capability): Fix handling of the default langsys.
18751 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18752 Check the contents of SPEC.
18753 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18754 (check_gstring): New function.
18755 (REPLACEMENT_CHARACTER): New macro.
18756 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18757 glyph codes of GSTRING.
18758 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18759 (font_prepare_composition): Set cmp->glyph_len.
18760 (font_open_entity): Set font->scalable.
18761 (Ffont_get): Handle :otf property.
18762 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18763 functions.
18764 (Fquery_font): Use font->font.full_name.
18765 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18766 Sfont_otf_alternates.
18767
18768 * ftfont.c (ftfont_open): Set font->font.full_name and
18769 font->font.name properly. Fix calculation of font->font.height
18770 and font->min_width.
18771
18772 * ftxfont.c (ftxfont_create_gcs): New function.
18773 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18774 (ftxfont_draw_backgrond): Fix filling region.
18775 (ftxfont_default_fid): New function.
18776 (ftxfont_open): Set xfont->fid to the return value of
18777 ftxfont_default_fid.
18778 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18779 (ftxfont_done_face): Free only GCs that are created by
18780 ftxfont_create_gcs.
18781 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18782
18783 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18784 Clip to src->width, etc (not src->clip_XXX).
18785
18786 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18787 FontBackend frame parameter.
18788
187892008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * font.h (struct font_driver_list): New member `on'.
18792 (Fclear_font_cache): EXFUN it.
18793 (font_update_drivers): Extern it.
18794
18795 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18796 (font_list_entities): Check driver_list->on.
18797 (register_font_driver): Initalize `on' member to 0.
18798 (font_update_drivers): New function.
18799 (Fclear_font_cache): Check driver_list->on.
18800
18801 * frame.h (Qfont_backend): Extern it.
18802 (x_set_font_backend): Extern it.
18803
18804 * frame.c (Qfont_backend): New variable.
18805 (frame_parms): New element for font-backend.
18806 (x_set_font_backend): New function.
18807
18808 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18809 FontBackend frame parameter.
18810 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18811 x_set_font_backend.
18812
18813 * xfont.c (xfont_list): Don't try listing by :name property if the
18814 name is not for XLFD.
18815
188162008-02-01 Kenichi Handa <handa@m17n.org>
18817
18818 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18819 (LGLYPH_SET_TO): New macros.
18820 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18821 element of G is vector or not.
18822 (font_at): Extern it.
18823
18824 * font.c: Include window.h.
18825 (font_lispy_object): New function.
18826 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18827 end of valid glyph.
18828 (font_close_object): Fix getting (struct font *).
18829 (font_at): New function.
18830 (Ffont_get): If FONT is a font-object, get entity from it.
18831 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18832 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18833 range check.
18834 (Ffont_at): New function.
18835 (syms_of_font): Defsubr Sfont_at.
18836
18837 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18838 before the entry for Qcomposition.
18839 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18840 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18841 the font in gstring.
18842 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18843 LGLYPH_FORM (g) to detect the end of valid glyph.
18844 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18845 we are composing with gstring.
18846
18847 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18848 Check if adjustment is vector or not.
18849
18850 * Makefile.in (font.o): Make it depends on window.h.
18851
188522008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18855 adjustment is vector or not.
18856
188572008-02-01 Miles Bader <miles@gnu.org>
18858
18859 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18860
188612008-02-01 Kenichi Handa <handa@m17n.org>
18862
18863 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18864 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18865 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18866
18867 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18868 (DEVICE_DELTA): Fix typo.
18869 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18870 LGLYPH format.
18871
18872 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18873 the change of LGLYPH format.
18874
188752008-02-01 Kenichi Handa <handa@m17n.org>
18876
18877 * ftfont.c (ftfont_list): Fix typo.
18878 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18879
188802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18881
18882 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18883
18884 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18885 xftface_info is non-NULL.
18886
188872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18888
18889 * ftfont.c (ftfont_list): Move misplaced #endif.
18890
188912008-02-01 Kenichi Handa <handa@m17n.org>
18892
18893 * ftfont.c (ftfont_list): Pay attention to the case that
18894 FC_CAPABILITY is not defined.
18895
188962008-02-01 Kenichi Handa <handa@m17n.org>
18897
18898 * xftfont.c (xftfont_open): Set charset related members to -1.
18899
18900 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18901 QCname.
18902 (ftfont_open): Set charset related members to -1.
18903
18904 * fontset.c (Votf_script_alist): New variable.
18905 (syms_of_fontset): Initialize it.
18906 (fontset_font): Delete unused variable.
18907
18908 * fontset.h (Votf_script_alist): Extern it.
18909
18910 * font.c (font_find_for_lface): Optimize code.
18911
18912 * font.h (font_close_object, font_merge_old_spec): Extern them.
18913
189142008-02-01 Kenichi Handa <handa@m17n.org>
18915
18916 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18917 (syms_of_font): Initialize them.
18918 (font_pixel_size): Allow float value in dpi.
18919 (font_prop_validate_type): Delete.
18920 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18921 Change caller.
18922 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18923 (font_prop_validate_extra): Delete.
18924 (font_prop_validate_spacing): New function.
18925 (font_property_table): Add elements for all known properties.
18926 (get_font_prop_index): Rename from check_font_prop_name. New
18927 argument FROM. Change caller.
18928 (font_prop_validate): Validate all known properties.
18929 (font_put_extra): Delete argument force. Change caller.
18930 (font_expand_wildcards): Make it static. Fix the way of shrinking
18931 the possible range.
18932 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18933 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18934 Change caller.
18935 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18936 (font_parse_fcname): Delete argument merge. Fix parsing of point
18937 size. Don't validate properties values here. Change caller.
18938 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18939 (font_open_by_name): Delete unused variable.
18940 (Ffont_spec): Likewise. Validate property values.
18941 (Ffont_match_p): New function.
18942
18943 * font.h (QCscalable): Extern it.
18944 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18945
18946 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18947
18948 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18949 (xfont_list_pattern): New function.
18950 (xfont_list): Use xfont_list_pattern.
18951
189522008-02-01 Kenichi Handa <handa@m17n.org>
18953
18954 * font.h (Flist_fonts): EXFUN it.
18955
189562008-02-01 Jason Rumney <jasonr@gnu.org>
18957
18958 * w32term.c (w32_initialize): Add back smoothing_type and
18959 smoothing_enabled definitions.
18960
189612008-02-01 Kenichi Handa <handa@m17n.org>
18962
18963 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18964 s->face->font on determining underline position.
18965
189662008-02-01 Kenichi Handa <handa@m17n.org>
18967
18968 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18969 (font_has_char): Accept font-object too.
18970 (font_find_for_lface): Try at first with a size specified in face.
18971
189722008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18975 font_open_by_name.
18976
189772008-02-01 Kenichi Handa <handa@m17n.org>
18978
18979 * font.h (QCspacing, QCdpi): Extern them.
18980 (enum font_spacing): New enum.
18981 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18982
18983 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18984 (QCspacing, QCdpi): New variables.
18985 (syms_of_font): Initialize them.
18986 (font_pixel_size): New function.
18987 (font_put_extra): New function.
18988 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18989 in FONT_EXTRA.
18990 (font_parse_fcname): Handle enumerated values (e.g. bold).
18991 Fix handling font size. Add QCname property that contains only
18992 unknown properties.
18993 (font_score): Change argument. Change caller. Pay attention to
18994 FONT_PIXEL_SIZE_QUANTUM.
18995 (font_sort_entites, font_list_entities, font_find_for_lface)
18996 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18997 (Ffont_spec): Add QCname property that contains only unknown properties.
18998
18999 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19000 include weight in listing pattern, instead check weight of each
19001 listed font. Don't include scalable in pattern. Pay attention to
19002 FONT_PIXEL_SIZE_QUANTUM.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * font.c (font_parse_fcname): Fix parsing of point-size.
19007 (font_unparse_fcname): Produce symbolic names for style properties.
19008 (font_list_entities): Handle float size correctly.
19009 (font_open_by_name): Prefer `normal' property values if the name
19010 doesn't specify them.
19011
19012 * fontset.c (Finternal_char_font): Use font_get_name, not
19013 Ffont_xlfd_name.
19014
19015 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19016 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19017 pattern. Don't force scalable.
19018
19019 * xftfont.c (xftfont_open): For generating a name, start from
19020 96-byte buffer.
19021
190222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19023
19024 * frame.h (x_new_fontset2): Fix prototype.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * font.h (struct font_driver): Delete member parse_name.
19029 (font_match_p, font_get_spec, font_parse_fcname)
19030 (font_unparse_fcname): Extern them.
19031 (font_get_name): Adjust prototype.
19032
19033 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19034 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19035 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19036 unnecessary checks for weight, slant, and swidth.
19037 (font_parse_fcname): New function.
19038 (font_unparse_fcname): New function.
19039 (font_parse_name): New function.
19040 (font_match_p): New function.
19041 (font_get_name): Change return value to Lisp string.
19042 (font_get_spec): New function.
19043 (Qunspecified, Qignore_defface): Don't extern them.
19044 (font_find_for_lface): Assume that LFACE is fully specified.
19045 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19046 object, use it for FACE.
19047 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19048 driver->parse_name.
19049 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19050
19051 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19052 prototype.
19053
19054 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19055 argument F. Don't call Fnew_fontset. Instead, directly call
19056 make_fontset.
19057
19058 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19059
19060 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19061 of x_new_fontset2.
19062
19063 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19064 (Qsans__serif): New variables.
19065 (ftfont_generic_family_list): New variable.
19066 (syms_of_ftfont): Initialize the above variables.
19067 (ftfont_pattern_entity): Delete argument NAME.
19068 (ftfont_list_generic_family): New function.
19069 (ftfont_parse_name): Delete this function.
19070 (ftfont_list): Try generic family only when FcFontList found no font.
19071 (ftfont_list_family): Fix args to FcObjectSetBuild.
19072
19073 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19074 object in attrs[LFACE_FONT_INDEX].
19075 (set_lface_from_font_name): Cancel all changes for font-backend.
19076 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19077 function.
19078 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19079 font object in QCfont attribute.
19080 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19081 (realize_default_face) [USE_FONT_BACKEND]: Call
19082 set_lface_from_font_and_fontset.
19083
19084 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19085 "fixed", and signal error here if no suitable font was found.
19086
19087 * xfont.c (xfont_parse_name): Delete this function.
19088
19089 * xftfont.c (xftfont_open): Change coding style of error
19090 handling. Generate fontconfig's fontname pattern.
19091
19092 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19093 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19094
19095 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19096 Both args FONTSET and FONT_OBJECT must be existing ones.
19097
190982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19099
19100 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19101
191022008-02-01 Kenichi Handa <handa@m17n.org>
19103
19104 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19105
19106 * font.h (struct font): Fix typo.
19107
19108 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19109 XLFD_XXX_INDEX.
19110 (enum xlfd_field_mask): New enum.
19111 (intern_font_field): Changed argument. Change caller. If digits
19112 are followed by non-digits, return a symbol.
19113 (font_expand_wildcards): New function.
19114 (font_parse_xlfd): Fix wildcard handling.
19115 (Ffont_spec): If :name is specified, reflect the info in the other
19116 properties.
19117
19118 * ftfont.c (ftfont_pattern_entity): Fix typo.
19119 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19120 locale.
19121
191222008-02-01 Kenichi Handa <handa@m17n.org>
19123
19124 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19125
19126 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19127 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19128 registry doesn't specify encoding part.
19129 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19130 (font_open_by_name): At first try parsing the name.
19131 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19132 as Lisp symbols.
19133
19134 * fontset.c (reorder_font_vector): Pay attention to the case that
19135 the 3rd element of font_def is nil.
19136 (fontset_font): For the default fontset, append one more fontset
19137 elements for a script-based font specification. Don't add script
19138 attribute on finding a font.
19139 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19140 font name.
19141 (fontset_ascii_font): If a font can't be opened, return nil.
19142
19143 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19144 (ftfont_pattern_entity): New function.
19145 (ftfont_get_cache): Assume that freetype_font_cache is already
19146 initialized.
19147 (ftfont_list): Handle the case that a file is specified in font
19148 name. Use ftfont_pattern_entity to generate entities.
19149 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19150 (syms_of_ftfont): Initialize freetype_font_cache.
19151
19152 * xftfont.c (xftfont_open): Make the font name fontconfig's
19153 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19154 (xftfont_close): Free font->font.name if not NULL.
19155
19156 * xfont.c (xfont_list): If script is specified for a font, return
19157 null_vector.
19158 (xfont_list_family): Declare argument type.
19159
19160 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19161 name, set LFACE_FONT (lface) to nil.
19162
19163 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19164 return Qnil.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19169 (standard_args): Add "-enable-font-backend".
19170
191712008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19174 (struct xftdraw_list, xftdraw_list): Delete them.
19175 (register_xftdraw, check_xftdraw): Delete them.
19176 (xftfont_prepare_face): Don't call register_xftdraw.
19177 (xftfont_done_face): Don't call check_xftdraw.
19178 (xftfont_draw): Get background color only when with_background is
19179 nonzero.
19180
19181 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 These changes are for the new font handling codes.
19186
19187 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19188 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19189 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19190 (FONTSRC, FONTOBJ): New variables.
19191 (obj): Add $(FONTOBJ).
19192 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19193 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19194 @LIBOTF_LIBS@.
19195 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19196 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19197
19198 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19199
19200 * character.h (Vscript_representative_chars): Extern it.
19201
19202 * character.c (Vscript_representative_chars): New variable.
19203 (syms_of_character): Declare it as a Lisp variable.
19204
19205 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19206 enable_font_backend is nonzero, accept the composition method
19207 COMPOSITION_WITH_GLYPH_STRING.
19208
19209 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19210 enumeration COMPOSITION_WITH_GLYPH_STRING.
19211
19212 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19213 members clip_x, clip_y, clip_width, and clip_height.
19214 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19215
19216 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19217 --enable-font-backend. Call syms_of_font.
19218
19219 * fns.c (assoc_no_quit): New function.
19220
19221 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19222 (face_for_font, new_fontset_from_font)
19223 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19224
19225 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19226 (fontset_font, fontset_ascii, face_for_char)
19227 (make_fontset_for_ascii_face, Ffont_info)
19228 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19229 is nonzero, use font-backend mechanism.
19230 (find_font_encoding): Make it non-static.
19231 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19232 New functions.
19233
19234 * frame.h (struct frame): New members resx and resy.
19235 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19236 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19237
19238 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19239 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19240
19241 * lisp.h (assoc_no_quit): Extern it.
19242
19243 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19244 Through out the file, use FONT_INFO_FROM_FACE instead of
19245 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19246 rif->per_char_metric.
19247 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19248 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19249 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19250 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19251 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19252 nonzero, use font-backend mechanism.
19253 (get_per_char_metric): New function.
19254
19255 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19256 (set_lface_from_font_name)
19257 (set_font_frame_param, free_realized_face)
19258 (prepare_face_for_display, clear_face_gcs)
19259 (Finternal_set_font_selection_order, realize_x_face)
19260 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19261 font-backend mechanism.
19262 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19263 (load_face_font) [USE_FONT_BACKEND]: Abort.
19264 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19265 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19266
19267 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19268 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19269 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19270 nonzero, register all available font drivers. Call
19271 x_default_font_parameter for deciding a font.
19272 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19273
19274 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19275 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19276 (x_set_glyph_string_clipping_exactly)
19277 (x_compute_glyph_string_overhangs)
19278 (x_draw_glyph_string_foreground)
19279 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19280 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19281 enable_font_backend is nonzero, use font-backend mechanism.
19282 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19283
192842008-02-01 Kenichi Handa <handa@m17n.org>
19285
19286 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19287 system_eol_type.
19288 (syms_of_coding): Initialize system_eol_type.
19289
19290 * process.c (Fset_process_coding_system): Inherit system's eol
19291 format if necessary.
19292
192932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19294
19295 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19296
192972008-02-01 Kenichi Handa <handa@m17n.org>
19298
19299 * coding.c (decode_eol): Pay attention to buffer relocation in
19300 del_range_2.
19301 (decode_coding): Call decode_eol before restoring undo_list.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * charset.c (Fdefine_charset_internal): Fix setting of
19306 emacs_mule_bytes.
19307
193082008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * keyboard.c (read_char): Check if C is a character or not before
19311 looking up Vkeyboard_translate_table.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19316 condition to terminate the loop.
19317
193182008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 * coding.c (produce_composition): Compare charbuf[i] instead of
19321 args[i] against 0.
19322 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19323
193242008-02-01 Kenichi Handa <handa@m17n.org>
19325
19326 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19327 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19328 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19329 detect_coding.
19330 (emacs_mule_char): Handle old style (Emacs 20) component character
19331 of a composition.
19332 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19333 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19334 composition rule.
19335 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19336
193372008-02-01 Kenichi Handa <handa@m17n.org>
19338
19339 * coding.c (encode_coding_ccl): Allocate destination dynamically
19340 when necessary.
19341
193422008-02-01 Kenichi Handa <handa@m17n.org>
19343
19344 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19345 the loop. When quitted, show a proper error message.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19350 src->clip_head and src->clip_tail temporarily instead of src->hl.
19351
19352 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19353 character sequence.
19354 (Fccl_execute_on_string): Use ASET, not XSET.
19355
193562008-02-01 Kenichi Handa <handa@m17n.org>
19357
19358 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19359
193602008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * coding.c (decode_coding): Fix the condition of terminating the
19363 decoding loop.
19364
193652008-02-01 Kenichi Handa <handa@m17n.org>
19366
19367 * data.c (Faset): On setting a character bigger than 255 in a
19368 unibyte string, signal an error instead of make the string multibyte.
19369
193702008-02-01 Kenichi Handa <handa@m17n.org>
19371
19372 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19373 made by a mapping table.
19374
193752008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19378 not.
19379 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19380 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19381
19382 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19383 s->face is NULL or not.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19388 (x_draw_glyph_string): Fix drawing of right_overhang and
19389 left_overhang around/on cursor.
19390
19391 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19392
193932008-02-01 Kenichi Handa <handa@m17n.org>
19394
19395 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19396
193972008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * coding.c (Fdefine_coding_system_internal)
19400 (Fdefine_coding_system_alias): Avoid a duplicated element in
19401 Vcoding_system_alist.
19402
194032008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19406
19407 * coding.c (Qcoding_system_define_form): New variable.
19408 (syms_of_coding): Intern and staticpro it.
19409 (Fcoding_system_p): Check Qcoding_system_define_form.
19410 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19411
19412 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19413 Fcoding_system_p.
19414 (CHECK_CODING_SYSTEM): If ID is not available, call
19415 Fcheck_coding_system.
19416 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19417 Try also Fcheck_coding_system.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * coding.c (code_conversion_restore): GCPRO arg.
19422
194232008-02-01 Kenichi Handa <handa@m17n.org>
19424
19425 * character.c (lisp_string_width): Check multibyteness of STRING.
19426
194272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19428
19429 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19430 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19431 (decode_mac_font_name): Use decode_coding_c_string instead of
19432 decode_coding.
19433 (x_load_font): Initialize fontp->fontset to -1. Set
19434 fontp->encoding_type.
19435
194362008-02-01 Kenichi Handa <handa@m17n.org>
19437
19438 * search.c (search_buffer): Give up BM search on case-fold-search
19439 if one of a target character has a case-equivalence of different
19440 byte length even if that target charcter is an ASCII.
19441 (simple_search): Fix calculation of byte length of matched text.
19442 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * coding.c (decode_coding): Fix handling of invalid bytes.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19451 Unicode characters.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * coding.c (encode_coding_object): If a pre-write-conversion
19456 function makes a new buffer, kill it.
19457
194582008-02-01 Kenichi Handa <handa@m17n.org>
19459
19460 * coding.c (QCascii_compatible_p): New variable.
19461 (syms_of_coding): Initialize it.
19462 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19463 calling string_char.
19464 (record_conversion_result): Add `default:' case.
19465 (coding_charset_list): Delete unused variable `coding_type'.
19466 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19467 property in the plist of the coding system.
19468 (Fcoding_system_put): Check QCascii_compatible_p.
19469
194702008-02-01 Miles Bader <miles@gnu.org>
19471
19472 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19473 removed calculation of frame `f', as it's now used.
19474
194752008-02-01 Kenichi Handa <handa@m17n.org>
19476
19477 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19478 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19479 (UNIDATA): New variable.
19480 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19481 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19482 $(RUN_TEMACS) unconditionally.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19487 (admindir): New variable.
19488 ($(lispsource)international/charprop.el): New target.
19489
194902008-02-01 Miles Bader <miles@gnu.org>
19491
19492 * character.c (chars-in-region): Remove obsolete function.
19493 (syms_of_character): Remove its initialization.
19494
194952008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19496
19497 * w32select.c (validate_coding_system)
19498 (setup_windows_coding_system): New functions.
19499 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19500 setup_windows_coding_system.
19501 (setup_config, Fw32_get_clipboard_data): Use
19502 validate_coding_system.
19503 (Fx_selection_exists): Move call to setup_config to a place
19504 where signals are allowed.
19505
19506 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19507 (Fcheck_coding_system): Add declarations.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19512
195132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19514
19515 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19516 string as the second argument for x_new_fontset.
19517
195182008-02-01 Kenichi Handa <handa@m17n.org>
19519
19520 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19521 (encode_coding_object): Use safe_call instead of call2.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19526
19527 * Makefile.in (lisp): Include charprop.el.
19528
195292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19530
19531 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19532 Not sure if it's unnecessary.
19533
195342008-02-01 Steven Tamm <steventamm@mac.com>
19535
19536 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19537 some possibly unnecessary fontset checking code that crashed
19538 when creating a new frame.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19543 lookup_face.
19544
19545 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19546
19547 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19548
195492008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19552 (coding_charset_list): New function.
19553
19554 * coding.h (coding_charset_list): Extern it.
19555
195562008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19559 concatenation of family and registry.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * character.h (BYTE8_STRING): Fix typo.
19564
19565 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19566 string to multibyte (sync to HEAD).
19567
19568 * casefiddle.c (casify_region): Handle changes in byte-length
19569 using replace_range_2 (sync to HEAD).
19570
195712008-02-01 Andreas Schwab <schwab@suse.de>
19572
19573 * chartab.c (map_char_table): GCPRO table and arg.
19574
195752008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19578 already at limit.
19579
195802008-02-01 Kenichi Handa <handa@m17n.org>
19581
19582 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19583 instead of fast_c_string_match_ignore_case.
19584 (find_font_encoding): Change argument to Lisp_Object. Use
19585 fast_string_match_ignore_case instead of
19586 fast_c_string_match_ignore_case. Change caller.
19587
195882008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * xdisp.c (get_next_display_element): In unibyte case, decide to
19591 display in octal form by checking a character by
19592 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19593
19594 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19595
19596 * character.c (unibyte_has_multibyte_table): New variable.
19597
19598 * character.h (unibyte_has_multibyte_table): Extern it.
19599 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19600
196012008-02-01 Kenichi Handa <handa@m17n.org>
19602
19603 * coding.c (encode_coding_iso_2022): Fix handling of charset
19604 annotation.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * coding.c (setup_coding_system): If coding_system is nil, use
19609 Qundecided.
19610 (Fterminal_coding_system): Return nil if terminal coding system is
19611 `undecided'.
19612 (syms_of_coding): Define coding-system `undecided' here. Setup
19613 terminal_coding as `undecided'.
19614
196152008-02-01 Kenichi Handa <handa@m17n.org>
19616
19617 * xdisp.c (message_dolog, set_message_1): Call
19618 unibyte_char_to_multibyte with arg type int.
19619
19620 * lread.c (read1): Fix reading of a char-table.
19621
19622 * print.c (print_object): Include sub char-table in circularities
19623 detection.
19624
196252008-02-01 Kenichi Handa <handa@m17n.org>
19626
19627 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19628 Append the found sequences in car of ARGS instead of prepending.
19629
196302008-02-01 Kenichi Handa <handa@m17n.org>
19631
19632 * fileio.c (report_file_error): Make a unibyte string from
19633 strerror (errorno).
19634 (Fsubstitute_in_file_name): Fix the arg to
19635 unibyte_char_to_multibyte. It is evaluated twice.
19636
196372008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19640
196412008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19644 BOM is not found.
19645 (detect_coding, detect_coding_system): Optimization for ISO-2022
19646 when no 8-bit data is found.
19647
196482008-02-01 Jason Rumney <jasonr@gnu.org>
19649
19650 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19651
196522008-02-01 Kenichi Handa <handa@m17n.org>
19653
19654 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19655 CHARS.
19656
196572008-02-01 Steven Tamm <steventamm@mac.com>
19658
19659 * macterm.c (mac_encode_char): Add charset argument and update
19660 to use encoding_type.
19661 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19662 switch to pure fontset.
19663 (decode_mac_font_name): Temporarily remove decoding.
19664 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19665 (x_load_font): Temporarily remove encoding.
19666
196672008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * xfaces.c (Fface_font): If frame is not on a window system,
19670 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19671 refer to face->font.
19672 (split_font_name_into_vector, build_font_name_from_vector)
19673 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19674 when HAVE_WINDOW_SYSTEM is defined.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19679 (x_produce_glyphs): Fix setting of members of cmp in case
19680 cmp->glyph_len is zero.
19681
19682 * fontset.c (Fset_fontset_font): Fix docstring.
19683 (Ffontset_info): Make it backward compatible. New arg ALL.
19684
196852008-02-01 Kim F. Storm <storm@cua.dk>
19686
19687 * process.c (read_process_output): Grow decoding_buf when needed;
19688 this could cause a crash in allocate_string and compact_small_strings.
19689
196902008-02-01 Kenichi Handa <handa@m17n.org>
19691
19692 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19693
196942008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 * coding.c (setup_coding_system): Set coding->common_flags
19697 correctly for raw-text.
19698 (consume_chars): On encoding unibyte text by raw-text, don't check
19699 multibyte form.
19700 (encode_coding): On encoding by raw-text, never use translation tables.
19701
19702 * fileio.c (e_write): Short cut for the case of no encoding.
19703
197042008-02-01 Kenichi Handa <handa@m17n.org>
19705
19706 * coding.c (detect_coding, detect_coding_system): Delete unused
19707 variables.
19708
197092008-02-01 Kenichi Handa <handa@m17n.org>
19710
19711 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19712 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19713
197142008-02-01 Kenichi Handa <handa@m17n.org>
19715
19716 * coding.c (Ffind_coding_systems_region_internal): Include
19717 raw-text and no-conversion in the result.
19718
197192008-02-01 Kenichi Handa <handa@m17n.org>
19720
19721 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19722 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19723 FONT_DEF.
19724 (font_def_arg, add_arg, from_arg, to_arg): New args.
19725 (set_fontset_font): Change argument.
19726 (Fset_fontset_font): Fix for the case that TARGET is a script
19727 name and charset name.
19728 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19729
197302008-02-01 Kenichi Handa <handa@m17n.org>
19731
19732 * fontset.c (fontset_font): Rename from fontset_face. Change return
19733 value.
19734 (face_suitable_for_char_p, face_for_char): Adjust for the change
19735 of fontset_font.
19736 (make_fontset_for_ascii_face): Fix setting of the fontset element
19737 for ASCII.
19738 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19739 to get a font name.
19740 (Ffontset_info): Adjust for the change of fontset_font.
19741
19742 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19743
19744 * character.h (LEADING_CODE_LATIN_1_MIN)
19745 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19746
197472008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * editfns.c (check_translation): New function.
19750 (Ftranslate_region_internal): Handle M:N mapping.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19759 goto invalid_code.
19760 (decode_coding_iso_2022): Fix handling of invalid designation.
19761
19762 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19763 after calling code_conversion_save.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19768
19769 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19770
19771 * fontset.c: Include "intervals.h".
19772 (fontset_face): Fix comparing of Lisp_Objects.
19773 (free_face_fontset, new_fontset_from_font_name): Fix
19774 Lisp_Object/int mixup.
19775
19776 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19777
19778 * coding.c: Add many prototypes for static functions.
19779 (get_translation_table): Allow max_lookup to be NULL.
19780 (decode_coding, Ffind_coding_systems_region_internal)
19781 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19782 get_translation_table with max_lookup NULL.
19783
197842008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * coding.c (get_translation_table): Declare it as Lisp_Object.
19787 (LOOKUP_TRANSLATION_TABLE): New macro.
19788 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19789 instead of CHAR_TABLE_REF.
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19794 annotation data format.
19795 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19796 Change arguments FROM and TO to single argument NCHARS. Change caller.
19797 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19798 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19799 (decode_coding_ccl, decode_coding_charset): Pay attention to
19800 coding->charbuf_used.
19801 (get_translation): New function.
19802 (produce_chars): New arguments translation_table and last_block.
19803 Translate characters here. Return number of carryover chars.
19804 Change caller.
19805 (produce_composition): New argument pos. Change caller.
19806 Adjust for the change of annotation data format.
19807 (produce_charset, produce_annotation): Likewise.
19808 (decode_coding, encode_coding): Don't call translate_chars.
19809 (consume_chars): New arg translation_table. Change caller.
19810 (translate_chars): Delete.
19811 (syms_of_coding): Make translation-table's number of extra slots 2.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * search.c (simple_search): Fix setting this_pos_byte in backward
19816 search.
19817
19818 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19819 byte sequence.
19820 (detect_coding_ccl): Fix setting of the variable valids.
19821
198222008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19825
19826 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19827
19828 * editfns.c (Ftranslate_region_internal): Rename from
19829 Ftranslate_region. Accept a char-table in TABLE.
19830 (syms_of_editfns): Defsubr Stranslate_region_internal.
19831
19832 * xfaces.c (set_lface_from_font_name): If a font is specified for
19833 a frame, generate a fontset from the font.
19834 (build_scalable_font_name): If the scalable font is requested for
19835 a specific size, don't change that size.
19836 (try_font_list): Try a scalable font also in the case that a
19837 pattern string is specified.
19838
198392008-02-01 Kenichi Handa <handa@m17n.org>
19840
19841 * xfaces.c (Fface_font): New optional arg CHARACTER.
19842
198432008-02-01 Kenichi Handa <handa@m17n.org>
19844
19845 * charset.h (CHARSET_OFFSET): New macro.
19846
198472008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19850
19851 * fontset.c (fontset_face): Handle the case that repertory is a
19852 char-table.
19853 (find_font_encoding): Return nil for unknown encoding.
19854 (Fset_fontset_font): Ignore a font of unknown encoding.
19855
198562008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * keymap.c (describe_vector): Handle default value of a char table.
19859
19860 * fontset.c (fontset_face): Handle fallback fonts correctly.
19861 (Ffontset_info): Return infomation about fallback fonts.
19862
198632008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * fontset.c (FONTSET_DEFAULT): New macro.
19866 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19867 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19868 the case that it is nil.
19869 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19870 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19871
19872 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19873 subset or superset.
19874
198752008-02-01 Kenichi Handa <handa@m17n.org>
19876
19877 * emacs.c (main): Call init_charset after syms_of_XXX.
19878
19879 * charset.c (Vcharset_map_directory): Delete.
19880 (Vcharset_map_path): New variable.
19881 (load_charset_map_from_file): Use Vcharset_map_path instead.
19882 (init_charset): Initialize Vcharset_map_path.
19883 (syms_of_charset): Delete declaration of "charset-map-directory",
19884 add declaration of "charset-map-path".
19885
198862008-02-01 Kenichi Handa <handa@m17n.org>
19887
19888 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19889 ASCII only string.
19890
19891 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19892
19893 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19894 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19895
198962008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19899
19900 * coding.c (QCmnemonic, QCdefalut_char)
19901 (QCdecode_translation_table, QCencode_translation_table)
19902 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19903 (get_translation_table): Return a list of translation tables if
19904 necessary.
19905 (decode_coding): Call get_translation_table with ENCODEP 0.
19906 (char_encodable_p): If translation_table is non-nil, always call
19907 translate_char.
19908 (Fdefine_coding_system_internal): Accept list of translation
19909 tables as :encode-translation-table and :decode-translation-table.
19910 (Fcoding_system_put): New function.
19911 (syms_of_coding): Declare new symbols. Defsubr
19912 Scoding_system_put.
19913 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19914 typically JISX0212.
19915
19916 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19917 when the charset is superset type.
19918
19919 * character.c (translate_char): Accept list of translation tables.
19920
199212008-02-01 Kenichi Handa <handa@m17n.org>
19922
19923 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19924 (CODING_ATTR_TRANS_TBL): New macro.
19925
19926 * coding.c (get_translation_table): New function.
19927 (translate_chars): Fix the bug of skipping annotation data.
19928 (decode_coding, encode_coding): Utilize get_translation_table.
19929 (char_encodable_p, Funencodable_char_position): Translate char if
19930 necessary.
19931 (Ffind_coding_systems_region_internal)
19932 (Fcheck_coding_systems_region): Setup translation table for encode
19933 in a coding system attribute vector in advance.
19934 (Fdefine_coding_system_internal): Allow a symbol as translation
19935 table. For shift-jis type coding system, allow 4th charset.
19936
199372008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19940
19941 * xdisp.c (get_next_display_element): Pass -1 as POS to
19942 FACE_FOR_CHAR if displaying a C-string.
19943
199442008-02-01 Kenichi Handa <handa@m17n.org>
19945
19946 * composite.c (get_composition_id): Handle xoff and yoff in a
19947 composition rule.
19948
19949 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19950 (struct composition): New member lbearing and rbearing.
19951
19952 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19953 (x_get_glyph_overhangs): Handle a composition glyph.
19954 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19955
19956 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19957 composition glyph.
19958
199592008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * print.c: Include charset.h.
19962 (Vprint_charset_text_property): New variable.
19963 (Qdefault): Extern it.
19964 (PRINT_STRING_NON_CHARSET_FOUND)
19965 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19966 (print_check_string_result): New variable.
19967 (print_check_string_charset_prop): New function.
19968 (print_prune_charset_plist): New variable.
19969 (print_prune_string_charset): New function.
19970 (print_object): Call print_prune_string_charset if
19971 Vprint_charset_text_property is not t.
19972 (print_interval): Print nothing if interval->plist is nil.
19973 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19974 variable. Init and staticpro print_prune_charset_plist.
19975
199762008-02-01 Kenichi Handa <handa@m17n.org>
19977
19978 * fontset.c (new_fontset_from_font_name): Use the specified font
19979 for all characters in the new fontset.
19980
19981 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19982 OBJECT args.
19983
19984 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19985 OBJECT args for composition too.
19986
19987 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19988 OBJECT args.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19993
19994 * fontset.c (reorder_font_vector): Adjust for the change of
19995 FONT_DEF format.
19996 (fontset_face): New arg id. Change caller.
19997 (face_for_char): New args pos and object.
19998 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19999 (fs_query_fontset): Check NAME by Fassoc too.
20000 (Fset_fontset_font): Allow non-XLFD font name.
20001 (Ffontset_info): Adjust for the change of FONT_DEF format.
20002
20003 * fontset.h (face_for_char): Adjust prototype.
20004
20005 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20006 (append_space, extend_face_to_end_of_line)
20007 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20008 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20009
20010 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20011 POS and OBJECT args.
20012
20013 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20014 POS and OBJECT args.
20015
200162008-02-01 Jason Rumney <jasonr@gnu.org>
20017
20018 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20019 of GlobalAlloc'ed memory.
20020
200212008-02-01 Kenichi Handa <handa@m17n.org>
20022
20023 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20024
20025 * charset.h (charset_table_used): Delete extern.
20026
20027 * charset.c (charset_table_used): Make it static.
20028 (map_charset_chars): Fix args to c_function with.
20029
20030 * chartab.c (map_sub_char_table_for_charset): Fix args to
20031 c_function with.
20032
20033 * coding.h (enum coding_result_code): Delete
20034 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20035
20036 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20037 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20038 (Vlast_code_conversion_error): New variables.
20039 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20040 (ONE_MORE_BYTE): Record error if any instead of signaling an
20041 error. If non-ASCII multibyte char is found, return the negative
20042 value of the code. All callers changed to check it.
20043 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20044 (record_conversion_result): New function. Change all codes setting
20045 coding->result to call this function.
20046 (detect_coding_utf_8, decode_coding_utf_8)
20047 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20048 Don't use the local variable incomplete.
20049 (emacs_mule_char): Change the second arg to `const'.
20050 (decode_coding): Fix of flushing out unprocessed data.
20051 (make_conversion_work_buffer): Fix making of a work buffer.
20052 (decode_coding_object): Return coding->dst_object.
20053
20054 * fontset.c (set_fontset_font): Fix args.
20055
20056 * lisp.h (CHARACTERBITS): Define as 22.
20057
20058 * process.c (send_process): Be sure to set coding->src_multibyte.
20059
20060 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * xdisp.c (handle_auto_composed_prop): Give limit to
20065 Fnext_single_char_property_change.
20066
200672008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 * composite.c (syms_of_composite): Don't make the composition hash
20070 table weak.
20071
20072 * fontset.c (Fset_fontset_font): Fix docstring.
20073
20074 * lisp.h (detect_coding_system): Adjust prototype.
20075
20076 * fileio.c (kill_workbuf_unwind): Delete this function.
20077 (Finsert_file_contents): Adjust the call of detect_coding_system.
20078 Get conversion_buffer by code_conversion_save. Use the macro
20079 CODING_MAY_REQUIRE_DECODING. After decoding, update
20080 coding_system.
20081
20082 * coding.h (make_conversion_work_buffer): Delete extern.
20083 (code_conversion_save): Extern it.
20084
20085 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20086 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20087 (decode_coding_utf_8): Don't do eol converion.
20088 (detect_coding_utf_16): Check coding->src_chars, not
20089 coding->src_bytes. Add heuristics for those that have no signature.
20090 (decode_coding_emacs_mule, decode_coding_iso_2022)
20091 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20092 Don't do eol converion.
20093 (adjust_coding_eol_type): Return a new coding system.
20094 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20095 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20096 each change.
20097 (decode_coding): Pay attention to undo_list. Do eol conversion for
20098 all types of coding-systems (if necessary).
20099 (Vcode_conversion_work_buf_list): Delete it.
20100 (Vcode_conversion_reused_workbuf): Rename from
20101 Vcode_conversion_reused_work_buf.
20102 (Vcode_conversion_workbuf_name): New variable.
20103 (reused_workbuf_in_use): New variable.
20104 (make_conversion_work_buffer): Delete the arg DEPTH.
20105 (code_conversion_restore): Change argument to cons.
20106 (code_conversion_save): Delete the argument BUFFER. Change callers.
20107 (detect_coding_system): New argument src_chars. Change callers.
20108 Fix for utf-16 detection.
20109 (init_coding_once): Don't use ISO_carriage_return.
20110 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20111 reused_workbuf_in_use.
20112
201132008-02-01 Kenichi Handa <handa@m17n.org>
20114
20115 * keymap.c (store_in_keymap): Pay attention to the case that idx
20116 is a cons specifying a character range.
20117
201182008-02-01 Kenichi Handa <handa@m17n.org>
20119
20120 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20121 HANDLED_RECOMPUTE_PROPS.
20122
20123 * coding.c (Fdefine_coding_system_internal): Fix checking of
20124 ascii compatibility.
20125
201262008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * charset.c (find_charsets_in_text): Delete unused locale variable.
20129 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20130
20131 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20132 Resync charset_list to Vemacs_mule_charset_list.
20133
20134 * keymap.c (store_in_keymap): Pay attention to the case that idx
20135 is a cons specifying a character range.
20136
201372008-02-01 Kenichi Handa <handa@m17n.org>
20138
20139 * composite.c (update_compositions): Bind inhibit-read-only, etc
20140 to t before calling remove-list-of-text-properties.
20141
20142 * print.c (print_object): Always print ASCII chars as is.
20143
201442008-02-01 Kenichi Handa <handa@m17n.org>
20145
20146 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20147
20148 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20149 is a char table.
20150
201512008-02-01 Kenichi Handa <handa@m17n.org>
20152
20153 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20154
201552008-02-01 Kenichi Handa <handa@m17n.org>
20156
20157 * xfaces.c (set_lface_from_font_name): Fix for the case that
20158 FONTNAME is not fontset name.
20159
201602008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * fns.c (base64_encode_1): Fix previous change.
20163
201642008-02-01 Kenichi Handa <handa@m17n.org>
20165
20166 * fontset.c (set_fontset_font): New function.
20167 (Fset_fontset_font): If a font is specified for a charset, use
20168 map_charset_chars to store the font spec in a fontset.
20169
201702008-02-01 Kenichi Handa <handa@m17n.org>
20171
20172 * fontset.c (fontset_face): Create a fallback fontset on demand.
20173 (make_fontset): Don't create a fallback fontset here.
20174 (free_face_fontset): Free a fallback fontset (if any) too.
20175 (n_auto_fontsets): Delete this variable.
20176 (auto_fontset_alist): New variable.
20177 (new_fontset_from_font_name): Check auto_fontset_alist.
20178 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20179 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20180 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20181 Defsubr Sfontset_list_all.
20182
201832008-02-01 Kenichi Handa <handa@m17n.org>
20184
20185 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20190
201912008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * editfns.c (Fgoto_char): Fix docstring.
20194
201952008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * insdel.c (insert_from_gap): Adjust intervals correctly.
20198
201992008-02-01 Jason Rumney <jasonr@gnu.org>
20200
20201 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20202 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20203 (w32_initialize): Try to load it.
20204 (x_get_font_repertory): Use it if available.
20205 (w32_encode_char): Add shortcut for unicode output.
20206
20207 * w32fns.c (w32_load_system_font): Default charset to -1.
20208 (x_to_w32_charset): Match all fonts for unicode.
20209 (w32_to_x_charset): New parameter matching. Don't return partial
20210 or wildcard charsets.
20211 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20212 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20213 (w32_to_x_font): Match charset to real charset.
20214 (enum_font_cb2): Always list unicode versions.
20215
20216 * makefile.w32-in (temacs): Increase EMHEAP.
20217
202182008-02-01 Jason Rumney <jasonr@gnu.org>
20219
20220 * w32term.c (w32_encode_char): New charset parameter.
20221 font_info.encoding becomes encoding_type.
20222 (x_get_font_repertory): New function. Warning: stub only!
20223 (x_new_font): Return quickly if font already set.
20224 (x_new_fontset): fontsetname parameter is Lisp_Object.
20225 Use new fs_query_fontset. Try new_fontset_from_font_name.
20226 Use fontset_name for return value.
20227
20228 * w32term.h: Declare x_get_font_repertory.
20229
20230 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20231 place of find_charset_in_text. Use encode_coding_object in place
20232 of encode_coding.
20233 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20234 decode_coding.
20235
20236 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20237 of x_new_fontset.
20238 (w32_load_system_font): Initialize charset as unicode.
20239 font_info.encoding becomes encoding_type.
20240 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20241 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20242 (syms_of_w32fns): Set get_font_repertory_func.
20243
20244 * w32console.c: Include character.h. Use terminal_encode_buffer
20245 from term.c.
20246 (write_glyphs): Use new version of encode_terminal_code. Use
20247 encode_coding_object in place of encode_coding.
20248
20249 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20250 encoding becomes encoding_type.
20251
20252 * term.c (terminal_encode_buffer): Make externally visible.
20253
20254 * makefile.w32-in: Add character.h dependancies.
20255 (character.o, chartab.o): New targets.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20260 CODING_ID_EOL_TYPE.
20261
202622008-02-01 Andreas Schwab <schwab@suse.de>
20263
20264 * coding.c (produce_chars): Revert last change.
20265
202662008-02-01 Kenichi Handa <handa@m17n.org>
20267
20268 * charset.h (charset_unicode): Extern it.
20269
20270 * charset.c (string_xstring_p): Check by (C >= 0x100).
20271 (find_charsets_in_text): Change format of the arc CHARSETS. New
20272 arg MULTIBYTE.
20273 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20274 change of find_charsets_in_text.
20275 (Fsplit_char): Fix doc. Never return unknown.
20276
20277 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20278
20279 * coding.c (Fdefine_coding_system_alias): Update
20280 Vcoding_system_list.
20281
20282 * fontset.c (load_font_get_repertory): Pay attention to the case
20283 that ENCODING of a font is specified by a char-table.
20284
20285 * xterm.c (x_get_font_repertory): Handle the case that the
20286 encoding of font is other than Unicode.
20287
202882008-02-01 Kenichi Handa <handa@m17n.org>
20289
20290 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20291 if a character is encodable by the terminal coding system. If
20292 not, produces proper number of `?'s. Update
20293 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20294 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20299 variables.
20300 (encode_terminal_code): Change argument. Encode multiple
20301 characters at once. Store the result of encoding in
20302 terminal_encode_buffer.
20303 (write_glyphs, insert_glyphs): Adjust for the change of
20304 encode_terminal_code.
20305 (term_init): Initialize terminal_encode_buffer and
20306 terminal_encode_buf_size.
20307
20308 * coding.c (consume_chars): If coding->src_object is nil, don't
20309 check annotation.
20310
203112008-02-01 Kenichi Handa <handa@m17n.org>
20312
20313 * character.c (char_string): Use ASCII_CHAR_P instead of
20314 SINGLE_BYTE_CHAR_P.
20315
203162008-02-01 Kenichi Handa <handa@m17n.org>
20317
20318 * xdisp.c (handle_auto_composed_prop): Check if the last
20319 characters of auto-composed region is newly composed with the
20320 following characters.
20321 (handle_composition_prop): Fix checking of point being inside
20322 composition.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * fns.c (concat): Don't change multibyteness of the result by
20327 concatenating an 8-bit character.
20328
20329 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20330 multibyteness of the result when newelt is an 8-bit character.
20331
203322008-02-01 Dave Love <fx@gnu.org>
20333
20334 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20335 EMACS_INT.
20336
20337 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20338
20339 * xfaces.c (face_numeric_value): Declare dim size_t.
20340 (Finternal_lisp_face_equal_p): Remove unused f.
20341
20342 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20343 (MATRIX_ROW): Remove unused vars.
20344 (draw_glyphs, x_insert_glyphs, fast_find_position)
20345 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20346 byte/char counts.
20347
20348 * regex.c (regex_compile): Remove unused var.
20349
20350 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20351
20352 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20353 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20354
20355 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20356
20357 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20358
20359 * fileio.c (Fwrite_region): Remove unused var.
20360
20361 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20362 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20363
20364 * composite.c (Fremove_list_of_text_properties): Declare.
20365
20366 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20367 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20368 (coding_inherit_eol_type): Remove unused attrs.
20369 (detect_coding): Cast arg of detect_eol.
20370
20371 * charset.c (syms_of_charset): Remove unused var p.
20372 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20373 byte/char counts.
20374
20375 * casetab.c (set_case_table): Remove unused var.
20376
20377 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20378 unused vars.
20379
203802008-02-01 Dave Love <fx@gnu.org>
20381
20382 * xterm.c (x_bitmap_mask): Declare.
20383
203842008-02-01 Dave Love <fx@gnu.org>
20385
20386 * xterm.c (x_term_init): Fix type error.
20387
20388 * lisp.h: Add Funibyte_char_to_multibyte.
20389
20390 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20391 (Fset_coding_system_priority): Doc fix.
20392
20393 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20394
20395 * indent.c (check_composition): Make start and end EMACS_INT.
20396
20397 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20398
20399 * xdisp.c (handle_composition_prop, check_point_in_composition):
20400 Make buffer positions EMACS_INT.
20401
20402 * composite.c (find_composition, run_composition_function)
20403 (update_compositions, Ffind_composition_internal): Make buffer
20404 positions EMACS_INT.
20405
20406 * composite.h (find_composition, update_compositions): Make
20407 position args EMACS_INT.
20408
20409 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20410
20411 * intervals.c (get_property_and_range):
20412 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20413
20414 * unexalpha.c: Don't include varargs.h.
20415
204162008-02-01 Dave Love <fx@gnu.org>
20417
20418 * coding.h (ENCODE_UTF_8): New.
20419
20420 * Makefile.in (gtkutil.o): Depend on coding.h.
20421
20422 * coding.c (Fset_coding_system_priority): Doc fix.
20423
204242008-02-01 Kenichi Handa <handa@m17n.org>
20425
20426 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20427 the case of auto saving.
20428
204292008-02-01 Andreas Schwab <schwab@suse.de>
20430
20431 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20432 `range' from GC.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * fileio.c (choose_write_coding_system): Return a decided coding system.
20441 (Fwrite_region): Set Vlast_coding_system_used to the return value
20442 of choose_write_coding_system.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * charset.c (Fset_charset_priority): Pay attention to duplicated
20447 arguments.
20448
20449 * coding.c (QCcategory): New variable.
20450 (syms_of_coding): Defsym it. Set all elements of
20451 Vcoding_category_table and their symbol values.
20452 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20453 coding-category-XXX, and coding-category-list.
20454 (Fdefine_coding_system_internal): Add category in the plist.
20455
204562008-02-01 Kenichi Handa <handa@m17n.org>
20457
20458 * callproc.c (Fcall_process): Handle carryover correctly.
20459
20460 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20461 (raw_text_coding_system): Check NILP (coding_system).
20462 (coding_inherit_eol_type): Check NILP (coding_system) and
20463 NILP (parent).
20464 (consume_chars): Fix for the case of raw-text.
20465
20466 * process.c (read_process_output): Handle carryover correctly.
20467
204682008-02-01 Dave Love <fx@gnu.org>
20469
20470 * regex.c (re_search_2): Fix last change.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20475 target_multibyte. Even in a unibyte case, return a converted
20476 multibyte char.
20477 (GET_CHAR_AFTER): New macro.
20478 (PATFETCH): Translate via multibyte char.
20479 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20480 (SETUP_MULTIBYTE_RANGE): New macro.
20481 (regex_compile): Setup compiled code so that its multibyteness
20482 matches that of a target. Fix the handling of "[X-YZ]" using
20483 SETUP_MULTIBYTE_RANGE.
20484 (analyse_first) <charset>: For filling fastmap for all multibyte
20485 characters, don't check by BASE_LEADING_CODE_P.
20486 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20487 the same as RE_MULTIBYTE_P (bufp) now.
20488 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20489 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20490 (TRANSLATE_VIA_MULTIBYTE): New macro.
20491 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20492 It is the same as RE_MULTIBYTE_P (bufp) now.
20493 <exactn>: Translate via multibyte.
20494 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20495 translate it.
20496 <charset, charset_not>: Fetch a character by
20497 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20498 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20499 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20500 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20501 by GET_CHAR_AFTER.
20502 (bcmp_translate): Likewise.
20503
20504 * search.c (compile_pattern): Check the member target_multibyte,
20505 not the member multibyte of buf.
20506
20507 * lread.c (read1): While reading a string, set force_singlebyte
20508 and force_multibyte correctly.
20509
20510 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20511 up of unibyte_to_multibyte_table.
20512
205132008-02-01 Kenichi Handa <handa@m17n.org>
20514
20515 * coding.c (setup_coding_system): If coding has
20516 post-read-conversion or pre-write-conversion, set
20517 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20518 respectively.
20519 (decode_coding_gap): Run post-read-conversion if any.
20520
20521 * fileio.c (Finsert_file_contents): Even if we read into a
20522 unibyte buffer, check if we must decode the result or not.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 * coding.c (make_conversion_work_buffer): Change the work buffer
20527 name to the same one as that of Emacs 21.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * coding.h (make_conversion_work_buffer): Adjust prototype.
20532 (code_conversion_restore): Don't extern it.
20533
20534 * coding.c (detected_mask): Delete unused variable.
20535 (decode_coding_iso_2022): Pay attention to the byte sequence of
20536 CTEXT extended segment, and retain those bytes as is.
20537 (decode_coding_ccl): Delete unused variable `valids'.
20538 (setup_coding_system): Delete unused variable `category'.
20539 (consume_chars): Delete unused variable `category'. Make it work
20540 for non-multibyte case.
20541 (make_conversion_work_buffer): Change argument.
20542 (saved_coding): Delete unused variable.
20543 (code_conversion_restore): Don't check saved_coding->destination.
20544 (code_conversion_save): New function.
20545 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20546 instead of record_unwind_protect.
20547 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20548 (detect_coding_system): Delete unused variable `mask'.
20549 (Fdefine_coding_system_internal): Delete unused variable id.
20550
20551 * fileio.c (kill_workbuf_unwind): New function.
20552 (Finsert_file_contents): On replacing, call
20553 make_conversion_work_buffer with correct args, and call
20554 record_unwind_protect with the first arg kill_workbuf_unwind.
20555
20556 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20557
205582008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20561 (fontset_add): Fix for the case that TO is less than TO1.
20562 (Ffontset_info): Don't use fallback fontset on checking the
20563 default fontset.
20564 (dump_fontset): New function for debugging.
20565
20566 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20567 coding_type is Qcharset.
20568
205692008-02-01 Kenichi Handa <handa@m17n.org>
20570
20571 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20572 (map_char_table): Don't inherit the value from the parent on
20573 initializing VAL. Adjust for the above change.
20574
205752008-02-01 Kenichi Handa <handa@m17n.org>
20576
20577 * coding.c (Qsignature, Qendian): Delete these variables.
20578 (syms_of_coding): Don't initialize them.
20579 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20580 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20581 detect_info->found.
20582 (decode_coding_utf_16): Don't detect BOM here.
20583 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20584 is NOT utf_16_without_bom.
20585 (setup_coding_system): For a coding system of type utf-16, check
20586 if the attribute :endian is Qbig or not (not nil or not), and set
20587 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20588 (detect_coding): If coding type is utf-16 and BOM detection is
20589 required, detect it.
20590 (Fdefine_coding_system_internal): For a coding system of type
20591 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20592
205932008-02-01 Kenichi Handa <handa@m17n.org>
20594
20595 * coding.c (coding_set_source): Fix for the case that the current
20596 buffer is different from coding->src_object.
20597 (decode_coding_object): Don't use the conversion work buffer if
20598 DST_OBJECT is a buffer.
20599
206002008-02-01 Dave Love <fx@gnu.org>
20601
20602 * lread.c (read_emacs_mule_char) [len==2]: Index
20603 emacs_mule_charset correctly.
20604
206052008-02-01 Dave Love <fx@gnu.org>
20606
20607 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20608 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20609 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20610 treated specially.)
20611 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20612 (detected_mask): Remove Big5 bits.
20613
206142008-02-01 Kenichi Handa <handa@m17n.org>
20615
20616 The following changes are to make the font rescaling facility
20617 compatible with Emacs 21.
20618
20619 * xfaces.c (Vface_font_rescale_alist): Rename from
20620 Vface_resizing_fonts.
20621 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20622 (font_rescale_ratio): Rename from font_resizing_ratio.
20623 (split_font_name): Set font->rescale_ratio.
20624 (better_font_p): Pay attention to font->rescale_ratio.
20625 (build_scalable_font_name): Likewise. Change RESX, and RESY
20626 fields.
20627 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20628
206292008-02-01 Kenichi Handa <handa@m17n.org>
20630
20631 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20632 (Qutf_16_le): Remove these variables.
20633 (syms_of_coding): Don't DEFSYM them.
20634 (decode_coding_utf_16): Fix handling of BOM.
20635 (encode_coding_utf_16): Fix handling of BOM.
20636
206372008-02-01 Kenichi Handa <handa@m17n.org>
20638
20639 * fileio.c (Finsert_file_contents): On replacing, before decoding
20640 the file into the work buffer, set point of the work buffer to the end.
20641
206422008-02-01 Dave Love <fx@gnu.org>
20643
20644 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20645
206462008-02-01 Dave Love <fx@gnu.org>
20647
20648 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20649 and fix C types.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 * xdisp.c (SKIP_GLYPHS): New macro.
20654 (set_cursor_from_row): Pay attention to string display properties.
20655
20656 * category.c (copy_category_entry): Fix for the case that RANGE
20657 is an integer.
20658
20659 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20660
20661 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20662
206632008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * charset.c (Fcharset_id_internal): New function.
20666 (syms_of_charset): Defsubr it.
20667
20668 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20669 with the last arg charset_list acquired from coding.
20670 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20671 the attribute coding_attr_ccl_valids.
20672
20673 * coding.h (enum define_coding_ccl_arg_index): Set the first
20674 member coding_arg_ccl_decoder to coding_arg_max.
20675
20676 * ccl.h (ccl_driver): Adjust prototype.
20677
20678 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20679 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20680 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20681 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20682 last arg Qnil.
20683
206842008-02-01 Kenichi Handa <handa@m17n.org>
20685
20686 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20687 call encode_char.
20688
20689 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20690
206912008-02-01 Dave Love <fx@gnu.org>
20692
20693 * composite.c (syms_of_composite): Make composition_hash_table weak.
20694
206952008-02-01 Kenichi Handa <handa@m17n.org>
20696
20697 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20698 (font_name_registry): Don't extern them.
20699 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20700
20701 * fontset.h (Qfontset): Don't extern it.
20702 (new_fontset_from_font_name): Extern it.
20703
20704 * fontset.c: Give 8 extra slots to fontset objects.
20705 (Qfontset_info): New variable.
20706 (syms_of_fontset): Defsym it.
20707 (FONTSET_FALLBACK): New macro.
20708 (fontset_face): Try also the default fontset.
20709 (make_fontset): Realize a fallback fontset from the default fontset.
20710 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20711 using split_font_name_into_vector and build_font_name_from_vector.
20712 (Fset_fontset_font): Access the elements of font_spec by enum
20713 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20714 name by using split_font_name_into_vector.
20715 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20716 generate a proper font name from the fontset name. Update
20717 Vfontset_alias_alist.
20718 (n_auto_fontsets): New variable.
20719 (new_fontset_from_font_name): New function.
20720 (Ffont_info): Store the information about fonts generated from the
20721 default fontset in the first extra slot of the returned char-table.
20722
20723 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20724 (font_name_registry): Delete function.
20725 (split_font_name_into_vector): New function.
20726 (build_font_name_from_vector): New function.
20727 (font_list): The argument REGISTRY is now a list of registry names.
20728 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20729 specifies an explicit font name, return the name as is. Make a
20730 list of registy names.
20731
20732 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20733 of x_new_fontset.
20734 (Fx_create_frame): Don't call x_new_fontset here. Just use
20735 x_list_fonts to check the existence of fonts.
20736
20737 * xterm.h (x_new_fontset): Adjust prototype.
20738
20739 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20740 string. Use new_fontset_from_font_name to create a fontset from a
20741 font name.
20742
207432008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * syntax.c (Vfind_word_boundary_function_table): New name for
20746 Vnext_word_boundary_function_table.
20747 (find-word-boundary-function-table): New name for
20748 next-word-boundary-function-table.
20749
207502008-02-01 Dave Love <fx@gnu.org>
20751
20752 * Makefile.in: Fix some dependencies.
20753
20754 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20755 set it to nil before returning.
20756
20757 * composite.c (update_compositions): Fix type error.
20758
20759 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20760
207612008-02-01 Kenichi Handa <handa@m17n.org>
20762
20763 * xterm.c (x_new_font): Optimize for the case that the font is
20764 already set for the frame.
20765
207662008-02-01 Kenichi Handa <handa@m17n.org>
20767
20768 * chartab.c (char_table_ascii): Check if the char table contents
20769 is sub-char-table or not.
20770 (char_table_set, char_table_set_range): Fix argument to
20771 char_table_ascii.
20772
20773 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20774 (detect_coding_utf_8, detect_coding_utf_16)
20775 (detect_coding_emacs_mule, detect_coding_iso_2022)
20776 (detect_coding_sjis, detect_coding_big5)
20777 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20778 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20779 sequence is valid in this coding system. Change callers.
20780 (MAX_ANNOTATION_LENGTH): New macro.
20781 (ADD_ANNOTATION_DATA): New macro.
20782 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20783 ADD_ANNOTATION_DATA. Change the format of annotation data.
20784 (ADD_CHARSET_DATA): New macro.
20785 (emacs_mule_char): New argument ID. Change callers.
20786 (decode_coding_emacs_mule, decode_coding_iso_2022)
20787 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20788 Produce charset annotation data in coding->charbuf.
20789 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20790 to charset annotation data in coding->charbuf.
20791 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20792 coding->common_flags if the coding system is iso-2022 based and
20793 uses designation.
20794 (produce_composition): Adjust for the new annotation data format.
20795 (produce_charset): New function.
20796 (produce_annotation): Handle charset annotation.
20797 (handle_composition_annotation, handle_charset_annotation): New
20798 functions.
20799 (consume_chars): Handle charset annotation. Utilize the above two
20800 functions.
20801 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20802 buffer, get the deleted text as a string and set
20803 coding->src_object to that string.
20804 (detect_coding, detect_coding_system): Use the new struct
20805 coding_detection_info.
20806
20807 * coding.h (struct coding_detection_info): New structure.
20808 (struct coding_system): Adjust prototype of the member `detector'.
20809 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20810
208112008-02-01 Kenichi Handa <handa@m17n.org>
20812
20813 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20814
208152008-02-01 Dave Love <fx@gnu.org>
20816
20817 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20818 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20819 to new local and nullify apropos_accumulate before returning.
20820 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20821
208222008-02-01 Kenichi Handa <handa@m17n.org>
20823
20824 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20825 correctly.
e3eea1fc 20826
aac0c6e3
MR
208272008-02-01 Dave Love <fx@gnu.org>
20828
20829 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20830
208312008-02-01 Kenichi Handa <handa@m17n.org>
20832
20833 The following changes are to make character composition happen
20834 automatically on displaying.
20835
20836 * Makefile.in (lisp, shortlisp): Add composite.elc.
20837
20838 * composite.h (Qauto_composed, Vauto_composition_function)
20839 (Qauto_composition_function): Extern them.
20840
20841 * composite.c (Vcomposition_function_table)
20842 (Qcomposition_function_table): Delete variables.
20843 (Qauto_composed, Vauto_composition_function)
20844 (Qauto_composition_function): New variables.
20845 (run_composition_function): Don't call
20846 compose-chars-after-function.
20847 (update_compositions): Clear `auto-composed' text property.
20848 (compose_chars_in_text): Delete this function.
20849 (syms_of_composite): Staticpro Qauto_composed and
20850 Qauto_composition_function. Declare Vauto_composition_function as
20851 a Lisp variable.
20852
20853 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20854
20855 * xdisp.c (it_props): Add an entry for Qauto_composed.
20856 (handle_auto_composed_prop): New function.
20857
20858 * xselect.c (selection_data_to_lisp_data): Don't call
20859 compose_chars_in_text.
20860
208612008-02-01 Dave Love <fx@gnu.org>
20862
20863 * keyboard.c (read_char): Modify checking around use of
20864 Vkeyboard_translate_table.
20865
20866 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20867 and fix C types.
20868
208692008-02-01 Kenichi Handa <handa@m17n.org>
20870
20871 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20872 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20873 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20874 the case that the last byte is '\r' correctly.
20875 (decode_coding): Flush out the unprocessed data correctly.
20876 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20877
208782008-02-01 Dave Love <fx@gnu.org>
20879
20880 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20881 Add XK_ISO... case.
20882 (xaw_scroll_callback): Revert last change.
20883
208842008-02-01 Kenichi Handa <handa@m17n.org>
20885
20886 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20887
208882008-02-01 Kenichi Handa <handa@m17n.org>
20889
20890 * xfaces.c (Vface_resizing_fonts): New variable.
20891 (struct font_name): New member `resizing_ratio'.
20892 (font_resizing_ratio): New function.
20893 (split_font_name): Set font->resizing_ratio.
20894 (better_font_p): Pay attention to font->resizing_ratio.
20895 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20896 RESX, and RESY fields.
20897 (try_alternative_families): Try scalable fonts if
20898 Vscalable_fonts_allowed is not Qt.
20899 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20900
209012008-02-01 Dave Love <fx@gnu.org>
20902
20903 * xterm.c (xaw_scroll_callback): Cast correctly.
20904
209052008-02-01 Dave Love <fx@gnu.org>
20906
20907 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20908 (lispy_kana_keys): Comment out.
20909 (make_lispy_event) [XK_kana_A]: Comment out.
20910
20911 * xterm.c (xaw_scroll_callback): Cast call_data.
20912 (XTread_socket): Deal with ASCII keysyms.
20913 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20914
209152008-02-01 Dave Love <fx@gnu.org>
20916
20917 * xterm.c (Vx_keysym_table): New.
20918 (syms_of_xterm): Initialize it.
20919 (XTread_socket): Use it.
20920 From head: Eliminate incorrect optimization that tried to avoid
20921 decoding the output of X*LookupString.
20922 (x_get_font_repertory): Delete charset declaration.
20923
209242008-02-01 Kenichi Handa <handa@m17n.org>
20925
20926 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20927 return 0.
20928 (Fdefine_coding_system_internal): Setup
20929 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20930
209312008-02-01 Dave Love <fx@gnu.org>
20932
20933 * coding.c (Fcheck_coding_system): Doc fix.
20934
20935 * editfns.c (Finsert_byte): Return a proper value.
20936
209372008-02-01 Kenichi Handa <handa@m17n.org>
20938
20939 * coding.c (decode_coding): Fix args to translate_chars. Pay
20940 attention to Vstandard_translation_table_for_decode.
20941 (encode_coding): Fix args to translate_chars. Pay attention to
20942 Vstandard_translation_table_for_encode.
20943
20944 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20945 SINGLE_BYTE_CHAR_P.
20946
20947 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20948 not by SINGLE_BYTE_CHAR_P.
20949
20950 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20951 SINGLE_BYTE_CHAR_P.
20952
20953 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20954 SINGLE_BYTE_CHAR_P.
20955
20956 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20957 by SINGLE_BYTE_CHAR_P.
20958
20959 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20960 SINGLE_BYTE_CHAR_P.
20961
209622008-02-01 Dave Love <fx@gnu.org>
20963
20964 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20965
209662008-02-01 Dave Love <fx@gnu.org>
20967
20968 * fns.c (Flanginfo): Fix typo.
20969
20970 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20975 (detect_coding_emacs_mule, detect_coding_iso_2022)
20976 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20977 incomplete byte sequence. Don't update *mask when correctly detected.
20978 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20979 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20980 (detect_coding, detect_coding_system): Adjust for the changes above.
20981
209822008-02-01 Kenichi Handa <handa@m17n.org>
20983
20984 * character.c (char_string): Rename from
20985 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20986 (string_char): Rename from string_char.
20987
20988 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20989 if C is greater than MAX_3_BYTE_CHAR.
20990 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20991 string_char instead of string_char_with_unification.
20992
209932008-02-01 Dave Love <fx@gnu.org>
20994
20995 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20996
209972008-02-01 Kenichi Handa <handa@m17n.org>
20998
20999 * keymap.c (push_key_description): Pay attention to force_multibyte.
21000
21001 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21002
210032008-02-01 Dave Love <fx@gnu.org>
21004
21005 * charset.c (define_charset_internal): Rename `supprementary'.
21006
21007 * Makefile.in (lisp, shortlisp): Remove latin-N.
21008
210092008-02-01 Dave Love <fx@gnu.org>
21010
21011 * xfns.c (x_window, x_window): Use use_xim.
21012
21013 * xterm.c (use_xim): Initialize.
21014 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21015 (x_term_init): Maybe set use_xim.
21016
21017 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21018
210192008-02-01 Kenichi Handa <handa@m17n.org>
21020
21021 * search.c (search_buffer): Fix case-fold-search of multibyte
21022 characters.
21023 (boyer_moore): Rename the last argument to char_high_bits.
21024
210252008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * xdisp.c (display_string): Fix for the case of zero width glyph.
21028
21029 * xfns.c (x_set_font): Change the error message of the case that
21030 x_new_fontset returns Qt.
21031
21032 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21033 (Finternal_set_lisp_face_attribute): Use signal_error for the
21034 error of invalid fontset.
21035
21036 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21037 fontset, return Qt.
21038
210392008-02-01 Dave Love <fx@gnu.org>
21040
21041 * unexelf.c (unexec): Make .got handling not SGI-specific.
21042
21043 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21044
21045 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21046
21047 * keyboard.c (read_key_sequence): Fix type error.
21048
21049 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21050 type error.
21051
21052 * fontset.c (fontset_add): Return Lisp_Object.
21053
210542008-02-01 Dave Love <fx@gnu.org>
21055
21056 * charset.h (charset_ordered_list_tick): Declare extern.
21057
210582008-02-01 Kenichi Handa <handa@m17n.org>
21059
21060 The following changes (and some of 2008-02-01 changes of mine) are
21061 for handling syntax, category, and case conversion for unibyte
21062 characters by converting them to multibyte on the fly. With these
21063 changes, we don't have to setup syntax and case tables for unibyte
21064 characters in each language environment.
21065
21066 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21067 multibyte if necessary.
21068
21069 * bytecode.c (Fbyte_code): Likewise.
21070
21071 * character.h (LEADING_CODE_LATIN_1_MIN)
21072 (LEADING_CODE_LATIN_1_MAX): New macros.
21073 (unibyte_to_multibyte_table): Extern it.
21074 (unibyte_char_to_multibyte): New macro.
21075 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21076 (CHAR_LEADING_CODE): New macro.
21077 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21078
21079 * character.c (unibyte_to_multibyte_table): New variable.
21080 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21081 (multibyte_char_to_unibyte): If C is an eight-bit character,
21082 convert it to the corresponding byte value.
21083
21084 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21085 not 1, signals an error. Update the elements of
21086 unibyte_to_multibyte_table.
21087 (init_charset_once): Initialize unibyte_to_multibyte_table.
21088 (syms_of_charset): Define the charset `iso-8859-1'.
21089
21090 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21091 as is without converting it to unibyte. In a unibyte buffer,
21092 convert C to multibyte before checking the syntax.
21093
21094 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21095
21096 * minibuf.c (Fminibuffer_complete_word): Use the macro
21097 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21098
21099 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21100
21101 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21102 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21103 that is zero, convert an eight-bit char to multibyte.
21104 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21105 non-emacs case.
21106 (PATFETCH): Convert an eight-bit char to multibyte.
21107 (HANDLE_UNIBYTE_RANGE): New macro.
21108 (regex_compile): Setup the compiled pattern for multibyte chars
21109 even if the given regex string is unibyte. Use PATFETCH_RAW
21110 instead of PATFETCH in many places. To handle `charset'
21111 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21112 only for ASCII chars.
21113 (analyse_first) <exactn>: Simplify because the compiled pattern
21114 is multibyte.
21115 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21116 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21117 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21118 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21119 multibyte always 1.
21120 (re_search_2): In emacs, set the locale variable multibyte to 1,
21121 otherwise to 0. New local variable target_multibyte. Check it
21122 to decide the multibyteness of STR1 and STR2. If
21123 target_multibyte is zero, convert unibyte chars to multibyte
21124 before translating and checking fastmap.
21125 (TARGET_CHAR_AND_LENGTH): New macro.
21126 (re_match_2_internal): In emacs, set the locale variable multibyte
21127 to 1, otherwise to 0. New local variable target_multibyte. Check
21128 it to decide the multibyteness of STR1 and STR2. Use
21129 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21130 <charset, charset_not>: If multibyte is nonzero, check fastmap
21131 only for ASCII chars. Call bcmp_translate with
21132 target_multibyte, not with multibyte.
21133 <begline>: Declare the local variable C as `unsigned'.
21134 (bcmp_translate): Change the last arg name to target_multibyte.
21135
21136 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21137 the regexp pattern and the matching target. Set cp->buf.multibyte
21138 to the multibyteness of the regexp pattern. Set
21139 cp->but.target_multibyte to the multibyteness of the matching target.
21140 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21141 FETCH_STRING_CHAR_ADVANCE.
21142 (Freplace_match): Convert unibyte chars to multibyte.
21143
21144 * syntax.c (char_quoted, back_comment, scan_words)
21145 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21146 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21147 unibyte chars to multibyte.
21148 (skip_chars): Delete the arg syntaxp, and move the code for
21149 handling syntaxes to skip_syntaxes. Change callers.
21150 Fix the case that the multibyteness of STRING and the current
21151 buffer doesn't match.
21152 (skip_syntaxes): New function.
21153 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21154 SINGLE_BYTE_CHAR_P.
21155
211562008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * xfaces.c (QCfontset): New variable.
21159 (LFACE_FONTSET): New macro.
21160 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21161 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21162 (Finternal_set_lisp_face_attribute)
21163 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21164 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21165 check also LFACE_FONTSET_INDEX.
21166 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21167 attrs[LFACE_FONT_INDEX].
21168 (syms_of_xfaces): Intern and staticpro QCfontset.
21169
21170 * dispextern.h (enum lface_attribute_index): New member
21171 LFACE_FONTSET_INDEX.
21172
21173 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21174
211752008-02-01 Kenichi Handa <handa@m17n.org>
21176
21177 * coding.c (coding_set_destination): Fix coding->destination for
21178 the case converting a region.
21179 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21180 (encode_coding_object): Fix coding->dst_pos and
21181 coding->dst_pos_byte for the case converting a region.
21182
21183 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21184
21185 * character.h (BYTE8_STRING): New macro.
21186
21187 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21188
211892008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21192 characters by octal form.
21193
21194 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21195
21196 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21197 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21198 _fetch_multibyte_char_len.
21199 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21200
21201 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21202
21203 * casefiddle.c (casify_object): Simplify. Handle the case that
21204 the case conversion change the byte length.
21205 (casify_region): Likewise.
21206
21207 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21208
21209 * character.c (_fetch_multibyte_char_len): Delete this variable.
21210 (syms_of_character): Setup Vprintable_chars.
21211
21212 * editfns.c (Fchar_equal): Fix for the unibyte case.
21213 (Finsert_byte): New function.
21214 (syms_of_editfns): Defsubr it.
21215
21216 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21217 of direct code 0x3ffff.
21218
21219 * search.c (Freplace_match): Fix for the unibyte case.
21220
212212008-02-01 Kenichi Handa <handa@m17n.org>
21222
21223 * lread.c (safe_to_load_p): Fix the logic.
21224
21225 * syntax.c (scan_words): Don't treat characters belonging to
21226 different scripts as constituting a word.
21227
21228 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21229
21230 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21231
21232 * emacs.c (main): In the case of --unibyte, instead of aborting on
21233 finding non-empty buffer, make it unibyte.
21234
212352008-02-01 Kenichi Handa <handa@m17n.org>
21236
21237 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21238 to create a fontset.
21239
212402008-02-01 Dave Love <fx@gnu.org>
21241
21242 * character.c (Funibyte_char_to_multibyte): Doc fix.
21243
21244 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21245
212462008-02-01 Kenichi Handa <handa@m17n.org>
21247
21248 * fontset.c (fontset_add): Make the type `int'.
21249 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21250
21251 * character.c (unibyte_char_to_multibyte)
21252 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21253 charset_unibyte, not charset_primary.
21254
21255 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21256
21257 * charset.c (charset_unibyte): Rename from charset_primary.
21258 (Funibyte_charset): Rename from Fprimary_charset.
21259 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21260 (syms_of_charset): Adjust for the above changes.
21261
21262 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21263 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21264 it->multibyte_p is zero.
21265
21266 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21267 Delete extern.
21268
212692008-02-01 Kenichi Handa <handa@m17n.org>
21270
21271 * coding.c (Fdefine_coding_system_internal): Fix category setting
21272 for a coding system of type iso-2022.
21273
212742008-02-01 Kenichi Handa <handa@m17n.org>
21275
21276 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21277
212782008-02-01 Kenichi Handa <handa@m17n.org>
21279
21280 * syntax.c (Vnext_word_boundary_function_table): New variable.
21281 (next-word-boundary-function-table): Declare it as a Lisp variable
21282 in syms_of_syntax.
21283 (scan_words): Call functions in Vnext_word_boundary_function_table
21284 if any.
21285
21286 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21287
21288 * fontset.c (fs_load_font): If fontp->charset is not negative,
21289 return fontp without setting its members.
21290
212912008-02-01 Dave Love <fx@gnu.org>
21292
21293 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21294
21295 * m/sparc.h (HAVE_ALLOCA): Delete.
21296
21297 * s/irix6-5.h: Don't include strings.h.
21298 (bcopy, bzero, bcmp): Don't undef.
21299
21300 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21301
21302 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21303 (TIOCSIGSEND): Don't test IRIX6.
21304 (bcopy, bzero, bcmp): Define conditionally.
21305
213062008-02-01 Kenichi Handa <handa@m17n.org>
21307
21308 * buffer.c (Qas, Qmake, Qto): New variables.
21309 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21310 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21311
21312 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21313 we are inserting a process output into a multibyte buffer.
21314
21315 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21316 multibyte_char_to_unibyte.
21317
21318 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21319 by the primary charset, make it eight-bit char.
21320 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21321
21322 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21323 (charset_8_bit__control, charset_8_bit_graphic)
21324 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21325 (define_charset_internal): New function.
21326 (syms_of_charset): Call define_charset_internal for pre-defined
21327 charsets.
21328
21329 * charset.h (charset_8_bit): Extern it.
21330
21331 * coding.c (make_conversion_work_buffer): Adjust for the change
21332 of Fset_buffer_multibyte.
21333 (encode_coding_raw_text): Increment p0 in the loop.
21334
21335 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21336
21337 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21338 for the change of Fset_buffer_multibyte.
21339
21340 * fns.c (Fstring_to_multibyte): New function.
21341 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21342
213432008-02-01 Dave Love <fx@gnu.org>
21344
21345 * xfns.c (x_put_x_image): Declare args.
21346
21347 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21348 (try_font_list): Declare an arg.
21349
21350 * xdisp.c (message2_nolog, set_message): Declare an arg.
21351
21352 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21353
21354 * syntax.c (scan_sexps_forward): Declare an arg.
21355
21356 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21357 Declare an arg.
21358
21359 * lisp.h (Fnew_fontset): Declare.
21360
21361 * keymap.c (push_key_description): Call CHARACTERP correctly.
21362
21363 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21364 (face_for_char): Delete unused vars.
21365 (Fset_fontset_font): Doc fix. Delete unused vars.
21366
21367 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21368
21369 * composite.c (update_compositions): Declare arg.
21370
21371 * cm.c (calccost, cmgoto): Declare args.
21372
21373 * charset.c: Remove `emacs' conditional. Doc fixes.
21374 (map_char_table_for_charset): Declare.
21375
21376 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21377
21378 * ccl.c: Remove `emacs' conditional.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 The following changes are to allow specifying multiple font
21383 patterns for a character range (specified by script or charset).
21384
21385 * Makefile.in (abbrev.o): Depend on syntax.h.
21386 (xfaces.o): Depend on charset.h.
21387
21388 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21389 SINGLE_BYTE_CHAR_P.
21390
21391 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21392
21393 * character.h (Vchar_script_table): Extern it.
21394
21395 * character.c (Vscript_alist): Delete.
21396 (Vchar_script_table, Qchar_script_table): New variable.
21397 (syms_of_character): Declare Vchar_script_table as a lisp variable
21398 and initialize it.
21399
21400 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21401 have property char-table-extra-slots, make no extra slot.
21402
21403 * dispextern.h (struct face): Delete member `charset'.
21404 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21405 SINGLE_BYTE_CHAR_P.
21406 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21407 Add prototypes.
21408 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21409 (generate_ascii_font_name): Rename from generate_ascii_font.
21410
21411 * fontset.h (get_font_repertory_func): New prototype.
21412 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21413 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21414
21415 * fontset.c (Qprepend, Qappend): New variables.
21416 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21417 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21418 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21419 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21420 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21421 (load_font_get_repertory): New functions.
21422 (fontset_set): Delete.
21423 (fontset_face): New arg FACE. Return face ID, not face.
21424 Complete re-write to handle new fontset structure. Change caller.
21425 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21426 (face_for_char): Don't call lookup_face.
21427 (make_fontset_for_ascii_face): New arg FACE.
21428 (fs_load_font): New arg CHARSET_ID. Don't check
21429 Vfont_encoding_alist here.
21430 (find_font_encoding): New function.
21431 (list_fontsets): Use STRINGP, not ! NILP.
21432 (accumulate_script_ranges): New function.
21433 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21434 re-written to handle new fontset structure.
21435 (Ffontset_font): Return a copy of element.
21436 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21437 docstring of font-encoding-alist.
21438
21439 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21440 (Fset_fotset_font): Fix arguments to 5.
21441
21442 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21443
21444 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21445 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21446 (highlight_trailing_whitespace): Adjust for the change of
21447 lookup_named_face.
21448
21449 * xfaces.c: Include charset.h.
21450 (load_face_font): Delete argument C. Change caller.
21451 (generate_ascii_font_name): Rename from generate_ascii_font.
21452 (font_name_registry): New function.
21453 (cache_face): Store ascii faces before non-ascii faces in buckets.
21454 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21455 Lookup only ascii faces.
21456 (lookup_non_ascii_face): New function.
21457 (lookup_named_face): Delete argument C. Change caller.
21458 (lookup_derived_face): Delete argument C. Change caller.
21459 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21460 a string, just call font_list with it.
21461 (choose_face_font): Delete arguments FACE and C. New arg
21462 FONT_SPEC. Change caller.
21463 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21464 Change caller.
21465 (realize_non_ascii_face): New function.
21466 (realize_x_face): Call load_face_font here.
21467 (realize_tty_face): Delete argument C. Change caller.
21468 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21469 get a face ID.
21470 (dump_realized_face): Don't print charset of FACE.
21471
21472 * xfns.c (x_set_font): Always call x_new_fontset and
21473 store_frame_parameter.
21474 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21475 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21476
21477 * xterm.h (x_get_font_repertory): Extern it.
21478
21479 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21480 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21481 it->multibyte_p is zero.
21482 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21483 (x_new_fontset): If FONTSETNAME doesn't match any existing
21484 fontsets, create a new one.
21485 (x_get_font_repertory): New function.
21486
214872008-02-01 Kenichi Handa <handa@m17n.org>
21488
21489 * coding.c (Ffind_coding_systems_region_internal): Detect an
21490 ASCII only string correctly.
21491
21492 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21493 version is 0.
21494
214952008-02-01 Kenichi Handa <handa@m17n.org>
21496
21497 * lread.c: Include "coding.h".
21498 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21499 (load_each_byte, unread_char): New variables.
21500 (readchar_backlog): Delete.
21501 (readchar): Return a character unless load_each_byte is nonzero.
21502 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21503 cons. If unread_char is not -1, simply return it.
21504 (unreadchar): Handle the case that readcharfun is
21505 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21506 (read_multibyte): Delete.
21507 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21508 (read_emacs_mule_char): New functions.
21509 (Fload): Even if the file doesn't have the extension ".elc", if
21510 safe_to_load_p returns a positive version number, assume that the
21511 file contains bytecompiled code. If the version is less than 22,
21512 load the file while decoding multibyte sequences by emacs-mule.
21513 (readevalloop): Don't use readchar_backlog.
21514 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21515 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21516 (read_escape): Delete the arg BYTEREP.
21517 (read1): Set load_each_byte to 1 temporarily while handling
21518 #@NUMBER. Don't call read_multibyte.
21519 (read_vector): Call Fread with a cons. If readcharfun is
21520 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21521 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21522 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21523 and Qload_force_doc_strings.
21524
215252008-02-01 Kenichi Handa <handa@m17n.org>
21526
21527 * xdisp.c (face_before_or_after_it_pos): Call
21528 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21529
215302008-02-01 Kenichi Handa <handa@m17n.org>
21531
21532 * character.h (TRAILING_CODE_P): New macro.
21533 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21534 (string_char_with_unification): Fix prototype.
21535 (Vscript_alist): Extern it.
21536
21537 * character.c (Vscript_alist): New variable.
21538 (string_char_with_unification, str_as_unibyte)
21539 (string_escape_byte8): Add `const' to local variables.
21540 (syms_of_character): Declare script-alist as a Lisp variable.
21541
21542 * charset.h (Vcharset_ordered_list): Extern it.
21543 (charset_ordered_list_tick): Extern it.
21544 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21545 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21546 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21547 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21548 (Funify_charset): Adjust for the change of Funify_charset.
21549
21550 * charset.c (charset_ordered_list_tick): New variable.
21551 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21552 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21553 deunify instead of unify a charset.
aac0c6e3
MR
21554 (string_xstring_p): Add `const' to local variables.
21555 (find_charsets_in_text): Add `const' to arguments and local variables.
21556 (encode_char): Adjust for the change of Funify_charset. Fix
21557 detecting of invalid code.
21558 (Fset_charset_priority): Increment charset_ordered_list_tick.
21559 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21560 and TO_CODE.
21561
21562 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21563 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21564 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21565 (decode_coding_ccl, consume_chars)
21566 (Ffind_coding_systems_region_internal)
21567 (Fcheck_coding_systems_region): Add `const' to local variables.
21568
21569 * print.c (print_object): Use octal form for printing the
21570 contents of a bool vector.
21571
215722008-02-01 Dave Love <fx@gnu.org>
21573
21574 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21575 <version == 20>: Refuse to load.
21576
215772008-02-01 Dave Love <fx@gnu.org>
21578
21579 * fns.c: Move coding.h.
21580 (Qcodeset, Qdays, Qmonths): New.
21581 (concat): Use CHARACTERP instead of INTEGERP.
21582 (Flocale_codeset): Delete.
21583 (Flanginfo): New function.
21584 (syms_of_fns): Change accordingly.
21585
21586 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21587
215882008-02-01 Dave Love <fx@gnu.org>
21589
21590 * casetab.c (init_casetab_once, init_casetab_once): Fix
21591 CHAR_TABLE_SET call.
21592
21593 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21594
21595 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21596
21597 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21598 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21599 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21600
21601 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21602
21603 * coding.c (ENCODE_DESIGNATION, decode_eol)
21604 (make_conversion_work_buffer, code_conversion_restore)
21605 (Fdefine_coding_system_internal): Convert Lisp types.
21606 (code_conversion_restore): Use EQ, not ==.
21607 (Fencode_coding_string): Fix code_convert_string call.
21608
21609 * coding.h (code_convert_region): Fix prototype.
21610
21611 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21612
21613 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21614 (Ffontset_info): Convert Lisp types.
21615
21616 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21617
21618 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21619
21620 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21621
21622 * chartab.c: Include "...h", not <...h> in some cases.
21623
21624 * callproc.c (Fcall_process): Remove unused variables.
21625
216262008-02-01 Dave Love <fx@gnu.org>
21627
21628 * coding.c (Fset_coding_system_priority): Allow null arg list.
21629
216302008-02-01 Dave Love <fx@gnu.org>
21631
21632 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21633 (Fself_insert_and_exit): Use CHARACTERP.
21634
21635 * callproc.c (Fcall_process): Remove unused vars.
21636
21637 * xterm.c (XTread_socket): Add extra dead keysyms.
21638
21639 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21640
21641 * dispextern.h: Remove prototypes for redraw_frame,
21642 redraw_garbaged_frames.
21643
21644 * cmds.c (Fself_insert_command): Use CHARACTERP.
21645
21646 * chartab.c (make_sub_char_table): Remove unused var.
21647 (Fset_char_table_default, Fmap_char_table): Doc fix.
21648
21649 * keymap.c (access_keymap): Remove generic char code.
21650 (push_key_description): Use CHARACTERP.
21651
216522008-02-01 Dave Love <fx@gnu.org>
21653
21654 * charset.c: Doc fixes.
21655 (Funify_charset): Extra checking.
21656
216572008-02-01 Dave Love <fx@gnu.org>
21658
21659 * lread.c: Remove some unused variables.
21660 (safe_to_load_p): If safe, return the magic number version byte.
21661 (Fload): Maybe use load-with-code-conversion.
21662
216632008-02-01 Kenichi Handa <handa@m17n.org>
21664
21665 * category.c (Fmodify_category_entry): Don't modify the contents
21666 of category_set for characters out of the range. Avoid
21667 unnecessary modification.
21668
21669 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21670 Vchar_unify_table. The default value of the table is now nil.
21671
21672 * character.c (syms_of_character): Setup Vchar_width_table for
21673 eight-bit-control and raw-byte chars.
21674
21675 * charset.h (enum define_charset_arg_index): Delete
21676 charset_arg_parents and add charset_arg_subset and
21677 charset_arg_superset.
21678 (enum charset_attr_index): Delete charset_parents and add
21679 charset_subset and charset_superset.
21680 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21681 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21682 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21683 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21684 (CHARSET_SUPERSET): New macros.
21685 (charset_work): Extern it.
21686 (ENCODE_CHAR): Use charset_work.
21687 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21688 (map_charset_chars): Extern it.
21689
21690 * charset.c (load_charset_map): Set the default value of encoder
21691 and deunifier char-tables to nil.
21692 (map_charset_chars): Change argument. Change callers. Use
21693 map_char_table_for_charset instead of map_char_table.
21694 (Fmap_charset_chars): New optional args from_code and to_code.
21695 (Fdefine_charset_internal): Adjust for the change of
21696 `define-charset' (:parents -> :subset or :superset).
21697 (charset_work): New variable.
21698 (encode_char, syms_of_charset): Adjust for the change of
21699 Fdefine_charset_internal.
21700 (Ffind_charset_string): Setup the vector `charsets' correctly.
21701
21702 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21703 the previous change.
21704 (char_table_ref_and_range): Adjust for the above change.
21705 (map_sub_char_table_for_charset): New function.
21706 (map_char_table_for_charset): New function.
21707
21708 * keymap.c (describe_vector): Handle a char-table directly here.
21709 (describe_char_table): Delete.
21710
21711 * lisp.h (map_charset_chars): Delete.
21712
217132008-02-01 Dave Love <fx@gnu.org>
21714
21715 * fns.c (count_combining): Comment out (unused).
21716 (Flocale_codeset): New.
21717 (syms_of_fns): Defsubr it.
21718
21719 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21720 (size_t): Remove.
21721
217222008-02-01 Dave Love <fx@gnu.org>
21723
21724 * Makefile.in (chartab.o): Depend on charset.h.
21725
217262008-02-01 Kenichi Handa <handa@m17n.org>
21727
21728 * character.c (syms_of_character): Set the default value of
21729 Vprintable_chars to Qnil.
21730
217312008-02-01 Dave Love <fx@gnu.org>
21732
21733 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21734
217352008-02-01 Kenichi Handa <handa@m17n.org>
21736
21737 * charset.c (load_charset_map): Handle the case that from < to
21738 correctly.
21739
21740 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21741 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21742 Pay attention to raw-8-bit chars.
21743
217442008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21747 It is not bytecompiled now.
21748
21749 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21750 (charset_jisx0208): New variables.
21751 (Fdefine_charset_internal): Setup them if appropriate.
21752 (init_charset_once): Initialize them to -1.
21753
21754 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21755 (charset_jisx0208): Extern them.
21756
21757 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21758 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21759 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21760 (setup_iso_safe_charsets): Fix arguments to Fassq.
21761 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21762 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21763 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21764 (encode_coding_iso_2022): Change the 1st arg to
21765 ENCODE_ISO_CHARACTER to a variable.
21766
217672008-02-01 Kenichi Handa <handa@m17n.org>
21768
21769 * charset.h (enum define_charset_arg_index): New enums
21770 charset_arg_min_code and charset_arg_max_code.
21771 (struct charset): New member char_index_offset.
21772
21773 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21774 Take charset->char_index_offset into account.
21775 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21776 args[charset_arg_max_code]. Setup charset.char_index_offset.
21777 (syms_of_charset): Fix args to Fdefine_charset_internal.
21778
217792008-02-01 Dave Love <fx@gnu.org>
21780
21781 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21782
217832008-02-01 Dave Love <fx@gnu.org>
21784
21785 * coding.c: Doc fixes.
21786 (Fcoding_system_aliases): Fix return value.
21787 (Qmac): Remove (duplicated) definition.
21788
217892008-02-01 Dave Love <fx@gnu.org>
21790
362654a6
JB
21791 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21792 New functions.
aac0c6e3
MR
21793
21794 * character.c (Fstring): Doc fix.
21795
21796 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21797
362654a6 21798 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21799 (font-encoding-alist): Doc fix.
21800
218012008-02-01 Dave Love <fx@gnu.org>
21802
21803 * term.c (costs_set): Declare static, non-initialized for pcc.
21804 (encode_terminal_code): Remove unused var.
21805
21806 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21807 for K&R.
21808
21809 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21810
21811 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21812 (suffixes): Move out of make_subsidiaries for K&R.
21813
21814 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21815
21816 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21817
218182008-02-01 Dave Love <fx@gnu.org>
21819
21820 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21821
21822 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21823
218242008-02-01 Yong Lu <lyongu@asia-infonet.com>
21825
21826 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21827
21828 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21829
218302008-02-01 Kenichi Handa <handa@m17n.org>
21831
21832 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21833 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 * coding.c (decode_coding_charset): Adjust for the change of
21838 Fdefine_coding_system_internal.
21839 (Fdefine_coding_system_internal): For a coding system of
21840 `charset' type, store a list of charset IDs in
21841 `charset_attr_charset_valids' element of coding attributes.
21842
218432008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21846 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21847 caller. Handle 2-byte and 3-byte charsets correctly.
21848 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21849 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21850 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21851 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21852 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21853 sequence.
21854 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21855 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21856 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21857 and alt&rule composition.
21858 (decode_coding_iso_2022): Handle composition correctly.
21859 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21860
21861 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21862 re-defining a charset. If the charset has :emacs-mule-id, setup
21863 emacs_mule_bytes.
21864 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21865
218662008-02-01 Kenichi Handa <handa@m17n.org>
21867
21868 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21869 (encode_coding_big5, encode_coding_charset): If coding requires safe
21870 encoding, produce a character specified by
21871 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21872
218732008-02-01 Dave Love <fx@gnu.org>
21874
21875 * xterm.c (XSetIMValues): Declare.
21876
21877 * process.c: Conditionally include sys/wait.h, pty.h.
21878
21879 * print.c (print_object): Fix print format for 64-bit systems.
21880
21881 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21882
21883 * buffer.c (emacs_strerror): Declare.
21884
21885 * fontset.c (Fclear_face_cache): Declare.
21886 (accumulate_font_info): Comment-out (unused).
21887 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21888 variables.
21889
21890 * character.h (string_escape_byte8): Declare.
21891
21892 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21893 unused vars.
21894 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21895 (Fmap_charset_chars): Doc fix.
21896
21897 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21898 (Fset_coding_system_priority, Fset_coding_system_priority)
21899 (Fdefine_coding_system_internal): Doc fix.
21900
219012008-02-01 Dave Love <fx@gnu.org>
21902
21903 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21904
219052008-02-01 Kenichi Handa <handa@m17n.org>
21906
21907 * character.c (string_escape_byte8): Make multibyte string with
21908 correct size.
21909
21910 * charset.c (Fmake_char): Delete unnecessary code.
21911
219122008-02-01 Kenichi Handa <handa@m17n.org>
21913
21914 * xfns.c (x_encode_text): Allocate coding.destination here, and
21915 call encode_coding_object with dst_object Qnil.
21916
21917 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21918 multibyte form correctly.
21919
21920 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21921 against Vfont_encoding_alist.
21922
21923 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21924 handling of charset list.
21925 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21926 (decode_coding_object): Move point to coding->dst_pos before
21927 calling post-read-conversion function.
21928 (encode_coding_object): Give correct arguments to
21929 pre-write-conversion. Ignore the return value of
21930 pre-write-conversion function. Pay attention to the case that
21931 pre-write-conversion changes the current buffer. If dst_object is
21932 Qt, even if coding->src_bytes is zero, allocate at least one byte
21933 to coding->destination.
21934
21935 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21936
21937 * charset.c (Fmake_char): Make it more backward compatible.
21938 (Fmap_charset_chars): Fix docstring.
21939
219402008-02-01 Dave Love <fx@gnu.org>
21941
21942 * coding.c: Doc fixes.
21943 (Fdefine_coding_system_alias): Use names, not symbols, in
21944 coding-system-alist.
21945
219462008-02-01 Kenichi Handa <handa@m17n.org>
21947
21948 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21949 of calling free_realized_face.
21950
219512008-02-01 Yong Lu <lyongu@asia-infonet.com>
21952
21953 * charset.c (read_hex): Don't treat SPC as a comment starter.
21954 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21955 (Fdecode_char): Fix typo.
21956
219572008-02-01 Kenichi Handa <handa@m17n.org>
21958
21959 * charset.h (struct charset): New member `code_space_mask'.
21960
21961 * coding.c (coding_set_source): Delete the local variable beg_byte.
21962 (encode_coding_charset, Fdefine_coding_system_internal):
21963 Delete the local variable charset.
21964 (Fdefine_coding_system_internal): Setup
21965 attrs[coding_attr_charset_valids] correctly.
21966
21967 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21968 member to check if CODE is valid or not.
21969 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21970 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21971 is within the range of charset->min_code and carset->max_code.
21972
219732008-02-01 Dave Love <fx@gnu.org>
21974
21975 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21976
21977 * dispextern.h (generate_ascii_font): Fix return type.
21978
21979 * xfaces.c (generate_ascii_font): Fix arg declaration.
21980
21981 * coding.c (coding_inherit_eol_type)
21982 (Fset_terminal_coding_system_internal)
21983 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21984
219852008-02-01 Kenichi Handa <handa@m17n.org>
21986
21987 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21988 multiple charsets correctly.
21989
219902008-02-01 Kenichi Handa <handa@m17n.org>
21991
21992 * search.c (boyer_moore): Fix handling of multibyte character
21993 translation.
21994
21995 * xdisp.c (display_mode_element): When the variable `elt' is
21996 changed, update `this' and `lisp_string'.
21997
219982008-02-01 Kenichi Handa <handa@m17n.org>
21999
22000 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22001
22002 * callproc.c (Fcall_process): Be sure to give the current buffer
22003 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22004
22005 * charset.c (struct charset_map_entries): New struct.
22006 (load_charset_map): Rename from parse_charset_map. New args
22007 entries and n_entries. Change caller.
22008 (load_charset_map_from_file): Rename from load_charset_map.
22009 Change caller. New arg control_flag. Call load_charset_map at
22010 the tail.
22011 (load_charset_map_from_vector): New function.
22012 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22013 (encode_char): If the charset is compact, change a character index
22014 to a code point.
22015
22016 * coding.c (coding_alloc_by_making_gap): Check the case that the
22017 source and destination are the same correctly.
22018 (decode_coding_raw_text): Set coding->consumed_char and
22019 coding->consumed to 0.
22020 (produce_chars): If coding->chars_at_source is nonzero, update
22021 coding->consumed_char and coding->consumed before calling
22022 alloc_destination.
22023 (Fdefine_coding_system_alias): Register ALIAS in
22024 Vcoding_system_alist.
22025 (syms_of_coding): Define `no-conversion' coding system at the tail.
22026
22027 * fileio.c (Finsert_file_contents): Set coding_system instead of
22028 val. If the current buffer is multibyte, always call
22029 decode_coding_gap.
22030
22031 * xfaces.c (try_font_list): Give higher priority to fontset's
22032 family than face's family.
22033
220342008-02-01 Kenichi Handa <handa@m17n.org>
22035
22036 * callproc.c (Fcall_process): Be sure to give the current buffer
22037 to decode_coding_c_string.
22038
22039 * xfaces.c (try_font_list): Give a family specified in a fontset
22040 higher priority than a family specified in a face.
22041
220422008-02-01 Kenichi Handa <handa@m17n.org>
22043
22044 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22045 Fix arguments to insert_from_buffer.
22046
22047 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22048
220492008-02-01 Kenichi Handa <handa@m17n.org>
22050
22051 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22052 (decode_coding_gap): Set coding->dst_multibyte correctly.
22053
220542008-02-01 Kenichi Handa <handa@m17n.org>
22055
22056 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22057 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22058 (encode_coding_utf_16): Substitute coding->default_char for
22059 non-Unicode characters.
22060 (decode_coding): Don't call record_insert here.
22061 (setup_coding_system): Initialize `surrogate' of
22062 coding->spec.utf_16 to 0.
22063 (EMIT_ONE_BYTE): Fix for multibyte case.
22064
22065 * insdel.c (insert_from_gap): Call record_insert.
22066
220672008-02-01 Kenichi Handa <handa@m17n.org>
22068
22069 * casefiddle.c (casify_region): Fix multibyte case.
22070
22071 * character.c (c_string_width): Add return type `int'.
22072 (char_string_with_unification): Delete arg ADVANCED.
22073
22074 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22075 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22076 (CHAR_STRING_ADVANCE): Make it do-while statement.
22077
22078 * chartab.c (sub_char_table_set_range): Optimize for the case
22079 DEPTH == 3. Add workaround code for a GCC optimization bug.
22080
22081 * charset.c (parse_charset_map): Remove an unused variable.
22082
22083 * coding.c: Delete unused variables.
22084
22085 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22086 earlier. If inserted is zero and the coding system doesn't
22087 require flushing, don't call decode_coding_gap.
22088
22089 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22090
220912008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 The following changes are for using Unicode as an internal
22094 character model, and use UTF-8 format for buffer/string
22095 representation.
22096
22097 * .gdbinit (xchartable): Adjust for the change of char table structure.
22098 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22099
22100 * Makefile.in (obj): Add character.o and chartab.o.
22101 (lisp, shortlisp): Remove utf-8.elc.
22102 (*.o): For many files, change dependency on charset.h to
22103 character.h, and add dependency on character.h.
22104 (character.o, chartab.o): New targets.
22105
22106 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22107 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22108 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22109 of "charset.h".
22110
22111 * dired.c, filelock.c: Include "character.h".
22112
22113 * alloc.c: Include "character.h" instead of "charset.h".
22114 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22115 (syms_of_alloc): Remove defsubr for Smake_char_table.
22116
22117 * buffer.c: Include "character.h" instead of "charset.h", don't
22118 include "coding.h".
22119 (Fset_buffer_multibyte): Adjust for UTF-8.
22120
22121 * buffer.h: EXFUN Fbuffer_live_p.
22122
22123 * callproc.c: Include "character.h" instead of "charset.h".
22124 (Fcall_process): Big change for the new code-conversion APIs.
22125
22126 * casetab.c: Include "character.h" instead of "charset.h".
22127 (set_canon, set_identity, shuffle): Adjust for the new
22128 map_char_table spec.
22129 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22130 accessing the char table structure.
22131
22132 * chartab.c: New file that implements char table.
22133
22134 * category.c: Include "character.h".
22135 (copy_category_entry): New function.
22136 (copy_category_table): Call map_char_table and copy_category_entry.
22137 (Fmake_category_table): Initialize all top-level slots.
22138 (char_category_set): New function.
22139 (modify_lower_category_set): Delete.
22140 (Fmodify_category_entry): Call char_table_ref_and_range.
22141
22142 * category.h (CATEGORY_SET): Just call char_category_set.
22143
22144 * ccl.c: Include "character.h".
22145 (Qccl, Qcclp): New variables.
22146 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22147 it's less than 256.
22148 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22149 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22150 and DST type.
22151 (ccl_driver): Change types of argument, adjust code accordingly.
22152 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22153 ccl_driver.
22154 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22155
22156 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22157 New members src_multibyte, dst_multibyte, consumed, and produced.
22158 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22159 (CODING_SPEC_CCL_PROGRAM): New macro.
22160 (ccl_driver): Update prototype.
22161 (Qccl, Qcclp, Fccl_program_p): Extern them.
22162 (CHECK_CCL_PROGRAM): New macro.
22163
22164 * character.c, character.h, chartab.c: New files.
22165
22166 * charset.c: Mostly re-written. Move character and multibyte sequence
22167 handling codes to character.c.
22168
22169 * charset.h: Mostly re-written. Move character and multibyte sequence
22170 handling codes to character.h.
22171
22172 * coding.c, coding.h: Mostly re-written.
22173
22174 * composite.c: Include "character.h" instead of "charset.h".
22175 (CHAR_WIDTH): Move to character.h.
22176 (HASH_KEY, HASH_VALUE): Delete.
22177
22178 * composite.h (enum composition_method): Change order of enumeration
22179 symbols.
22180
22181 * data.c: Include "character.h" instead of "charset.h".
22182 (Faref): Call CHAR_TABLE_REF for a char table.
22183 (Faset): Call CHAR_TABLE_SET for a char table.
22184
22185 * dispextern.h (free_realized_face, check_face_attribytes)
22186 (generate_ascii_font): Extern them.
22187 (free_realized_multibyte_face): Delete extern.
22188
22189 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22190 table structure.
22191
22192 * editfns.c: Include "character.h" instead of "charset.h".
22193 (Fchar_to_string): Always call CHAR_STRING.
22194
22195 * emacs.c (main): Call init_charset_once, init_charset,
22196 syms_of_chartab, and syms_of_character.
22197
22198 * fileio.c: Include "character.h" instead of "charset.h".
22199 (Finsert_file_contents): Big change for the new code-conversion API.
22200 (choose_write_coding_system, Fwrite_region): Likewise.
22201 (build_annotations_2): Delete.
22202 (e_write): Big change for the new code-conversion API.
22203
22204 * fns.c: Include "character.h" instead of "charset.h".
22205 (copy_sub_char_table): Move to chartab.c.
22206 (Fcopy_sequence): Call copy_char_table for a char table.
22207 (concat): Delete codes calling count_multibyte.
22208 (string_char_to_byte, string_byte_to_char): Adjust for the new
22209 multibyte form.
22210 (internal_equal): Adjust for the change of char table structure.
22211 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22212 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22213 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22214 (char_table_translate, optimize_sub_char_table)
22215 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22216 chartab.c.
22217 (char_table_ref_and_index): Delete.
22218 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22219 (Fmd5): Call preferred_coding_system instead of accessing
22220 Vcoding_category_list. Adjust for the new code-conversion API.
22221 (syms_of_fns): Move defsubr for char table related functions to
22222 chartab.c.
22223
22224 * fontset.c: Mostly re-written.
22225
22226 * fontset.h (struct font_info): Change type of the member encoding_type.
22227 (enum FONT_SPEC_INDEX): New enum.
22228 (fontset_font_pattern, fs_load_font): Update prototype.
22229 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22230
22231 * indent.c: Include "character.h" instead of "charset.h".
22232 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22233
22234 * insdel.c: Include "character.h" instead of "charset.h".
22235 (copy_text): Don't refer to Vnonascii_translation_table.
22236 (insert_from_gap): New function.
22237
22238 * keyboard.c: Include "character.h" instead of "charset.h".
22239 (command_loop_1): Never call direct_output_forward_char before
22240 a non-ASCII character.
22241 (read_char): If Vkeyboard_translate_table is a char table, always
22242 translate a character.
22243
22244 * keymap.c: Include "character.h".
22245 (store_in_keymap): Handle the case that IDX is a cons.
22246 (Fdefine_key): Handle the case that KEY is a cons and the car part
22247 is also a cons (range).
22248 (push_key_description): Adjust for the new character code.
22249 (describe_vector): Call describe_char_table for a char table.
22250 (describe_char_table): New function.
22251
22252 * keymap.h (describe_char_table): Extern it.
22253
22254 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22255 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22256 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22257 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22258 Delete.
22259 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22260 structure.
22261 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22262 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22263 (CHARTAB_SIZE_BITS_3): New macros.
22264 (chartab_size): Extern it.
22265 (struct Lisp_Char_Table): Re-design.
22266 (struct Lisp_Sub_Char_Table): New structure.
22267 (HASH_KEY, HASH_VALUE): Move from fns.c.
22268 (CHARACTERBITS): Define as 22.
22269 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22270 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22271 (GC_SUB_CHAR_TABLE_P): New macro.
22272 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22273 (code_convert_string_norecord): Deleted extern.
22274 (init_character_once, syms_of_character, init_charset)
22275 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22276
22277 * lread.c: Include "character.h".
22278 (read_multibyte): New arg NBYTES.
22279 (read_escape): Change the meaning of returned *BYTEREP.
22280 (to_multibyte): Delete.
22281 (read1): Adjust the handling of char table and string.
22282
22283 * print.c: Include "character.h" instead of "charset.h".
22284 (print_string): Convert 8-bit raw bytes to octal form by
22285 string_escape_byte8.
22286 (print_object): Adjust for the new multibyte form. Print 8-bit
22287 raw bytes always in octal form. Handle sub char table correctly.
22288
22289 * process.c: Include "character.h" instead of "charset.h".
22290 (read_process_output, send_process): Adjust for the new
22291 code-conversion API.
22292
22293 * puresize.h (BASE_PURESIZE): Increase.
22294
22295 * regex.c: Include "character.h" instead of "charset.h".
22296 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22297 (regex_compile): Accept a range whose starting and ending
22298 character have different leading bytes.
22299 (analyse_first): Adjust for the above change.
22300
22301 * search.c: Include "character.h" instead of "charset.h".
22302 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22303 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22304
22305 * syntax.c: Include "character.h" instead of "charset.h".
22306 (syntax_parent_lookup): Delete.
22307 (Fmodify_syntax_entry): Accept a cons as CHAR.
22308 (skip_chars): Adjust for the new multibyte form.
22309 (init_syntax_once): Call char_table_set_range instead of directly
22310 accessing the structure of a char table.
22311
22312 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22313 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22314 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22315 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22316
22317 * term.c: Include "buffer.h" and "character.h".
22318 (encode_terminal_code, write_glyphs): Adjust for the new
22319 code-conversion API.
22320 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22321
22322 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22323
22324 * xdisp.c: Include "character.h".
22325 (get_next_display_element): Adjust for the new multibyte form.
22326 (disp_char_vector): Adjust for the new char table structure.
22327 (decode_mode_spec_coding): Adjust for the new structure of
22328 coding system.
22329 (decode_mode_spec): Adjust for the new code-conversion API.
22330
22331 * xfaces.c: Include "character.h" instead of "charset.h".
22332 (load_face_font): Adjust for the change of choose_face_font and
22333 FS_LOAD_FONT.
22334 (generate_ascii_font): New function.
22335 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22336 (set_font_frame_param): Adjust for the change of choose_face_font.
22337 (free_realized_face): Make it public.
22338 (free_realized_faces_for_fontset): Rename from
22339 free_realized_multibyte_face. Free also faces realized for ASCII.
22340 (choose_face_font): Change arguments. Adjust for the change of
22341 fontset_font_pattern and FS_LOAD_FONT.
22342
22343 * xfns.c: Include "character.h".
22344 (x_encode_text): Adjust for the new code-conversion API.
22345
22346 * xselect.c: Don't include "charset.h".
22347 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22348
22349 * xterm.c: Include "character.h".
22350 (x_encode_char): New argument CHARSET. Change caller.
22351 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22352 Call ENCODE_CHAR instead of SPLIT_CHAR.
22353 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22354 CHAR_WIDTH instead of CHARSET_WIDTH.
22355 (XTread_socket): Adjust for the new code-conversion API.
22356 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22357 (x_load_font): Adjust for the change of struct font.
22358
223592008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22360
22361 * xfaces.c (face_at_buffer_position): Remove unused vars.
22362
223632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22364
22365 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22366 Fix overflow checking.
22367
223682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22369
22370 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22371 Cancel previous change.
22372
223732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22374
22375 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22376 ccl->eight_bit_control. Fix check for buffer overflow.
22377 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22378 (ccl_driver): Initialize extra_bytes to 0.
22379
223802008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22381
22382 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22383 return it ORed with ctrl_modifier.
22384
223852008-01-29 Miles Bader <miles@gnu.org>
22386
22387 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22388
223892008-01-28 Jason Rumney <jasonr@gnu.org>
22390
22391 * w32.c (stat): Don't double check for networked drive.
22392
223932008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22394
22395 * window.c (run_window_configuration_change_hook): New function.
22396 Code extracted from set_window_buffer. Set the selected frame.
22397 (set_window_buffer): Use it.
22398 * window.h (run_window_configuration_change_hook): Declare.
22399 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22400
22401 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22402
224032008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22404
22405 * Makefile.in: Remove references to unused macros.
22406
224072008-01-26 Eli Zaretskii <eliz@gnu.org>
22408
22409 * w32.c (g_b_init_get_sid_sub_authority)
22410 (g_b_init_get_sid_sub_authority_count): New static variables.
22411 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22412 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22413 (init_user_info): Use them to retrieve uid and gid.
22414 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22415 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22416 st_uid and st_gid of the file.
22417
224182008-01-26 Jason Rumney <jasonr@gnu.org>
22419
22420 * w32.c (logon_network_drive): New function.
22421 (stat): Use it.
22422
224232008-01-26 Chong Yidong <cyd@stupidchicken.com>
22424
22425 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22426 invisible text covered with an ellipsis.
22427
224282008-01-25 Richard Stallman <rms@gnu.org>
22429
22430 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22431 jump back to beginning. Move some other initializations after that.
22432 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22433 New variables.
22434 (syms_of_xdisp): Init them.
22435
22436 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22437
22438 * buffer.c (reset_buffer_local_variables):
22439 Implement `permanent-local-hook'.
22440 (Qpermanent_local_hook): New variable.
22441 (syms_of_buffer): Init and staticpro it.
22442
224432008-01-25 Michael Albinus <michael.albinus@gmx.de>
22444
22445 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22446
224472008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22448
22449 * fns.c (Fclrhash): Return TABLE.
22450
224512008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22452
22453 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22454 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22455 is set even without positional changes.
22456 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22457
22458 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22459
224602008-01-23 Jason Rumney <jasonr@gnu.org>
22461
22462 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22463
22464 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22465 the unicode range available in MULE by locale-coding-system.
22466 Improve dbcs lead byte detection. Set event timestamp and modifiers
22467 earlier.
22468
224692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22470
22471 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22472 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22473 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22474 when used on child processes.
22475
224762008-01-21 Michael Albinus <michael.albinus@gmx.de>
22477
22478 * dbusbind.c (Fdbus_method_return_internal): Rename from
22479 Fdbus_method_return.
22480 (Fdbus_unregister_object): Move to dbus.el.
22481 (Fdbus_call_method, Fdbus_method_return_internal)
22482 (Fdbus_send_signal): Improve debug messages.
22483
224842008-01-20 Martin Rudalics <rudalics@gmx.at>
22485
22486 * undo.c (undo_inhibit_record_point): New variable.
22487 (syms_of_undo): Initialize it.
22488 (record_point): Don't record point when undo_inhibit_record_point
22489 is set.
22490
224912008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22492
22493 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22494
22495 * xdisp.c (Qauto_hscroll_mode): New var.
22496 (syms_of_xdisp): Initialize it.
22497 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22498 window's buffer.
22499 (hscroll_windows): Don't check automatic_hscrolling_p here.
22500
22501 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22502 vscroll if we're setting window-buffer to the value it already has.
22503
225042008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22505
22506 * m/intel386.h: Remove references to XENIX.
22507
225082008-01-17 Andreas Schwab <schwab@suse.de>
22509
22510 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22511 instead of HAVE_X86_64_LIB64_DIR.
22512 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22513
225142008-01-17 Glenn Morris <rgm@gnu.org>
22515
22516 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22517 to HAVE_X86_64_LIB64_DIR.
22518
225192008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22520
22521 * s/irix3-3.h:
22522 * s/irix4-0.h:
22523 * s/386-ix.h:
22524 * s/domain.h:
22525 * s/hpux9-x11r4.h:
22526 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22527
22528 * sysdep.c: Remove code containing references to symbols defined
22529 by unsupported systems.
22530
225312008-01-16 Glenn Morris <rgm@gnu.org>
22532
22533 * coding.c (select-safe-coding-system-function): Doc fix.
22534
225352008-01-15 Glenn Morris <rgm@gnu.org>
22536
22537 * config.in: Revert 2008-01-13 change: this is a generated file.
22538
225392008-01-13 Tom Tromey <tromey@redhat.com>
22540
22541 * lisp.h: Fix typo.
22542
225432008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22544
22545 * m/sequent-ptx.h:
22546 * m/sequent.h:
22547 * s/ptx.h:
22548 * s/ptx4-2.h:
22549 * s/ptx4.h: Remove files for systems no longer supported.
22550
22551 * callproc.c (Fcall_process): Fix previous change.
22552
225532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22554
22555 * unexsunos4.c: Remove file, system not supported anymore.
22556
22557 * m/mips.h:
22558 * m/intel386.h:
22559 * callproc.c:
22560 * config.in:
22561 * ecrt0.c:
22562 * emacs.c:
22563 * fileio.c:
22564 * frame.c:
22565 * getpagesize.h:
22566 * keyboard.c:
22567 * lread.c:
22568 * process.c:
22569 * puresize.h:
22570 * sysdep.c:
22571 * systty.h:
22572 * syswait.h:
22573 * unexec.c:
22574 * xdisp.c:
22575 * alloc.c: Remove code containing references to symbols defined by
22576 unsupported systems.
22577
225782008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22579
22580 * coding.c (detect_coding_mask): Fix previous change.
22581
225822008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22583
22584 * coding.c (detect_coding_iso2022): New arg
22585 latin_extra_code_state. Allow Latin extra codes only
22586 when *latin_extra_code_state is nonzero.
22587 (detect_coding_mask): If there is a NULL byte, detect the encoding
22588 as UTF-16 or binary. If Latin extra codes exist, detect the
22589 encoding as ISO-2022 only when there's no other proper encoding is
22590 found.
22591
225922008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22593
22594 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22595 #ifdef MAC_OS.
22596
225972008-01-08 Richard Stallman <rms@gnu.org>
22598
22599 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22600
226012008-01-06 Nick Roberts <nickrob@snap.net.nz>
22602
22603 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22604 menu bar in parentheses.
22605
226062008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22607
22608 * m/7300.h:
22609 * m/acorn.h:
22610 * m/alliant-2800.h:
22611 * m/alliant.h:
22612 * m/alliant1.h:
22613 * m/alliant4.h:
22614 * m/altos.h:
22615 * m/amdahl.h:
22616 * m/apollo.h:
22617 * m/att3b.h:
22618 * m/aviion-intel.h:
22619 * m/aviion.h:
22620 * m/celerity.h:
22621 * m/clipper.h:
22622 * m/cnvrgnt.h:
22623 * m/convex.h:
22624 * m/cydra5.h:
22625 * m/delta88k.h:
22626 * m/dpx2.h:
22627 * m/dual.h:
22628 * m/elxsi.h:
22629 * m/f301.h:
22630 * m/gould-np1.h:
22631 * m/gould.h:
22632 * m/i860.h:
22633 * m/ibmps2-aix.h:
22634 * m/ibmrt-aix.h:
22635 * m/ibmrt.h:
22636 * m/irist.h:
22637 * m/is386.h:
22638 * m/isi-ov.h:
22639 * m/mega68.h:
22640 * m/mg1.h:
22641 * m/news-r6.h:
22642 * m/news-risc.h:
22643 * m/news.h:
22644 * m/nh3000.h:
22645 * m/nh4000.h:
22646 * m/ns16000.h:
22647 * m/ns32000.h:
22648 * m/nu.h:
22649 * m/orion.h:
22650 * m/orion105.h:
22651 * m/paragon.h:
22652 * m/pfa50.h:
22653 * m/plexus.h:
22654 * m/pyramid.h:
22655 * m/pyrmips.h:
22656 * m/sh3el.h:
22657 * m/sps7.h:
22658 * m/sr2k.h:
22659 * m/stride.h:
22660 * m/sun1.h:
22661 * m/sun2.h:
22662 * m/sun3-68881.h:
22663 * m/sun3-fpa.h:
22664 * m/sun3-soft.h:
22665 * m/sun3.h:
22666 * m/sun386.h:
22667 * m/symmetry.h:
22668 * m/tad68k.h:
22669 * m/tahoe.h:
22670 * m/targon31.h:
22671 * m/tek4300.h:
22672 * m/tekxd88.h:
22673 * m/tower32.h:
22674 * m/tower32v3.h:
22675 * m/ustation.h:
22676 * m/wicat.h:
22677 * m/xps100.h:
22678 * s/cxux.h:
22679 * s/cxux7.h:
22680 * s/dgux.h:
22681 * s/dgux4.h:
22682 * s/dgux5-4-3.h:
22683 * s/dgux5-4r2.h:
22684 * s/esix.h:
22685 * s/esix5r4.h:
22686 * s/hiuxmpp.h:
22687 * s/hiuxwe2.h:
22688 * s/iris3-5.h:
22689 * s/iris3-6.h:
22690 * s/isc2-2.h:
22691 * s/isc3-0.h:
22692 * s/isc4-0.h:
22693 * s/isc4-1.h:
22694 * s/newsos5.h:
22695 * s/newsos6.h:
22696 * s/osf1.h:
22697 * s/osf5-0.h:
22698 * s/riscix1-1.h:
22699 * s/riscix12.h:
22700 * s/sco4.h:
22701 * s/sco5.h:
22702 * s/sunos4-0.h:
22703 * s/sunos4-1.h:
22704 * s/sunos413.h:
22705 * s/sunos4shr.h:
22706 * s/umax.h:
22707 * s/unipl5-2.h:
22708 * s/xenix.h:
22709 * cxux-crt0.s:
22710 * unexapollo.c:
22711 * unexconvex.c:
22712 * unexenix.c:
22713 * unexsni.c: Remove files for systems no longer supported.
22714
22715 * m/intel386.h: Remove references to unsupported systems.
22716
22717 * w32.c (get_emacs_configuration): Remove reference to i860.
22718
22719 * sysdep.c: Remove dead code.
22720
227212008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22722
22723 * s/rtu.h:
22724 * m/masscomp.h: Remove files. Platform is obsolete.
22725
227262008-01-04 Michael Albinus <michael.albinus@gmx.de>
22727
22728 * dbusbind.c (Fdbus_method_return): New function.
22729 (xd_read_message): Add the serial number to the event.
22730 (Fdbus_register_method): Activate the function.
22731
227322008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22733
22734 * keyboard.c (read_key_sequence): Fix typo.
22735
227362008-01-03 Michael Albinus <michael.albinus@gmx.de>
22737
22738 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22739 (xd_signature, xd_append_arg): Handle element type detection for
22740 empty arrays.
22741 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22742 SDATA () calls; this must be solved more general.
22743 (Fdbus_register_signal): Use SBYTES instead of strlen.
22744
227452008-01-03 Magnus Henoch <magnus@zemdatav>
22746
22747 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22748 unsigned int for byte values (necessary for big-endian platform).
22749 (Fdbus_call_method): Handle the case of no returned arguments.
22750
227512007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22752
22753 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22754
227552007-12-31 Magnus Henoch <mange@freemail.hu>
22756
22757 * dbusbind.c (xd_signature): Signature of variant is just "v".
22758
227592007-12-30 Michael Albinus <michael.albinus@gmx.de>
22760
22761 * dbusbind.c: Fix several errors and compiler warnings.
22762 Reported by Tom Tromey <tromey@redhat.com>.
22763 (XD_ERROR, XD_DEBUG_MESSAGE)
22764 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22765 (xd_append_arg): Part for basic D-Bus types rewritten.
22766 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22767 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22768 appropriate.
22769 (xd_read_message): Return Qnil. Don't signal an error; it is not
22770 useful during event reading.
22771 (Fdbus_register_signal): Signal an error if the check for
22772 FUNCTIONP fails.
22773 (Fdbus_register_method): New function. The implementation is not
22774 complete, the call of the function signals an error therefore.
22775 (Fdbus_unregister_object): New function, renamed from
22776 Fdbus_unregister_signal. The initial check signals an error, if
22777 the object is not well formed.
22778
227792007-12-30 Richard Stallman <rms@gnu.org>
22780
22781 * textprop.c (get_char_property_and_overlay):
22782 Signal error if POSITION is out of range in a buffer.
22783
227842007-12-29 Martin Rudalics <rudalics@gmx.at>
22785
22786 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22787 because the original parameters are in pure storage now.
22788
227892007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22790
22791 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22792
227932007-12-22 Eli Zaretskii <eliz@gnu.org>
22794
22795 * callint.c (syms_of_callint) <command-history>: Add reference to
22796 history-length in the doc string.
22797
227982007-12-17 Jason Rumney <jasonr@gnu.org>
22799
22800 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22801 before passing as wParam.
22802
228032007-12-22 Michael Albinus <michael.albinus@gmx.de>
22804
22805 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22806 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22807 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22808 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22809 as number.
22810 (Fdbus_call_method): Fix docstring.
22811
228122007-12-21 Michael Albinus <michael.albinus@gmx.de>
22813
22814 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22815 New macros.
22816 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22817 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22818 Simplify.
22819 (xd_signature): New function.
22820 (xd_append_arg): Compute also signatures. Major rewrite.
22821 (xd_retrieve_arg): Make debug messages friendly.
22822 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22823 Check for signatures of arguments.
22824
228252007-12-19 Michael Albinus <michael.albinus@gmx.de>
22826
22827 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22828 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22829 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22830 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22831 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22832 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22833 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22834 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22835 (xd_retrieve_value): Remove. Functionality included in ...
22836 (xd_append_arg): New function.
22837 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22838
228392007-12-16 Michael Albinus <michael.albinus@gmx.de>
22840
22841 * dbusbind.c (top): Include <stdio.h>.
22842 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22843 dbus_message_new_method_call and dbus_message_new_signal.
22844 (Fdbus_register_signal): Rename unique_name to uname.
22845 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22846 non-existing unique name. Fix typos in matching rule. Return an
22847 object which is useful in Fdbus_unregister_signal.
22848 (Fdbus_unregister_signal): Reimplementation, in order to remove
22849 only the corresponding entry.
22850 (Vdbus_registered_functions_table): Change the order of entries.
22851 Apply these changes in xd_read_message and Fdbus_register_signal.
22852
228532007-12-16 Andreas Schwab <schwab@suse.de>
22854
22855 * fileio.c (Finsert_file_contents): Fix overflow check to not
22856 depend on undefined integer overflow.
22857
228582007-12-14 Jason Rumney <jasonr@gnu.org>
22859
22860 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22861 for characters above 127.
22862
228632007-12-13 Jason Rumney <jasonr@gnu.org>
22864
22865 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22866 before dereferencing array.
22867 (lookup_vk_code): Remove zero comparison.
22868
228692007-12-14 Michael Albinus <michael.albinus@gmx.de>
22870
22871 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22872 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22873 Use `unsigned int' instead of `uint'.
22874 (xd_read_message, Fdbus_register_signal): Split expressions into
22875 multiple lines before operators "&&" and "||", according to the
22876 GNU Coding Standards.
22877
228782007-12-14 Eli Zaretskii <eliz@gnu.org>
22879
22880 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22881
228822007-12-12 Juri Linkov <juri@jurta.org>
22883
22884 * buffer.c (Frename_buffer): In interactive spec replace
22885 `read-buffer' with `read-string' that uses `buffer-name-history'
22886 as history, and the current buffer's name as default.
22887
228882007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22889
22890 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22891 manipulating the backtrace manually.
22892 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22893 (struct backtrace, backtrace_list): Remove.
22894 (command_loop_1): Remove dead var `no_direct'.
22895
22896 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22897 preserve non-built-in buffer-local variables.
22898 (Fkill_all_local_variables): Don't re-create&re-set permanent
22899 buffer-local variables.
22900
229012007-12-09 Juri Linkov <juri@jurta.org>
22902
22903 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22904 Lisp code that uses `read-buffer' with current buffer as default.
22905
229062007-12-08 Michael Albinus <michael.albinus@gmx.de>
22907
22908 * dbusbind.c (xd_read_message): Generate an event for every
22909 registered handler. There might be several handlers registered
22910 for the same signal.
22911 (Fdbus_register_signal): Don't overwrite a registration for the
22912 same signal. Add a new registration if handlers are different.
22913 (Vdbus_registered_functions_table): Rework doc string.
22914
229152007-12-07 Michael Albinus <michael.albinus@gmx.de>
22916
22917 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22918 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22919 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22920 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22921 Unify argument lists.
22922 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22923 arguments and hash table keys. Use unique name for service.
22924 (Fdbus_unregister_signal): Remove checks.
22925 (Vdbus_registered_functions_table): Fix doc string.
22926
229272007-12-05 Magnus Henoch <mange@freemail.hu>
22928
22929 * process.c (make_process): Initialize pty_flag to 0.
22930
229312007-12-05 Jason Rumney <jasonr@gnu.org>
22932
22933 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22934 specified XBMs.
22935
229362007-12-05 Richard Stallman <rms@gnu.org>
22937
22938 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22939
229402007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22941
22942 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22943 New variable.
22944 (mac_try_close_socket) [MAC_OSX]: New function.
22945 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22946 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22947
22948 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22949 Use mac_try_close_socket.
22950
229512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22952
22953 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22954 reloc_base.
22955 (copy_dysymtab): Compute relocation base here.
22956 (rebase_reloc_address) [__ppc64__]: New function.
22957 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22958 changed.
22959
229602007-12-05 Jason Rumney <jasonr@gnu.org>
22961
22962 * w32proc.c (sys_spawnve): Quote args with wildcards.
22963
229642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22965
22966 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22967 __objc_* sections.
22968 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22969
229702007-12-05 Michael Albinus <michael.albinus@gmx.de>
22971
22972 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22973 Move check for Vdbus_registered_functions_table to
22974 xd_read_queued_messages.
22975 (xd_read_queued_messages): Protect xd_read_message calls by
22976 internal_condition_case_1.
22977
229782007-12-04 Michael Albinus <michael.albinus@gmx.de>
22979
22980 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22981 Qdbus_system_bus and Qdbus_session_bus, respectively.
22982 (Vdbus_intern_symbols): Remove.
22983 (Vdbus_registered_functions_table): New hash table.
22984 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22985 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22986 Rewrite in order to manage registered functions by hash table
22987 Vdbus_registered_functions_table.
22988
229892007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22990
22991 * xterm.c: Update URL to Window Manager Specification in comment.
22992
229932007-12-02 Michael Albinus <michael.albinus@gmx.de>
22994
22995 * config.in (HAVE_DBUS): Add.
22996
22997 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22998 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22999 (obj): Add $(DBUS_OBJ).
23000 (LIBES): Add $(DBUS_LIBS).
23001 (dbusbind.o): New target.
23002
23003 * dbusbind.c: New file.
23004
23005 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23006
23007 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23008 (Qdbus_event): New Lisp symbol.
23009 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23010 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23011 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23012
23013 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23014
230152007-12-01 Richard Stallman <rms@gnu.org>
23016
23017 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23018
230192007-11-30 Jason Rumney <jasonr@gnu.org>
23020
23021 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23022 (w32con_reset_terminal_modes): Clear screen buffer.
23023 (w32_face_attributes): Don't use color indexes that are out of range.
23024 Only reverse the default colors.
23025
23026 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23027 WINDOWSNT.
23028
23029 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23030
230312007-11-29 Jason Rumney <jasonr@gnu.org>
23032
23033 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23034 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23035 if the terminal colors are initialized.
23036 (unspecified_fg, unspecified_bg): Remove unused declarations.
23037
230382007-11-29 Andreas Schwab <schwab@suse.de>
23039
23040 * keyboard.c (apply_modifiers): Fix typo.
23041
230422007-11-29 Richard Stallman <rms@gnu.org>
23043
23044 * keymap.c (Fcurrent_local_map): Doc fix.
23045
230462007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23047
23048 * s/gnu-kfreebsd.h: New file.
23049
230502007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23051
23052 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23053 Don't cast redundantly.
23054
23055 * keyboard.c (KEY_TO_CHAR): New macro.
23056 (parse_modifiers, apply_modifiers): Accept integer arguments.
23057 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23058 for chars and symbol keys.
23059 After doing such remapping, apply function-key-map again.
23060
230612007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23062
23063 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23064 compiled anymore.
23065
230662007-11-26 Andreas Schwab <schwab@suse.de>
23067
23068 * process.c (list_processes_1): Fix indentation level of the
23069 command column.
23070
230712007-11-23 Andreas Schwab <schwab@suse.de>
23072
23073 * editfns.c (Fformat): Handle %c specially since it requires the
23074 argument to be of type int.
23075
230762007-11-23 Markus Triska <markus.triska@gmx.at>
23077
23078 * emacs.c (main): Call init_editfns before init_process, since
23079 init_process sets Vprocess_connection_type depending on OS release.
23080
230812007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23082
23083 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23084 (find_symbol_value): Use do_symval_forwarding.
23085
23086 * data.c (set_internal): Set the value in the `cons-cell' (for
23087 Buffer_Local_values) not only for frame-local variables.
23088
230892007-11-22 Andreas Schwab <schwab@suse.de>
23090
23091 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23092 values to sprintf.
23093 * keymap.c (Fsingle_key_description): Likewise.
23094 * print.c (print_object): Likewise.
23095
230962007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23097
23098 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23099 file for image is nil.
23100
231012007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23102
23103 * term.c: Include stdarg.h.
23104 (fatal): Implement using varargs.
23105 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23106
231072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23108
23109 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23110 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23111 Update call to buffer_slot_type_mismatch.
23112 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23113 (buffer_slot_type_mismatch): Update.
23114 * buffer.c (buffer_local_types): Remove.
23115 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23116 (defvar_per_buffer): Set the type in the buffer_objfwd.
23117
231182007-11-21 Jason Rumney <jasonr@gnu.org>
23119
23120 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23121 CreateFileMapping returns NULL on failure.
23122
231232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23124
23125 * search.c (Fset_match_data): Remove the `evaporate' feature.
23126 (unwind_set_match_data): Don't use the `evaporate' feature.
23127
231282007-11-21 Jason Rumney <jasonr@gnu.org>
23129
23130 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23131
23132 * w32console.c (w32con_write_glyphs): Remove unused variables.
23133
231342007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23135
23136 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23137
23138 * s/darwin.h (MULTI_KBOARD): Remove.
23139
23140 * macfns.c (x_create_tip_frame, Fx_create_frame)
23141 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23142
231432007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23144
23145 * buffer.c (Fbuffer_local_value): Remove redundant test.
23146 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23147 than in `current-buffer' to match the comment.
23148 Do the swap using swap_in_global_binding.
23149
23150 * data.c (store_symval_forwarding, set_internal):
23151 * eval.c (specbind): Remove dead code.
23152
23153 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23154 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23155 Since we do not want to see internal Lisp_*fwd objects here.
23156
231572007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23158
23159 * sysdep.c (init_system_name): Use getaddrinfo if available.
23160
23161 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23162 (x_scroll_bar_note_movement): start, end, with, height in struct
23163 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23164
231652007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23166
23167 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23168
231692007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23170
23171 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23172 This undoes Richard's change of 14-Oct-2002.
23173
23174 * alloc.c (allocate_other_vector):
23175 * lisp.h (allocate_other_vector): Remove.
23176
23177 * window.c (struct save_window_data): Move non-lisp data to the end
23178 and make it `int' rather than Lisp_Object.
23179 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23180 Done wrap/unwrap integer values.
23181 (Fset_window_configuration, compare_window_configurations):
23182 Update use of fields to their new types.
23183
23184 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23185 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23186 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23187 (SET_SCROLL_BAR_X_WINDOW): Remove.
23188 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23189 Access the new x_window field directly.
23190 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23191 Don't wrap/unwrap integers into Lisp_Objects.
23192 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23193 (x_scroll_bar_report_motion):
23194 Don't wrap/unwrap integers into Lisp_Objects.
23195 (x_term_init): Use SDATA.
23196 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23197 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23198 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23199 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23200 * xfns.c (x_set_background_color):
23201 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23202 Access the new x_window field directly.
23203
23204 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23205 (allocate_pseudovector): Make non-static.
23206
23207 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23208 (allocate_pseudovector): Declare.
23209 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23210
232112007-11-15 Andreas Schwab <schwab@suse.de>
23212
23213 * editfns.c (Fformat): Correctly format EMACS_INT values.
23214 Also take precision into account when formatting an integer.
23215
23216 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23217
232182007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23219
23220 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23221 (syms_of_keyboard): Defsubr it.
23222
23223 * data.c (swap_in_global_binding): Fix longstanding bug where
23224 store_symval_forwarding was not called with the right second argument,
23225 thus causing objfwd-ing from being dropped.
23226
232272007-11-14 Juanma Barranquero <lekktu@gmail.com>
23228
23229 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23230 (Fx_display_pixel_height, Fx_display_planes)
23231 (Fx_display_color_cells, Fx_server_max_request_size)
23232 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23233 (Fx_display_visual_class, Fx_display_save_under):
23234 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23235 (Fx_display_pixel_height, Fx_display_planes)
23236 (Fx_display_color_cells, Fx_server_max_request_size)
23237 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23238 (Fx_display_mm_height, Fx_display_mm_width)
23239 (Fx_display_backing_store, Fx_display_visual_class)
23240 (Fw32_select_font, Fx_display_save_under):
23241 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23242 (Fx_display_pixel_height, Fx_display_planes)
23243 (Fx_display_color_cells, Fx_server_max_request_size)
23244 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23245 (Fx_display_save_under): Fix typos in docstrings.
23246
232472007-11-14 Juanma Barranquero <lekktu@gmail.com>
23248
23249 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23250 corresponding to deleted entries; they are an implementation detail.
23251 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23252 Remove variables.
23253 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23254 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23255 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23256 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23257 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23258 (Fw32_define_rgb_color, Fw32_load_color_file)
23259 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23260 Fix typos in docstrings.
23261 (Fx_server_version): Reflow docstring.
23262 (Fw32_shell_execute): Doc fixes.
23263
232642007-11-13 Juanma Barranquero <lekktu@gmail.com>
23265
23266 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23267 if w32_parse_hot_key returned nil.
23268
232692007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23270
23271 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23272
232732007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23274
aac0c6e3
MR
23275 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23276
23277 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23278
23279 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23280 Remove W32_SCROLL_BAR_CLICK_EVENT.
23281
23282 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23283 Add MULTIMEDIA_KEY_EVENT.
23284
23285 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23286 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23287 (make_lispy_event) [WINDOWSNT]: Use it to translate
23288 MULTIMEDIA_KEY_EVENT.
23289
23290 * w32term.h (WM_APPCOMMAND): Define if not already.
23291 (GET_APPCOMMAND_LPARAM): Likewise.
23292
23293 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23294 WM_APPCOMMAND.
23295
23296 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23297 (syms_of_w32fns): Export and initialize it.
23298 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23299
233002007-11-09 Chong Yidong <cyd@stupidchicken.com>
23301
23302 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23303 twice.
23304
23305 * xdisp.c (handle_face_prop): Fix last change.
23306
233072007-11-09 Richard Stallman <rms@gnu.org>
23308
23309 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23310 not just for after-strings and before-strings.
23311 Call face_for_overlay_string and pass the overlay to it.
23312 (handle_display_prop): Determine whether property came from an overlay.
23313 Pass OVERLAY arg to handle_single_display_spec.
23314 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23315 (load_overlay_strings): Fill in it->string_overlays.
23316 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23317
23318 * xfaces.c (face_for_overlay_string): Function renamed from
23319 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23320
23321 * dispextern.h (struct it): New elt string_overlays.
23322 New elt from_overlay, also in stack.
23323 Rearrange a few elements.
23324 (face_for_overlay_string): Decl renamed from
23325 face_at_buffer_position_no_overlays, and add argument.
23326
233272007-11-09 Richard Stallman <rms@gnu.org>
23328
23329 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23330 to get the base face for an overlay string.
23331
23332 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23333
23334 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23335
23336 * xdisp.c (handle_stop): Move some code out of loop.
23337
233382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23339
23340 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23341 Fix conversion from Lisp object to ATSUFontID.
23342
233432007-11-09 Jason Rumney <jasonr@gnu.org>
23344
23345 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23346
233472007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23348
23349 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23350 Don't assume regions are aligned to page boundary.
23351 (print_load_command_name): Add LC_UUID if defined.
23352
233532007-11-09 Richard Stallman <rms@gnu.org>
23354
23355 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23356
233572007-11-07 Jason Rumney <jasonr@gnu.org>
23358
23359 * s/windows95.h: Remove.
23360
233612007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23362
23363 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23364 abort with a message on unhandled store_type values.
23365
233662007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23367
23368 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23369 Remove HAVE_X11R5 and HAVE_X11R4.
23370
233712007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23372
23373 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23374
233752007-11-01 Johan Bockgård <bojohan@gnu.org>
23376
23377 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23378 Don't set s->stippled_p here, since it has already been set by
23379 x_set_glyph_string_gc from x_draw_glyph_string.
23380
233812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23382
23383 * sunfns.c: Remove file.
23384
23385 * m/sun386.h:
23386 * m/sun2.h:
23387 * m/sparc.h: Remove Sun windows code.
23388
233892007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23390
23391 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23392 (init_keyboard): Set current_kboard's window-system to nil.
23393 (tty_read_avail_input): Typo.
23394 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23395
233962007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23397
23398 * s/usg5-4.h:
23399 * s/usg5-3.h:
23400 * s/ptx.h:
23401 * m/is386.h:
23402 * m/ibmps2-aix.h:
23403 * Makefile.in: Remove all mentions of X10.
23404
23405 * dispnew.c (syms_of_display): Don't mention version 10.
23406
234072007-10-28 Juanma Barranquero <lekktu@gmail.com>
23408
23409 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23410 ($(BLD)/abbrev.$(O)): Remove.
23411
234122007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23413
23414 Rewrite abbrev.c in Elisp.
23415 * image.c (Qcount): Don't declare as extern.
23416 (syms_of_image): Initialize and staticpro `Qcount'.
23417 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23418 * emacs.c (main): Don't call syms_of_abbrev.
23419 * Makefile.in (obj): Remove abbrev.o.
23420 (abbrev.o): Remove.
23421 * abbrev.c: Remove.
23422
234232007-10-26 Martin Rudalics <rudalics@gmx.at>
23424
23425 * window.c (window_min_size_2): Don't count header-line.
23426
234272007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23428
23429 * frame.h (struct frame): Move all bit fields after the first bit
23430 field to take advantage of the available space. Group all the
23431 chars together to reduce wasted space due to padding.
23432
234332007-10-26 Juanma Barranquero <lekktu@gmail.com>
23434
23435 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23436
23437 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23438 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23439 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23440 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23441 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23442 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23443 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23444 (last_marked, mark_object_loop_halt): Make static.
23445
23446 * frame.c (syms_of_frame) <delete-frame-functions>:
23447 Fix typo in docstring.
23448
234492007-10-25 Juanma Barranquero <lekktu@gmail.com>
23450
23451 * w32.c (init_environment): Fix tiny memory leak.
23452 (w32_get_resource): Remove unused variable `ok'.
23453
234542007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23455
23456 Make `window-system' into a keyboard-local variable (rather than
23457 frame-local as done originally by multi-tty).
23458
23459 * keyboard.h (struct kboard): Add Vwindow_system.
23460 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23461 (mark_kboards): Mark Vwindow_system.
23462
23463 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23464 (init_display): Don't set the obsolete `window-system' frame-param.
23465
23466 * xterm.c (x_term_init):
23467 * w32term.c (w32_create_terminal):
23468 * term.c (init_tty): Set Vwindow_system.
23469 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23470 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23471
23472 * xfns.c (Fx_create_frame, x_create_tip_frame):
23473 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23474 * macfns.c (Fx_create_frame):
23475 Don't set the obsolete `window-system' frame-param.
23476
23477 * frame.h (Qwindow_system): Remove.
23478 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23479 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23480
234812007-10-24 Richard Stallman <rms@gnu.org>
23482
23483 * frame.c (x_figure_window_size): For fullscreen case,
23484 set USPosition | PPosition without clobbering rest of window_prompting.
23485
23486 * keyboard.c (Fcurrent_idle_time): Doc fix.
23487
23488 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23489
234902007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23491
23492 * process.c (unwind_request_sigio): Only define if __ultrix__.
23493
23494 * callproc.c (child_setup): Remove spurious *.
23495
23496 * lisp.h (Fget_text_property): Declare.
23497 (have_menus_p): Declare it here rather than in sys-dep header files.
23498 * macterm.h (have_menus_p):
23499 * msdos.h (have_menus_p):
23500 * xterm.h (have_menus_p): Remove.
23501
23502 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23503 (Fmake_variable_frame_local): Just check the variable's const-ness
23504 rather than checking nil or t.
23505
235062007-10-22 Jason Rumney <jasonr@gnu.org>
23507
23508 * w32fns.c: Include math.h.
23509 (w32_abort): Declaration moved to nt/config.nt.
23510
23511 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23512 (abort): Redefinition moved to nt/config.nt.
23513
23514 * m/windowsnt.h: Remove.
23515
235162007-10-22 Juanma Barranquero <lekktu@gmail.com>
23517
23518 * emacs.c (Fdump_emacs): Fix typo in message.
23519 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23520 <installation-directory>: Reflow docstring.
23521
235222007-10-22 Juri Linkov <juri@jurta.org>
23523
23524 * minibuf.c: Allow minibuffer default to be a list of default values.
23525 With empty input use the first element of this list as returned default.
23526 (string_to_object)
23527 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23528 (read_minibuf): If defalt is cons, set histstring to its car.
23529 (Fread_string): If default_value is cons, set val to its car.
23530 (Fread_buffer): If def is cons, use its car.
23531 (Fcompleting_read): If defalt is cons, set val to its car.
23532
235332007-10-21 Michael Albinus <michael.albinus@gmx.de>
23534
23535 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23536
235372007-10-20 Juanma Barranquero <lekktu@gmail.com>
23538
23539 * doc.c (Fdocumentation): Check for advice in all cases.
23540
235412007-10-19 Chong Yidong <cyd@stupidchicken.com>
23542
23543 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23544
235452007-10-19 Richard Stallman <rms@gnu.org>
23546
23547 * doc.c (Fdocumentation): Check for and handle an advised function.
23548
235492007-10-19 Juanma Barranquero <lekktu@gmail.com>
23550
23551 * process.c (Fset_process_filter): Doc fix.
23552
235532007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23554
23555 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23556 which caused key-translation-map to applied repeatedly (thus breaking
23557 double-mode).
23558
235592007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23560
23561 * xselect.c (x_own_selection, x_handle_selection_clear)
23562 (x_clear_frame_selections):
23563 * w32menu.c (list_of_panes, list_of_items):
23564 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23565 * textprop.c (validate_plist, interval_has_all_properties)
23566 (interval_has_some_properties, interval_has_some_properties_list)
23567 (add_properties, text_property_list):
23568 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23569 * minibuf.c (Fassoc_string):
23570 * macselect.c (x_own_selection, x_clear_frame_selections)
23571 (Fx_disown_selection_internal):
23572 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23573 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23574
235752007-10-17 Chong Yidong <cyd@stupidchicken.com>
23576
23577 * process.c: Link to libs for calling res_init() if available.
23578 (Fmake_network_process): Call res_init() before getaddrinfo or
23579 gethostbyname, if possible.
23580
235812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23582
23583 * lread.c (read1): Set pvectype for char_tables.
23584
23585 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23586 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23587 Add type checks.
23588 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23589
23590 * alloc.c (free_misc): Use XMISCTYPE.
23591 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23592
235932007-10-17 Glenn Morris <rgm@gnu.org>
23594
23595 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23596 (syms_of_minibuf): Add Qcompletion_ignore_case.
23597 * dired.c (Qcompletion_ignore_case): Change to external.
23598 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23599 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23600 (Fread_file_name): Use it rather than intern'ing.
23601
23602 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23603 (Fread_coding_system): Ignore case of user input.
23604
236052007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23606
23607 * xdisp.c (handle_display_prop): Ignore display specs after
23608 replacing one when string text is being replaced.
23609 (handle_single_display_spec): Pretend as if characters with display
23610 property haven't been consumed only when buffer text is being replaced.
23611
236122007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23613
23614 * xfns.c (Fx_create_frame, Fx_display_list):
23615 * window.c (window_fixed_size_p, enlarge_window)
23616 (shrink_window_lowest_first):
23617 * macterm.c (init_font_name_table):
23618 * macfns.c (Fx_create_frame, Fx_display_list):
23619 * lread.c (close_load_descs):
23620 * keyboard.c (read_char_x_menu_prompt):
23621 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23622 * coding.c (code_convert_region_unwind): Test the type of an object
23623 rather than just !NILP before extracting data from it.
23624
23625 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23626
23627 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23628 (XMISCANY): New macro.
23629 (XMISCTYPE): Use it.
23630 (struct Lisp_Misc_Any): New type.
23631 (union Lisp_Misc): Use it.
23632 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23633 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23634 (find_symbol_value, set_internal, default_value, Fset_default)
23635 (Fmake_variable_buffer_local, Fmake_local_variable)
23636 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23637 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23638 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23639 * alloc.c (allocate_buffer): Set the size and tag.
23640 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23641 Use XMISCANY.
23642 (die): Follow the GNU convention for error messages.
23643 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23644 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23645 tag any more.
23646 (set_buffer_internal_1):
23647 * frame.c (store_frame_param):
23648 * eval.c (specbind):
23649 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23650
23651 * doc.c (Fsnarf_documentation): Simplify.
23652
236532007-10-14 Juanma Barranquero <lekktu@gmail.com>
23654
23655 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23656 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23657
236582007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23659
23660 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23661
236622007-10-14 Juanma Barranquero <lekktu@gmail.com>
23663
23664 * eval.c (do_autoload): Don't save autoloads.
23665
23666 * data.c (Ffset): Save autoload of the function being set.
23667
236682007-10-07 John Paul Wallington <jpw@pobox.com>
23669
23670 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23671 parameter before setting up faces.
23672
236732007-10-13 Eli Zaretskii <eliz@gnu.org>
23674
23675 * ccl.c (Fregister_code_conversion_map):
23676 * keyboard.c (append_tool_bar_item): Reformat last change.
23677
23678 * lisp.h (eabs): Rename from `abs'. All callers changed.
23679
236802007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23681
23682 * buffer.c (add_overlay_mod_hooklist):
23683 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23684 * fontset.c (make_fontset):
23685 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23686 (append_tool_bar_item):
23687 * macmenu.c (grow_menu_items):
23688 * w32menu.c (grow_menu_items):
23689 * xmenu.c (grow_menu_items): Use larger_vector.
23690
236912007-10-13 Eli Zaretskii <eliz@gnu.org>
23692
23693 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23694 selected frame'' on MSDOS).
23695
236962007-10-12 Martin Rudalics <rudalics@gmx.at>
23697
23698 * frame.c (Qexplicit_name): New variable.
23699 (x_report_frame_params): Report it in parameter alist.
23700 (syms_of_frame): Intern and staticpro it.
23701
237022007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23703
23704 * macfns.c (x_create_tip_frame): Set terminal for frame.
23705
237062007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23707
23708 * frame.c (Qenvironment): Remove.
23709 (syms_of_frame) <Qenvironment>: Don't initialize.
23710 (Fdelete_frame): Don't treat the `environment' param specially.
23711 * frame.h (Qenvironment): Don't declare.
23712 * callproc.c (set_initial_environment): Don't set unused frame param.
23713
23714 * frame.c (Fframe_with_environment): Remove.
23715 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23716
23717 * lisp.h (Fframe_with_environment): Don't declare.
23718
237192007-10-10 Juanma Barranquero <lekktu@gmail.com>
23720
23721 * indent.c (indent_tabs_mode, last_known_column)
23722 (last_known_column_modified): Make static.
23723 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23724
237252007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23726
23727 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23728
237292007-10-09 Jason Rumney <jasonr@gnu.org>
23730
23731 * w32term.c (x_set_window_size): Disable code that attempts to tell
23732 Lisp code about a size change before it actually happens.
23733
237342007-10-09 Richard Stallman <rms@gnu.org>
23735
23736 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23737 return HANDLED_RETURN.
23738
237392007-10-08 Martin Rudalics <rudalics@gmx.at>
23740
23741 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23742 when there's an unread command event.
23743
23744 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23745 window autoselection act appropriately when leaving selected frame.
23746 (syms_of_frame): Initialize focus_follows_mouse.
23747 * frame.h (focus_follows_mouse): Extern it.
23748 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23749 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23750 * msdos.c (dos_rawgetc): Likewise.
23751 * w32term.c (w32_read_socket): Likewise.
23752 * xterm.c (handle_one_xevent): Likewise.
23753 * xdisp.c (syms_of_xdisp): In doc-string of
23754 mouse-autoselect-window mention focus-follows-mouse.
23755
237562007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23757
23758 * macterm.c (mac_load_query_font): Fix missing return value.
23759 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23760 Add BLOCK_INPUT.
23761
237622007-10-08 Richard Stallman <rms@gnu.org>
23763
23764 * xdisp.c (get_window_cursor_type): Implement documented behavior
23765 for cursor-in-non-selected-windows = t.
23766
237672007-10-08 Jason Rumney <jasonr@gnu.org>
23768
23769 * w32.c (w32_get_resource): Always close registry keys.
23770
237712007-10-08 Jason Rumney <jasonr@gnu.org>
23772
23773 * makefile.w32-in (LIBS): Add COMCTL32.
23774
23775 * w32fns.c (globals_of_w32fns): Init common controls.
23776
237772007-10-08 Richard Stallman <rms@gnu.org>
23778
23779 * image.c (our_memory_buffer): Rename from omfib_buffer.
23780
237812007-10-08 Richard Stallman <rms@gnu.org>
23782
23783 * buffer.c (Foverlays_at): Doc fix.
23784
237852007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23786
23787 * fns.c (Fplist_put): Preserve uneven tail data.
23788
237892007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23790
23791 * termhooks.h (enum event_kind): Remove trailing comma.
23792
23793 * frame.h (enum): Remove trailing comma.
23794
237952007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23796
23797 * w32proc.c (delete_child): Don't terminate threads of zombies.
23798
237992007-10-08 Martin Rudalics <rudalics@gmx.at>
23800
23801 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23802
23803 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23804 last-repeatable-command.
23805 (init_kboard): Initialize Vlast_repeatable_command.
23806 (command_loop_1): Set it to real_this_command unless that was
23807 bound to an input event.
23808 (mark_kboards): Mark it.
23809
238102007-10-08 Richard Stallman <rms@gnu.org>
23811
23812 * eval.c (condition-case): Doc fix.
23813
238142007-10-08 Masatake YAMATO <jet@gyve.org>
23815
23816 * xfaces.c (tty_supports_face_attributes_p): Fix code
23817 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23818 was copied and not edited.
23819
238202007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23821
23822 Add new `input-decode-map' keymap and use it for terminal
23823 escape sequences.
23824 * keyboard.h (struct kboard): Add Vinput_decode_map.
23825 Remove Vlocal_key_translation_map.
23826 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23827 (init_kboard): Init input-decode-map.
23828 Replace local-key-translation-map back with key-translation-map.
23829 (syms_of_keyboard): Declare input-decode-map.
23830 Remove local-key-translation-map. Update docstrings.
23831 (mark_kboards): Mark Vinput_decode_map.
23832 Don't mark Vlocal_key_translation_map.
23833 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23834 Replace local-key-translation-map back with key-translation-map.
23835 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23836 Bind in input-decode-map rather than function-key-map.
23837
23838 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23839 This was made redundant by the previous introduction of XSETPVECTYPE.
23840
238412007-10-09 Richard Stallman <rms@gnu.org>
23842
23843 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23844
238452007-09-29 Richard Stallman <rms@gnu.org>
23846
23847 * eval.c (internal_condition_case_2, internal_condition_case_1)
23848 (internal_condition_case): Reenable abort if x_catching_errors ()
23849 to see if that really happens and why.
23850
238512007-10-06 Andreas Schwab <schwab@suse.de>
23852
23853 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23854
238552007-10-04 Juanma Barranquero <lekktu@gmail.com>
23856
23857 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23858
238592007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23860
23861 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23862
238632007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23864
23865 * window.h (struct window):
23866 * window.c (struct save_window_data, struct saved_window):
23867 * termhooks.h (struct terminal):
23868 * process.h (struct Lisp_Process):
23869 * frame.h (struct frame):
23870 * buffer.h (struct buffer):
23871 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23872 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23873 The size field of (pseudo)vectors is now unsigned.
23874 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23875
23876 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23877 Turn `count' into an integer.
23878
23879 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23880 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23881 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23882 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23883 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23884
23885 * alloc.c (allocate_pseudovector): New fun.
23886 (ALLOCATE_PSEUDOVECTOR): New macro.
23887 (allocate_window, allocate_terminal, allocate_frame)
23888 (allocate_process): Use it.
23889 (mark_vectorlike): New function.
23890 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23891 (mark_terminals): Use it.
23892 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23893 (Fmake_byte_code): Use XSETPVECTYPE.
23894
23895 * frame.c (Fframe_parameters): Minor simplification.
23896
23897 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23898
23899 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23900
23901 * buffer.c (Fget_buffer_create, init_buffer_once):
23902 * lread.c (defsubr):
23903 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23904
23905 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23906 defined differently in the m/*.h files.
23907 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23908 (XSETPVECTYPE): New macro.
23909 (XSETPSEUDOVECTOR): Use it.
23910
23911 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23912 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23913
23914 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23915 * lread.c (defvar_per_buffer):
23916 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23917
23918 * window.c (candidate_window_p): Only consider as visible frames that
23919 are on the same terminal.
23920
23921 * m/ibms390x.h (MARKBIT): Remove unused macro.
23922
239232007-10-01 Juanma Barranquero <lekktu@gmail.com>
23924
23925 * lread.c (Fload): Fix typo in docstring.
23926
239272007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23928
23929 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23930 of a non-zero value can't yield zero.
23931
239322007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23933
23934 * term.c (term_clear_mouse_face, term_mouse_highlight)
23935 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23936
23937 * print.c (safe_debug_print): Use XHASH.
23938
23939 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23940 Lisp elements such as tags.
23941 (XHASH): New macro.
23942 (EQ): Use it.
23943 (SREF, SSET, STRING_COPYIN): Use SDATA.
23944 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23945
23946 * alloc.c (mark_terminal): Remove left-over declaration.
23947 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23948 (allocate_vectorlike): Remove type argument. Adjust callers.
23949 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23950 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23951
23952 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23953 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23954 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23955 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23956 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23957 Use them.
23958
23959 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23960 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23961 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23962
239632007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23964
23965 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23966 loaded by default.
23967
239682007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23969
23970 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23971 on this tty.
23972 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23973
23974 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23975 Update all users.
23976 (handle_one_term_event): Use Gpm_DrawPointer.
23977 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23978 Signal errors instead of returning nil. Always return nil.
23979 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23980 Make it a noop if gpm-mouse was not activated.
23981 (syms_of_term): Update names.
23982
239832007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23984
23985 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23986 (init_sys_modes): Check that gpm_tty is the current tty.
23987
23988 * alloc.c (allocate_terminal): Set the vector size to only count the
23989 lisp fields. Initialize those to nil.
23990 (mark_object): Don't treat terminals specially.
23991 (mark_terminal): Remove.
23992 (mark_terminals): Use mark_object instead.
23993
23994 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23995 the GC to the beginning.
23996
23997 * indent.h:
23998 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23999
24000 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24001
240022007-09-25 Jason Rumney <jasonr@gnu.org>
24003
24004 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24005
24006 * w32console.c (create_w32cons_output): Remove.
24007
24008 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24009
24010 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24011 (reset_sys_modes): Use reset_terminal_modes_hook.
24012
240132007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24014
24015 * eval.c (do_autoload): Don't output any message.
24016
240172007-09-24 Juri Linkov <juri@jurta.org>
24018
24019 * emacs.c (standard_args): Change priority of "--no-splash"
24020 from 40 to 3. Add "--no-desktop" with the same priority.
24021
240222007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24023
24024 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24025 and optimize the case where they are all 1.
24026
240272007-09-23 Johannes Weiner <hannes@saeurebad.de>
24028
24029 * lisp.h (abs): Define if not defined.
24030 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24031 Don't define `abs', since it's defined in lisp.h.
24032
240332007-09-22 Eli Zaretskii <eliz@gnu.org>
24034
24035 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24036 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24037 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24038 (init_tty): Use DEV_TTY instead of "/dev/tty".
24039 [WINDOWSNT]: No need to protect from NAME arg being null.
24040
240412007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24042
24043 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24044 up the tty state.
24045
240462007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24047
24048 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24049 (gpm_tty): Change its type.
24050 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24051 (gpm_tty): Change its type and initialize it.
24052 (Fterm_open_connection): Check the frame is indeed a tty.
24053 Use the new gpm_tty.
24054 (Fterm_close_connection): Use the new gpm_tty.
24055 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24056 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24057
240582007-09-21 Juanma Barranquero <lekktu@gmail.com>
24059
24060 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24061 underline_color, to draw strike-through.
24062
240632007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24064
24065 * lisp.h (allocate_terminal): Declare.
24066
24067 * window.c (candidate_window_p): Consider frames that are being placed
24068 by the user as somewhere between visible and iconified.
24069 (window_loop): Prefer windows on the current frame.
24070 (Fselect_window): Move the use of select-frame to the beginning so we
24071 can just delegate all the work (it'll call us back anyway).
24072
24073 * frame.c (Qdisplay_environment_variable):
24074 * frame.h (Qdisplay_environment_variable): Delete.
24075
24076 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24077 of the first arg, since that value may be a union.
24078
24079 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24080 parameter rather than Qdisplay_environment_variable. If all else
24081 fails, look for DISPLAY in initial-environment.
24082
240832007-09-21 Glenn Morris <rgm@gnu.org>
24084
24085 * Makefile.in (emacstool): Remove target.
24086 (lisp, shortlisp): Remove termdev.elc.
24087
240882007-09-21 Markus Triska <markus.triska@gmx.at>
24089
24090 * xterm.c (x_delete_display): Compile session management conditionally.
24091
240922007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24093
24094 * callproc.c (getenv_internal_1): New function.
24095 (getenv_internal): Use it.
24096 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24097
24098 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24099 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24100 (Fset_terminal_parameter): Work with dead terminals as well.
24101 (Fmodify_terminal_parameters): Remove.
24102
24103 * terminal.c (get_terminal): Handle terminals.
24104 Make sure the terminal returned is live.
24105 (create_terminal): Use allocate_terminal.
24106 (mark_terminals): Move to alloc.c.
24107 (delete_terminal): Use terminal->name as liveness status.
24108 NULL out fields after freeing their contents.
24109 Don't deallocate the object.
24110 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24111 rather than an int.
24112 (Fterminal_live_p): Accept non-integer arguments.
24113 (Fterminal_list): Return terminal objects rather than an ints.
24114
24115 * alloc.c (enum mem_type): New member for `terminal' objects.
24116 (allocate_terminal): New function.
24117 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24118 Handle terminals.
24119 (mark_terminal): New fun.
24120 (mark_terminals): Move from terminal.c.
24121
24122 * term.c (get_tty_terminal): Don't treat output_initial specially.
24123 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24124 (delete_tty): Use terminal->name as liveness status.
24125
24126 * termhooks.h (struct terminal): Make it into a pseudovector.
24127 Remove `deleted' replaced by checking `name's nullness.
24128
24129 * print.c (print_object): Handle terminals.
24130
24131 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24132 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24133
24134 * frame.c (make_terminal_frame):
24135 * keyboard.c (tty_read_avail_input):
24136 * w32term.c (x_delete_terminal):
24137 * xfns.c (Fx_create_frame, x_create_tip_frame):
24138 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24139
241402007-09-20 Glenn Morris <rgm@gnu.org>
24141
24142 * process.c (Fmake_network_process): Doc fix.
24143
241442007-09-19 Jason Rumney <jasonr@gnu.org>
24145
24146 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24147
241482007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24149
24150 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24151 Fix a C warning regarding variable constness.
24152
24153 * xterm.c (handle_one_xevent): Fix a C warning.
24154
241552007-09-18 Jason Rumney <jasonr@gnu.org>
24156
24157 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24158
241592007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24160
24161 * gtkutil.c (gdpy_def): New variable.
24162 (xg_initialize): Initialize gdpy_def.
24163 (xg_display_close): If no other display exists, set gdpy_def to a
24164 new connection.
24165
241662007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24167
24168 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24169 when we have no file name for the icon.
24170 (xg_tool_bar_expose_callback): Remove.
24171 (xg_create_tool_bar): Don't connect expose signal to
24172 xg_tool_bar_expose_callback.
24173 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24174
241752007-09-16 Andreas Schwab <schwab@suse.de>
24176
24177 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24178 values instead of zapping them.
24179
241802007-09-14 Glenn Morris <rgm@gnu.org>
24181
24182 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24183 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24184 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24185 scope and rename to omfib_buffer for clarity.
24186 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24187
241882007-09-14 Kenichi Handa <handa@m17n.org>
24189
24190 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24191
241922007-09-13 Jason Rumney <jasonr@gnu.org>
24193
24194 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24195
24196 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24197
24198 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24199 (mac_term_init): Call here instead, passing rif.
24200
242012007-09-13 Glenn Morris <rgm@gnu.org>
24202
24203 * s/hpux.h: No longer define `static' as nothing.
24204
242052007-09-13 Johan Bockgård <bojohan@gnu.org>
24206
24207 * callint.c (Fcall_interactively): Remove unused var `fun'.
24208
242092007-09-12 Romain Francoise <romain@orebokech.com>
24210
24211 * window.c (prefer_window_split_horizontally, display_buffer):
24212 Revert 2007-09-08 change.
24213
242142007-09-12 Glenn Morris <rgm@gnu.org>
24215
24216 * alloca.c: Remove file.
24217 * Makefile.in (alloca): Do not undef.
24218 (allocaobj, alloca.o): Remove.
24219 (otherobj): Remove allocaobj.
24220 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24221 * regex.c (C_ALLOCA): Remove all references and code that was only
24222 used when this was defined.
24223 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24224 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24225 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24226
24227 * Makefile.in (SOURCES, unlock, relock): Delete.
24228
24229 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24230 (menu_grab_callback): All uses changed.
24231
24232 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24233 (x_reply_selection_request): All uses changed.
24234
242352007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24236
24237 * lread.c (load_warn_old_style_backquotes): Change message to look
24238 better when it appears in the middle of byte-compiler messages.
24239
242402007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24241
24242 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24243
24244 * xterm.c (x_create_terminal): Add comment.
24245
24246 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24247
242482007-09-10 Richard Stallman <rms@gnu.org>
24249
24250 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24251
242522007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24253
24254 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24255 (DEFUN): Document `intspec', use it instead of `prompt'.
24256
24257 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24258
24259 * data.c (Finteractive_form): If the interactive specification starts
24260 with a `(', use it as a Lisp form.
24261
24262 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24263 name and file modes.
24264
24265 * callint.c (Fcall_interactively): Comment fixes.
24266
242672007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24268
24269 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24270 and compiled functions.
24271
242722007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24273
24274 * window.c (prefer_window_split_horizontally): New variable.
24275 (display_buffer): Consider splitting window horizontally depending
24276 on prefer_window_split_horizontally.
24277
242782007-09-08 Eli Zaretskii <eliz@gnu.org>
24279
24280 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24281
242822007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24283
24284 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24285
24286 * frame.c (x_set_frame_parameters): Check number is positive before
24287 using XFASTINT.
24288
24289 * window.c (freeze_window_start): Don't presume selected_window holds
24290 a window object.
24291 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24292
242932007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24294
24295 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24296
242972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24298
24299 * window.c (Vsplit_window_preferred_function): New var.
24300 (Fdisplay_buffer): Use it.
24301 (syms_of_window): Export, and initialize it.
24302
243032007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24304
24305 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24306
243072007-09-06 Glenn Morris <rgm@gnu.org>
24308
24309 * gtkutil.c (menu_grab_callback) <cnt>:
24310 * xselect.c (x_reply_selection_request) <cnt>: Move static
24311 variable to file scope.
24312
243132007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24314
24315 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24316 consistent values of selected_frame and selected_window.
24317
243182007-09-04 Jason Rumney <jasonr@gnu.org>
24319
24320 * w32console.c (initialize_w32_display): Zero unused hooks.
24321
243222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24323
24324 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24325 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24326
243272007-09-04 Jason Rumney <jasonr@gnu.org>
24328
24329 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24330 in w32console.c. Set up input. Remove XXX comments that have been
24331 confirmed as correct.
24332
24333 * s/ms-w32.h (MULTI_KBOARD): Define.
24334
24335 * w32console.c (one_and_only_w32cons): Remove.
24336 (initialize_w32_display): Take terminal argument.
24337
24338 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24339 initialize_w32_display.
24340 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24341
24342 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24343
24344 * keyboard.c (discard_mouse_events): Discard it.
24345 (make_lispy_event): Translate it to a lisp event.
24346 (lispy_wheel_names): Add wheel-left and right events.
24347 (syms_of_keyboard): Enlarge wheel_syms.
24348
24349 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24350 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24351
24352 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24353
24354 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24355 from WM_MOUSEHWHEEL.
24356 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24357
24358 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24359 terminal.
24360
24361 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24362 keyboard for the terminal.
24363
243642007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24365
24366 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24367 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24368 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24369 and resume-tty-function to resume-tty-hook.
24370 (Fsuspend_tty, Fresume_tty): Use new names.
24371
243722007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24373
24374 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24375 if it starts with "n:".
24376
243772007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24378
24379 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24380
243812007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24382
24383 * frame.h:
24384 * frame.c (Qterm_environment_variable): Remove.
24385 (syms_of_frame): Don't init and staticpro it.
24386
24387 * callproc.c (getenv_internal): Remove special case for $TERM.
24388
24389 * callproc.c (Vinitial_environment): New variable.
24390 (set_initial_environment): Initialize it.
24391 (syms_of_callproc): Declare it.
24392 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24393 TERM under which a process runs is never related to the TERM in which
24394 Emacs is running.
24395
243962007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24397
24398 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24399 * s/darwin.h: ... do it here.
24400
244012007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24402
24403 * lisp.h (set_initial_environment): Rename from set_global_environment.
24404
24405 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24406 removed by mistake on the multi-tty branch.
24407
24408 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24409 (Fmodify_frame_parameters): Return a value.
24410
24411 * image.c (png_load): Comment-out var only used in commented-out code.
24412
24413 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24414 before passing it to mark_object.
24415
24416 * xfaces.c (internal_resolve_face_name): Return a value.
24417 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24418
24419 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24420 (x_icon): Comment-out var only used in commented-out code.
24421
244222007-08-29 Romain Francoise <romain@orebokech.com>
24423
24424 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24425 QUIT hasn't been provided.
24426
244272007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24428
24429 * callproc.c (child_setup, getenv_internal): Use the
24430 display-environment-variable and term-environment-variable frame params.
24431 (set_initial_environment): Initialise Vprocess_environment.
24432
24433 * config.in: Disable multi-keyboard support on a mac.
24434
24435 * frame.c (Qterm_environment_variable)
24436 (Qdisplay_environment_variable): New variables.
24437 (syms_of_frame): Intern and staticpro them.
24438 (Fmake_terminal_frame): Disable output method test.
24439
24440 * frame.h: Declare them here.
24441
24442 * macfns.c (x_set_mouse_color): Get rif from the frame.
24443 (x_set_tool_bar_lines): Don't use updating_frame.
24444 (mac_window): Add 2 new parameters for consistency with other systems.
24445 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24446 frame parameters following what is done in X11 and w32. Don't use
24447 FRAME_MAC_DISPLAY_INFO.
24448 (Fx_open_connection, start_hourglass): Remove window-system check.
24449 (x_create_tip_frame): Get the keyboard from the terminal.
24450
24451 * macmenu.c: Reorder includes.
24452 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24453
24454 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24455 terminal parameter.
24456 (x_clear_frame): Add a frame parameter.
24457 (note_mouse_movement): Get rif from the frame.
24458 (mac_term_init): Initialize the terminal.
24459 (mac_initialize): Make static and move terminal initialization ...
24460 (mac_create_terminal): ... to this new function.
24461
24462 * macterm.h (struct mac_display_info): Add terminal.
24463 (mac_initialize): Delete declaration.
24464
24465 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24466
24467 * sysdep.c: Comment out text after #endif.
24468
24469 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24470 is defined. Better initialize ttys in windows. Use terminal
24471 specific mouse_position_hook.
24472
24473 * termhooks.h (union display_info): Add mac_display_info.
24474
24475 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24476 Set the default minibuffer frame, window_system and the rest of the
24477 frame parameters following what is done in X11.
24478
24479 * w32term.c (w32_initialize): Make static.
24480
24481 * xselect.c (x_handle_selection_clear): Only access
24482 terminal->kboard when MULTI_KBOARD is defined.
24483
24484 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24485 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24486
244872007-08-29 Jason Rumney <jasonr@gnu.org>
24488
24489 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24490 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24491
24492 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24493 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24494
24495 * keyboard.c (restore_kboard_configuration): Only define when
24496 MULTI_KBOARD defined.
24497
24498 * makefile.w32-in: Update dependancies from Makefile.in.
24499 (OBJ1): Add terminal.$(O)
24500
24501 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24502 Don't define function body.
24503 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24504
24505 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24506
24507 * w32.c (request_sigio, unrequest_sigio): Remove.
24508
24509 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24510 (w32con_clear_frame, w32con_clear_end_of_line)
24511 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24512 (w32con_delete_glyphs, w32con_set_terminal_window)
24513 (scroll_line, w32_sys_ring_bell): Add frame arg.
24514 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24515 Add terminal arg.
24516 (PICK_FRAME): Remove.
24517 (w32con_write_glyphs): Use frame specific terminal coding.
24518 (one_and_only_w32cons): New global variable.
24519 (initialize_w32_display): Use it for storing hooks.
24520 (create_w32cons_output): New function.
24521
24522 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24523 arg a frame.
24524
24525 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24526 Set window_system.
24527 (x_set_tool_bar_lines): Don't use updating_frame.
24528 (Fx_create_frame): Set terminal and ref count.
24529 (Fx_open_connection): Remove window-system check.
24530
24531 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24532
24533 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24534 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24535 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24536 Add frame arg.
24537 (x_delete_terminal, w32_create_terminal): New functions.
24538 (w32_term_init): Create a terminal.
24539 (w32_initialize): Move terminal specific initialization to
24540 w32_create_terminal.
24541
24542 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24543 (w32_clear_rect, w32_clear_area): Use background from frame.
24544 (w32_display_info): Add terminal.
24545 (w32_sys_ring_bell, x_delete_display): Declare here.
24546
24547 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24548
24549 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24550
245512007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24552
24553 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24554 Fix get_named_tty calls for the controlling tty.
24555
245562007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24557
194d44e7 24558 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24559
245602007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24561
24562 * term.c (tty_insert_glyphs): Add missing first parameter.
24563
245642007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24565
24566 * buffer.c (Fbuffer_list, Fbury_buffer):
24567 Take frame->buried_buffer_list into account.
24568
24569 * cm.c (current_tty): New variable, for cmputc().
24570 (cmputc): Use it.
24571 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24572 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24573 (cmgoto): Add tty parameter. Pass it on to calccost().
24574 Use emacs_tputs() instead of tputs().
24575
24576 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24577 tputs().
24578 (current_tty): New variable, for cmputc().
24579 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24580
24581 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24582 (internal_condition_case, internal_condition_case_1)
24583 (internal_condition_case_2): Don't abort when x_catching_errors.
24584
24585 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24586 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24587 prevent crashes caused by bogus longjmps in read_char.
24588
24589 * keymap.h (Fset_keymap_parent): Add EXFUN.
24590
24591 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24592 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24593 Remove redundant definition.
24594
24595 * macfns.c (x_set_mouse_color, x_make_gc):
24596 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24597
24598 * w32term.c (x_free_frame_resources):
24599 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24600 (w32_initialize): Use the accessor macros for terminal characteristics.
24601
24602 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24603 Use the accessor macros for terminal characteristics.
24604 * msdos.c (internal_terminal_init): Use the accessor macros for
24605 terminal characteristics.
24606 (ScreenVisualBell, internal_terminal_init):
24607 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24608
24609 * termopts.h (no_redraw_on_reenter): Declare.
24610
24611 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24612 (mark_terminals, mark_ttys): Declare.
24613 (Fgarbage_collect): Call them.
24614 (mark_object): Mark buried_buffer_list.
24615
24616 * prefix-args.c: Include stdlib.h for exit.
24617
24618 * syssignal.h: Add comment.
24619
24620 * indent.c: Include stdio.h.
24621
24622 * window.h (Vinitial_window_system): Declare.
24623 (Vwindow_system): Delete declaration.
24624
24625 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24626
24627 * image.c (lookup_image): Don't initialize `c' until the xasserts
24628 have been run.
24629
24630 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24631 FRAME_FOREGROUND_PIXEL.
24632
24633 * print.c (print_preprocess): Don't lose print_depth levels while
24634 iterating.
24635
24636 * widget.c (update_from_various_frame_slots):
24637 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24638
24639 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24640 frames.
24641 (window_internal_height): Remove bogus make_number call.
24642 (init_window_once): Call make_terminal_frame with two zero parameters.
24643
24644 * fileio.c (Fread_file_name): Update comment.
24645
24646 * callint.c (Fcall_interactively):
24647 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24648 Make sure it is correctly unwound.
24649
24650 * xsmfns.c (x_session_close): New function.
24651
24652 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24653 Delete declarations.
24654
24655 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24656 (x_output): Remove background_pixel and foreground_pixel fields.
24657 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24658 (x_delete_device, x_session_close): Declare.
24659
24660 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24661 (read_filtered_event): Call `read_char' with a local
24662 `wrong_kboard_jmpbuf'.
24663
24664 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24665 Don't call single_kboard_state. Use FRAME_RIF.
24666
24667 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24668 systems.
24669
24670 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24671 (Fframe_with_environment, Fset_input_meta_mode)
24672 (Fset_quit_char): EXFUN.
24673 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24674 (init_sys_modes, reset_sys_modes): Update prototypes.
24675 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24676
24677 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24678 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24679 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24680 Delete declarations.
24681 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24682 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24683 New declarations.
24684
24685 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24686 already does that during init_display(). Call syms_of_keymap
24687 before syms_of_keyboard. Call `syms_of_terminal'.
24688 Call set_initial_environment, not set_process_environment.
24689 (shut_down_emacs): Call reset_all_sys_modes() instead of
24690 reset_sys_modes().
24691
24692 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24693 (internal_resolve_face_name, resolve_face_name_error): New functions.
24694 (resolve_face_name): Protect against loops and errors thrown by Fget.
24695 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24696 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24697
24698 * scroll.c: Replace CURTTY() with local variables throughout the
24699 file (where applicable).
24700 (calculate_scrolling, calculate_direct_scrolling)
24701 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24702 characteristics.
24703
24704 * keymap.c (Vfunction_key_map): Remove.
24705 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24706 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24707 (Vkey_translation_map): Remove.
24708 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24709 (Fdescribe_buffer_bindings)
24710 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24711 Update for terminal-local key-translation-map.
24712
24713 * Makefile.in (callproc.o): Update dependencies.
24714 (lisp, shortlisp): Add termdev.elc.
24715 (obj): Add terminal.o.
24716 (terminal.o): Add dependencies.
24717 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24718 (data.o, fns.o): Add termhooks.h dependency.
24719 (SOME_MACHINE_LISP): Add dnd.elc.
24720 (minibuf.o): Fix typo.
24721 Update dependencies.
24722
24723 * data.c (do_symval_forwarding, store_symval_forwarding)
24724 (find_symbol_value): Use the selected frame's keyboard, not
24725 current_kboard.
24726
24727 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24728 Vwindow_system.
24729
24730 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24731 Fmenu_bar_open.
24732 (syms_of_xmenu): Update defsubr.
24733 (mouse_position_for_popup, Fx_popup_menu)
24734 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24735 (set_frame_menubar, free_frame_menubar)
b97439ce 24736 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24737 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24738 an X frame.
24739
24740 * xselect.c (x_own_selection): Abort if not an X frame.
24741 (some_frame_on_display): Check if it is an X frame.
24742 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24743
24744 * coding.c: Include frame.h and termhooks.h.
24745 (terminal_coding, keyboard_coding): Delete.
24746 (Fset_terminal_coding_system_internal)
24747 (Fset_keyboard_coding_system_internal)
24748 (Fkeyboard_coding_system)
24749 (Fterminal_coding_system): Add a terminal parameter.
24750 Get terminal_coding from the terminal.
24751 (init_coding_once): Don't call setup_coding_system here.
24752
24753 * dispextern.h (set_scroll_region, turn_off_insert)
24754 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24755 (tty_clear_end_of_line, tty_setup_colors)
24756 (delete_tty, updating_frame)
24757 (produce_special_glyphs, produce_glyphs, write_glyphs)
24758 (insert_glyphs): Remove.
24759 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24760 (tty_turn_off_highlight, get_tty_size): Add declaration.
24761 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24762
24763 * frame.h (enum output_method): Add output_initial.
24764 (struct x_output): Delete.
24765 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24766 Access foreground_pixel and background_pixel directly from the frame.
24767 (tty_display): Delete.
24768 (struct frame): Add buried_buffer_list, foreground_pixel,
24769 background_pixel and terminal. Delete kboard.
24770 (union output_data): Add tty.
24771 (FRAME_KBOARD): Get the kboard from the terminal.
24772 (FRAME_INITIAL_P): New macro.
24773 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24774 (Qterm_environment_variable, Qdisplay_environment_variable)
24775 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24776 New declarations.
24777
24778 * termchar.h (tty_output, tty_display_info): New structures.
24779 (tty_list): Declare.
24780 (FRAME_TTY, CURTTY): New macros.
24781 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24782 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24783 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24784 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24785
24786 * callproc.c: Include frame.h and termhooks.h, for terminal
24787 parameters.
24788 (add_env): New function.
24789 (child_setup): Use it.
24790 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24791 (getenv_internal): Fix get_terminal_param call.
24792 (Fgetenv_internal, egetenv): Update doc.
24793 (syms_of_callproc): Initialize Vprocess_environment to nil.
24794 Register and initialize them. Remove obsolete defvars. Update doc
24795 strings.
24796 (child_setup): Handle Vlocal_environment_variables.
24797 (getenv_internal): Add terminal parameter.
24798 Handle Vlocal_environment_variables.
24799 (Fgetenv_internal): Add terminal parameter.
24800 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24801 environment in a frame (not terminal) parameter. Update doc strings.
24802 (set_initial_environment): Rename from set_global_environment.
24803 Store Emacs environment in initial frame parameter.
24804
24805 * xdisp.c (redisplay_internal): Update references to
24806 `previous_terminal_frame'.
24807 (display_mode_line, Fformat_mode_line): Replace calls to
24808 `push_frame_kboard' with `push_kboard'.
24809 (get_glyph_string_clip_rects): Add extra parentheses and
24810 braces to prevent compiler warnings.
24811 (calc_pixel_width_or_height): Add xassert to check that the
24812 frame is alive. Don't call `lookup_image' on a termcap frame.
24813 (message2_nolog, message3_nolog, redisplay_internal)
24814 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24815 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24816 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24817 (Fx_display_pixel_width, Fx_display_pixel_height)
24818 (Fx_display_planes, Fx_display_color_cells)
24819 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24820 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24821 (Fx_display_backing_store, Fx_display_visual_class)
24822 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24823 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24824
24825 * xfns.c (x_set_foreground_color x_set_background_color)
24826 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24827 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24828 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24829 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24830 terminal that is being deleted.
24831 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24832 frame parameter, and make sure it overrides any user-supplied setting.
24833 (Fx_close_connection, Fx_synchronize): Unify argument names with
24834 the rest of the DEFUNs.
24835
24836 * dispnew.c (Fsend_string_to_terminal): Update call to
24837 `get_tty_terminal'.
24838 (Fredraw_frame, Fsend_string_to_terminal)
24839 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24840 FRAME_TERMCAP_P and FRAME_TTY.
24841 (window_change_signal): Don't believe width/height values that are
24842 impossibly small.
24843 (Vinitial_window_system): Rename from Vwindow_system.
24844 (termscript, Wcm, rif): Delete.
24845
24846 * termhooks.h (struct terminal): New struct containing the
24847 previously global text display hooks and new members NAME,
24848 DELETED and PARAM_ALIST.
24849 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24850 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24851 (FRAME_RIF): New macros.
24852 (get_terminal_param, get_device): New declarations.
24853 (termscript): Delete declaration.
24854
24855 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24856 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24857 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24858 FRAME_FOREGROUND_PIXEL.
24859 (x_fully_uncatch_errors): Disable definition.
24860 (x_scroll_bar_expose): Fix reference to foreground pixel.
24861 (XTread_socket): Disable loop on all X displays.
24862 (x_delete_terminal): Don't set terminal->deleted and let
24863 delete_terminal delete the frames on the terminal.
24864 (x_delete_display): Doc update to reflect changes in
24865 delete_terminal.
24866 (x_display_info) <terminal>: Move member earlier in the struct.
24867 (deleting_tty): Remove old variable.
24868 (Fsuspend_tty): Call clear_tty_hooks.
24869 (Fresume_tty, init_tty): Call set_tty_hooks.
24870 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24871 errors on X frames.
24872 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24873 (handle_one_xevent): Initialize `f' to NULL.
24874 (x_delete_terminal, x_create_terminal): New functions.
24875 (XTset_terminal_modes, XTreset_terminal_modes)
24876 (XTread_socket, x_connection_closed, x_term_init)
24877 (x_term_init, x_delete_display): Add terminal parameter.
24878 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24879 X connections.
24880
24881 * frame.c: Include termchar.h.
24882 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24883 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24884 (Qdisplay_environment_variable): New vars.
24885 (Fframep): Deal with output_initial.
24886 (Fframe-live-p): Doc fix.
24887 (Fwindow-system): New function.
24888 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24889 (make_terminal_frame): Don't create frames on a terminal that is
24890 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24891 (store_frame_param): Check for found_for_frame before calling XFRAME.
24892 (Fmake_terminal_frame): Handle NULL tty names correctly.
24893 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24894 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24895 frames to refer to a deleted frame in their 'environment parameter.
24896 (Fframe_with_environment): New function.
24897 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24898 (get_future_frame_param): New function.
24899 (Fmake_terminal_frame): Use it.
24900 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24901
24902 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24903 * sysdep.c (reset_sys_modes): Update for renames.
24904
24905 * keyboard.c (tty_read_avail_input): New function.
24906 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24907 (syms_of_keyboard): Defsubr them.
24908 (Fset_input_meta_mode, Fset_quit_char): New functions.
24909 (Fset_input_mode): Split to above functions.
24910 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24911 parameter. Use it in call to `read_char'.
24912 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24913 Set wrong_kboard_jmpbuf correctly in recursive calls.
24914 Use current_kboard to access Vkeyboard_translate_table.
24915 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24916 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24917 Update longjmp invocations. Remember the original current_kboard,
24918 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24919 changes it. Comment out unnecessary calls to
24920 `record_single_kboard_state' and `any_kboard_state'.
24921 Update recursive calls.
24922 (wrong_kboard_jmpbuf): Remove global variable.
24923 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24924 Handle deleted interrupted_kboards correctly; that is a legal
24925 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24926 and read_char calls. Abort if interrupted_kboard died in read_char.
24927 (any_kboard_state, single_kboard_state)
24928 (push_frame_kboard): Remove function.
24929 (pop_kboard): Switch out of single_kboard mode if the kboard has
24930 been deleted. Remove unused variable. Help debugging by not
24931 changing current_kboard unnecessarily. Set current_kboard to the
24932 kboard of the selected frame when the stored kboard object has
24933 been deleted before pop_kboard.
24934 (temporarily_switch_to_single_kboard): Change first parameter to a
24935 frame pointer. Throw an error when caller wants to change kboards
24936 while in single_kboard mode. Don't push_kboard if we weren't in
24937 single kboard state. Don't pop_kboard if we popped into any
24938 kboard state.
24939 (restore_kboard_configuration): Abort if pop_kboard changed the
24940 kboard in single_kboard mode. Call pop_kboard only after setting
24941 up single_kboard mode.
24942 (Frecursive_edit): Switch to single_kboard mode only in nested
24943 command loops.
24944 (cmd_error, command_loop, command_loop_1, timer_check):
24945 Comment out unnecessary call to `any_kboard_state' and
24946 `record_single_kboard_state'.
24947 (delete_kboard): Exit single_kboard mode if we have just deleted
24948 that kboard. Use FRAME_KBOARD.
24949 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24950 `fatal_error_signal'.
24951 (record_single_kboard_state): Don't push_kboard if we weren't in
24952 single kboard state. Don't pop_kboard if we popped into any
24953 kboard state.
24954 (push_frame_kboard): Rename to push_kboard.
24955 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24956 (read_avail_input): Read input from all terminals.
24957 (mark_kboards): Also mark Vkeyboard_translate_table.
24958 (kbd_buffer_store_event_hold): Simplify condition.
24959 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24960 (Vkeyboard_translate_table): Move to struct kboard.
24961 (init_kboard): Initialize Vkeyboard_translate_table.
24962 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24963 Vkeyboard_translate_table. Update doc strings. Update docs of
24964 local-function-key-map and function-key-map.
24965
24966 * terminal.c: New file.
24967
24968 * term.c: Include errno.h.
24969 (Vring_bell_function, device_list, initial_device)
24970 (next_device_id, ring_bell, update_begin, update_end)
24971 (set_terminal_window, cursor_to, raw_cursor_to)
24972 (clear_to_end, clear_frame, clear_end_of_line)
24973 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24974 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24975 (syms_of_term): Move their initialization to terminal.c.
24976 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24977 (Ftty_display_color_cells)
24978 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24979 (clear_tty_hooks, set_tty_hooks)
24980 (init_tty, maybe_fatal): New functions.
24981 (Ftty_type): Return nil if terminal is not on a tty instead of
24982 throwing an error. Doc update.
24983 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24984 Doc update. Initialize new subrs and variables.
24985 (delete_tty): Use terminal->deleted.
24986 (tty_set_terminal_modes): Rename from set_terminal_modes.
24987 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24988 (set_scroll_region): Rename to `tty_set_scroll_region'.
24989 (turn_on_insert): Rename to `tty_turn_on_insert'.
24990 (turn_off_insert): Rename to `tty_turn_off_insert'.
24991 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24992 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24993 (toggle_highligh): Rename to `tty_toggle_highlight'.
24994 (background_highlight): Rename to `tty_background_highlight'.
24995 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24996 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24997 (tty_set_scroll_region, tty_background_highlight)
24998 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24999 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25000 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25001 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25002 Add static modifier.
25003 (tty_reset_terminal_modes, tty_set_terminal_window)
25004 (tty_set_scroll_region, tty_background_highlight)
25005 (tty_highlight_if_desired, tty_cursor_to)
25006 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25007 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25008 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25009 renames.
25010
250112007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25012
25013 * keyboard.c: Qrtl is new.
25014 (parse_tool_bar_item): Handle :rtl keyword.
25015 (syms_of_keyboard): Intern :rtl keyword.
25016
25017 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25018
25019 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25020 so no Lisp code is executed.
25021 (file_for_image, find_rtl_image): New functions.
25022 (xg_get_image_for_pixmap): Use file_for_image.
25023 (update_frame_tool_bar): If direction is RTL, use RTL image if
25024 defined. Use Gtk stock images if defined.
25025
250262007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25027
25028 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25029 for nonexistent or zero-width glyph in composition glyph.
25030
250312007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25032
25033 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25034
25035 * xdisp.c (Finvisible_p): New function.
25036 (syms_of_xdisp): defsubr it.
25037
250382007-08-24 Juanma Barranquero <lekktu@gmail.com>
25039
25040 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25041 Doc fixes.
25042
250432007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25044
25045 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25046
250472007-08-24 Martin Rudalics <rudalics@gmx.at>
25048
25049 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25050 whether decoding has modified buffer contents.
25051
250522007-08-24 Jason Rumney <jasonr@gnu.org>
25053
25054 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25055 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25056 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25057 (init_svg_functions) [HAVE_NTGUI]: New function.
25058 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25059 (svg_load_image): Use them.
25060 (svg_load_image) [HAVE_NTGUI]: Implement background.
25061
250622007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25063
25064 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25065 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25066 (LIBX): Remove @RSVG_LIBS@.
25067 (LIBES): Add $(RSVG_LIBS).
25068
25069 * image.c (svg_load_image): Blend with specified background if exists.
25070 Use IMAGE_BACKGROUND. Add Mac OS Support.
25071
25072 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25073 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25074 Remove macros.
25075 [MAC_OSX] (socket_callback): Do nothing.
25076 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25077 ReceiveNextEvent.
25078 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25079 socket_callback.
25080 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25081
250822007-08-22 Glenn Morris <rgm@gnu.org>
25083
25084 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25085
250862007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25087
25088 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25089
25090 * image.c: Add support for SVG images. Some additional comments
25091 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25092 (svg_image_p): New function to test for SVG image.
25093 (svg_load): New function to load SVG image.
25094 (svg_load_image): New function, helper for svg_load.
25095 (Qsvg): New Lisp_object.
25096 (svg_keyword_index): New enum.
25097 (svg_format): New static `image_keyword' struct.
25098 (svg_type): New static `image_type' struct.
25099 (librsvg/rsvg.h): Include it.
25100
251012007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25102
25103 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25104
251052007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25106
25107 * lread.c (Qold_style_backquotes): New var.
25108 (syms_of_lread): Init and staticpro it.
25109 (load_warn_old_style_backquotes): New fun.
25110 (Fload): Use them to warn about old style backquotes.
25111 (end_of_file_error, Fload): Remove unused vars.
25112
25113 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25114
25115 * lread.c (Vold_style_backquotes): New var.
25116 (syms_of_lread): Init and export it to Elisp.
25117 (read1): Set it when we find an old-style (back)quote.
25118
251192007-08-22 Jason Rumney <jasonr@gnu.org>
25120
25121 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25122
251232007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25124
25125 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25126
251272007-08-19 Richard Stallman <rms@gnu.org>
25128
25129 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25130
251312007-08-19 Andreas Schwab <schwab@suse.de>
25132
25133 * alloc.c (pure): Round PURESIZE up.
25134
251352007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25136
25137 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25138 active frame.
25139
251402007-08-16 Richard Stallman <rms@gnu.org>
25141
25142 * eval.c (Fcommandp): Add parens to clarify.
25143
25144 * minibuf.c (Fall_completions): Use enum for type of table.
25145
25146 * emacs.c (USAGE2): Improve text.
25147
251482007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25149
25150 * term.c (tty_default_color_capabilities): Declare static
25151 variables in file scope, to avoid HPUX compiler problem.
25152
251532007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25154
25155 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25156 to gtk_toolbar_insert.
25157
251582007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25159
25160 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25161
25162 * insdel.c (reset_var_on_error): New fun.
25163 (signal_before_change, signal_after_change):
25164 Use it to reset (after|before)-change-functions to nil in case of error.
25165 Bind inhibit-modification-hooks to t.
25166 Don't bind (after|before)-change-functions to nil while they run.
25167
251682007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25169
25170 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25171 filling pixmap with stippled background.
25172
251732007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25174
25175 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25176 Don't use invisible frame as parent window for repositioning.
25177
251782007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25179
25180 * print.c (new_backquote_output): Rename from old_backquote_output.
25181 (print): Inverse its logic (according to its name) so as to match the
25182 behavior of new_backquote_flag in lread.c.
25183
251842007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25185
25186 * gmalloc.c (posix_memalign): New function.
25187
25188 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25189 ActivateControl/DeactivateControl here.
25190 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25191 frame-notice-user-settings is non-nil.
25192 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25193 for kEventParamFMFontStyle.
25194 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25195 mac_pass_command_to_system and mac_pass_control_to_system here.
25196 (XTread_socket): Call ActivateControl/DeactivateControl here.
25197 (XTread_socket) [TARGET_API_MAC_CARBON]:
25198 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25199 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25200 for window repositioning.
25201
252022007-08-08 Glenn Morris <rgm@gnu.org>
25203
25204 * Replace `iff' in doc-strings and comments.
25205
252062007-08-07 Chong Yidong <cyd@stupidchicken.com>
25207
25208 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25209
252102007-08-07 Martin Rudalics <rudalics@gmx.at>
25211
25212 * fileio.c (Finsert_file_contents): Run format-decode and
25213 after_insert_file_functions on entire buffer when REPLACE is
25214 non-nil and inhibit modification_hooks and point_motion_hooks.
25215 For consistency, run after_insert_file_functions iff something
25216 got inserted. Move signal_after_change and update_compositions
25217 after code running after_insert_file_functions. Make sure that
25218 undo_list doesn't record intermediate steps of the decoding process.
25219
252202007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25221
25222 * emacs.c (main)
25223 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25224 Call malloc_enable_thread on interactive startup.
25225
25226 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25227 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25228 [USE_PTHREAD]: Conditionalize with it.
25229 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25230 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25231 New functions.
25232
252332007-08-06 Chong Yidong <cyd@stupidchicken.com>
25234
25235 * xdisp.c (redisplay_window): When restoring original buffer
25236 position, make sure it is still valid.
25237
25238 * image.c (png_load): Ignore png-supplied background color.
25239
252402007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25241
25242 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25243 Use kCFAbsoluteTimeIntervalSince1970.
25244
25245 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25246 New variable.
25247 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25248 event loop should be quit.
25249 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25250 Quit dialog event loop if quit_dialog_event_loop is set.
25251
25252 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25253 (Selection): New typedef. Use instead of ScrapRef.
25254 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25255 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25256 (mac_clear_selection): Rename from clear_scrap.
25257 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25258 scrap_has_target_type. All uses changed.
25259 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25260 (mac_selection_has_target_p): New functions.
25261 (mac_put_selection_value): Rename from put_scrap_string.
25262 (mac_get_selection_value): Rename from get_scrap_string.
25263 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25264 (put_scrap_private_timestamp, scrap_has_target_type)
25265 (get_scrap_private_timestamp): Remove functions.
25266 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25267 (x_own_selection, x_get_local_selection):
25268 Use mac_valid_selection_value_p.
25269 (x_own_selection): Don't use put_scrap_private_timestamp.
25270 Record OWNERSHIP-INFO into Vselection_alist instead.
25271 (x_get_local_selection): Don't check type if request is local.
25272 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25273 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25274
252752007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25276
25277 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25278 add comment explaining why.
25279
252802007-08-03 Richard Stallman <rms@gnu.org>
25281
25282 * fileio.c (Fvisited_file_modtime): Use make_time.
25283
252842007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25285
25286 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25287 build.
25288
252892007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25290
25291 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25292
252932007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25294
25295 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25296
252972007-07-30 Richard Stallman <rms@gnu.org>
25298
25299 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25300
253012007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25302
25303 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25304
253052007-07-28 Nick Roberts <nickrob@snap.net.nz>
25306
25307 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25308 remote default-directory.
25309
25310 * buffer.c (mode-line-format): Update doc string.
25311
253122007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25313
25314 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25315 scroll bar gap.
25316 (x_scroll_bar_create): Set bar->fringe_extended_p.
25317 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25318 on frame edge. Check fringe background extension. Don't clear
25319 extended fringe background area.
25320
25321 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25322 (w32_fill_area): Enclose multiple statements with do ... while (0).
25323
25324 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25325 Extend fringe background to scroll bar gap.
25326 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25327 Set bar->fringe_extended_p.
25328 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25329 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25330 background extension. Don't clear extended fringe background area.
25331
25332 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25333 New member fringe_extended_p.
25334
253352007-07-25 Glenn Morris <rgm@gnu.org>
25336
25337 * Relicense all FSF files to GPLv3 or later.
25338
25339 * COPYING: Switch to GPLv3.
25340
253412007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25342
25343 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25344
25345 * data.c (Finteractive_form): Check for the presence of an
25346 `interactive-form' symbol property more thoroughly.
25347
25348 * data.c (Finteractive_form): Use an `interactive-form' property if
25349 present, analogous to the function-documentation property.
25350
253512007-07-24 Jason Rumney <jasonr@gnu.org>
25352
25353 * w32fns.c (x_real_positions): Get real position from OS instead of
25354 calculating it.
25355
253562007-07-23 Jason Rumney <jasonr@gnu.org>
25357
25358 * filelock.c (current_lock_owner): Allow for @ sign in username.
25359
253602007-07-22 Nick Roberts <nickrob@snap.net.nz>
25361
25362 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25363 remote default-directory.
25364
25365 * buffer.c (mode-line-format): Describe above case in doc string.
25366
253672007-07-20 Eli Zaretskii <eliz@gnu.org>
25368
25369 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25370 Define if not defined.
25371
253722007-07-18 Jason Rumney <jasonr@gnu.org>
25373
25374 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25375
253762007-07-18 Richard Stallman <rms@gnu.org>
25377
25378 * data.c (Fsetq_default): Doc fix.
25379
25380 * eval.c (Fsetq): Doc fix.
25381
253822007-07-18 Juanma Barranquero <lekktu@gmail.com>
25383
25384 * coding.c (Ffind_operation_coding_system):
25385 * eval.c (For, Fand): Doc fixes.
25386 Reported by Johan Bockgård.
25387
253882007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25389
25390 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25391
25392 * xterm.h: Declare x_ewmh_activate_frame.
25393
25394 * xterm.c (x_ewmh_activate_frame): New function.
25395 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25396
253972007-07-17 Martin Rudalics <rudalics@gmx.at>
25398
25399 * window.c (Fdisplay_buffer): If largest or LRU window is the
25400 only window, split it even if it is not eligible for splitting.
25401 This restores the original behavior broken by the 2007-07-15
25402 change.
25403
254042007-07-17 Glenn Morris <rgm@gnu.org>
25405
25406 * abbrev.c (abbrev_check_chars): New function.
25407 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25408 Call abbrev_check_chars to check abbrev characters are word
25409 constituents. Doc fix.
25410
254112007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25412
25413 * process.c (Fstart_process, Fmake_network_process)
25414 (read_process_output): Fix up last changes.
25415
254162007-07-16 Eli Zaretskii <eliz@gnu.org>
25417
25418 * makefile.w32-in (clean): Don't delete *~.
25419
254202007-07-16 Andreas Schwab <schwab@suse.de>
25421
25422 * window.c (Fdisplay_buffer): Use NILP.
25423 (Fset_window_scroll_bars): Likewise.
25424
254252007-07-15 Martin Rudalics <rudalics@gmx.at>
25426
25427 * window.c (window_min_size_2): New function.
25428 (window_min_size_1, size_window, Fdisplay_buffer)
25429 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25430 windows without mode- or header-lines when window-min-height is
25431 too small.
25432 (size_window): Reset nodelete_p after testing it, following an
25433 earlier note by Kim F. Storm.
25434 (display_buffer): Do not set split_height_threshold to twice the
25435 value of window_min_height to avoid changing the value of a
25436 customizable variable. Rather explicitly check whether the
25437 height of the window that shall be splitted is at least as large
25438 as split_height_threshold.
25439 (Fwindow_full_width_p): New defun.
25440 (syms_of_window): Defsubr it.
25441
25442 * window.h: Add EXFUN for Fwindow_full_width_p.
25443
254442007-07-14 Jason Rumney <jasonr@gnu.org>
25445
25446 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25447
254482007-07-14 Richard Stallman <rms@gnu.org>
25449
25450 * eval.c (maybe_call_debugger): New function.
25451 (find_handler_clause): Use maybe_call_debugger.
25452 Call it when the handler says `debug'.
25453 Eliminate DEBUGGER_VALUE_PTR.
25454 (Fsignal): Eliminate debugger_value.
25455 (Qdebug): New variable.
25456 (syms_of_eval): Initialize it.
25457
254582007-07-14 Juanma Barranquero <lekktu@gmail.com>
25459
25460 * eval.c (Fprogn):
25461 * keyboard.c (Ftrack_mouse):
25462 * print.c (Fwith_output_to_temp_buffer):
25463 * window.c (Fsave_window_excursion): Doc fix.
25464
254652007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25466
25467 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25468
254692007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25470
25471 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25472 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25473 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25474 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25475 Remove unused encoding_carryover.
25476 * process.c: Adjust all functions accordingly.
25477
254782007-07-12 Richard Stallman <rms@gnu.org>
25479
25480 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25481
254822007-07-11 Jason Rumney <jasonr@gnu.org>
25483
25484 * makefile.w32-in (LIBS): Include OLE32.
25485
25486 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25487 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25488
254892007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25490
25491 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25492 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25493 from a Lisp_Object into a bare pointer.
25494 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25495 Adjust the code correspondingly.
25496
25497 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25498
25499 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25500 (term_show_mouse_face): Remove unused var `j'.
25501 (handle_one_term_event): Remove unused vars `i' and `j'.
25502 Don't cast return value of ttyname since it's not necessary.
25503
255042007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25505
25506 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25507 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25508
25509 * fns.c (map_char_table): Use an array of int for `indices' rather than
25510 an array of Lisp_Objects (which are only ever integers anyway).
25511 (Fmap_char_table): Update caller.
25512 * lisp.h: Update prototype.
25513 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25514 * fontset.c (Ffontset_info):
25515 * casetab.c (set_case_table): Update callers.
25516
25517 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25518
25519 * keymap.c (struct accessible_keymaps_data)
25520 (struct where_is_internal_data): New structures.
25521 (accessible_keymaps_1, where_is_internal_1): Use them to change
25522 interface to adhere to the one used by map_keymap.
25523 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25524 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25525
25526 * keymap.h (map_keymap_function_t): More informative prototype.
25527
255282007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25529
25530 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25531 (looking_at_1): Don't change search_regs and last_thing_searched
25532 if `inhibit-changing-match-data' is non-nil.
25533 (string_match_1, search_buffer, set_search_regs): Likewise.
25534 (syms_of_search): Add Lisp level definition for
25535 `inhibit-changing-match-data' and set it to nil.
25536 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25537 start and end of the match, instead of using values in search_regs.
25538
255392007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25540
25541 * minibuf.c (Fcompleting_read): New value `confirm-only'
25542 for `require-match'.
25543
255442007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25545
25546 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25547 part of the 2007-06-27 change to syms_of_fileio.
25548
255492007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25550
25551 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25552 Check WINDOWP before using XWINDOW. Consolidate return statements.
25553
255542007-06-27 Richard Stallman <rms@gnu.org>
25555
25556 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25557
255582007-06-27 Juanma Barranquero <lekktu@gmail.com>
25559
25560 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25561
255622007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25563
25564 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25565 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25566 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25567 (_free_internal, memalign): Use them.
25568 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25569 Initialize to PTHREAD_MUTEX_INITIALIZER.
25570 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25571 (morecore_nolock): Rename from morecore. All uses changed.
25572 Use only nolock versions of internal allocation functions.
25573 (_malloc_internal_nolock, _realloc_internal_nolock)
25574 (_free_internal_nolock): New functions created from
25575 _malloc_internal, _realloc_internal, and _free_internal.
25576 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25577 Copy hook value to automatic variable before its use.
25578 (memalign): Copy hook value to automatic variable before its use.
25579
255802007-06-26 Kenichi Handa <handa@m17n.org>
25581
25582 * coding.c (Ffind_operation_coding_system): Docstring improved.
25583 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25584
255852007-06-25 David Kastrup <dak@gnu.org>
25586
25587 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25588 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25589 cater for additional parameter.
25590
25591 * keymap.h: Adjust number of parameters to `current-active-maps'.
25592
25593 * doc.c (Fsubstitute_command_keys): Adjust call of
25594 `current-active-maps'.
25595
255962007-06-25 David Kastrup <dak@gnu.org>
25597
25598 * callint.c (Fcall_interactively): Make the parsing of interactive
25599 specs somewhat more readable.
25600
256012007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25602
25603 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25604 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25605 if extended background has already been filled.
25606
256072007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25608
25609 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25610 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25611
25612 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25613 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25614 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25615 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25616 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25617 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25618 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25619 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25620 Run timers during dialog popup.
25621 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25622
256232007-06-21 Jason Rumney <jasonr@gnu.org>
25624
25625 * image.c (convert_mono_to_color_image): Swap fore and background.
25626
256272007-06-20 Jason Rumney <jasonr@gnu.org>
25628
25629 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25630 (w32_free_bdf_font): Unmap memory not handle.
25631
256322007-06-20 Sam Steingold <sds@gnu.org>
25633
25634 * gmalloc.c (__morecore): Fix the declaration to comply with the
25635 definition.
25636
256372007-06-20 Juanma Barranquero <lekktu@gmail.com>
25638
25639 * w32term.c (w32_delete_display): Remove leftover declaration.
25640 (w32_define_cursor, w32_initialize): Make static.
25641
25642 * w32.c (_wsa_errlist): Fix typo in error message.
25643 (init_environment): Ignore any environment variable from the
25644 registry having a null value.
25645
256462007-06-20 Glenn Morris <rgm@gnu.org>
25647
25648 * Makefile.in (LIBGIF): Default to -lgif.
25649
256502007-06-17 Jason Rumney <jasonr@gnu.org>
25651
25652 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25653 unicode strings.
25654
256552007-06-16 Juanma Barranquero <lekktu@gmail.com>
25656
25657 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25658 Fix typo in docstring.
25659
256602007-06-16 Eli Zaretskii <eliz@gnu.org>
25661
25662 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25663 and their keybindings.
25664
256652007-06-15 Chong Yidong <cyd@stupidchicken.com>
25666
25667 * composite.c (update_compositions): Fix last fix.
25668
256692007-06-14 Jason Rumney <jasonr@gnu.org>
25670
25671 * w32.c (get_process_times_fn): New function pointer.
25672 (globals_of_w32): Intialize it if present in kernel32.dll.
25673 (w32_get_internal_run_time): New function.
25674
25675 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25676
256772007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25678
25679 * composite.c (update_compositions): Check the validness of
25680 compositions.
25681
256822007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25683
25684 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25685 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25686
25687 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25688 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25689
25690 * macgui.h (USE_MAC_TOOLBAR): New define.
25691
25692 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25693 Return immediately unless popup is activated.
25694
25695 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25696 background to scroll bar gap.
25697 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25698 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25699 scroll bars on frame edge. Check fringe background extension.
25700 Don't clear extended fringe background area.
25701 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25702 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25703 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25704 [USE_MAC_TOOLBAR]: New macros.
25705 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25706 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25707 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25708 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25709 [USE_MAC_TOOLBAR]: New functions.
25710 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25711 manually if previous repositioning has failed.
25712 (mac_handle_keyboard_event): Use precomputed event kind.
25713 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25714 as tool bar item click. Handle mouse movement over tool bar items.
25715
25716 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25717 toolbar_win_gravity.
25718 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25719 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25720 Add externs.
25721
25722 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25723 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25724
257252007-06-14 Chong Yidong <cyd@stupidchicken.com>
25726
25727 * image.c (search_image_cache): Remove unused variable.
25728
257292007-06-13 Chong Yidong <cyd@stupidchicken.com>
25730
25731 * xfns.c, xmenu.c: Link to xaw3d if available.
25732
257332007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25734
25735 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25736 frame_foreground and frame_background.
25737
25738 * image.c (lookup_image): Save frame foreground and background colors.
25739 (search_image_cache): Check if saved and current frame colors match.
25740
257412007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25742
25743 * regex.c (regex_compile): Remove the `regnum' counter.
25744 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25745
257462007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25747
25748 * term.c: Include intervals.h to declare Fget_text_property.
25749
257502007-06-10 Jason Rumney <jasonr@gnu.org>
25751
25752 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25753
257542007-06-08 Juanma Barranquero <lekktu@gmail.com>
25755
25756 * callint.c (Fcall_interactively):
25757 * editfns.c (Fdelete_and_extract_region):
25758 * fileio.c (Fread_file_name):
25759 * fns.c (Fmapconcat):
25760 * keyboard.c (cmd_error_internal):
25761 * keymap.c (Fkey_description):
25762 * lread.c (openp):
25763 * minibuf.c (read_minibuf):
25764 * search.c (wordify):
25765 * sunfns.c (sel_read):
25766 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25767 * xfns.c (x_default_scroll_bar_color_parameter):
25768 * xmenu.c (menu_help_callback):
25769 * xselect.c (Fx_get_atom_name):
25770 * xterm.c (x_term_init): Use empty_unibyte_string.
25771
257722007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25773
25774 * alloc.c (init_strings): Initialize canonical empty strings.
25775 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25776 canonical empty string when the requested size is 0.
25777
25778 * emacs.c (empty_unibyte_string): Rename from empty_string.
25779 (empty_multibyte_string): New canonical empty string.
25780 (syms_of_emacs): Don't initialize empty_string.
25781
25782 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25783 string, if appropriate.
25784 (empty_unibyte_string, empty_multibyte_string): New externs.
25785 (empty_string): Remove extern.
25786
25787 * lread.c (syms_of_lread): Use empty_unibyte_string.
25788
257892007-06-07 Jason Rumney <jasonr@gnu.org>
25790
25791 * s/ms-w32.h: Don't define HAVE_TZNAME.
25792
25793 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25794
257952007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25796
25797 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25798
25799 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25800 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25801
25802 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25803 Don't call next handler.
25804 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25805 Remove argument. Install handler to application.
25806 (set_frame_menubar): Don't change deep_p.
25807 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25808 FRAME_OUTER_TO_INNER_DIFF_Y.
25809 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25810 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25811 [HAVE_DIALOGS]: New macros.
25812 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25813 Use them.
25814 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25815
25816 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25817 init_service_handler. All callers changed. Return OSStatus value.
25818
25819 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25820 All callers changed so as not to call SetPortWindowPort.
25821 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25822 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25823 mac_draw_string_common.
25824 (mac_draw_image_string_qd): Likewise.
25825 (mac_draw_string_common): Use them. Add INLINE.
25826 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25827 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25828 GetGlobalMouse.
25829 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25830 and FRAME_OUTER_TO_INNER_DIFF_Y.
25831 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25832 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25833 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25834 repositioning window to mac_handle_window_event.
25835 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25836 saving window location to mac_handle_window_event
25837 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25838 (install_menu_target_item_handler): Remove argument in extern.
25839 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25840 Also accept command events.
25841 (do_keystroke): New function created from XTread_socket.
25842 (init_command_handler): Remove functions.
25843 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25844 and save window location by kEventWindowShowing and kEventWindowHiding
25845 handlers here. Don't call next handler for window state change and
25846 focus events.
25847 (mac_handle_application_event, mac_handle_keyboard_event)
25848 [TARGET_API_MAC_CARBON]: New functions.
25849 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25850 kEventWindowShowing and kEventWindowHiding events. Move installation
25851 of mouse, font, text input and menu target item handlers to
25852 install_application_handler.
25853 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25854 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25855 New function.
25856 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25857 Register it.
25858 (XTread_socket) [TARGET_API_MAC_CARBON]:
25859 Consolidate SendEventToEventTarget calls.
25860 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25861 Move application activation handler to mac_handle_application_event.
25862 Move keyboard handler to mac_handle_keyboard_event.
25863 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25864 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25865 init_command_handler. Call install_application_handler.
25866
25867 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25868 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25869
258702007-06-07 Glenn Morris <rgm@gnu.org>
25871
25872 * emacs.c (main): Use `emacs-copyright' in --version output.
25873
258742007-06-06 Chong Yidong <cyd@stupidchicken.com>
25875
25876 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25877
258782007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25879
25880 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25881
25882 * macgui.h: Replace WindowPtr with WindowRef.
25883
25884 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25885 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25886 Replace ControlHandle with ControlRef.
25887 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25888
25889 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25890 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25891 Replace ControlHandle with ControlRef.
25892 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25893 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25894
25895 * macterm.h (struct scroll_bar): Rename member control_handle_low
25896 and control_handle_high to control_ref_low and control_ref_high.
25897 All uses changed.
25898 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25899 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25900 respectively. All uses changed.
25901 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25902 (install_window_handler, remove_window_handler): Replace WindowPtr
25903 with WindowRef in externs.
25904
259052007-06-05 Juanma Barranquero <lekktu@gmail.com>
25906
25907 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25908
259092007-06-03 Nick Roberts <nickrob@snap.net.nz>
25910
25911 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25912
25913 * frame.c (Fmouse_position, Fmouse_pixel_position):
25914 Condition on HAVE_GPM too.
25915
25916 * term.c (term_mouse_highlight): Remove unused variables.
25917 (Fterm_open_connection): Set gpm_zerobased to 1.
25918 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25919 Use zero based co-ordinates.
25920 (handle_one_term_event): Report a drag as mouse movement too.
25921
25922 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25923
259242007-06-03 Chong Yidong <cyd@stupidchicken.com>
25925
25926 * image.c (search_image_cache): New function. Require background
25927 color match if background color is unspecified in the image spec.
25928 (uncache_image, lookup_image): Use it.
25929
259302007-06-01 Juanma Barranquero <lekktu@gmail.com>
25931
25932 * window.c (Fshrink_window): Reflow docstring.
25933
259342007-06-02 Chong Yidong <cyd@stupidchicken.com>
25935
25936 * Version 22.1 released.
25937
259382007-06-01 Richard Stallman <rms@gnu.org>
25939
25940 * xfns.c (x_encode_text): Add GCPRO.
25941
259422007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25943
25944 * xfns.c (x_set_name_internal): Save encoded name before
25945 x_encode_text in case string data is relocated.
25946
259472007-05-31 Richard Stallman <rms@gnu.org>
25948
25949 * buffer.c (syms_of_buffer): Doc fix.
25950
259512007-05-30 Nick Roberts <nickrob@snap.net.nz>
25952
25953 * sysdep.c (init_sys_modes): Add rather than replace with
25954 O_NONBLOCK.
25955
25956 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25957 term_mouse_moveto.
25958
25959 * termhooks.h (term_mouse_moveto): New extern.
25960
25961 * term.c (mouse_face_window): Rename...
25962 (Qmouse_face_window): ...to this.
25963 (term_show_mouse_face, term_clear_mouse_face)
25964 (term_mouse_highlight): Use Qmouse_face_window.
25965 (term_mouse_moveto): New function.
25966 (term_mouse_position): Make it work.
25967 (syms_of_term): Uncomment assignment to mouse_position_hook.
25968 Staticpro Qmouse_face_window.
25969
259702007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25971
25972 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25973 around current_column call.
25974
259752007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25976
25977 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25978 * xdisp.c (next_element_from_buffer):
25979 * window.c (delete_window):
25980 * term.c (term_mouse_highlight):
25981 * msdos.c (getdefdir):
25982 * macterm.c (mac_create_bitmap_from_bitmap_data)
25983 (init_font_name_table):
25984 * fns.c (Fsxhash):
25985 * data.c (Fmake_local_variable):
25986 * ccl.c (ccl_driver): Likewise.
25987
259882007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25989
25990 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25991 Call mac_wakeup_from_rne on window size change.
25992
259932007-05-25 Chong Yidong <cyd@stupidchicken.com>
25994
25995 * image.c (uncache_image): Fix typo.
25996
259972007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25998
25999 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26000
260012007-05-22 Richard Stallman <rms@gnu.org>
26002
26003 * xterm.c (x_connection_closed): Remove NO_RETURN.
26004
260052007-05-22 Martin Rudalics <rudalics@gmx.at>
26006
26007 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26008
260092007-05-21 Chong Yidong <cyd@stupidchicken.com>
26010
26011 * image.c (uncache_image): New function.
26012 (Fimage_refresh): New function.
26013
260142007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26015
26016 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26017
260182007-05-20 Nick Roberts <nickrob@snap.net.nz>
26019
26020 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26021 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26022
260232007-05-20 Nick Roberts <nickrob@snap.net.nz>
26024
26025 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26026 conditional on [HAVE_GPM_H].
26027
260282007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26029
26030 * syntax.c (skip_chars): Update syntax-table only after we checked that
26031 the new location is valid.
26032
260332007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26034
26035 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26036 mac_get_window_bounds.
26037
260382007-05-20 Nick Roberts <nickrob@snap.net.nz>
26039
26040 * Makefile.in (LIBGPM): Allow it to be set from configure.
26041 If set then link Emacs with it.
26042
26043 * config.in: Regenerate.
26044
26045 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26046 New externs.
26047
26048 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26049 Include gpm.h.
26050 (handle_one_term_event, term_gpm): New externs.
26051
26052 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26053 and allow it to be interrupted by SIGIO.
26054
26055 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26056 (wait_reading_process_output): Wait on gpm_fd too.
26057 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26058 (add_gpm_wait_descriptor_called_flag): New variable.
26059 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26060
26061 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26062 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26063 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26064 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26065 (make_lispy_event): Add case GPM_CLICK_EVENT.
26066 (read_avail_input): Handle mouse input.
26067
26068 * term.c (write_glyphs_with_face): New function.
26069 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26070 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26071 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26072 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26073 (last_mouse_x, last_mouse_y): New variables.
26074 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26075 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26076 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26077 (Fterm_close_connection): New functions.
26078 (term_init): Initialise mouse_face_window.
26079
260802007-05-19 Chong Yidong <cyd@stupidchicken.com>
26081
26082 * xdisp.c (redisplay_window): If first window line is a
26083 continuation line, recompute the new window start instead of
26084 recentering.
26085
260862007-05-18 Glenn Morris <rgm@gnu.org>
26087
26088 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26089 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26090
260912007-05-17 Glenn Morris <rgm@gnu.org>
26092
26093 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26094
260952007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26096
26097 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26098 dead key repeat and up events.
26099
261002007-05-14 Chong Yidong <cyd@stupidchicken.com>
26101
26102 * image.c (pbm_load): Check image size for monochrome pbm.
26103
261042007-05-13 Chong Yidong <cyd@stupidchicken.com>
26105
26106 * xterm.c (XTread_socket): Revert last change.
26107
261082007-05-12 Chong Yidong <cyd@stupidchicken.com>
26109
26110 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26111
26112 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26113
261142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26115
26116 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26117 mixup (YAILOM).
26118
261192007-05-07 Andreas Schwab <schwab@suse.de>
26120
26121 * keymap.c (Flookup_key): Fix typo in last change.
26122
261232007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26124
26125 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26126 mapping for unibyte strings.
26127
261282007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26129
26130 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26131 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26132
261332007-04-29 Richard Stallman <rms@gnu.org>
26134
26135 * insdel.c (replace_range): For undo, record insertion first.
26136
261372007-04-29 Andreas Schwab <schwab@suse.de>
26138
26139 * lisp.h (VECSIZE): Use OFFSETOF.
26140
261412007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26142
26143 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26144 disabled lines.
26145
261462007-04-28 Richard Stallman <rms@gnu.org>
26147
26148 * lread.c (read_escape): In a string, \s is always space.
26149
261502007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26151
26152 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26153
26154 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26155 submenu for menu bar items.
26156
26157See ChangeLog.10 for earlier changes.
26158
26159;; Local Variables:
26160;; coding: utf-8
26161;; add-log-time-zone-rule: t
aac0c6e3
MR
26162;; End:
26163
e3eb1dae 26164 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26165
26166 This file is part of GNU Emacs.
26167
26168 GNU Emacs is free software: you can redistribute it and/or modify
26169 it under the terms of the GNU General Public License as published by
26170 the Free Software Foundation, either version 3 of the License, or
26171 (at your option) any later version.
26172
26173 GNU Emacs is distributed in the hope that it will be useful,
26174 but WITHOUT ANY WARRANTY; without even the implied warranty of
26175 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26176 GNU General Public License for more details.
26177
26178 You should have received a copy of the GNU General Public License
26179 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26180
26181;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40