xdisp.c (display_line): Fix a typo in a comment.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
cb4545ad
EZ
12010-08-06 Eli Zaretskii <eliz@gnu.org>
2
3 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4
5 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6
7 * .gdbinit (pgx): Display the avoid_cursor_p flag.
8
da7e2be6
JB
92010-08-06 Juanma Barranquero <lekktu@gmail.com>
10
11 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
12
3d608a86
J
132010-08-06 Jan Djärv <jan.h.d@swipnet.se>
14
7908fb60
J
15 * xterm.h (x_get_focus_frame): Declare.
16
17 * keyboard.h (poll_for_input_1): Unconditionally declare.
18
4094bf36
J
19 * nsterm.h (x_set_menu_bar_lines): Declare.
20
21 * window.c: Don't include menu.h, it depends on lots of other .h-files.
22
3d608a86
J
23 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
24
25 * window.c: Include menu.h.
26
27 * unexmacosx.c (print_region_list, print_regions)
28 (build_region_list, find_emacs_zone_regions)
29 (unexec_regions_merge, read_load_commands, dump_it)
30 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
31
32 * term.c: Check HAVE_SYS_IOCTL_H.
33
686b968e 34 * sysdep.c: Check HAVE_TERM_H.
3d608a86 35
686b968e 36 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
37
38 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
39 (ns_ring_bell, ns_defined_color, hide_hourglass)
40 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
41 Convert to ANSI C prototypes.
42 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
43 before code.
44
45 * nsterm.h : Include sysselect.h.
46 (x_sync, x_get_focus_frame, x_set_mouse_position)
47 (x_set_mouse_pixel_position, x_make_frame_visible)
48 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
49 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
50 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
51 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 52 Declare.
3d608a86
J
53
54 * nsmenu.m (popup_activated, name_is_separator)
55 (syms_of_nsmenu): Convert to ANSI C prototypes.
56 (runMenuAt): Prototypes and move declarations before code.
57
58 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
59
60 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
61 prototypes.
62
63 * nsfns.m (have_menus_p, ns_display_info_for_name)
64 (x_set_cursor_type, ns_appkit_version_str)
65 (ns_appkit_version_int, ns_do_applescript)
66 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
67 (syms_of_nsfns): Convert to ANSI C prototypes.
68
69 * menu.h (x_set_menu_bar_line): Declare.
70 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
71
72 * lisp.h (fmod_float): Declare.
73
74 * image.c (xpm_scan, xpm_make_color_table_v)
75 (xpm_put_color_table_v, xpm_get_color_table_v)
76 (xpm_make_color_table_h, xpm_put_color_table_h)
77 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
78 (xpm_load): Convert to ANSI C prototypes.
79
80 * emacs.c: Include nsterm.h if HAVE_NS.
81
82 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
83
fce70521
DN
842010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
85
86 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
87 subprocesses, only MSDOS does not define HAVE_SOCKETS.
88 (socket_options): Use const char* for name.
89
a11889ab
JB
902010-08-06 Juanma Barranquero <lekktu@gmail.com>
91
92 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
93
94 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
95 Don't declare xmalloc_widget_value and digest_single_submenu.
96
97 * w32font.c (Qlatin): Remove declaration.
98
99 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
100
c95b508f 101 * dired.c (compile_pattern): Restore declaration.
a11889ab 102
6254cdda
DN
1032010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
104
04bab72c
DN
105 Remove extern declarations in .c files, .h files have them.
106 * data.c:
107 * dired.c:
108 * editfns.c:
109 * filelock.c:
110 * fns.c:
111 * font.c:
112 * fontset.c:
113 * frame.c:
114 * fringe.c:
115 * ftfont.c:
116 * gtkutil.c:
117 * indent.c:
118 * keyboard.c:
119 * keymap.c:
120 * lread.c:
121 * menu.c:
122 * print.c:
123 * search.c:
124 * sound.c:
125 * window.c:
126 * xdisp.c:
127 * xfaces.c:
128 * xfns.c:
129 * xfont.c:
130 * xftfont.c:
131 * xmenu.c:
132 * xterm.c: Remove declarations.
133
dff94ed5
DN
134 Cleanup syssignal.h.
135 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
136 (main_thread): Move down to remove #ifdef.
137 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
138 Remove conditional definition following unconditional ones.
139
99f3388e
DN
140 * lisp.h: Remove HAVE_SHM code, unused.
141 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
142 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
143 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
144 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
145 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
146 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
147 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
148 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
149 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
150 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
151 (Qwindow_scroll_functions, Vafter_load_alist)
152 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
153 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
154 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
155 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
156 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
157 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
158 (initial_argv, last_nonmenu_event, load_in_progress)
159 (noninteractive_need_newline, scroll_margin): Add declarations.
160
161 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
162 declarations, menu.h has them.
163 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
164 (Vinput_method_function, Qinput_method_function)
165 (Qevent_symbol_element_mask, last_event_timestamp):
166 * dispextern.h (Voverflow_newline_into_fringe):
167 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
168 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
169 (syms_of_w32font, syms_of_nsfont):
170 * fontset.h (find_font_encoding, Qlatin):
171 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
172 (Vtool_bar_mode, set_frame_menubar):
173 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
174 * xterm.h (Qx_gtk_map_stock):
175 * keymap.h (meta_prefix_char): Add declarations.
176
9f5dd6f2
DN
177 * term.c: Remove dead code.
178
6254cdda
DN
179 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
180 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
181 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
182 which is what was there before BSD_PGRPS was removed.
183
29cf3e20
EZ
1842010-08-05 Eli Zaretskii <eliz@gnu.org>
185
186 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
187
188 * unexcoff.c: Renamed from unexec.c.
189
aaa0a19a
SM
1902010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
191
192 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
193
8d1d9587
JB
1942010-08-03 Johan Bockgård <bojohan@gnu.org>
195
196 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 197 (Bug#6744)
8d1d9587 198
9a747ba6
JD
1992010-08-02 Jan Djärv <jan.h.d@swipnet.se>
200
4d464ae4
JD
201 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
202 to TRUE if depth of screen is < 16.
203
ac01763e
JD
204 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
205 USE_GTK_TOOLTIP.
e0d62a9b
JB
206 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
207 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 208 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
209 USE_GTK_TOOLTIP.
210 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
211
212 * xterm.h (USE_GTK_TOOLTIP): New define.
213 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
214
9a747ba6
JD
215 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
216 to Control-D (Bug#6771).
217
7b0815ba
JB
2182010-08-02 Juanma Barranquero <lekktu@gmail.com>
219
220 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
221 Wording by Drew Adams <drew.adams@oracle.com>.
222
aa1859f5
J
2232010-08-01 Jan Djärv <jan.h.d@swipnet.se>
224
225 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
226 ttip_lbl.
227
228 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
229 calling gtk_widget_queue_draw.
230 (x_free_frame_resources): Call xg_free_frame_widgets.
231
232 * xfns.c (x_gtk_use_system_tooltips): New variable.
233 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
234 new gtkutil tooltip functions to show the tooltip.
235 (Fx_hide_tip): Call xg_hide_tooltip.
236 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
237
238 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
239 (xg_show_tooltip, xg_hide_tooltip): Declare.
240
241 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
242 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
243 New functions.
aa1859f5
J
244 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
245 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
246 Remove code that is commented out.
247
76417ef4
SM
2482010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
249
250 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
251
16041401
CY
2522010-07-31 Chong Yidong <cyd@stupidchicken.com>
253
254 * xselect.c (x_own_selection): Use list4.
255
2c09a58f
DN
2562010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
257
258 * buffer.c (Qwindow): Do not define, already defined in data.c.
259 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
260
59df9fdd 2612010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 262
59df9fdd
JB
263 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
264 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
265 * config.in: Undef HAVE_DIRENT_H.
1c97e857 266 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 267 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 268
1b231651
DN
2692010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
270
271 Rename s/usg5-4.h -> s/usg5-4-common.h.
272 * s/usg5-4.h: Rename file to ...
273 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
274 * s/unixware.h:
275 * s/sol2-6.h:
276 * s/irix6-5.h: Update includes accordingly.
277
bfeabdc3
JD
2782010-07-29 Jan Djärv <jan.h.d@swipnet.se>
279
2ebf1083
J
280 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
281
bfeabdc3 282 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
283 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
284 Remove toolbar_height.
285 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
286 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
287 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
288 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
289
290 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
291
292 * xfns.c (x_set_tool_bar_position): New function.
293 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
294 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 295 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
296
297 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
298 and FRAME_TOOLBAR_LEFT_WIDTH.
299
300 * gtkutil.h (xg_change_toolbar_position): Declare.
301
302 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
303 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
304 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
305 (xg_create_frame_widgets): Create a hobox for placing widgets
306 vertically. Use gtk_box_pack_start.
307 (xg_height_or_width_changed): Renamed from xg_height_changed.
308 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
309 (xg_update_frame_menubar, free_frame_menubar): Change to
310 xg_height_or_width_changed.
311 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
312 size correctly. Remove hardcoded 4, instead use handlebox size -
313 toolbar size.
314 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 315 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
316 (xg_pack_tool_bar): POS is a new parameter.
317 Set orientation of tool bar based on pos.
318 Only make handlebox_widget if NULL.
319 Check if tool bar goes to vbox or hbox depending on pos.
320 (xg_update_tool_bar_sizes): New function.
686b968e 321 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
322 height, call xg_update_tool_bar_sizes instead.
323 (free_frame_tool_bar): Remove from hbox or vbox depending on
324 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
325 (xg_change_toolbar_position): New function.
326
327 * frame.h (struct frame): Add tool_bar_position.
328 (Qbottom): Declare.
329
330 * frame.c (Qtool_bar_position): New variable.
331 (make_frame): Set tool_bar_position to Qtop.
332 (frame_parms): Add tool-bar-position.
333 (x_report_frame_params): Store tool_bar_position.
334 (x_set_fringe_width): Reset wm size hint after fringe changes.
335
26469a38
DN
3362010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
337
338 Make lisp_time_argument declaration work on all systems.
339 * lisp.h (lisp_time_argument): Move declaration ...
340 * systime.h (lisp_time_argument): ... here
341 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
342
8848b728
JD
3432010-07-29 Jan Djärv <jan.h.d@swipnet.se>
344
345 * vm-limit.c (POINTER): Add typedef for it.
346 (start_of_data): Change return type from POINTER to char *.
347
348 * frame.h (Qtty_color_mode): Move declaration out of ifdef
349 HAVE_WINDOW_SYSTEM.
350
76fd1ee9
DN
3512010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
352
0441987e
DN
353 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
354 Remove reference to __osf__, unused.
355
56a000c7
DN
356 * mem-limits.h: Remove duplicated includes.
357 (NULL): Remove definition, unused.
358 (POINTER): Remove definition.
359 (start_of_data): Use char* in prototype, as the function
360 definition does.
361
e6cba650
DN
362 Remove extern declarations from .c files, and them to .h files.
363 * keyboard.h (Qhelp_echo, waiting_for_input)
364 (input_available_clear_time, ignore_mouse_drag_p)
365 (Vdouble_click_time, real_this_command, Vthis_original_command):
366 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
367 (Voverriding_local_map_menu_flag):
368 * lisp.h (Qinteractive_form, use_file_dialog)
369 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
370 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
371 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
372 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
373 (Qfunction, debug_on_next_call, Qfield)
374 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
375 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
376 (Qfile_directory_p, Qinsert_file_contents)
377 (Qcompletion_ignore_case, Qcompletion_ignore_case)
378 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
379 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
380 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
381 (Qminibuffer_prompt)
382 (Vtemporary_file_directory,char_ins_del_vector, Qface):
383 * xterm.h (gray_bitmap_width, gray_bitmap_height)
384 (gray_bitmap_bits, xic_create_fontsetname):
385 * coding.h (Vtranslation_table_for_input): Add extern declarations.
386
387 * xsmfns.c (Vuser_login_name):
388 * xrdb.c (Vdouble_click_time):
389 * xfaces.c (xic_create_fontsetname):
390 * w32select.c (waiting_for_input):
391 * print.c (minibuffer_auto_raise):
392 * msdos.c (Qhelp_echo):
393 * macros.c (real_this_command):
394 * keymap.c (Voverriding_local_map):
395 * xterm.c (poll_for_input_1, gray_bitmap_width)
396 (gray_bitmap_height, gray_bitmap_bits;
397 * xmenu.c ( Voverriding_local_map)
398 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
399 (use_file_dialog, Xt_app_con):
400 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
401 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
402 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
403 (Qtool_bar_lines, ignore_mouse_drag_p):
404 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
405 (Qrear_nonsticky, nconc2):
406 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
407 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
408 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
409 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
410 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
411 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
412 (gc_in_progress):
413 * doc.c (Voverriding_local_map, Qremap):
414 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
415 (Vcompletion_regexp_list):
416 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
417 (Qcompletion_ignore_case):
418 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
419 (Vhistory_length, Vthis_original_command, real_this_command)
420 (Qface, Qminibuffer_prompt, history_delete_duplicates):
421 * image.c (Qrisky_local_variable):
422 * fontset.c (QCname):
423 * fns.c (minibuffer_auto_raise, QCname):
424 * dispnew.c (char_ins_del_cost):
425 * composite.c (font_fill_lglyph_metrics):
426 * cmds.c (Qface, Vtranslation_table_for_input):
427 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
428 * ccl.c (charset_unicode):
429 * callproc.c (Vtemporary_file_directory):
430 * buffer.c (emacs_strerror): Remove extern declarations.
431
432 * data.c (Qwindow): Make non-static, used from other files too.
433 * frame.c (validate_x_resource_name): Remove shadow definition for i.
434
76fd1ee9
DN
435 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
436 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
437 * s/usg5-4.h (COFF):
438 * s/template.h:
439 * s/msdos.h (COFF, NO_REMAP):
440 * s/ms-w32.h (NO_REMAP):
441 * s/hpux10-20.h (NO_REMAP):
442 * m/sparc.h (SEGMENT_MASK):
443 * m/m68k.h (NO_REMAP):
444 * m/intel386.h (SEGMENT_MASK):
445 * m/arm.h (NO_REMAP):
446 * m/alpha.h (COFF):
447 * m/template.h: Remove references to unused defines.
448
8a52f00a
JD
4492010-07-28 Jan Djärv <jan.h.d@swipnet.se>
450
451 * xsettings.c (Ftool_bar_get_system_style): Also check for
452 Qtext_image_horiz.
453
454 * xdisp.c (Qtext_image_horiz): Define.
455 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 456 to documentation of tool-bar-style.
8a52f00a
JD
457
458 * lisp.h (Qtext_image_horiz): Declare.
459
460 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
461 style text_image_horiz.
462
89dc303e
DN
4632010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
464
60799703
DN
465 * emacs.c (Fkill_emacs): Remove return statement.
466
37254dc1
DN
467 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
468 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
469 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
470 local extern declarations.
471
71c7345a
DN
472 * xmenu.c: Do not included lwlib.h, not needed.
473
6ba577cb
DN
474 * m/iris4d.h (XUINT, XSET): Remove, not needed.
475
fdb183d6
DN
476 * process.c: Move definitions earlier to minimize #ifdefs.
477
478 * xterm.h (x_get_customization_string, x_load_resources)
479 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
480 (x_check_errors, x_property_data_to_lisp, defined_color)
481 (xic_set_xfontset, x_defined_color): Use const.
482
483 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
484 (x_text_icon, x_check_errors, x_connection_closed): Use const.
485
486 * xselect.c (selection_data_to_lisp_data)
487 (x_property_data_to_lisp):
488 * xrdb.c (x_get_string_resource, file_p)
489 (x_get_customization_string, magic_file_p, search_magic_path)
490 (get_system_app, get_user_app, x_load_resources, x_get_resource)
491 (x_get_string_resource): Use const.
492
493 * xfns.c: Include xlwmenu.h when USE_LUCID.
494 (x_defined_color, xic_set_xfontset): Use const.
495 (Fx_hide_tip): Remove local extern declaration.
496
497 * xfaces.c (Qmouse_face): Remove declaration.
498 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 499 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
500
501 * xdisp.c (do_mouse_tracking): Remove declaration.
502 (add_to_log): Use const.
503
504 * minibuf.c (Qmouse_face): Remove declaration.
505
506 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
507
508 * keyboard.h (do_mouse_tracking): Add declaration.
509
510 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
511 (QCdata, QCtype, Qcenter): Remove declarations.
512
513 * frame.c (x_get_resource_string, x_get_string_resource)
514 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
515 (x_default_parameter): Use const.
516
517 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
518 (QCheight, QCsize, QCname): Remove declarations.
519
520 * emacs.c (main): Remove local extern declaration.
521
522 * editfns.c (region_limit, syms_of_editfns): Remove local extern
523 declarations.
524
525 * dispnew.c: Remove duplicate #include <unistd.h>.
526 (update_window, update_frame_1, init_display): Remove local extern
527 declarations.
528
529 * dispextern.h (add_to_log): Remove declaration.
530 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
531 (x_frame_get_and_record_arg, x_default_parameter): Add const.
532
533 * dired.c (scmp): Add const.
534 (directory_files_internal): Remove local extern declaration.
535
536 * data.c (Finteractive_form): Use const.
537
538 * composite.c (syms_of_composite): Remove local extern declarations.
539
540 * charset.c (add_to_log): Remove declaration.
541
542 * character.c (strwidth, parse_str_to_multibyte): Add const.
543
544 * character.h (strwidth, parse_str_to_multibyte): Likewise.
545
546 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
547
89dc303e 548 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
549 (Lisp_Subr): Make doc and intspec constant.
550 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
551 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
552 (QCheight, QCsize, QCname, QCwidth, QCforeground)
553 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
554 (display_arg): Add declarations.
89dc303e 555
0ed082fe 5562010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
557
558 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
559
0ed082fe
JB
560 * window.c (Fwindow_height): Doc fix (bug#6518).
561
5622010-07-27 Juanma Barranquero <lekktu@gmail.com>
563
564 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
565
ccaf0336
DN
5662010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
567
977105dc
DN
568 * keyboard.c (Ftop_level, Fexit_recursive_edit)
569 (Fabort_recursive_edit): Remove return statements in NO_RETURN
570 functions.
571
f5ada890
DN
572 * frame.h (Qtty_color_mode): Add declaration.
573
ccaf0336
DN
574 * lisp.h (Ftop_level, Fexit_recursive_edit)
575 (Fabort_recursive_edit): Mark as NO_RETURN.
576
dfe3c90f
KH
5772010-07-26 Kenichi Handa <handa@m17n.org>
578
579 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 580 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 581
7d383292
JB
5822010-07-26 Juanma Barranquero <lekktu@gmail.com>
583
584 * lread.c (unreadpure, mapatoms_1): Make static.
585
da31e629
JB
5862010-07-25 Juanma Barranquero <lekktu@gmail.com>
587
588 * terminfo.c (tparam): Fix prototype of tparm.
589
7bfa6d77
AS
5902010-07-25 Andreas Schwab <schwab@linux-m68k.org>
591
dcc19aac
AS
592 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
593 find start of text segment.
594 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
595 is defined.
596
7bfa6d77
AS
597 * callproc.c (set_initial_environment): Avoid unbalanced braces.
598
63f9a672
KB
5992010-07-25 Ken Brown <kbrown@cornell.edu>
600
601 * vm-limit.c (check_memory_limits): Fix previous change;
602 accidentally reverted an earlier change.
603
24933075
KB
6042010-07-25 Ken Brown <kbrown@cornell.edu>
605
606 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
607 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
608
361358ea
JB
6092010-07-25 Juanma Barranquero <lekktu@gmail.com>
610
611 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
612 * dired.c (opendir, readdir): Fix prototypes.
613 * editfns.c (w32_get_internal_run_time): Fix prototypes.
614 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
615 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
616 (telldir): Remove declaration.
617 * ralloc.c (real_morecore, __morecore): Fix prototypes.
618 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
619 * syssignal.h (strsignal): Fix prototype.
620 * term.c (tparam): Fix prototype.
621 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
622 (term_get_fkeys): Set inside "#ifndef DOS_NT".
623 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
624 and __morecore.
625 * w32gui.h (XParseGeometry): Fix prototype.
626 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
627 * w32term.c (my_set_focus): Declare inside #if 0.
628 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
629 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
630 (drain_message_queue, get_next_msg, post_msg, parse_button)
631 (ClipboardSequence_Proc): Fix prototypes.
632 (wait_for_sync): Remove declaration.
633
630b9592
JB
6342010-07-24 Juanma Barranquero <lekktu@gmail.com>
635
636 * w32fns.c (w32_to_x_color): Remove, unused.
637
6a0d6611
AS
6382010-07-24 Andreas Schwab <schwab@linux-m68k.org>
639
640 * lisp.h: Remove leftover P_.
641
4e8608ff
DN
6422010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
643
644 * ecrt0.c, unexalpha.c: Remove files, unused.
645
c8197983
AS
6462010-07-24 Andreas Schwab <schwab@linux-m68k.org>
647
648 * cmds.c (internal_self_insert): Make static.
649 * lisp.h (internal_self_insert): Remove declaration.
650
97b372d7
JB
6512010-07-23 Juanma Barranquero <lekktu@gmail.com>
652
33ac0414
JB
653 * alloc.c (free_float):
654 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
655 * frame.c (delete_frame_handler):
656 * ralloc.c (reorder_bloc):
657 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
658 Remove unused static functions.
659
94da8397
JB
660 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
661 it is called only from NS code.
662
2e6c8532
JB
663 * w32term.c (my_set_focus): #ifdef away; it is called only from
664 "#ifdef 0" code.
665
97b372d7
JB
666 * w32fns.c (x_edge_detection):
667 * xfaces.c (may_use_scalable_font_p):
668 Remove obsolete static declarations.
669
7c3320d8
JB
6702010-07-20 Juanma Barranquero <lekktu@gmail.com>
671
672 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
673 (emacs_blocked_realloc, uninterrupt_malloc):
674 * fringe.c (w32_reset_fringes):
675 * image.c (convert_mono_to_color_image, lookup_rgb_color)
676 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
677 * sound.c (be2hs, do_play_sound):
678 * vm-limit.c (get_lim_data, ret_lim_data):
679 * w32term.c (x_free_frame_resources):
680 * xfaces.c (x_create_gc, x_free_gc):
681 Convert definitions to standard C.
682
d5273788
SM
6832010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * eval.c (Feval, Ffuncall): Use the new names.
686
687 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
688 (DEFUN): Add braces around the union initialisation and use ## to
689 specify the right union alternative and avoid a cast.
690
8d16a259
JB
6912010-07-18 Juanma Barranquero <lekktu@gmail.com>
692
693 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
694
3b8eff32
CY
6952010-07-17 Chong Yidong <cyd@stupidchicken.com>
696
697 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
698
499322ce
J
6992010-07-17 Jan Djärv <jan.h.d@swipnet.se>
700
701 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
702 is related to the menu bar (Bug#6499).
a628ad9d 703 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 704
f6003da5 7052010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
706
707 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
708
709 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
710
711 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
712 i.e. don't put back ButtonRelease (Bug#6608).
713
714 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
715 instead of Window. Call xg_event_is_for_menubar when
716 USE_GTK (Bug#6499).
717
718 * gtkutil.h (xg_event_is_for_menubar): Declare.
719
720 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
721
f6003da5 7222010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
723
724 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
725 when it's the same as the old foreground. (Bug#6609)
726
23243f29
J
7272010-07-16 Jan Djärv <jan.h.d@swipnet.se>
728
729 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
730 widget is non-null (Bug#6645).
731
2b23d2a6
AS
7322010-07-15 Andreas Schwab <schwab@linux-m68k.org>
733
01b564ff
AS
734 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
735 Convert old-style definition.
736
2b23d2a6
AS
737 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
738 timestamp argument.
739
c4affd2c
EZ
7402010-07-15 Eli Zaretskii <eliz@gnu.org>
741
742 * fringe.c (update_window_fringes): Restore mistakenly reverted
743 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
744
cf28cebc
J
7452010-07-14 Jan Djärv <jan.h.d@swipnet.se>
746
747 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
748 (SET_SAVED_KEY_EVENT): Remove (not used).
749 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
750 remove size parameter.
751 (handle_one_xevent): Check popup_activated () for menu for Xt also.
752 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
753 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
754 ButtonRelease.
6b2c4bd9
J
755 (x_set_window_size_1): scroll_bar_actual_width is always
756 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
757
758 * xdisp.c (pending_menu_activation): Remove extern declaration.
759 (prepare_menu_bars): Remove setting of pending_menu_activation.
760
761 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
762 (x_activate_menubar): Set popup_activated_flag for Xt also.
763 Remove setting of pending_menu_activation.
cf28cebc
J
764 (set_frame_menubar): Remove check of pending_menu_activation.
765 Declare menubar_size before code. Correct spelling in comment.
766
f6c1c771
KH
7672010-07-14 Kenichi Handa <handa@m17n.org>
768
769 * font.c (font_open_entity): Cancel previous change.
770 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
771
20477505
EZ
7722010-07-13 Eli Zaretskii <eliz@gnu.org>
773
77defa9a
EZ
774 Remove subprocesses #ifdefs.
775 * process.c <inhibit_sentinels>: Move to the common part.
776 (Fwaiting_for_user_input_p): Move to the common part; return nil
777 if async subprocesses aren't supported.
778 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
779 MS-DOS. Remove "#ifdef subprocesses".
780 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
781 (gettimeofday): Remove "#ifdef subprocesses".
782 (wait_without_blocking): Remove function.
783 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
784 Remove "#ifdef subprocesses".
785 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
786 compiled on MS-DOS.
787 * callproc.c (Fcall_process) [!MSDOS]: Don't call
788 wait_for_termination on MS-DOS.
789 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
790 initialization of inhibit_sentinels.
791 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
792 subprocesses" conditional.
793 * callproc.c (Fcall_process) [!subprocesses]: Don't call
794 wait_for_termination, since `buffer' cannot be an integer when
795 async subprocesses are not supported
796 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
797 for ifdefing away the call to Fprocess_status.
798
20477505
EZ
799 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
800 away the entire body of the function.
801
b3ffc17c
DN
8022010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
803
01faa934
DN
804 Remove subprocesses #ifdefs from term.c.
805 * process.c (add_keyboard_wait_descriptor)
806 (delete_keyboard_wait_descriptor): Move to common section, do
807 nothing when subprocesses is not defined.
a628ad9d
JB
808 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
809 Remove subprocesses #ifdefs.
01faa934 810
b3ffc17c
DN
811 Convert maybe_fatal to standard C.
812 * lisp.h (verror): Declare.
813 * eval.c (verror): New function containing the code from ...
814 (error): ... this. Call verror.
815 * term.c (vfatal): New function containing the code from ...
816 (fatal): ... this. Call vfatal.
817 (maybe_fatal): Convert to standard C, use variable number of
818 arguments. Declare as non-return.
819 (init_tty): Fix maybe_fatal call.
820
0521f580
DN
8212010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
822
823 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
824 (_scroll_bar_note_movement): Convert definitions to standard C.
825 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
826 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
827
ebd15611
DN
8282010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
829
830 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
831 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
832 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
833 (xaw_jump_callback, xaw_scroll_callback)
834 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
835 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
836 definitions to standard C.
837 * xmenu.c (menubar_id_to_frame, popup_get_selection)
838 (popup_activate_callback, popup_deactivate_callback)
839 (menu_highlight_callback, menubar_selection_callback)
840 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
841 (free_frame_menubar, popup_selection_callback, as)
842 (create_and_show_popup_menu, dialog_selection_callback)
843 (create_and_show_dialog):
844 * xfns.c (hack_wm_protocols, x_window):
845 * xfaces.c (x_update_menu_appearance):
846 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
847 (char_to_pixel_size, round_size_to_char, get_wm_shell)
848 (set_frame_size, update_wm_hints, setup_frame_gcs)
849 (update_various_frame_slots, update_from_various_frame_slots)
850 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
851 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
852 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
853
de06a2dd
AS
8542010-07-12 Andreas Schwab <schwab@linux-m68k.org>
855
a628ad9d 856 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 857
fc549af9
EZ
8582010-07-12 Eli Zaretskii <eliz@gnu.org>
859
860 * process.c (setup_process_coding_systems): Move to the part
861 shared by non-subprocesses systems, and make its body empty when
862 subprocesses is not defined.
863 (close_process_descs): Move to the part shared by non-subprocesses
864 systems.
1408902e
EZ
865 (wait_reading_process_output) [!subprocesses]: Convert arg list to
866 ANSI C.
fc549af9 867
d5a3eaaf
AS
8682010-07-12 Andreas Schwab <schwab@linux-m68k.org>
869
870 * editfns.c (transpose_markers): Convert old-style definition.
871 * emacs.c (abort, shut_down_emacs, fixup_locale)
872 (synchronize_system_time_locale)
873 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
874 * floatfns.c (extract_float, matherr, init_floatfns)
875 (syms_of_floatfns): Likewise.
876 * fns.c (make_hash_table): Likewise.
877 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
878 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
879 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
880 (ftfont_variation_glyphs): Likewise.
881 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
882 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
883 * lread.c (read_filtered_event): Likewise.
884 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
885 * process.c (wait_reading_process_output): Likewise.
886 * scroll.c (do_line_insertion_deletion_costs): Likewise.
887 * search.c (search_buffer, boyer_moore): Likewise.
888 * syntax.c (scan_sexps_forward): Likewise.
889 * xdisp.c (try_scrolling): Likewise.
890 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
891 (face_at_string_position): Likewise.
892 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
893 * xselect.c (x_get_window_property, receive_incremental_selection)
894 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
895 Likewise.
896 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
897
6f704c76
DN
8982010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
899
ded80a25
DN
900 * callproc.c (child_setup): Remove subprocesses conditional.
901 Remove code dealing with SET_EMACS_PRIORITY, unused.
902
49d937f4 903 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
904 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
905
906 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
907 (__do_global_dtors, __main): Use void in definition.
908 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
909 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
910 the only users from ...
911 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
912 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
913 (HAVE_VOLATILE): Remove, unused.
914
6f704c76
DN
915 Convert more function definitions to standard C.
916 * xdisp.c (window_box_edges, handle_single_display_spec)
917 (display_string): Convert definition to standard C.
918 * scroll.c (do_direct_scrolling, scrolling_1):
919 * dispnew.c (allocate_matrices_for_frame_redisplay)
920 (mirrored_line_dance):
921 * coding.c (code_convert_string):
922 * charset.c (map_charset_chars):
923 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
924 (Fregister_ccl_program, Fregister_code_conversion_map):
925 * keyboard.c (kbd_buffer_nr_stored): Likewise.
926 (head_table): Make static and const.
927
e6cfa7c3
AS
9282010-07-12 Andreas Schwab <schwab@linux-m68k.org>
929
930 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
931 (PROFILING_LDFLAGS): Set from substitution.
932 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
933 CFLAGS last.
934
892dd565
KH
9352010-07-12 Kenichi Handa <handa@m17n.org>
936
6f2cdcd1
KH
937 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
938 (shortlisp): Likewise.
939
892dd565
KH
940 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
941
942 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
943 of FONT_ENTITY_INDEX.
944 (Ffont_get): If KEY is :otf and the font-object doesn't have the
945 property, get the property value dynamically.
946 (Ffont_put): Accept font-entity and font-object too.
947 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
948 return value changed.
949 (syms_of_font): Adjusted for the above change.
950
ae96d47a
AS
9512010-07-11 Andreas Schwab <schwab@linux-m68k.org>
952
c8fc18ee
AS
953 * blockinput.h: Remove obsolete comment.
954
89887d67
AS
955 * lisp.h: Include <stddef.h>.
956 (OFFSETOF): Don't define.
957 (VECSIZE): Use offsetof instead of OFFSETOF.
958 (PSEUDOVECSIZE): Likewise.
959 * process.c (conv_sockaddr_to_lisp): Likewise.
960 * alloc.c: Don't include <stddef.h>.
961 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
962
ae96d47a
AS
963 * process.c: Remove obsolete comment.
964
635c0aa1
CY
9652010-07-11 Chong Yidong <cyd@stupidchicken.com>
966
967 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
968
a64df650
AS
9692010-07-11 Andreas Schwab <schwab@linux-m68k.org>
970
8966b757
AS
971 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
972 index, rindex.
973 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
974 * editfns.c (Fuser_full_name, Fformat): Likewise.
975 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
976 * fileio.c (Ffile_symlink_p): Likewise.
977 * filelock.c (current_lock_owner): Likewise.
978 * font.c (font_parse_name, font_parse_family_registry): Likewise.
979 * fontset.c (fontset_pattern_regexp): Likewise.
980 * lread.c (read1): Likewise.
981 * sysdep.c (init_system_name): Likewise.
982 * xfns.c (select_visual): Likewise.
983 * s/hpux10-20.h (index, rindex): Don't define.
984 * s/ms-w32.h (index): Likewise.
985 * s/usg5-4.h: Likewise.
986
cf237e27
AS
987 * callproc.c (relocate_fd): Use F_DUPFD if defined.
988
a8fe7202
AS
989 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
990 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
991 (egetenv): Likewise.
992 * doprnt.c (doprnt): Likewise.
993 * editfns.c (set_time_zone_rule, format2): Likewise.
994 * emacs.c (decode_env_path): Likewise.
995 * eval.c (signal_error, error): Likewise.
996 * insdel.c (replace_range_2): Likewise.
997 * keyboard.c (cmd_error_internal): Likewise.
998 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
999 * print.c (write_string, write_string_1, print_error_message):
1000 Likewise.
1001 * vm-limit.c (warn_function, memory_warnings): Likewise.
1002 * xdisp.c (message1, message1_nolog, message_with_string)
1003 (vmessage, message, message_nolog): Likewise.
1004 * emacs.c: Remove duplicate declaration.
1005 * keyboard.h: Likewise.
1006 * lisp.h: Update prototypes.
1007
bb8e180f
AS
1008 * eval.c: Fix indentation problem.
1009
83380e65
AS
1010 * keyboard.c: Include "process.h"
1011
a64df650
AS
1012 * eval.c: Remove obsolete noinline declaration.
1013 * fns.c: Likewise.
1014
6a8033e1
KR
10152010-07-11 Ken Raeburn <raeburn@raeburn.org>
1016
1017 * doprnt.c (doprnt): Take a va_list argument instead of count and
1018 pointer.
1019 * eval.c (error): Change to a standard-C variadic function.
1020 * xdisp.c (vmessage): Renamed from message, made static, and
1021 changed to take a va_list argument.
1022 (message): New variadic wrapper.
1023 (message_nolog): Now a variadic function, calling vmessage.
1024 * lisp.h: Include stdarg.h for va_list.
1025 (doprnt, error, message, message_nolog): Decls updated.
1026
462aa963
EZ
10272010-07-11 Eli Zaretskii <eliz@gnu.org>
1028
1029 * process.c (syms_of_process) <delete-exited-processes>: Define
1030 even if !subprocesses.
1031 (delete_exited_processes): Ditto.
1032
1033 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1034 (delete_exited_processes): Don't define.
1035
48104462
CY
10362010-07-10 Chong Yidong <cyd@stupidchicken.com>
1037
1038 * frame.c (make_frame): Initialize menu_bar_lines and
1039 tool_bar_lines members.
1040 (make_initial_frame, make_terminal_frame): Initialize
1041 menu_bar_lines using value of menu-bar-mode.
1042
1043 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1044
f388c88a
EZ
10452010-07-10 Eli Zaretskii <eliz@gnu.org>
1046
1047 * process.c: Reshuffle #include's. Condition some of the global
1048 and static variables on `subprocesses'.
1049 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1050 Leave only one implementation.
1051 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1052 (kill_buffer_processes, Flist_system_processes)
1053 (Fprocess_attributes, init_process, syms_of_process): Unify the
1054 implementations for with subprocesses and without them.
1055
723f5a07
J
10562010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1057
1058 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1059 correct size for Motif.
1060 (free_frame_menubar): Call x_set_window_size to update frame size.
1061
1062 * xfns.c (x_window): Set borderWidth to 0 for pane and
1063 EmacsFrame. Frame size calculation is wrong otherwise.
1064
2536a4b7
MA
10652010-07-09 Michael Albinus <michael.albinus@gmx.de>
1066
1067 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1068 allows to suppress errors when polling in Emacs' main loop.
1069 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1070 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1071 (Fdbus_method_error_internal, Fdbus_send_signal)
1072 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1073 (Fdbus_register_method): Use it. (Bug#6579)
1074
5842a27b
DN
10752010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1076
1077 * alloc.c: Convert DEFUNs to standard C.
1078 * buffer.c:
1079 * bytecode.c:
1080 * callint.c:
1081 * callproc.c:
1082 * casefiddle.c:
1083 * casetab.c:
1084 * category.c:
1085 * character.c:
1086 * charset.c:
1087 * chartab.c:
1088 * cmds.c:
1089 * coding.c:
1090 * composite.c:
1091 * data.c:
1092 * dbusbind.c:
1093 * dired.c:
1094 * dispnew.c:
1095 * doc.c:
1096 * dosfns.c:
1097 * editfns.c:
1098 * emacs.c:
1099 * eval.c:
1100 * fileio.c:
1101 * filelock.c:
1102 * floatfns.c:
1103 * fns.c:
1104 * font.c:
1105 * fontset.c:
1106 * frame.c:
1107 * fringe.c:
1108 * image.c:
1109 * indent.c:
1110 * insdel.c:
1111 * keyboard.c:
1112 * keymap.c:
1113 * lread.c:
1114 * macros.c:
1115 * marker.c:
1116 * menu.c:
1117 * minibuf.c:
1118 * msdos.c:
1119 * nsfns.m:
1120 * nsmenu.m:
1121 * nsselect.m:
1122 * print.c:
1123 * process.c:
1124 * search.c:
1125 * sound.c:
1126 * syntax.c:
1127 * term.c:
1128 * terminal.c:
1129 * textprop.c:
1130 * undo.c:
1131 * w16select.c:
1132 * w32console.c:
1133 * w32fns.c:
1134 * w32font.c:
1135 * w32menu.c:
1136 * w32proc.c:
1137 * w32select.c:
1138 * window.c:
1139 * xdisp.c:
1140 * xfaces.c:
1141 * xfns.c:
1142 * xmenu.c:
1143 * xselect.c:
1144 * xsettings.c:
1145 * xsmfns.c: Likewise.
1146
d568829b
EZ
11472010-07-08 Eli Zaretskii <eliz@gnu.org>
1148
1149 * process.c (kbd_is_on_hold, hold_keyboard_input)
1150 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1151
52214050
J
11522010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1153
1154 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1155 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1156 unless USE_LUCID.
1157
313d9eb2
DN
11582010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1159
a628ad9d
JB
1160 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1161 declaration.
d8825aa3 1162
295d0d8f
DN
1163 Clean up include guards.
1164 * tparam.c: Remove include guards for config.h, string.h and code
1165 that assumes #ifndef emacs.
1166 * termcap.c:
1167 * unexalpha.c:
1168 * sysdep.c:
1169 * filemode.c:
1170 * filelock.c:
1171 * bidi.c: Likewise.
1172
49d9e6b0
DN
1173 Remove prefix-args.c
1174 * prefix-args.c: Remove file.
1175 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1176 * Makefile.in (temacs${EXEEXT}): Remove references to
1177 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1178 (mostlyclean): Remove reference to prefix-args.
1179 (prefix-args): Remove.
1180
313d9eb2
DN
1181 Simplify cstart_of_data, start_of_code and related code.
1182 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1183 (start_of_data): Merge into start_of_data function.
1184 * sysdep.c (start_of_text): Remove. Move simplified versions of
1185 it in the only users: unexaix.c and unexec.c.
1186 (read_input_waiting): Remove local declaration of quit_char.
1187 (start, etext): Remove declarations.
1188 (start_of_data): Merge with the version in mem-limits.h and move
1189 to vm-limits.c.
1190 * vm-limit.c (start_of_data): Merged and simplified version of the
1191 code formerly in mem-limits.h and sysdep.c.
1192 * unexec.c (start): New declaration, moved from sysdep.c.
1193 (start_of_text): Simplified version of the code formerly in sysdep.c.
1194 * unexaix.c (start_of_text): Simplified version of the code
1195 formerly in sysdep.c.
1196 * m/alpha.h (HAVE_TEXT_START): Remove.
1197 (TEXT_START): Move ...
1198 * unexalpha.c (TEXT_START): ... here.
1199 * s/hpux10-20.h (TEXT_START): Remove.
1200 * s/darwin.h (TEXT_START):
1201 * m/mips.h (TEXT_START):
1202 * m/macppc.h (HAVE_TEXT_START):
1203 * m/m68k.h (TEXT_START):
1204 * m/iris4d.h (TEXT_START):
1205 * m/intel386.h (TEXT_START):
1206 * m/ibmrs6000.h (TEXT_START):
1207 * m/ia64.h (HAVE_TEXT_START):
1208 * s/msdos.h (TEXT_START): Likewise.
1209
72af86bd
AS
12102010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1211
1212 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1213 (overrun_check_free, xstrdup, allocate_string)
1214 (allocate_string_data, compact_small_strings, Fmake_string)
1215 (make_unibyte_string, make_multibyte_string)
1216 (make_string_from_bytes, make_specified_string, make_float)
1217 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1218 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1219 memcpy, memmove, memset, memcmp.
1220 * atimer.c (start_atimer, set_alarm): Likewise.
1221 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1222 (mmap_realloc, init_buffer_once): Likewise.
1223 * callint.c (Fcall_interactively): Likewise.
1224 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1225 (getenv_internal_1): Likewise.
1226 * casefiddle.c (casify_object): Likewise.
1227 * ccl.c (ccl_driver): Likewise.
1228 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1229 * charset.c (load_charset_map_from_file)
1230 (load_charset_map_from_file, load_charset_map_from_vector)
1231 (Fdefine_charset_internal): Likewise.
1232 * cm.c (Wcm_clear): Likewise.
1233 * coding.c (decode_eol, decode_coding_object)
1234 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1235 * data.c (Faset): Likewise.
1236 * dired.c (directory_files_internal, file_name_completion_stat):
1237 Likewise.
1238 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1239 (clear_glyph_row, copy_row_except_pointers)
1240 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1241 (save_current_matrix, restore_current_matrix)
1242 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1243 (mirror_line_dance, scrolling_window): Likewise.
1244 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1245 Likewise.
1246 * doprnt.c (doprnt): Likewise.
1247 * editfns.c (Fuser_full_name, make_buffer_string_both)
1248 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1249 * emacs.c (sort_args): Likewise.
1250 * eval.c (Fapply, Ffuncall): Likewise.
1251 * fileio.c (Ffile_name_directory, make_temp_name)
1252 (Fexpand_file_name, search_embedded_absfilename)
1253 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1254 (auto_save_error): Likewise.
1255 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1256 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1257 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1258 (Fmake_hash_table): Likewise.
1259 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1260 * ftfont.c (ftfont_text_extents): Likewise.
1261 * getloadavg.c (getloadavg): Likewise.
1262 * image.c (define_image_type, make_image, make_image_cache)
1263 (x_create_x_image_and_pixmap, xbm_image_p)
1264 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1265 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1266 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1267 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1268 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1269 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1270 Likewise.
1271 * indent.c (scan_for_column, compute_motion): Likewise.
1272 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1273 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1274 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1275 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1276 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1277 (store_user_signal_events, menu_bar_items, tool_bar_items)
1278 (process_tool_bar_item, append_tool_bar_item)
1279 (read_char_minibuf_menu_prompt, read_key_sequence)
1280 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1281 Likewise.
1282 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1283 Likewise.
1284 * lisp.h (STRING_COPYIN): Likewise.
1285 * lread.c (Fload, read1, oblookup): Likewise.
1286 * msdos.c (Frecent_doskeys): Likewise.
1287 * nsfns.m (Fx_create_frame): Likewise.
1288 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1289 Likewise.
1290 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1291 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1292 Likewise.
1293 * nsmenu.m (ns_update_menubar): Likewise.
1294 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1295 * print.c (print_unwind, printchar, strout, print_string)
1296 (print_error_message): Likewise.
1297 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1298 (Fmake_network_process, Fnetwork_interface_list)
1299 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1300 (init_process): Likewise.
1301 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1302 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1303 Likewise.
1304 * scroll.c (do_scrolling, do_direct_scrolling)
1305 (scrolling_max_lines_saved): Likewise.
1306 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1307 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1308 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1309 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1310 (emacs_set_tty): Likewise.
1311 * term.c (encode_terminal_code, calculate_costs)
1312 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1313 Likewise.
1314 * termcap.c (tgetst1, gobble_line): Likewise.
1315 * termhooks.h (EVENT_INIT): Likewise.
1316 * tparam.c (tparam1): Likewise.
1317 * unexalpha.c (unexec): Likewise.
1318 * unexec.c (write_segment): Likewise.
1319 * unexmacosx.c (unexec_write_zero): Likewise.
1320 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1321 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1322 * w32font.c (w32font_list_family, w32font_text_extents)
1323 (w32font_list_internal, w32font_match_internal)
1324 (w32font_open_internal, compute_metrics, Fx_select_font):
1325 Likewise.
1326 * w32menu.c (set_frame_menubar, add_menu_item)
1327 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1328 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1329 * w32uniscribe.c (uniscribe_list_family): Likewise.
1330 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1331 * window.c (make_window, replace_window, set_window_buffer)
1332 (Fsplit_window): Likewise.
1333 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1334 (add_to_log, message3, x_consider_frame_title)
1335 (append_space_for_newline, extend_face_to_end_of_line)
1336 (decode_mode_spec_coding, init_glyph_string): Likewise.
1337 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1338 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1339 (face_attr_equal_p, make_realized_face, make_face_cache)
1340 (free_realized_faces, lookup_named_face, smaller_face)
1341 (face_with_height, lookup_derived_face)
1342 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1343 (Finternal_set_font_selection_order, realize_default_face)
1344 (compute_char_face, face_at_buffer_position)
1345 (face_for_overlay_string, face_at_string_position, merge_faces):
1346 Likewise.
1347 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1348 (Fx_window_property, x_create_tip_frame)
1349 (Fx_backspace_delete_keys_p): Likewise.
1350 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1351 (xfont_text_extents): Likewise.
1352 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1353 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1354 * xselect.c (x_queue_event, x_get_window_property)
1355 (receive_incremental_selection): Likewise.
1356 * xsmfns.c (x_session_check_input): Likewise.
1357 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1358 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1359 Likewise.
1360 * character.h (BCOPY_SHORT): Removed.
1361 * config.in: Regenerate.
1362 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1363 * emacs.c (main) [PROFILING]: Don't declare
1364 dump_opcode_frequencies.
1365 * lisp.h (safe_bcopy): Remove declaration.
1366 (memset) [!HAVE_MEMSET]: Declare.
1367 (memcpy) [!HAVE_MEMCPY]: Likewise.
1368 (memmove) [!HAVE_MEMMOVE]: Likewise.
1369 (memcmp) [!HAVE_MEMCMP]: Likewise.
1370 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1371 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1372 Don't define.
1373 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1374 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1375 (BCOPY_DOWNWARD_SAFE): Don't define.
1376 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1377 (memcpy) [!HAVE_MEMCPY]: Define.
1378 (memmove) [!HAVE_MEMMOVE]: Define.
1379 (memcmp) [!HAVE_MEMCMP]: Define.
1380
cb768704
J
13812010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1382
1383 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1384 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1385 New functions.
cb768704
J
1386 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1387 select on empty input mask.
1388 (init_process): Initialize kbd_is_on_hold to 0.
1389
1390 * process.h (hold_keyboard_input, unhold_keyboard_input)
1391 (kbd_on_hold_p): Declare.
1392
1393 * keyboard.c (input_available_signal): Declare.
1394 (kbd_buffer_nr_stored): New function.
1395 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1396 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1397 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1398 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1399 (tty_read_avail_input): If input is on hold, return.
1400 Don't read more that free slots in kbd_buffer (Bug#6571).
1401
3a8ce822
EZ
14022010-07-07 Eli Zaretskii <eliz@gnu.org>
1403
1404 * msdos.h:
1405 * msdos.c:
1406 * dosfns.c:
1407 * w16select.c: Convert function definitions to ANSI C.
1408
a628ad9d
JB
1409 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1410 Remove unused prototypes.
3a8ce822 1411
cf84bb53
JB
14122010-07-07 Juanma Barranquero <lekktu@gmail.com>
1413
1414 * coding.c, sysdep.c: Convert some more functions to standard C.
1415
1a4990fb
JB
14162010-07-07 Juanma Barranquero <lekktu@gmail.com>
1417
1418 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1419 (encode_coding_object): Use SPECPDL_INDEX.
1420 (syms_of_coding): Use DOS_NT.
1421
c0f2f16b
DN
14222010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1423
48fb6855
DN
1424 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1425
c0f2f16b
DN
1426 Make the function member of Lisp_Subr use standard C prototypes.
1427 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1428 (DECL_ALIGN): Add a cast for the function.
1429 * eval.c (Feval, Ffuncall): Use the proper type for each type
1430 function call.
1431
67aecef9
CY
14322010-07-06 Chong Yidong <cyd@stupidchicken.com>
1433
1434 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1435 fringe face id, so face-remapping-alist works (Bug#6091).
1436
b56ceb92
JB
14372010-07-06 Juanma Barranquero <lekktu@gmail.com>
1438
1439 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1440 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1441 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1442
7af07b96
AS
14432010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1444
1445 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1446 * lisp.h: Declare x_get_keysym_name.
1447 * keyboard.c (modify_event_symbol): Don't declare
1448 x_get_keysym_name here.
1449
69e24e34
DN
14502010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1451
1452 * ecrt0.c: Revert conversion to standard C.
1453
d3da34e0 14542010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1455
1456 * vm-limit.c (memory_warnings):
1457 * keyboard.c (modify_event_symbol):
1458 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1459 (round2, emacs_rint):
1460 * process.c (send_process, old_sigpipe): Convert function
1461 definitions and declarations to standard C.
1462
14632010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1464
1465 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1466 * xdisp.c: Convert function definitions to standard C.
1467
1468 * cm.c (cmputc): Arg C is now int, not char.
1469 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1470
00be444c
J
14712010-07-05 James Cloos <cloos@jhcloos.com>
1472
1473 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1474
1475 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1476 _NET_WM_ICON_NAME atoms.
1477
1478 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1479 and _NET_WM_ICON_NAME properties, too, matching what is
1480 done in the Gtk+ case.
1481
e4c8d29a
J
14822010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1483
ff919460
J
1484 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1485
e4c8d29a
J
1486 * xsmfns.c (SSDATA): New macro.
1487 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1488 passed to strlen/strcpy/strcat.
1489 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1490 7:th arg to XChangeProperty to (unsigned char *)
1491
1492 * xsettings.c (something_changedCB, parse_settings)
1493 (apply_xft_settings): Reformat prototype.
1494 (something_changedCB, init_gconf): Remove unused variable i.
1495 (read_settings): Remove unused variable long_len.
1496
1497 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1498 (xg_get_image_for_pixmap, create_dialog)
1499 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1500 (menuitem_highlight_callback, make_menu_item)
1501 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1502 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1503 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1504 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1505 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1506 (xg_tool_bar_item_expose_callback): Reformat prototype.
1507 (xg_update_menubar): GList *group => GSList *group.
1508 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1509 before use.
1510 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1511 to GTK_IMAGE (wimage).
1512
dd4c5104
DN
15132010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1514
898b4c5c
DN
1515 * atimer.c: Use "" instead of <> for local includes for
1516 consistency with the rest of the code.
1517
dd4c5104
DN
1518 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1519 * xrdb.c (get_system_name):
1520 * window.c (shrink_windows):
1521 * syntax.c (forw_comment):
1522 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1523 (ins_del_costs):
1524 * mem-limits.h (start_of_data):
1525 * lread.c (readevalloop):
1526 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1527 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1528 * frame.c (x_get_focus_frame):
1529 * floatfns.c (fmod_float):
1530 * fileio.c (choose_write_coding_system):
1531 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1532 (malloc_initialize_hook, sort_args, synchronize_locale):
1533 * doprnt.c (doprnt):
1534 * dired.c (compile_pattern):
1535 * data.c (fmod_float):
1536 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1537 (map_char_table_for_charset):
1538 * charset.c (define_charset_internal):
1539 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1540 to standard C.
1541
9a39b306 15422010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1543 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1544
1545 * lread.c (read1): Fix up last change to not mess up `c'.
1546
e6cb2cbb
JB
15472010-07-04 Juanma Barranquero <lekktu@gmail.com>
1548
1549 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1550
438105ed
JB
15512010-07-04 Juanma Barranquero <lekktu@gmail.com>
1552
1553 Fix prototypes.
1554
e5447b22 1555 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1556 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1557 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1558 arg, as required by internal_condition_case_1.
dcc7404b 1559 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1560 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1561 (analyse_first): Fix "const const".
e5447b22 1562 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1563 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1564 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1565
971de7fb
DN
15662010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1567
1568 * alloc.c: Convert function definitions to standard C.
1569 * atimer.c:
1570 * bidi.c:
1571 * bytecode.c:
1572 * callint.c:
1573 * callproc.c:
1574 * casefiddle.c:
1575 * casetab.c:
1576 * category.c:
1577 * ccl.c:
1578 * character.c:
1579 * charset.c:
1580 * chartab.c:
1581 * cmds.c:
1582 * coding.c:
1583 * composite.c:
1584 * data.c:
1585 * dbusbind.c:
1586 * dired.c:
1587 * dispnew.c:
1588 * doc.c:
1589 * doprnt.c:
1590 * ecrt0.c:
1591 * editfns.c:
1592 * fileio.c:
1593 * filelock.c:
1594 * filemode.c:
1595 * fns.c:
1596 * font.c:
1597 * fontset.c:
1598 * frame.c:
1599 * fringe.c:
1600 * ftfont.c:
1601 * ftxfont.c:
1602 * gtkutil.c:
1603 * indent.c:
1604 * insdel.c:
1605 * intervals.c:
1606 * keymap.c:
1607 * lread.c:
1608 * macros.c:
1609 * marker.c:
1610 * md5.c:
1611 * menu.c:
1612 * minibuf.c:
1613 * prefix-args.c:
1614 * print.c:
1615 * ralloc.c:
1616 * regex.c:
1617 * region-cache.c:
1618 * scroll.c:
1619 * search.c:
1620 * sound.c:
1621 * strftime.c:
1622 * syntax.c:
1623 * sysdep.c:
1624 * termcap.c:
1625 * terminal.c:
1626 * terminfo.c:
1627 * textprop.c:
1628 * tparam.c:
1629 * undo.c:
1630 * unexelf.c:
1631 * window.c:
1632 * xfaces.c:
1633 * xfns.c:
1634 * xfont.c:
1635 * xftfont.c:
1636 * xgselect.c:
1637 * xmenu.c:
1638 * xrdb.c:
1639 * xselect.c:
1640 * xsettings.c:
1641 * xsmfns.c:
1642 * xterm.c: Likewise.
1643
ae492bec
EZ
16442010-07-03 Eli Zaretskii <eliz@gnu.org>
1645
76ea4cc9
EZ
1646 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1647 frames other than the initial one. Fix reversal of colors when
1648 `reverse' is specified in the frame parameters. Call
1649 update_face_from_frame_parameter instead of
1650 internal-set-lisp-face-attribute. Initialize screen colors from
1651 initial_screen_colors[] when f->default_face_done_p is zero,
1652 instead of depending on being called with default-frame-alist as
1653 the alist argument.
1654
1655 * xfaces.c (update_face_from_frame_parameter): Move out of
1656 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1657 with HAVE_WINDOW_SYSTEM.
1658
1e6255ae
EZ
1659 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1660 to menu-bar-mode, if not set in the frame parameters or in
1661 default-frame-alist.
1662
ae492bec
EZ
1663 * w32console.c (sys_tputs): Adjust argument list to prototype in
1664 term.c.
1665
3a35a84c
JB
16662010-07-03 Juanma Barranquero <lekktu@gmail.com>
1667
1668 * lisp.h (memory_warnings): Fix prototype.
1669
1670 * cm.h (evalcost): Fix prototype.
1671
1672 * cm.c (evalcost): Fix arg type.
1673
c532d349
DN
16742010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1675
1676 * term.c (term_clear_mouse_face, Fidentity):
1677 * syssignal.h (signal_handler_t):
1678 * lisp.h (memory_warnings):
1679 * coding.h (preferred_coding_system):
1680 * cm.h (evalcost):
1681 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1682
c0b36d46
EZ
16832010-07-02 Eli Zaretskii <eliz@gnu.org>
1684
1685 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1686 from prototypes.
1687
1688 * msdos.h (load_pixmap): Don't define away.
1689
383e0970
J
16902010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1691
f57e2426
J
1692 * lisp.h:
1693 * atimer.h: Remove define for P_.
1694
1695 * alloc.c: Remove __P and P_ from .c and .m files.
1696 * atimer.c:
1697 * buffer.c:
1698 * callint.c:
1699 * category.c:
1700 * charset.c:
1701 * chartab.c:
1702 * cm.c:
1703 * coding.c:
1704 * composite.c:
1705 * data.c:
1706 * dired.c:
1707 * dispnew.c:
1708 * doc.c:
1709 * editfns.c:
1710 * emacs.c:
1711 * eval.c:
1712 * fileio.c:
1713 * filelock.c:
1714 * fns.c:
1715 * font.c:
1716 * fontset.c:
1717 * frame.c:
1718 * ftfont.c:
1719 * ftxfont.c:
1720 * gmalloc.c:
1721 * gtkutil.c:
1722 * image.c:
1723 * indent.c:
1724 * intervals.c:
1725 * keyboard.c:
1726 * keymap.c:
1727 * lread.c:
1728 * marker.c:
1729 * menu.c:
1730 * minibuf.c:
1731 * print.c:
1732 * process.c:
1733 * scroll.c:
1734 * search.c:
1735 * sound.c:
1736 * strftime.c:
1737 * syntax.c:
1738 * sysdep.c:
1739 * term.c:
1740 * terminal.c:
1741 * textprop.c:
1742 * unexalpha.c:
1743 * w32console.c:
1744 * w32fns.c:
1745 * w32font.c:
1746 * w32menu.c:
1747 * w32term.c:
1748 * w32uniscribe.c:
1749 * window.c:
1750 * xdisp.c:
1751 * xfaces.c:
1752 * xfns.c:
1753 * xfont.c:
1754 * xftfont.c:
1755 * xmenu.c:
1756 * xselect.c:
1757 * xterm.c: Likewise.
1758
383e0970 1759 Remove P_ and __P macros.
f57e2426
J
1760 * atimer.h: Remove P_ and __P macros.
1761 * buffer.h:
383e0970
J
1762 * category.h:
1763 * ccl.h:
1764 * character.h:
1765 * charset.h:
1766 * cm.h:
1767 * coding.h:
1768 * composite.h:
1769 * dispextern.h:
1770 * disptab.h:
9e892c8d 1771 * dosfns.h:
383e0970
J
1772 * font.h:
1773 * fontset.h:
1774 * frame.h:
1775 * gtkutil.h:
1776 * indent.h:
1777 * intervals.h:
1778 * keyboard.h:
1779 * keymap.h:
1780 * lisp.h:
1781 * macros.h:
1782 * md5.h:
1783 * menu.h:
1784 * msdos.h:
1785 * nsterm.h:
1786 * puresize.h:
1787 * region-cache.h:
1788 * syntax.h:
1789 * syssignal.h:
1790 * systime.h:
1791 * termhooks.h:
9e892c8d 1792 * w32font.h:
383e0970
J
1793 * w32term.h:
1794 * widget.h:
1795 * window.h:
1796 * xgselect.h:
1797 * xsettings.h:
1798 * xterm.h: Likewise.
1799
98601119
DN
18002010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1801
d9170db5
DN
1802 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1803
98601119
DN
1804 Cleanup old code.
1805 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1806 * syssignal.h: Remove code for Lynx, not supported anymore.
1807 * vm-limit.c: Remove unused code the depends on emacs not being
1808 defined and NO_LIM_DATA being defined.
1809 * mem-limits.h: Remove dead code.
1810
1f984e12
J
18112010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1812
c49d071a
J
1813 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1814
9d5405ec
J
1815 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1816 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1817
7a18115b
J
1818 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1819 parameters, they are already absolute.
1820
a628ad9d
JB
1821 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1822 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1823
a628ad9d 1824 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1825
a628ad9d
JB
1826 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1827 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1828
a628ad9d
JB
1829 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1830 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1831
c1ef4455
CY
18322010-06-30 Chong Yidong <cyd@stupidchicken.com>
1833
1834 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1835 check default-frame-alist.
1836
ce8f5a9a
AS
18372010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1838
1839 * process.c (create_process): Avoid using invalid file descriptors.
1840
1841 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1842
bf935339
J
18432010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1844
1845 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1846 Improve documentation. Return font regardless of use_system_font.
1847 (syms_of_xsettings): Improve documentation for font-use-system-font.
1848
7c33a057
CY
18492010-07-10 Chong Yidong <cyd@stupidchicken.com>
1850
2ec1b5ee
CY
1851 * xfaces.c (realize_face): Garbage the frame if a face is removed
1852 (Bug#6593).
1853
18542010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1855
1856 * keyboard.c: Remove duplicate <setjmp.h>.
1857 (read_key_sequence): Remove volatile qualifiers.
1858
18592010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1860
1861 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1862 (struct glyph_row): New members left_fringe_offset and
1863 right_fringe_offset.
1864
1865 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1866 specially.
1867 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1868 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1869
1870 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1871 Take account of bitmap offset.
2ec1b5ee
CY
1872 (draw_window_fringes): Take account of window vscroll.
1873 (update_window_fringes): Likewise. Extend top-aligned top indicator
1874 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1875 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1876 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1877
18782010-07-04 Juanma Barranquero <lekktu@gmail.com>
1879
1880 * w32fns.c (Qtooltip): Declare.
1881 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1882
18832010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1884
1885 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1886 grab on just Press (Bug#6499).
1887
18882010-07-02 Chong Yidong <cyd@stupidchicken.com>
1889
1890 * frame.c (Qtooltip): New var.
1891 (delete_frame): Use it. Fix faulty if statement. Don't update
1892 mode line for tooltip frames. Suggested by Martin Rudalics.
1893
1894 * xfns.c (x_create_tip_frame):
1895 * w32fns.c (x_create_tip_frame): Use it.
1896
18972010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1898
1899 * xftfont.c (xftfont_open): Check font width one by one also when
1900 spacing is dual.
1901
1902 * ftfont.c (ftfont_open): Ditto.
1903
6259c2ec
GM
19042010-06-30 Glenn Morris <rgm@gnu.org>
1905
a46007e9
GM
1906 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1907
6259c2ec
GM
1908 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1909
1910 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1911 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1912 * s/darwin.h (SYSTEM_MALLOC):
1913 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1914
5d1d3d04
J
19152010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1916
1917 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1918 (ns_get_screen): Don't assign integer to f.
1919 (Fx_display_color_cells): Declarations before statements.
1920
e547b051
J
19212010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1922
5fc8e5bc
J
1923 * xfns.c (x_default_font_parameter): Remove got_from_system
1924 (Bug#6526).
1925
e547b051
J
1926 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1927 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1928 defines based on what configure finds.
1929
1930 * xterm.c (XTflash): Use gtk_widget_get_window.
1931 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1932 gtk_adjustment_get_page_size.
1933 (handle_one_xevent): Use gtk_widget_get_mapped.
1934 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1935 messages.
1936
1937 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1938
1939 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1940 HAVE_GTK_FILE_SELECTION_NEW.
1941
1942 * gtkutil.c (xg_display_open, xg_display_close): Remove
1943 HAVE_GTK_MULTIDISPLAY, it is always defined.
1944 (xg_display_open): Return type is void.
1945 (gtk_widget_set_has_window)
1946 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1947 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1948 (gtk_adjustment_set_page_increment)
1949 (gtk_adjustment_get_step_increment): #define these if not found
1950 by configure.
1951 (remove_submenu): New define based on Gtk+ version.
1952 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1953 gtk_widget_get_window.
1954 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1955 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1956 (create_dialog): Use gtk_dialog_get_action_area and
1957 gtk_dialog_get_content_area.
1958 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1959 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1960 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1961 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1962 g_object_ref and g_object_unref.
1963 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1964 gtk_widget_get_sensitive.
1965 (xg_update_submenu): Use remove_submenu.
1966 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1967 properties instead to get old x and y position.
1968 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1969 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1970 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1971 (xg_get_tool_bar_widgets): New function.
1972 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1973 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1974 (toolbar_set_orientation): New #define based on if configure
1975 finds gtk_orientable_set_orientation.
1976 (xg_create_tool_bar): Call toolbar_set_orientation.
1977 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1978 instead of gtk_box_pack_start_defaults.
1979
b9229673
CY
19802010-06-28 Chong Yidong <cyd@stupidchicken.com>
1981
1982 * cmds.c (Fdelete_backward_char): Move into Lisp.
1983
bbc803b0
DN
19842010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1985
1986 * s/freebsd.h (BSD4_2): Remove redundant definition.
1987 bsd-common.h defines it already.
1988
6431f2e6
CY
19892010-06-27 Chong Yidong <cyd@stupidchicken.com>
1990
1991 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1992 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1993 tool-bar-mode, which are now set using these X resources at
1994 startup, to determine the defaults (Bug#2249).
1995
1996 * w32fns.c (Fx_create_frame):
1997 * nsfns.m (Fx_create_frame): Likewise.
1998
1999 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2000
8c079ebb
JB
20012010-06-24 Juanma Barranquero <lekktu@gmail.com>
2002
2003 * gtkutil.c (xg_update_scrollbar_pos):
2004 Avoid C99 mid-block variable declaration.
2005
e9b7ab96
JD
20062010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2007
bc869eca
JD
2008 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2009
2b7e356a 2010 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2011
2012 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2013 if height is less than scroll bar min size.
2014 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2015
e9b7ab96
JD
2016 * xfns.c (x_default_font_parameter): Try to open font from system
2017 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2018
a628ad9d 20192010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2020
2021 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2022
70c4cfbb
EZ
20232010-06-20 Eli Zaretskii <eliz@gnu.org>
2024
2025 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2026 most-positive-fixnum, be extra accurate when scrolling window
2027 start, to avoid missing the cursor line.
2028
ad5a12b5
EZ
20292010-06-19 Eli Zaretskii <eliz@gnu.org>
2030
2031 * xdisp.c (try_scrolling): Compute the limit for searching point
2032 in forward scroll from scroll_max, instead of an arbitrary limit
2033 of 10 screen lines. See
2034 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2035 and
2036 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2037 for details.
2038
2a64315a 20392010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2040
2041 * editfns.c (Fbyte_to_string): Pacify compiler.
2042
288cf4e9
SM
20432010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2044
2045 * lread.c (read1): Phase out old-style backquotes a bit more.
2046
6e6e5760
EZ
20472010-06-12 Eli Zaretskii <eliz@gnu.org>
2048
cbc4fd20
EZ
2049 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2050 bidimirror.h.
2051
2052 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2053
317fbf33
EZ
2054 * bidi.c (bidi_initialize): Remove explicit initialization of
2055 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2056 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2057 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2058
2059 * biditype.h: New file.
2060
cbc4fd20
EZ
2061 * bidimirror.h: New file.
2062
6e6e5760
EZ
2063 * window.c (syms_of_window): Doc fix (bug#6409).
2064
4176cba2
RF
20652010-06-12 Romain Francoise <romain@orebokech.com>
2066
2067 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2068 ediff-hook.
2069
cb4bfcb5
GM
20702010-06-10 Glenn Morris <rgm@gnu.org>
2071
64c60c2f
GM
2072 * editfns.c (Fbyte_to_string): Pacify compiler.
2073
cb4bfcb5
GM
2074 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2075
2ec1b5ee
CY
20762010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2077
2078 * alloc.c (Fmake_byte_code): Don't access undefined argument
2079 (Bug#6517).
2080
20812010-06-25 Chong Yidong <cyd@stupidchicken.com>
2082
2083 * xdisp.c (next_element_from_image): Ensure that after-strings are
2084 read the next time we hit handle_stop (Bug#1336).
2085
20862010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2087
2088 * lread.c (read1): Signal error if #s is not followed by paren.
2089
20902010-06-19 Chong Yidong <cyd@stupidchicken.com>
2091
2092 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2093
2094 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2095
20962010-06-15 Glenn Morris <rgm@gnu.org>
2097
2098 * editfns.c (Fbyte_to_string): Pacify compiler.
2099
e454a4a3
SM
21002010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2101
2102 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2103 Check `object's type before accessing its guts.
2104
c1b1acc2
DN
21052010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2106
2107 * s/usg5-4.h: Fix previous change.
2108 Suggested by Lawrence Mitchell <wence@gmx.li>
2109
657d4c0b
AS
21102010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2111
2112 * minibuf.c (Fall_completions): Add more checks.
2113
9b27fd9f
JB
21142010-06-08 Juanma Barranquero <lekktu@gmail.com>
2115
2116 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2117
a99ebb40
DN
21182010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2119
d7c5d87d
DN
2120 * lread.c (X_OK): Remove, unused.
2121
0263a941
DN
2122 * dispnew.c: Remove obsolete comment.
2123
a99ebb40
DN
2124 Remove INCLUDED_FCNTL.
2125 * xterm.c (INCLUDED_FCNTL):
2126 * callproc.c (INCLUDED_FCNTL):
2127 * alloc.c (INCLUDED_FCNTL):
2128 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2129 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2130
13b5221f
MR
21312010-06-07 Martin Rudalics <rudalics@gmx.at>
2132
2133 * window.c (Fselect_window): Move `record_buffer' up to the
2134 beginning of this function, so the buffer gets recorded
2135 even if the selected window does not change.
2136 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2137
5220357f
JB
21382010-06-07 Juanma Barranquero <lekktu@gmail.com>
2139
2140 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2141 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2142
3085237c
DN
21432010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2144
2145 Remove BSTRING related code, all platforms define it.
2146 * s/usg5-4.h (BSTRING): Remove definition.
2147 * s/template.h (BSTRING):
2148 * s/msdos.h (BSTRING):
2149 * s/ms-w32.h (BSTRING):
2150 * s/hpux10-20.h (BSTRING):
2151 * s/gnu-linux.h (BSTRING):
2152 * s/darwin.h (BSTRING):
2153 * s/cygwin.h (BSTRING):
2154 * s/bsd-common.h (BSTRING):
2155 * s/aix4-2.h (BSTRING): Likewise.
2156 * sysdep.c: Remove code depending on BSTRING not being defined.
2157
409f2919
JB
21582010-06-05 Juanma Barranquero <lekktu@gmail.com>
2159
2160 Remove obsolete macro BASE_LEADING_CODE_P.
2161 * character.h (BASE_LEADING_CODE_P): Remove.
2162 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2163 * buffer.c (Fset_buffer_multibyte):
2164 * indent.c (scan_for_column, compute_motion):
2165 * insdel.c (count_combining_before, count_combining_after):
2166 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2167
087fc47a
JB
21682010-06-04 Juanma Barranquero <lekktu@gmail.com>
2169
2170 Turn `directory-sep-char' into a noop.
2171
2172 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2173 (DIRECTORY_SEP): Define unconditionally.
2174
2175 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2176
2177 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2178 call dostounix_filename directly.
2179
2180 * fileio.c (CORRECT_DIR_SEPS): Remove.
2181 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2182 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2183 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2184 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2185
2186 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2187 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2188
0eb7675e
AS
21892010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2190
a628ad9d
JB
2191 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2192 (Bug#6346)
0eb7675e 2193
78edd3b7
JB
21942010-06-03 Juanma Barranquero <lekktu@gmail.com>
2195
2196 * ccl.c (Fccl_program_p): Fix typo in docstring.
2197
eb697db5
DN
21982010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2199
2200 Move UNEXEC definition to autoconf.
2201 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2202 * s/sol2-10.h (UNEXEC):
2203 * s/irix6-5.h (UNEXEC):
2204 * s/hpux10-20.h (UNEXEC):
2205 * s/gnu-linux.h (UNEXEC):
2206 * s/darwin.h (UNEXEC):
2207 * s/cygwin.h (UNEXEC):
2208 * s/bsd-common.h (UNEXEC):
2209 * s/aix4-2.h (UNEXEC):
2210 * m/alpha.h (UNEXEC): Likewise.
2211 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2212
aa3830c4
JB
22132010-06-03 Juanma Barranquero <lekktu@gmail.com>
2214
2215 Remove obsolete pre-unicode2 macros.
2216 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2217 * composite.c (composition_reseat_it):
2218 * data.c (Faset):
2219 * fns.c (Ffillarray):
2220 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2221 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2222
d234d13e
JL
22232010-06-03 Juri Linkov <juri@jurta.org>
2224
2225 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2226 (Fswitch_to_buffer): Remove unused variable `err'.
2227
0d4bcf4d
GM
22282010-06-03 Glenn Morris <rgm@gnu.org>
2229
e23dc1e2
GM
2230 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2231
05b09564
GM
2232 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2233 now that AH_BOTTOM does it.
2234
824e2978
GM
2235 * m/hp800.h (HAVE_ALLOCA):
2236 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2237
0d4bcf4d
GM
2238 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2239 Remove NOT_C_CODE tests, it is always true now.
2240
c55d2abf
DN
22412010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2242
08a494a3
DN
2243 Fix config.h includes.
2244 * xsettings.c:
2245 * xgselect.c:
2246 * nsterm.m:
2247 * nsselect.m:
2248 * nsimage.m:
2249 * nsfont.m:
2250 * nsfns.m:
2251 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2252 other files do.
2253
75934b1d
DN
2254 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2255
9f32a766
DN
2256 * s/sol2-6.h: Remove obsolete comments.
2257
c55d2abf
DN
2258 Remove unnecessary alloca.h includes.
2259 * keymap.c: Do not include alloca.h, config.h does that.
2260 * sysdep.c: Likewise. Do not define fwrite, not used.
2261
06ac62b4
SM
22622010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2263
2264 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2265 the HAVE_TERMIO where it belongs (bug#6149).
2266
1ab8293c
SM
22672010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2268
2269 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2270 of bug#6305).
2271
6dcfd253
EZ
22722010-05-30 Eli Zaretskii <eliz@gnu.org>
2273
2274 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2275 state is always cached (bug#6306).
2276
6d26bbb2
EZ
22772010-05-29 Eli Zaretskii <eliz@gnu.org>
2278
06fa4a23
EZ
2279 Fix cursor motion in bidi-reordered continued lines.
2280 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2281 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2282 over continuation lines in bidi-reordered buffers. Return
2283 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2284 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2285
f5783df3
MA
22862010-05-28 Michael Albinus <michael.albinus@gmx.de>
2287
2288 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2289
7d56b2dd
KH
22902010-05-28 Kenichi Handa <handa@m17n.org>
2291
2292 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2293 Don't sheck SPEC if it is nil.
2294 (font_list_entities): Call font_delete_unmatched if
b925d231 2295 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2296
e58d4ff7
GM
22972010-05-28 Glenn Morris <rgm@gnu.org>
2298
2299 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2300
f1a5d776
CY
23012010-05-27 Chong Yidong <cyd@stupidchicken.com>
2302
2303 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2304 whether to trash.
2305 (internal_delete_file, Frename_file): Callers changed.
2306 (delete_by_moving_to_trash): Doc fix.
2307 (Fdelete_directory_internal): Don't move to trash.
2308
2309 * callproc.c (delete_temp_file):
2310 * buffer.c (Fkill_buffer): Callers changed.
2311
2312 * lisp.h: Update prototype.
2313
f44a59e6
CY
23142010-05-27 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * xdisp.c (redisplay_window): After redisplay, check if point is
2317 still valid before setting it (Bug#6177).
2318
81ac4f35
GM
23192010-05-27 Glenn Morris <rgm@gnu.org>
2320
2321 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2322 Convert comments to Makefile format.
2323
2324 * Makefile.in (bootstrap-clean): No more Makefile.c.
2325
ccd89fb3
GM
23262010-05-26 Glenn Morris <rgm@gnu.org>
2327
90278cb6
GM
2328 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2329 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2330
ccd89fb3
GM
2331 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2332 Remove.
2333 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2334
b7050583
KH
23352010-05-26 Kenichi Handa <handa@m17n.org>
2336
2337 * composite.c (composition_compute_stop_pos): Fix condition for
2338 backward scanning.
2339
e5458003
GM
23402010-05-25 Glenn Morris <rgm@gnu.org>
2341
c345fe90
GM
2342 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2343 Move before TEMACS_LDFLAGS.
2344 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2345 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2346
2e0689ab
GM
2347 * Makefile.in (NOT_C_CODE): No longer define.
2348 (config.h): No longer include.
2349
8009a5e8
GM
2350 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2351 variables it may reference.
2352
e5458003
GM
2353 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2354 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2355
10f72a37
KH
23562010-05-25 Kenichi Handa <handa@m17n.org>
2357
2358 * dispextern.h (struct composition_it): New members rule_idx and
2359 charpos.
2360
2361 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2362 that the character positions of IT point the last character of the
2363 current grapheme cluster.
2364 (next_element_from_composition): Don't change character positions
2365 of IT.
2366 (append_composite_glyph): Set glyph->charpos to
2367 it->cmp_it.charpos.
2368
2369 * composite.c (autocmp_chars): Change the first argument to RULE,
2370 and try composition with RULE only.
2371 (composition_compute_stop_pos): Record the index number of the
2372 composition rule in CMP_IT->rule_idx.
2373 (composition_reseat_it): Call autocmp_chars repeatedly until the
2374 correct rule of the composition is found.
2375 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2376 is at the last character of the current grapheme cluster when
2377 CMP_IT->reversed_p is nonzero.
2378
171eda53 23792010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2380
171eda53
SM
2381 * editfns.c (Fbyte_to_string): New function.
2382
66a9f7f4
SM
23832010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2384
2385 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2386 Suggested by Masatake YAMATO <yamato@redhat.com>.
2387
d8c315d1
EZ
23882010-05-23 Eli Zaretskii <eliz@gnu.org>
2389
171eda53 2390 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2391
f5b416d2 23922010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2393
2394 * s/netbsd.h: If terminfo is found, use it in preference to
2395 termcap. (Bug#6190) [Backport from trunk]
2396
0416466c
EZ
23972010-05-19 Eli Zaretskii <eliz@gnu.org>
2398
11117830 2399 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2400
2401 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2402 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2403 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2404 and maxpos members instead of start.pos and end.pos, respectively.
2405
2406 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2407 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2408 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2409 (try_window_reusing_current_matrix, try_window_id):
2410 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2411 (init_from_display_pos, init_iterator): Use EMACS_INT for
2412 character and byte positions.
66a9f7f4 2413 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2414 arguments for minimum and maximum buffer positions seen by
2415 display_line for this row. Don't use iterator to find the
2416 position following the maximum one; instead, increment the
11117830
EZ
2417 position found by display_line directly. Fix logic; eol_pos
2418 should be tested before the rest. Handle the case of characters
2419 delivered from display vector (bug#6036). Fix tests related to
2420 it->method. Handle the truncated_on_right_p rows.
2421 (RECORD_MAX_MIN_POS): New macro.
2422 (display_line): Use it to record the minimum and maximum buffer
2423 positions for glyphs in the row being assembled. Record the
2424 position of the newline that terminates the line. If word wrap is
2425 in effect, restore minimum and maximum positions seen up to the
2426 wrap point, when iterator returns to it.
2427 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2428 row and cursor not already at point. Restore original pre-bidi
2429 code for unidirectional buffers.
d36fe237
EZ
2430
2431 * dispnew.c (increment_row_positions, check_matrix_invariants):
2432 Increment and check row->start.pos and row->end.pos, in addition
2433 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2434
11117830
EZ
2435 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2436 Display truncated_on_left_p and truncated_on_right_p flags.
2437 Formatting fixes.
2438 (pmtxrows): Display the ordinal number of each row. Don't display
2439 rows beyond the last one.
2440
2441 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2442 it is not copied by bidi_copy_it.
2443
6e83d800
EZ
24442010-05-22 Eli Zaretskii <eliz@gnu.org>
2445
2446 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2447 (Bug#6237)
2448
110683ad
CY
24492010-05-22 Chong Yidong <cyd@stupidchicken.com>
2450
2451 * image.c (Fimage_flush): Rename from image-refresh.
2452
98fe5161
CY
24532010-05-21 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2456 just one window.
2457
2458 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2459 (clear_image_cache): If the number of cached images is unusually
2460 large, decrease the cache eviction delay (Bug#6230).
2461
e8752c66
GM
24622010-05-21 Glenn Morris <rgm@gnu.org>
2463
66dbf213
GM
2464 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2465 Move these rules to ns.mk.
2466 * ns.mk: New file.
2467
04384b2d
GM
2468 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2469
e8752c66
GM
2470 * Makefile.in (CANNOT_DUMP): New, set by configure.
2471 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2472
2e2bbddb
JL
24732010-05-20 Juri Linkov <juri@jurta.org>
2474
2475 * fileio.c (Fdelete_file): Change interative spec to use
2476 `read-file-name' like in `find-file-read-args' where the default
2477 value is `default-directory' instead of `buffer-file-name'.
2478 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2479
31c4aaf6
KR
24802010-05-20 Kevin Ryde <user42@zip.com.au>
2481
2482 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2483 (Voverriding_terminal_local_map, Vsystem_key_alist)
2484 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2485
9d5cf9b6
GM
24862010-05-20 Glenn Morris <rgm@gnu.org>
2487
2488 * Makefile.in (DEPDIR): New constant.
2489 (DEPFLAGS): Set with configure, not cpp.
2490 (MKDEPDIR): New, set by configure.
2491 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2492 (clean): Use $DEPDIR.
2493 (deps_frag): Include from configure.
2494 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2495 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2496
ead6f8f5
EZ
2497 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2498 reallocation of the cache. (Bug#6210)
2499
7f34aec3
GM
25002010-05-19 Glenn Morris <rgm@gnu.org>
2501
d494e8f2
GM
2502 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2503
c1d0dcfd
GM
2504 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2505 (GNULIB_VAR): Remove.
2506 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2507
2508 * m/ibms390x.h (LINKER):
2509 * m/macppc.h (LINKER) [GNU_LINUX]:
2510 * s/aix4-2.h (ORDINARY_LINK):
2511 * s/cygwin.h (LINKER):
2512 * s/darwin.h (ORDINARY_LINK):
2513 * s/gnu.h (ORDINARY_LINK):
2514 * s/netbsd.h (LINKER):
2515 * s/usg5-4.h (ORDINARY_LINK):
2516 Move to configure.
2517
7f34aec3
GM
2518 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2519
754790b6
CY
25202010-05-18 Chong Yidong <cyd@stupidchicken.com>
2521
2522 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2523 prevent stack overflow if number of arguments is too large
2524 (Bug#6214).
2525
161e44d1
JB
25262010-05-18 Juanma Barranquero <lekktu@gmail.com>
2527
2528 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2529
be4ff9da
GM
25302010-05-18 Glenn Morris <rgm@gnu.org>
2531
9539dc5d
GM
2532 * s/gnu-linux.h: Combine two conditionals.
2533
2534 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2535 $(POST_ALLOC_OBJ).
2536
40dc6bf4
GM
2537 * Makefile.in (RALLOC_OBJ): New, set by configure.
2538 (rallocobj): Replace with the previous variable.
2539 (otherobj): Use $RALLOC_OBJ.
2540
2541 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2542 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2543
be4ff9da
GM
2544 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2545 (gmallocobj, vmlimitobj): Replace with previous two variables.
2546 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2547
16455a85
GM
25482010-05-17 Glenn Morris <rgm@gnu.org>
2549
2550 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2551 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2552
5fdb7468
GM
25532010-05-16 Glenn Morris <rgm@gnu.org>
2554
7ca1f3f9
GM
2555 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2556
7541dad5
GM
2557 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2558
da53fab9
GM
2559 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2560 trailing "/".
2561
b02a6645
GM
2562 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2563 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2564
8877ca0f
GM
2565 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2566 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2567 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2568 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2569 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2570
5fdb7468
GM
2571 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2572 Remove ${STARTFLAGS}, nothing ever sets it.
2573
95adb4b1
DN
25742010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2577
676b6304
GM
25782010-05-16 Glenn Morris <rgm@gnu.org>
2579
9beab9ce
GM
2580 * Makefile.in (LIBX_BASE): Always define.
2581
8a95f0e7
GM
2582 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2583
676b6304
GM
2584 * Makefile.in (LIBXT): Always define.
2585
6e546d18
GM
25862010-05-15 Glenn Morris <rgm@gnu.org>
2587
4235ca47 2588 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2589
6e546d18
GM
2590 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2591 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2592
8c5ff6dd
KR
25932010-05-15 Ken Raeburn <raeburn@raeburn.org>
2594
560bb7ae 2595 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2596 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2597
8b4eb796
KR
2598 * emacs.c (main): Initialize initial-environment and
2599 process-environment before generating from env, not after.
2600
8c5ff6dd
KR
2601 Handle --version reasonably in CANNOT_DUMP configuration.
2602 * emacs.c (emacs_version, emacs_copyright): New string variables.
2603 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2604 (syms_of_emacs): Defvar them, and initialize them from the C
2605 string variables.
2606 (main): If initialization hasn't been done, print initial version
2607 info from the C strings, instead of starting an interactive session.
2608
dbd3f723
EZ
26092010-05-15 Eli Zaretskii <eliz@gnu.org>
2610
d20e1419
EZ
2611 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2612 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2613 (bidi_paragraph_init): Remove redundant assertion that we are at
2614 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2615
2616 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2617 (syms_of_xdisp): Defsubr it.
2618
d36fe237
EZ
2619 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2620
dbd3f723
EZ
2621 * Makefile.in: Fix MSDOS-related comments.
2622
02be533b
GM
26232010-05-15 Glenn Morris <rgm@gnu.org>
2624
1a82cca9
GM
2625 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2626 (really-lwlib, really-oldXMenu): Always define.
2627 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2628
3df7b338
GM
2629 * Makefile.in: Simplify cpp conditional.
2630
2b5f541b
GM
2631 * Makefile.in (${ns_appdir}): Simplify using umask.
2632
02be533b
GM
2633 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2634
4e2db1fe
SM
26352010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2636
2637 * eval.c (specbind): Remove left-over duplicate test.
2638 Disallow let-binding frame-local vars. Add comment.
2639
4b292a22
EZ
26402010-05-14 Eli Zaretskii <eliz@gnu.org>
2641
2fe72643 2642 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2643 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2644 (bidi_init_it): Call it.
2645 (bidi_cache_iterator_state): Enlarge the cache if needed.
2646
4e2db1fe 2647 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2648 bidi_get_next_char_visually. All callers changed.
2649
82ebc97b
KH
26502010-05-14 Kenichi Handa <handa@m17n.org>
2651
2652 * dispextern.h (struct composition_it): New member reversed_p.
2653
2654 * composite.c (composition_compute_stop_pos): Search backward if
2655 ENDPOS < CHARPOS.
2656 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2657 Set CMP_IT->reversed_p.
b4b6e17e 2658 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2659
4e2db1fe
SM
2660 * xdisp.c (set_iterator_to_next):
2661 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2662 scanning backward. Call composition_compute_stop_pos if scan
2663 direction is changed.
2664 (next_element_from_buffer): Call composition_compute_stop_pos with
2665 negative ENDPOS if we are scanning backward.
2666 (next_element_from_composition): Pay attention to
2667 IT->cmp_it.reversed_p.
2668
0e5d7800
KH
26692010-05-14 Kenichi Handa <handa@m17n.org>
2670
560bb7ae 2671 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2672
cb027b32
GM
26732010-05-14 Glenn Morris <rgm@gnu.org>
2674
177b0288
GM
2675 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2676
fbc00890
GM
2677 * Makefile.in (mktime, X11, register): Move undefs to configure.
2678
f14d1dfd
GM
2679 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2680 (MSDOS_X_OBJ): New variable.
2681 (MSDOS_SUPPORT_REAL): New constant.
2682 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2683 (obj): Use MSDOS_X_OBJ.
2684 (lisp): Use MSDOS_SUPPORT as a variable.
2685
11842bd8
GM
2686 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2687 (GPM_MOUSE_SUPPORT): Now it's a constant.
2688 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2689 not cpp.
2690
489d31a4 2691 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2692 (ns_appresdir): Remove, unused.
e20f1f07 2693
489d31a4
GM
2694 * Makefile.in (SHELL): Move outside cpp section.
2695
cb027b32
GM
2696 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2697
5a903aa9
GM
26982010-05-13 Glenn Morris <rgm@gnu.org>
2699
3369c79f
GM
2700 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2701 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2702
d5e982a6
GM
2703 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2704 HAVE_WINDOW_SYSTEM must be too.
2705
6192e163
GM
2706 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2707 (lisp): Remove WINNT_SUPPORT.
2708
472c5d6b
GM
2709 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2710 Let configure set these variables (to empty) in this case as well.
2711
0116466b
GM
2712 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2713 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2714
5a903aa9
GM
2715 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2716 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2717 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2718 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2719 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2720 the values output by configure.
5a903aa9
GM
2721 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2722
1a0d7c06
GM
27232010-05-12 Glenn Morris <rgm@gnu.org>
2724
b5457f14
GM
2725 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2726 (LINKER_WAS_SPECIFIED): Remove.
2727
1a0d7c06
GM
2728 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2729 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2730 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2731 * s/cygwin.h (LIB_GCC):
2732 * s/freebsd.h (LIB_GCC):
2733 * s/gnu-linux.h (LIB_GCC):
2734 * s/msdos.h (LIB_GCC):
2735 * s/netbsd.h (LIB_GCC):
2736 Move to configure.
2737
3ffd4615 27382010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2739
2740 * ftfont.c: Fix incorrect parentheses of #if condition for
2741 definining M17N_FLT_USE_NEW_FEATURE.
2742
acddf8ae
GM
27432010-05-11 Glenn Morris <rgm@gnu.org>
2744
2745 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2746 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2747
ae5e04fa
EZ
27482010-05-10 Eli Zaretskii <eliz@gnu.org>
2749
2750 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2751 unibyte buffers. See
2752 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2753
7490175b
GM
27542010-05-10 Glenn Morris <rgm@gnu.org>
2755
97efb629
GM
2756 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2757 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2758 (LIBES): Use LIBS_SYSTEM as a variable.
2759 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2760 * s/aix4-2.h (LIBS_SYSTEM):
2761 * s/freebsd.h (LIBS_SYSTEM):
2762 * s/hpux10-20.h (LIBS_SYSTEM):
2763 * s/sol2-6.h (LIBS_SYSTEM):
2764 * s/unixware.h (LIBS_SYSTEM):
2765 Move to configure.
2766
7490175b
GM
2767 * s/aix4-2.h (MAIL_USE_LOCKF):
2768 * s/bsd-common.h (MAIL_USE_FLOCK):
2769 * s/darwin.h (MAIL_USE_FLOCK):
2770 * s/gnu-linux.h (MAIL_USE_FLOCK):
2771 * s/irix6-5.h (MAIL_USE_FLOCK):
2772 * s/template.h (MAIL_USE_FLOCK):
2773 Move to configure.
2774
0235128c 27752010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2776
2777 * Version 23.2 released.
2778
0235128c 27792010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2780
2781 * composite.c (autocmp_chars): Save point as marker before calling
2782 auto-composition-function (Bug#5984).
2783
2784 * lisp.h (restore_point_unwind): Add prototype.
2785
2786 * fileio.c (restore_point_unwind): Remove static attribute.
2787
0235128c 27882010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2789
2790 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2791 new feature of libotf and m17n-flt.
0235128c
SM
2792 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2793 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2794 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2795 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2796 that OUT is NULL. Use OTF_drive_gsub_with_log and
2797 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2798 OTF_drive_gpos.
2799 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2800 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2801 Setup mflt_enable_new_feature and mflt_try_otf.
2802
4721152c
J
28032010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2804
2805 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2806
2807 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2808 box and toolbar (Bug #6139).
2809 (xg_create_tool_bar): Remove comment (Bug #6139).
2810 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2811 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2812
ee0a16cf
JB
28132010-05-08 Juanma Barranquero <lekktu@gmail.com>
2814
2815 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2816 Update dependencies.
2817
96d79611
EZ
28182010-05-08 Eli Zaretskii <eliz@gnu.org>
2819
2820 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2821 R2L lines.
2822
40c17879
GM
28232010-05-08 Glenn Morris <rgm@gnu.org>
2824
7b42b29f
GM
2825 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2826
40c17879
GM
2827 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2828 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2829 (termcapobj): Replace with TERMCAP_OBJ.
2830 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2831 (LIBES): Use LIBS_TERMCAP as a variable.
2832
2833 * s/freebsd.h (osreldate.h): No longer include, since this file
2834 does not use __FreeBSD_version any more.
2835
2836 * s/aix4-2.h (TERMINFO):
2837 * s/cygwin.h (TERMINFO):
2838 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2839 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2840 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2841 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2842 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2843 * s/irix6-5.h (TERMINFO):
2844 * s/netbsd.h (LIBS_TERMCAP):
2845 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2846 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2847 * s/usg5-4.h (TERMINFO):
2848 Move to configure.
2849
94b612ad
SM
28502010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2851
2852 * eval.c (unbind_to): Don't unbind a local binding into the global
2853 binding when the local binding disappeared. Inversely, don't unbind
2854 a global binding into a newly created local binding.
2855 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2856 can specify the frame to use, when applicable. Adjust callers.
2857
15e12598 28582010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2859 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2860
2861 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2862
f724825e
EZ
28632010-05-07 Eli Zaretskii <eliz@gnu.org>
2864
5cba3209
EZ
2865 * w32fns.c: Include w32.h.
2866 (Fw32_shell_execute): Decode the error message before passing it
2867 to `error'. (Bug#6126)
2868
d16bdfc3
EZ
2869 * msdos.c (dos_set_window_size):
2870 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2871 instead of `XSYMBOL (foo)->value'.
2872
59d93e87
EZ
28732010-05-07 Eli Zaretskii <eliz@gnu.org>
2874
9fdec8bc
EZ
2875 Fix the MS-DOS build, broken by autoconfiscation.
2876
2877 * Makefile.in: Don't use Make-style comments past the "start of
2878 cpp stuff" line.
2879 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2880
2881 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2882 edited directly by msdos/sed1v2.inp).
f724825e 2883
2f86b22b
GM
28842010-05-07 Glenn Morris <rgm@gnu.org>
2885
2886 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2887 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2888 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2889 move out of cpp section.
2890 * s/freebsd.h (LD_SWITCH_SYSTEM):
2891 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2892 * s/netbsd.h (LD_SWITCH_SYSTEM):
2893 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2894
49ebbd65
DN
28952010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2896
2897 Define LIB_STANDARD and START_FILES using autoconf.
2898 * s/usg5-4.h (LIB_STANDARD):
2899 * s/netbsd.h (START_FILES):
2900 * s/irix6-5.h (LIB_STANDARD):
2901 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2902 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2903 * s/freebsd.h (START_FILES):
2904 * s/darwin.h (START_FILES):
2905 * s/cygwin.h (START_FILES):
2906 * s/aix4-2.h (LIB_STANDARD):
2907 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2908 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2909 autoconf, not cpp.
2910
d43c06d6
DN
29112010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2912
28823648
DN
2913 Remove NEED_BSDTTY and NEED_UNISTD_H.
2914 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2915 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2916 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2917 <sys/ptyio.h> and <unistd.h>.
2918
aca00430
DN
2919 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2920
d43c06d6
DN
2921 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2922 * s/gnu.h (START_FILES): Remove empty definition.
2923
3e56b11d
JD
29242010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2925
2926 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2927
e3cf0cde
GM
29282010-05-06 Glenn Morris <rgm@gnu.org>
2929
2930 * Makefile.in (CPP, LN_S): Remove unused variables.
2931
774b9a60
SM
29322010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2933
2934 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2935
4ab92842
LM
29362010-05-05 Lawrence Mitchell <wence@gmx.li>
2937
2938 * m/sparc.h: Fix typo in earlier change.
2939
178f2507
SM
29402010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2941
2942 Misc tweaks.
2943 * eval.c (Fdefvaralias): Remove unintended nested if.
2944 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2945
80f00217 29462010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2947
2948 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2949
ef03a4e6
DN
29502010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2951
58eb6cf0
DN
2952 Remove BSD_PGRPS.
2953 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2954 * s/gnu-linux.h (BSD_PGRPS): Remove.
2955 * term.c (dissociate_if_controlling_tty):
2956 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2957 (init_sys_modes, reset_sys_modes):
2958 * emacs.c (main):
2959 * callproc.c (Fcall_process, child_setup): Remove code depending
2960 on BSD_PGRPS.
2961
ef03a4e6
DN
2962 Remove POSIX_SIGNALS.
2963 * s/usg5-4.h (POSIX_SIGNALS):
2964 * s/netbsd.h (POSIX_SIGNALS):
2965 * s/msdos.h (POSIX_SIGNALS):
2966 * s/ms-w32.h (POSIX_SIGNALS):
2967 * s/hpux11.h (POSIX_SIGNALS):
2968 * s/gnu.h (POSIX_SIGNALS):
2969 * s/gnu-linux.h (POSIX_SIGNALS):
2970 * s/freebsd.h (POSIX_SIGNALS):
2971 * s/darwin.h (POSIX_SIGNALS):
2972 * s/cygwin.h (POSIX_SIGNALS):
2973 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2974 * s/unixware.h:
2975 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2976 * process.c (create_process):
2977 * syssignal.h:
2978 * sysdep.c (wait_for_termination, init_signals):
2979 * process.c (create_process):
2980 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2981 remove all code that assumes the contrary.
2982
49628785
GM
29832010-05-04 Glenn Morris <rgm@gnu.org>
2984
27a2cdfc
GM
2985 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2986 variable.
2987 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2988 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2989 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2990 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2991 LD_SWITCH_SYSTEM_tmp.
2992 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2993 New variables, set by configure.
2994
eb21eab5
GM
2995 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2996 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2997 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2998 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2999 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3000
49628785
GM
3001 * s/aix4-2.h (C_SWITCH_SYSTEM):
3002 * m/alpha.h (C_SWITCH_MACHINE):
3003 Move to configure.in.
3004 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3005 New variables, set by configure.
3006 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3007 $c_switch_machine and $c_switch_system.
3008
7dff330b
DN
30092010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3010
3011 * s/hpux10-20.h (LIB_STANDARD): New definition.
3012 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3013 on it, not used anymore.
3014
53967e09
CY
30152010-05-03 Chong Yidong <cyd@stupidchicken.com>
3016
3017 * eval.c (internal_condition_case_n): Rename from
3018 internal_condition_case_2.
3019 (internal_condition_case_2): New function.
3020
3021 * xdisp.c (safe_call): Use internal_condition_case_n.
3022
3023 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3024 (internal_delete_file, Frename_file): Callers changed.
3025
3026 * buffer.c (Fkill_buffer):
3027 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3028
3029 * lisp.h: Update prototypes.
3030
3dee6fdb
GM
30312010-05-03 Glenn Morris <rgm@gnu.org>
3032
3033 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3034 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3035 (LIBXT): Set with configure, not cpp.
3036 (LIBX): Remove.
3037 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3038
a101e0fb
DN
30392010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3040
3041 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3042 The FreeBSD is not needed, the default works, Solaris version is
3043 not needed, and the remaining case is not supported by configure.
3044
f63d0028
JD
30452010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3046
3047 * xsmfns.c (CHDIR_OPT): New define.
3048 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3049 restarting emacs.
3050
3051 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3052 shut_down_emacs.
3053
3054 * emacs.c (USAGE1): Mention --chdir.
3055 (main): Handle --chdir.
3056 (standard_args): Add --chdir.
3057 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3058 #5552).
3059
e4814a9f
DN
30602010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3061
cd03c74a
DN
3062 Remove LD_SWITCH_MACHINE.
3063 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3064 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3065
c3a398a1
DN
3066 Clean up IRIX code.
3067 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3068 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3069
87e7285c
DN
3070 Clean up AIX code.
3071 * m/ibmrs6000.inp: Remove file, unused.
3072 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3073 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3074 definition ...
3075 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3076
80f00217
JB
3077 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3078 unused.
e4814a9f 3079
59ca28de
EZ
30802010-05-01 Eli Zaretskii <eliz@gnu.org>
3081
197daef4
EZ
3082 Emulate POSIX_SIGNALS on MS-Windows.
3083
3084 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3085 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3086
3087 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3088 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3089 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3090
80f00217
JB
3091 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3092 New stubs.
197daef4 3093
af7c7572
EZ
3094 Miscellaneous fixes of bidi display.
3095
59ca28de
EZ
3096 * xdisp.c (find_row_end): New function, refactored from display_line.
3097 (display_line): Use it.
017ea819
EZ
3098 (extend_face_to_end_of_line): In almost-filled rows, extend only
3099 if the row is R2L and not continued.
166e930d 3100 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3101 Preserve overlay and string info in row->end.
166e930d
EZ
3102 (insert_left_trunc_glyphs): Support addition of left truncation
3103 glyphs to R2L rows.
b47e0dcf 3104 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3105 glyph between adjacent windows. Fix a crash when a display string
3106 is continued to the next line. Don't return zero if cursor was
3107 found by `cursor' property of a display string.
b47e0dcf
EZ
3108 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3109 test for that explicitly.
59ca28de 3110
7acac9f4
GM
31112010-05-01 Glenn Morris <rgm@gnu.org>
3112
3113 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3114 for clarity.
3115 (OTHER_OBJ): Remove.
3116 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3117 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3118
45841e65
KK
31192010-05-01 Karel Klíč <kklic@redhat.com>
3120
3121 * fileio.c (Ffile_selinux_context): Context functions may return null.
3122
afc61943
DN
31232010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3124
80f00217 3125 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3126
5a1bb006
GM
31272010-04-30 Glenn Morris <rgm@gnu.org>
3128
3129 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3130 (OTHER_OBJ): Define as a separate variable, for clarity.
3131
210af043
J
31322010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3133
3134 * xsettings.c: include limits.h and update file comment.
3135
0a7df391
GM
31362010-04-30 Glenn Morris <rgm@gnu.org>
3137
d5096f16
GM
3138 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3139 Set with configure, not cpp.
3140 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3141
7eb1ac33
GM
3142 * Makefile.in (mallocobj): Remove.
3143 (otherobj): Simplify using @OTHER_OBJ@.
3144
517d086b
GM
3145 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3146 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3147 Don't bother making nsgui.h dependency platform-specific.
3148
0a7df391
GM
3149 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3150
d6d23852
SM
31512010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3152
d2630aef
SM
3153 * process.c (read_process_output, exec_sentinel): Don't burp if the
3154 sentinel/filter kills the current buffer (bug#6060).
3155
f9dddf52 3156 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3157 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3158 Remove unused var `args'.
3159 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3160 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3161 * doc.c (store_function_docstring): Use XSETCAR.
3162
f1e3642a
GM
31632010-04-28 Glenn Morris <rgm@gnu.org>
3164
faf535f8
GM
3165 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3166 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3167
c40f9449
GM
3168 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3169
658f86ca
GM
3170 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3171 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3172
bc0b5f61
GM
3173 * Makefile.in (FONT_OBJ): New, set by configure.
3174 (FONT_DRIVERS): Use $FONT_OBJ.
3175
294c50a0
GM
3176 * Makefile.in (LIBXMU): Set with configure, not cpp.
3177 * s/aix4-2.h (LIBXMU):
3178 * s/hpux10-20.h (LIBXMU):
3179 Remove definition, now set in configure.
3180
e6ec4e99
GM
3181 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3182
f1e3642a
GM
3183 * m/amdx86-64.h [i386]: Move this test to configure.in.
3184
c6ea2936
GM
31852010-04-27 Glenn Morris <rgm@gnu.org>
3186
8fdac2c3
GM
3187 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3188 * s/unixware.h (NEED_LIBW): Remove definition.
3189
986fb647
GM
3190 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3191 (TOOLKIT_LIBW): New, set by configure.
3192 (@X_TOOLKIT_TYPE@): No longer define it.
3193
c6ea2936
GM
3194 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3195 (MOTIF_LIBW): Set with configure, not cpp.
3196 * s/aix4-2.h (LIB_MOTIF):
3197 * s/gnu-linux.h (LIB_MOTIF):
3198 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3199
aaa36002
DN
32002010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3201
3202 Reduce CPP usage.
3203 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3204 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3205 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3206 definitions and undefs. Inline definitions in the only user.
3207 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3208
b678dd8b
GM
32092010-04-27 Glenn Morris <rgm@gnu.org>
3210
76cda504
GM
3211 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3212 since the defaults (set by the system file) are fine in most cases.
3213 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3214 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3215 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3216 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3217 Remove definitions, since they are set correctly in s/gnu-linux.h.
3218 * s/freebsd.h (START_FILES, LIB_STANDARD):
3219 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3220 * s/hpux10-20.h (START_FILES):
3221 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3222 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3223
b678dd8b
GM
3224 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3225 (MOTIF_LIBW): Use $LIBXP.
3226 (otherobj): Use $WIDGET_OBJ.
3227
9452ded1
DN
32282010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3229
7e10844c
DN
3230 * Makefile.in (LIBS_MACHINE): Remove, unused.
3231
9452ded1
DN
3232 Use autoconf instead of cpp for LIB_MATH.
3233 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3234 * s/cygwin.h (LIB_MATH): Likewise.
3235 * Makefile.in (LIB_MATH): Do not define with cpp.
3236 (LIBES): Use autoconf for LIB_MATH.
3237
fcebfc6a
KH
32382010-04-26 Kenichi Handa <handa@m17n.org>
3239
3240 * composite.c (Ffind_composition_internal): Fix the return value
3241 for an automatic composition.
3242
39e2ad1b
DN
32432010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3244
3245 Remove all NO_ARG_ARRAY uses.
3246 * fns.c (concat2, concat3, nconc2):
3247 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3248 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3249 * m/xtensa.h (NO_ARG_ARRAY):
3250 * m/template.h (NO_ARG_ARRAY):
3251 * m/sparc.h (NO_ARG_ARRAY):
3252 * m/sh3.h (NO_ARG_ARRAY):
3253 * m/mips.h (NO_ARG_ARRAY):
3254 * m/macppc.h (NO_ARG_ARRAY):
3255 * m/iris4d.h (NO_ARG_ARRAY):
3256 * m/intel386.h (NO_ARG_ARRAY):
3257 * m/ibms390x.h (NO_ARG_ARRAY):
3258 * m/ibms390.h (NO_ARG_ARRAY):
3259 * m/ibmrs6000.h (NO_ARG_ARRAY):
3260 * m/ia64.h (NO_ARG_ARRAY):
3261 * m/hp800.h (NO_ARG_ARRAY):
3262 * m/arm.h (NO_ARG_ARRAY):
3263 * m/amdx86-64.h (NO_ARG_ARRAY):
3264 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3265
adf4f59c
EZ
32662010-04-25 Eli Zaretskii <eliz@gnu.org>
3267
6bdf5d65
EZ
3268 * xdisp.c (display_line): Don't assume 2nd call to
3269 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3270 (iterate_out_of_display_property): New function, body from pop_it.
3271 (pop_it): Use it.
adf4f59c 3272
dfbbda83
GM
32732010-04-24 Glenn Morris <rgm@gnu.org>
3274
3275 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3276 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3277 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3278 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3279
2d4018aa
EZ
32802010-04-24 Eli Zaretskii <eliz@gnu.org>
3281
a49884a6
EZ
3282 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3283 use `get_next_display_element' and `set_iterator_to_next' to
3284 advance to the next character, when looking for the character that
3285 begins the next row.
3286
76db6fcc 3287 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3288 definition of "struct Lisp_Symbol".
3289
70eab5c1
GM
32902010-04-24 Glenn Morris <rgm@gnu.org>
3291
3292 * Makefile.in (CRT_DIR): New variable, set by configure.
3293 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3294 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3295
1ad4cc3d
DN
32962010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3297
e769f484
DN
3298 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3299
4196ff33
DN
3300 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3301
879b0ee4
DN
3302 Remove redundant flags.
3303 * s/freebsd.h (C_SWITCH_SYSTEM):
3304 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3305 * s/netbsd.h (C_SWITCH_SYSTEM):
3306 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3307 of these.
3308
03cbbcb8
DN
3309 Simplify m/intel386.h.
3310 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3311 user: ecrt0.c.
3312 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3313 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3314 the only user: s/unixware.h.
3315 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3316 from m/intel386.h.
3317 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3318 moved here from m/intel386.h.
3319
1ad4cc3d
DN
3320 * m/mips.h: Remove #if 0 code.
3321
8785b888
EZ
33222010-04-23 Eli Zaretskii <eliz@gnu.org>
3323
728588cc
EZ
3324 Fix display of composed characters from L2R scripts in bidi buffers.
3325 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3326 After advancing IT past the composition, resync the bidi iterator
3327 with IT's position. (Bug#5977)
3328
a63f80b4
DN
33292010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3330
3331 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3332 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3333
ff5dec5c
SM
33342010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3335
3336 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3337
8785b888
EZ
33382010-04-23 Eli Zaretskii <eliz@gnu.org>
3339
58ccf243 3340 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3341 * xdisp.c (pop_it): When the stack is popped after displaying
3342 from a string, bidi-iterate to exit from the text portion covered
3343 by the `display' property or overlay. (Bug#5988, bug#5920)
3344
feeb1604
DN
33452010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3346
8e324eb6
DN
3347 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3348 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3349
809fcaba
DN
3350 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3351 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3352
ed710380
DN
3353 Simplify STARTFILES definition.
3354 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3355 relying on Makefile.in to define it.
3356 * s/cygwin.h (START_FILES): Likewise.
3357 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3358
feeb1604
DN
3359 Clean up Solaris code.
3360 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3361 (LIB_MOTIF): Remove, configure takes care of this.
3362 (NOT_USING_MOTIF): Remove, unused.
3363 * xrdb.c: Remove #if 0-ed #include.
3364 (SYSV): Remove conditional for old SysV.
3365 * sysdep.c (closedir): Remove conditional code for Solaris,
3366 Solaris has closedir.
3367
a0d0b563
JD
33682010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3369
3370 * xsettings.c (read_and_apply_settings): Check if current_font is
3371 NULL before strcmp (Bug#6001).
3372
56bae7c7
DN
33732010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3374
3375 Clean up HP-UX files.
3376 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3377 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3378 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3379 * s/hpux10-20.h: ... to the only user, here.
3380
372b7a95
EZ
33812010-04-21 Eli Zaretskii <eliz@gnu.org>
3382
3383 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3384 use buffer-local values of paragraph-start and paragraph-separate.
3385 <paragraph_start_re, paragraph_separate_re>: Rename from
3386 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3387 (Bug#5992)
3388
f904c0f9
JD
33892010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3390
3391 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3392 current_tool_bar_style are new.
3393 (store_config_changed_event): Rename from store_font_changed_event.
3394 (XSETTINGS_TOOL_BAR_STYLE): New define.
3395 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3396 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3397 HAVE_XFT.
3398 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3399 store_config_changed_event.
f904c0f9
JD
3400 (parse_settings): Rename from parse_xft_settings. Read
3401 non-xft xsettings outside #ifdef HAVE_XFT.
3402 (read_settings): Renamed from read_xft_settings.
3403 (apply_xft_settings): Take current settings as parameter. Do not
3404 call read_(xft)_settings.
3405 (read_and_apply_settings): New function.
3406 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3407 read_and_apply_settings if there are settings to be read.
3408 (init_xsettings): Renamed from init_xfd_settings.
3409 Call read_and_apply_settings unconditionally.
3410 (xsettings_initialize): Call init_xsettings.
3411 (Ftool_bar_get_system_style): New function.
3412 (syms_of_xsettings): Define Qmonospace_font_name and
3413 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3414 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3415 dynamic-setting.
31a01b90 3416 Move misplaced HAVE_GCONF
f904c0f9
JD
3417
3418 * xsettings.h (Ftool_bar_get_system_style): Declare.
3419
3420 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3421 Qtext, Qboth, Qboth_horiz are new.
3422 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3423 Vtool_bar_style, tool_bar_max_label_size.
3424
3425 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3426
3427 * keyboard.c: QClabel is new.
3428 (parse_tool_bar_item): Take out QClabel from tool bar items.
3429 Try to construct a label if ther is no QClabel.
3430 (syms_of_keyboard): Intern :label as QClabel.
3431
3432 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3433 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3434 New.
3435
3436 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3437 dynamic-setting.el.
3438
3439 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3440 (xg_make_tool_item, xg_show_toolbar_item): New function.
3441 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3442 Call xg_make_tool_item to make a tool bar item.
3443 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3444
3445 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3446 into account for toolbars.
3447
c632dfda
JD
34482010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3449
3450 * data.c (make_blv): Declarations before code (Bug#5993).
3451
10efe302
GM
34522010-04-21 Glenn Morris <rgm@gnu.org>
3453
3454 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3455 Define using autoconf, not cpp.
3456 (LIBXSM): New variable, set by autoconf.
3457 (LIBXT): Use $LIBXSM.
3458
4285ac5a
DN
34592010-04-21 Dan Nicolaescu <local_user@dannlt>
3460
3ec759e7
DN
3461 Remove NOMULTIPLEJOBS, unused.
3462 * s/template.h (NOMULTIPLEJOBS):
3463 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3464
4285ac5a
DN
3465 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3466 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3467 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3468 detects -znocombreloc and passes it to the linker
3469 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3470
2807228d
GM
34712010-04-21 Glenn Morris <rgm@gnu.org>
3472
3473 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3474
574c05e2
KK
34752010-04-21 Karel Klíč <kklic@redhat.com>
3476
3477 * Makefile.in (LIBSELINUX_LIBS): New.
3478 (LIBES): Add $LIBSELINUX_LIBS.
3479 * eval.c, lisp.h (call7): New function.
3480 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3481 (Ffile_selinux_context, Fset_file_selinux_context):
3482 New functions.
3483 (Fcopy_file): New parameter preserve-selinux-context.
3484 (Frename_file): Preserve selinux context when renaming by copy-file.
3485
91eac4bb 34862010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3487 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3488
50426a04
JB
3489 Don't depend on cm.c or termcap.c on Windows, use stubs.
3490 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3491 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3492 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3493 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3494 (sys_tputs, sys_tgetstr): New stubs.
3495 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3496 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3497
938efb77
JB
34982010-04-20 Juanma Barranquero <lekktu@gmail.com>
3499
3500 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3501
b4bf28b7
SM
35022010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3503
8b1e1112
SM
3504 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3505 Just signal a warning rather than an error when inside a let.
3506 (Fmake_variable_frame_local): Add the same test.
3507
933ac235
SM
3508 * font.c (syms_of_font): Make the style table vars read-only.
3509
b4bf28b7
SM
3510 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3511 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3512
3513 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3514
93d68d0c
EZ
35152010-04-20 Eli Zaretskii <eliz@gnu.org>
3516
3517 Fix R2L paragraph display on TTY.
3518
3519 * xdisp.c (unproduce_glyphs): New function.
3520 (display_line): Use it when produced glyphs are discarded from R2L
3521 glyph rows.
3522 (append_composite_glyph): In R2L rows, prepend the glyph rather
3523 than appending it.
3524
3525 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3526 rather than append it. Set up the resolved_level and bidi_type
3527 attributes of the appended glyph.
283ccc18
EZ
3528 (produce_special_glyphs): Mirror the backslash continuation
3529 character in R2L lines.
93d68d0c 3530
283ccc18 3531 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3532
283ccc18
EZ
3533 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3534 append_stretch_glyph.
3535 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3536 off-by-one error in computing x at end of text in the row.
3537 (append_stretch_glyph): In reversed row, prepend the glyph rather
3538 than append it. Set resolved_level and bidi_type of the glyph.
3539 (extend_face_to_end_of_line): If the row is reversed, prepend a
3540 stretch glyph whose width is such that the rightmost glyph will be
3541 drawn at the right margin of the window. Fix off-by-one error on
3542 TTY frames in testing whether a line needs face extension. Fix
3543 face extension at ZV. If this is the last glyph row, use
3544 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3545 region face.
3546 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3547 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3548 row->continuation_lines_width.
283ccc18
EZ
3549 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3550 are at ZV. Fixes a crash when reseated to ZV by
3551 try_window_reusing_current_matrix.
45903529
EZ
3552 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3553 which happens with R2L glyph rows. Fixes a crash when inserting a
3554 character at end of an R2L line.
283ccc18
EZ
3555 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3556 treat them as having zero-width characters. Improve comments.
3557 Don't reverse pos_before and pos_after for reversed glyph rows.
3558 Set cursor.x to negative value when the cursor might be on the
3559 left fringe.
3560 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3561 left fringe, not the right one.
f951a506
EZ
3562 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3563 (erase_phys_cursor): For reversed cursor_row, support cursor on
3564 the left fringe.
3565
283ccc18
EZ
3566 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3567 of continuation indicators on the fringes.
3568 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3569 left fringe.
3570
f951a506
EZ
3571 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3572 draw cursor on the left fringe.
3573
3574 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3575 cursor on the left fringe.
3576
f951a506
EZ
3577 * dispnew.c (update_text_area): Handle reversed desired rows when
3578 the cursor is on the left fringe.
3579 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3580 below, not by 0, for when the cursor is on the left fringe.
3581
3bb49aaf
JD
35822010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3583
3584 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3585 widget is a scrollbar.
3586
c0be27fd
KH
35872010-04-20 Kenichi Handa <handa@m17n.org>
3588
3589 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3590 only when the arg CHARSET_LIST is nil.
3591
ce5b453a
SM
35922010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3593
3594 Make variable forwarding explicit rather the using special values.
3595 Basically, this makes the structure of buffer-local values and object
3596 forwarding explicit in the type of Lisp_Symbols rather than use
3597 special Lisp_Objects for that. This tends to lead to slightly more
3598 verbose code, but is more C-like, simpler, and makes it easier to make
3599 sure we handled all cases, among other things by letting the compiler
3600 help us check it.
3601 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3602 Removing forwarding objects.
3603 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3604 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3605 explicit rather than hiding them inside Lisp_Object "values".
3606 (XFWDTYPE): New macro.
3607 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3608 (XBUFFER_LOCAL_VALUE): Remove.
3609 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3610 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3611 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3612 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3613 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3614 Remove the Lisp_Misc_* header.
3615 (struct Lisp_Buffer_Local_Value): Redefine.
3616 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3617 (struct Lisp_Misc_Any): Add filler to get the right size.
3618 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3619 Lisp_Intfwd.
3620 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3621 (DEFVAR_KBOARD): Allocate a forwarding object.
3622 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3623 (let_shadows_global_binding_p): New function.
3624 (union Lisp_Val_Fwd): New type.
3625 (make_blv): New function.
3626 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3627 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3628 (swap_in_symval_forwarding, find_symbol_value, Fset)
3629 (let_shadows_buffer_binding_p, set_internal, default_value)
3630 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3631 (Fkill_local_variable, Fmake_variable_frame_local)
3632 (Flocal_variable_p, Flocal_variable_if_set_p)
3633 (Fvariable_binding_locus):
3634 * xdisp.c (select_frame_for_redisplay):
3635 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3636 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3637 * frame.c (store_frame_param):
3638 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3639 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3640 value structure.
3641 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3642 (clone_per_buffer_values): Only adjust markers into the current buffer.
3643 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3644 (Fbuffer_local_value, set_buffer_internal_1)
3645 (swap_out_buffer_local_variables):
3646 Adapt to the new symbol value structure.
3647 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3648 (defvar_per_buffer): Take a new arg for the fwd object.
3649 (buffer_lisp_local_variables): Return a proper alist (different fix
3650 for bug#4138).
3651 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3652 (Fgarbage_collect): Don't handle buffer_defaults specially.
3653 (mark_object): Handle new symbol value structure rather than the old
3654 special Lisp_Misc_* objects.
3655 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3656 * term.c (set_tty_color_mode):
3657 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3658 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3659 a buffer_local_flags.
3660 * print.c (print_object): Get rid of impossible forwarding objects.
3661
fd3998ff
EZ
36622010-04-19 Eli Zaretskii <eliz@gnu.org>
3663
3664 * bidi.c (bidi_get_type, bidi_get_category)
3665 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3666 (bidi_type_of_next_char, bidi_level_of_next_char):
3667 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3668
e42cd1a7
JB
36692010-04-19 Juanma Barranquero <lekktu@gmail.com>
3670
3671 * dired.c (Ffile_attributes): Fix typo in docstring.
3672
6e104790 36732010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3674
3675 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3676 NSInteger (Bug#5811).
3677
6e104790 36782010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3679
3680 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3681 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3682
6e104790 36832010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3684
3685 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3686
6e104790
SM
36872010-04-19 Chong Yidong <cyd@stupidchicken.com>
3688
3689 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3690 terminal frames (Bug#5837).
3691
37dcfea0
EZ
36922010-04-19 Eli Zaretskii <eliz@gnu.org>
3693
d1da276f
EZ
3694 * .gdbinit (xsubchartable): New command.
3695
37dcfea0
EZ
36962010-04-19 Eli Zaretskii <eliz@gnu.org>
3697
3698 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3699 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3700 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3701 and
3702 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3703
e9515805
SM
37042010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3705
3706 * alloc.c (Fpurecopy): Hash-cons if requested.
3707 (syms_of_alloc): Update purify-flag docstring.
3708
22aa44a8
JD
37092010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3710
3711 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3712 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3713
ebb5722e
EZ
37142010-04-17 Eli Zaretskii <eliz@gnu.org>
3715
3716 Fix a crash when an NSM character is inserted at BEGV.
3717
3718 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3719 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3720 NEUTRAL_B or UNKNOWN_BT.
3721
0f4442ef
EZ
37222010-04-16 Eli Zaretskii <eliz@gnu.org>
3723
3724 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3725 other rows with cursor unless they are different from this row and
3726 this row is part of a continued line. (Bug#5943)
3727
7d4e45f8
DN
37282010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3729
3730 * s/freebsd.h: Restore osreldate.h include.
3731 Suggested by Naohiro Aota.
3732
5ba5ec85
J
37332010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3734
3735 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3736
20af301d
CY
37372010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3738
3739 * s/cygwin.h: Avoid linking against static libgcc.
3740
a4b000fb
JL
37412010-04-15 Juri Linkov <juri@jurta.org>
3742
3743 * window.c: Add Qscroll_command.
3744 Remove Vscroll_preserve_screen_position_commands.
3745 (window_scroll_pixel_based, window_scroll_line_based): Check the
3746 `scroll-command' property on the last command instead of searching
3747 the last command in Vscroll_preserve_screen_position_commands.
3748 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3749 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3750 (scroll-preserve-screen-position): Doc fix.
3751 (Vscroll_preserve_screen_position_commands): Remove variable.
3752
bc319ba4
DN
37532010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3754
6bb24457
DN
3755 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3756
19d4c244
DN
37572010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3758
3759 Reduce cpp use in Makefile.in.
3760 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3761 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3762 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3763 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3764 (CRT0_COMPILE): Remove, inline it in the only user.
3765
32129746
JL
37662010-04-14 Juri Linkov <juri@jurta.org>
3767
3768 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3769 `scroll-up-command' and `M-v' from `scroll-down' to
3770 `scroll-down-command'.
3771
9013a7f8
JL
37722010-04-14 Juri Linkov <juri@jurta.org>
3773
3774 * window.c (Vscroll_preserve_screen_position_commands): New variable
3775 with the default value as the list of Qscroll_down and Qscroll_up.
3776 (window_scroll_pixel_based, window_scroll_line_based): Search the
3777 last command in the list Vscroll_preserve_screen_position_commands
3778 instead of comparing with Qscroll_up and Qscroll_down.
3779
4bef8d26
JD
37802010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3781
92848133
JD
3782 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3783 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3784 does that.
3785
4bef8d26
JD
3786 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3787 to zero.
3788
58b963f7
SM
37892010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3790
84164a0d
SM
3791 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3792
2b0a91e7
SM
3793 Try to solve the problem of spurious EOF chars in long lines of text
3794 sent to interactive subprocesses.
3795 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3796 (system_process_attributes): Remove unused var `ttotal'.
3797 * process.c (send_process): Don't bother breaking long line with EOF
3798 chars when talking to ttys any more.
3799 (wait_reading_process_output): Output a warning when called in such
3800 a way that it could block without being interruptible.
3801
58b963f7
SM
3802 Try to detect file modification within the same second.
3803 * buffer.h (struct buffer): New field modtime_size.
3804 * buffer.c (reset_buffer): Initialize it.
3805 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3806 (Fverify_visited_file_modtime): Check it.
3807 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3808 (Fset_visited_file_modtime): Set (or clear) it.
3809
01f5787b
SM
38102010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3811
3812 * process.c (status_notify): Remove unused var `ro'.
3813
83725342
JD
38142010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3815
3816 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3817 more than one visual (Bug#5938).
3818
b9465836
DN
38192010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3820
50426a04
JB
3821 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3822 Undefine.
b9465836 3823
8d9c8ece
DN
38242010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3825
b1f52161
DN
3826 Remove C_SWITCH_SYSTEM_TEMACS.
3827 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3828 (malloc, realloc, free): Use emacs, not temacs for conditional
3829 definition.
3830
3831 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3832 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3833
8d9c8ece
DN
3834 Use autoconf, not cpp for some variables.
3835 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3836 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3837 (ALL_CFLAGS): Use them as make variables.
3838 (really-lwlib, really-oldXMenu): Do not pass them.
3839
1ecb2d3f
JD
38402010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3841
3842 * xmenu.c (apply_systemfont_to_dialog): New.
3843 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3844
3a4fa2f2
SM
38452010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3846
97e53006
SM
3847 * process.c (exec_sentinel): Preserve current-buffer.
3848
3a4fa2f2
SM
3849 * process.c (read_process_output): Move the save-current-buffer to
3850 apply to both the filter and the non-filter branches.
3851
88df7221
DN
38522010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3853
3854 * s/msdos.h (UNEXEC): New definition.
3855
5634ff85
YM
38562010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3857
6eff5c3d
YM
3858 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3859 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3860
3861 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3862 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3863 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3864 TRY_WINDOW_CHECK_MARGINS.
3865
3866 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3867 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3868 width only when it is for padding.
5634ff85 3869
b13aef54
J
38702010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3871
3872 * xfns.c (Fx_show_tip): Call try_window in a loop until
3873 fonts_changed_p is zero (Bug#2423).
3874
21d28484
EZ
38752010-04-08 Eli Zaretskii <eliz@gnu.org>
3876
3877 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3878 the end of TEXT_AREA. (Bug#5856)
3879
0269ef77
JD
38802010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3881
3882 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3883 HAVE_GCONF.
3884
5930fe97
EZ
38852010-04-08 Eli Zaretskii <eliz@gnu.org>
3886
3887 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3888 prev.orig_type, for resolving type of NSM. (Bug#5858)
3889
99852628
JD
38902010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3891
3892 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3893 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3894 in current_font.
3895 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3896 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3897 New functions.
3898 (syms_of_xsettings): Initialize current_font.
3899 defsubr Sfont_get_system_normal_font.
99852628 3900
686b968e
JB
3901 * xsettings.h (Ffont_get_system_normal_font)
3902 (xsettings_get_system_normal_font): Declare.
99852628
JD
3903
3904 * xfns.c (extern xlwmenu_default_font): Remove.
3905 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3906 to xlwmenu.c.
3907
3908 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3909 menu items in UTF-8.
3910
3911 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3912 (apply_systemfont_to_menu): New function.
3913 (set_frame_menubar, create_and_show_popup_menu): Call
3914 apply_systemfont_to_menu.
3915
7fc874c4
J
39162010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3917
3918 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3919 FRAME_LINE_TO_PIXEL_Y.
3920
3921 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3922 pixelwidth/height.
3923
863bf481
DN
39242010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3925
5e5a3b92
DN
3926 Simplify code for HP machines.
3927 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3928 for GNU_LINUX, not needed.
3929 (UNEXEC, NEED_BSDTTY): Move definitions...
3930 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3931
863bf481
DN
3932 * m/iris4d.h (UNEXEC): Move definition ...
3933 * s/irix6-5.h (UNEXEC): ... here.
3934
3e6bec3b
JD
39352010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3936
3937 * xfns.c (set_machine_and_pid_properties): New function.
3938 (Fx_create_frame): Call set_machine_and_pid_properties.
3939
2912322b
SM
39402010-04-03 Eli Zaretskii <eliz@gnu.org>
3941
1502b819
EZ
3942 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3943 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3944 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3945
2912322b
SM
3946 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3947 in this function. (Bug#5703)
3948
39492010-04-03 Chong Yidong <cyd@stupidchicken.com>
3950
3951 * nsterm.h: Fix last change.
3952
c435b432
DN
39532010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3954
a568f507
DN
3955 * m/intel386.h (NO_REMAP): Move definition ...
3956 * s/msdos.h (NO_REMAP): ... here.
3957
4cd9f6c2
DN
3958 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3959
c435b432
DN
3960 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3961 used on those platforms.
3962
42a2c622
DN
39632010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3964
3965 Remove extern errno declarations.
3966 * xterm.c:
3967 * xrdb.c:
3968 * w32term.c:
3969 * unexec.c:
3970 * unexaix.c:
3971 * sysdep.c:
3972 * process.c:
3973 * lread.c:
3974 * keyboard.c:
3975 * floatfns.c:
3976 * filelock.c:
3977 * fileio.c:
3978 * emacs.c (main):
3979 * ecrt0.c:
3980 * dispnew.c:
3981 * callproc.c:
3982 * buffer.c: Remove errno extern declarations.
3983 * s/netbsd.h (NEED_ERRNO): Remove.
3984
8224f93d
DN
39852010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3986
3987 Remove all uses of LIBX11_SYSTEM.
3988 * Makefile.in (LIBX11_SYSTEM): Remove.
3989 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3990 instead.
3991
814062c7
EZ
39922010-04-01 Eli Zaretskii <eliz@gnu.org>
3993
ed68db4d
EZ
3994 Remove support for DJGPP v1.x (bug#5813).
3995
3996 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3997 * s/msdos.h:
3998 * unexec.c (make_hdr, copy_text_and_data):
3999 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4000 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4001 (IT_set_terminal_modes, __write, _rename, gethostname)
4002 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4003 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4004 the value of __DJGPP__.
ed68db4d
EZ
4005 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4006 compatibility code.
8224f93d
DN
4007 * lread.c:
4008 * gmalloc.c (memalign):
4009 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4010 * emacs.c (main):
4011 * dosfns.c (init_dosfns):
ed68db4d
EZ
4012 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4013
52f4d8d5
EZ
40142010-04-01 Eli Zaretskii <eliz@gnu.org>
4015
814062c7
EZ
4016 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4017 string with `cursor' property comes from an `after-string'
4018 overlay. (Bug#5816)
4019
0dc2e11d
GM
40202010-04-01 Glenn Morris <rgm@gnu.org>
4021
4022 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4023 Define as Makefile variables.
4024 (LIBX): Use above variables rather than directly using autoconf.
4025
1d29df59
DN
40262010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4027
4028 Clean up BSD_SYSTEM use.
4029 * xterm.c:
4030 * process.c:
4031 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4032 for including <sys/ioctl.h>.
4033 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4034 code is only used for MSDOS.
4035
1546c559
JL
40362010-03-31 Juri Linkov <juri@jurta.org>
4037
4038 * image.c: Add `Qextension_data'.
4039 (syms_of_image): Initialize and staticpro `Qextension_data'.
4040 (Fimage_metadata): Rename from `Fimage_extension_data'.
4041 (gif_load): Put GIF extension data to the property
4042 `Qextension_data'.
4043
6521c534
CY
40442010-03-31 Chong Yidong <cyd@stupidchicken.com>
4045
4046 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4047 * nsterm.h: Fix prototype.
4048
52c30783
EZ
40492010-03-31 Eli Zaretskii <eliz@gnu.org>
4050
4051 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4052 trailing whitespace in right-to-left rows.
4053
855a0da7
SM
40542010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4055
4056 Get rid of the direct_output optimizations.
4057 * keyboard.c (nonundocount): Remove extern declaration.
4058 (command_loop_1): Remove brittle optimisation for cheap and
4059 common operations.
4060 * xdisp.c (redisplay_internal): Don't bother checking
4061 redisplay_performed_directly_p any more.
4062 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4063 any more.
4064 * dispnew.c (redisplay_performed_directly_p)
4065 (direct_output_for_insert, direct_output_forward_char):
4066 * dispextern.h (redisplay_performed_directly_p)
4067 (direct_output_for_insert, direct_output_forward_char): Remove.
4068 * cmds.c (nonundocount): Make it static.
4069
85738751 40702010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4071
4072 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4073
85738751 40742010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4075
4076 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4077 invisible (Bug#5766).
4078
85738751 40792010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4080
855a0da7
SM
4081 * xdisp.c (x_consider_frame_title, update_window_cursor):
4082 Remove HAVE_NS conditionals.
194d44e7 4083 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4084
4085 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4086 filename for the title.
4087 (ns_set_doc_edited): Do nothing if the selected window is a
4088 minibuffer window.
4089
4090 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4091 ns_set_doc_edited.
4092
4093 * nsterm.m: Remove unneeded prototype.
4094
85738751 40952010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4096
4097 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4098 in the DOC file. (Bug#5336)
4099
85738751 41002010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4101
4102 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4103
75d1428c
SM
41042010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4105
4106 * window.c (keys_of_window): Remove redundant/overridden bindings.
4107
82043cfb
EZ
41082010-03-30 Eli Zaretskii <eliz@gnu.org>
4109
4110 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4111 Restore original behavior when the iterator is not bidi_p.
4112
b5dd0ae7
DN
41132010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4114
4115 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4116
bd924a5d
EZ
41172010-03-30 Eli Zaretskii <eliz@gnu.org>
4118
4119 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4120 are outside the range of cached character positions.
4121
3580374b
JB
41222010-03-30 Juanma Barranquero <lekktu@gmail.com>
4123
4124 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4125
a7b02820
EZ
41262010-03-30 Eli Zaretskii <eliz@gnu.org>
4127
4128 Initial support for bidirectional editing.
4129
4130 * Makefile.in (obj): Include bidi.o.
4131 (bidi.o): New target.
4132
4133 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4134 ($(BLD)/bidi.$(O)): New target.
4135
4136 * bidi.c: New file.
4137
4138 * buffer.h (struct buffer): New members bidi_display_reordering
4139 and bidi_paragraph_direction.
4140
4141 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4142 and bidi_paragraph_direction.
4143 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4144 and bidi-paragraph-direction.
4145 (Fbuffer_swap_text): Swap the values of
4146 bidi_display_reordering and bidi_paragraph_direction.
4147
4148 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4149 (bidi_type_t, bidi_dir_t): New types.
4150 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4151 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4152 prev_stop, base_level_stop, and eol_pos.
4153 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4154 (IT_STACK_SIZE): Enlarge to 5.
4155 (struct glyph_row): New member reversed_p.
4156 <string_buffer_position>: Update prototype.
4157 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4158 glyph_row if bidi_it.paragraph_dir == R2L.
4159 (struct glyph): New members resolved_level and bidi_type.
4160
4161 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4162 processing or buffer's direction is right-to-left.
4163 (prepare_desired_row): Preserve the reversed_p flag.
4164 (row_equal_p): Compare the reversed_p attributes as well.
4165
4166 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4167 bidi_init_it and set it->paragraph_embedding from the current
4168 buffer's value of bidi_paragraph_direction.
4169 (reseat_1): Initialize bidi_it.first_elt.
4170 (set_iterator_to_next, next_element_from_buffer): Use the value of
4171 paragraph_embedding to determine the paragraph direction.
4172 (set_iterator_to_next): Under bidi reordering, call
4173 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4174 new_paragraph flag is set in the bidi iterator.
4175 (next_element_from_buffer): If bidi_it.first_elt is set,
4176 initialize paragraph direction and find the first character to
4177 display in the visual order. If reseated to a middle of a line,
4178 prime the bidi iterator starting at the line's beginning. Handle
4179 the situation where we overstepped stop_charpos due to
4180 non-linearity of the bidi iteration. Likewise for when we back up
4181 beyond the previous stop_charpos. When moving across stop_charpos,
4182 record it in prev_stop.
4183 (display_line): Set row->end and it->start for the next row to the
4184 next character in logical order. Always extend reversed_p rows to
4185 the end of line, even if they end at ZV. Copy the reversed_p flag
4186 to the next glyph row. Keep calling set_cursor_from_row for
4187 bidi-reordered rows even if we already have a possible candidate
4188 for cursor position. Set row_end after all the row's glyphs have
4189 been produced, by looping over the glyphs. Record the position
4190 after EOL in it->eol_pos, and use it to set end_pos of the last
4191 row produced for a continued line.
4192 <Qright_to_left, Qleft_to_right>: New variables.
4193 (syms_of_xdisp): Initialize and staticpro them.
4194 (string_buffer_position_lim): New function.
4195 (string_buffer_position): Most of code moved to
4196 string_buffer_position_lim. Last argument and return value are
4197 now EMACS_INT; all callers changed.
4198 (set_cursor_from_row): Rewritten to support bidirectional text and
4199 reversed glyph rows.
4200 (text_outside_line_unchanged_p, try_window_id): Disable
4201 optimizations if we are reordering bidirectional text and the
4202 paragraph direction can be affected by the change.
4203 (append_glyph, append_composite_glyph)
4204 (produce_image_glyph, append_stretch_glyph): Set the
4205 resolved_level and bidi_type members of each glyph.
4206 (append_glyph): If the glyph row is reversed, prepend the glyph
4207 rather than appending it.
4208 (handle_stop_backwards): New function.
4209 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4210 (reseat): call handle_stop_backwards to recompute prev_stop and
4211 base_level_stop for the new position.
4212 (handle_invisible_prop): Under bidi iteration, skip invisible text
4213 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4214 paragraph direction. Update IT->prev_stop after skipping
4215 invisible text.
4216 (move_it_in_display_line_to): New variables prev_method
4217 and prev_pos. Compare for strict equality in
4218 BUFFER_POS_REACHED_P.
4219 (try_cursor_movement): Examine all the candidate rows that occlude
4220 point, to return the best match. If rows are bidi-reordered
4221 and point moved backwards, back up to the row that is not a
4222 continuation line, and start looking for a suitable row from
4223 there.
4224
4225 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4226 rather than appending, if the glyph_row's reversed_p flag is set.
4227 Set the resolved_level and bidi_type members of each glyph.
4228
4229 * .gdbinit (pbiditype): New command.
4230 (pgx): Use it to display bidi level and type of the glyph.
4231 (pitx): Display some bidi information about the iterator.
4232 (prowlims, pmtxrows): New commands.
4233
32a8894e
DN
42342010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4235
4236 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4237 * s/usg5-4.h (LIBS_DEBUG):
4238 * s/irix6-5.h (C_DEBUG_SWITCH):
4239 * s/gnu-linux.h (LIBS_DEBUG):
4240 * s/darwin.h (LIBS_DEBUG):
4241 * s/bsd-common.h (LIBS_DEBUG):
4242 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4243 * m/iris4d.h (LIBS_DEBUG):
4244 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4245
4246 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4247 (LIBS_DEBUG): Remove definition.
4248
649dbf36
CY
42492010-03-27 Chong Yidong <cyd@stupidchicken.com>
4250
4251 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4252 Windows.
4253
cad4261f
YM
42542010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4255
4256 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4257 `connect' (Bug#5723).
4258
cd591dbc
HE
42592010-03-25 Helmut Eller <eller.helmut@gmail.com>
4260
4261 * process.c (Fmake_network_process): Call `select' for interrupted
4262 `connect' rather than creating new socket (Bug#5173).
4263
e867cb5d 42642010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4265
4266 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4267
4268 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4269
4270 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4271
e867cb5d 42722010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4273
4274 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4275 XLoadQueryFont.
4276
e867cb5d 42772010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4278
4279 * coding.c (decode_coding_ccl): Fix previous change for the
4280 multibyte case.
fb608df3
KH
4281 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4282 case that the output buffer is fullfilled.
4283 (encode_coding): Setup ccl program here.
fbdc1721 4284
5845f0ed
DN
42852010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4286
814fb708
DN
4287 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4288
5845f0ed
DN
4289 Simplify LIBS_MACHINE definitions.
4290 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4291 * m/iris4d.h (LIBS_MACHINE): Likewise.
4292 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4293 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4294 * s/netbsd.h: Remove commented out code.
5845f0ed 4295
b7064064
DN
42962010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4297
df7734b2
DN
4298 Remove dead code dealing with POSIX_SIGNALS.
4299 * atimer.c (set_alarm): Remove dead code, all USG systems define
4300 POSIX_SIGNALS.
4301 * data.c (arith_error): Likewise.
4302 * keyboard.c (input_available_signal, handle_user_signal)
4303 (interrupt_signal): Likewise.
4304 * process.c (sigchld_handler): Likewise.
4305 (create_process): Remove if 0 code. Remove HPUX conditional when
4306 !defined (POSIX_SIGNALS), it cannot be true.
4307 * syssignal.h: Remove USG5_4 and USG conditionals when
4308 !POSIX_SIGNALS, they cannot be true.
4309
b7064064
DN
4310 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4311 NO_SOCK_SIGIO, not used anymore.
4312
55da5ee3
DN
43132010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4314
0be96e3a
DN
4315 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4316 support vax on BSDs.
4317
55da5ee3
DN
4318 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4319 * s/aix4-2.h (ORDINARY_LINK): ... here.
4320
c0282183
AS
43212010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4322
82c3d67a
AS
4323 * Makefile.in (abs_builddir): Define.
4324 (bootstrap_exe): Use it.
4325 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4326
3613edce
SM
43272010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4328
4329 * Makefile.in (bootstrap_exe): Use an absolute name.
4330
7f110ddc
DN
43312010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4332
22e87574
DN
4333 Remove support for old GNU/Linux using libc version 5.
4334 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4335 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4336
05a670e6
DN
4337 Consolidate redundant definitions in s/bsd-common.h.
4338 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4339 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4340 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4341 doing it in all files that include this one.
4342 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4343 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4344 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4345 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4346 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4347 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4348 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4349 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4350 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4351
2968f561
DN
4352 Consolidate redundant definitions.
4353 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4354 it's undefined in all files that include this one.
4355 (POSIX_SIGNALS): Define here instead of doing it in all files that
4356 include this one.
4357 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4358 (POSIX_SIGNALS): Do not define.
4359 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4360 (POSIX_SIGNALS): Do not define.
4361 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4362 (POSIX_SIGNALS): Do not define.
4363
15d25dc0
DN
4364 Remove support for old UNIX System V systems.
4365 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4366 * s/usg-5-4-2.h: Remove.
4367
07e339e4
DN
4368 Remove support for Solaris on PPC and for old versions.
4369 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4370 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4371 that cancel each other.
4372 * s/sol2-3.h:
4373 * s/sol2-4.h:
4374 * s/sol2-5.h: Remove.
4375 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4376 (NO_REMAP): Remove, unused.
4377 (UNEXEC): Move definition ...
4378 * s/aix4-2.h (UNEXEC): ... here.
4379
7f110ddc
DN
4380 * s/openbsd.h: Remove support for non-ELF and for systems that do
4381 not support shared libraries.
4382 * s/netbsd.h:
4383 * s/freebsd.h: Likewise.
4384
605f35cd
DN
43852010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4386
4387 Remove non-working support for lynxos 3.0.
4388 * s/lynxos.h: Remove file.
4389
4390 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4391 COFF_BSD_SYMBOLS, nothing defines it anymore.
4392
aed71cf4
DN
43932010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4394
4395 Remove obsolete uses of HAVE_SHM.
4396 * emacs.c (standard_args):
4397 (Fdump_emacs):
4398 (syms_of_emacs): Remove code depending on HAVE_SHM.
4399
4400 * alloc.c: Remove HAVE_SHM dependent definition.
4401
4402 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4403
aded53ff
GM
44042010-03-18 Glenn Morris <rgm@gnu.org>
4405
17284745
GM
4406 * emacs.c (USAGE4): Hard-code bug address.
4407 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4408 (bug_reporting_address): Remove.
4409 (main): Don't call bug_reporting_address.
4410
aded53ff
GM
4411 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4412 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4413
303500aa
CY
44142010-03-15 Chong Yidong <cyd@stupidchicken.com>
4415
4416 * xfns.c (Fx_create_frame):
4417 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4418 on left.
4419
cef3058f
CY
44202010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4421
4422 * editfns.c (Fformat): Account for string precision when computing
4423 field width (Bug#5710).
4424
a647d59d
CY
44252010-03-12 Chong Yidong <cyd@stupidchicken.com>
4426
4fa42018
CY
4427 * xfns.c (Fx_create_frame): Set default to Qright.
4428
a647d59d
CY
4429 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4430 all window systems.
4431
6da23aaa
EZ
44322010-03-12 Eli Zaretskii <eliz@gnu.org>
4433
a96f6398 4434 These changes remove termcap.c from the build on Posix platforms.
83d02def 4435 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4436 (MSDOS_OBJ): ...to here.
4437 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4438 now identical to when LIBS_TERMCAP is defined.
4439
4440 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4441
4442 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4443
a96f6398 4444 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4445
288f9fc0
CY
44462010-03-10 Chong Yidong <cyd@stupidchicken.com>
4447
4448 * Branch for 23.2.
4449
d48cd3f4
SM
44502010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4451
4452 Cleanup setup of gl_state in various parts of the code.
4453 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4454 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4455 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4456 (skip_chars):
4457 * regex.c (regex_compile): Use it.
4458 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4459 it's now set in regex_compile when/if we need it.
4460
618db430
SM
44612010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4462
c0335e02
SM
4463 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4464 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4465 (QUIT): Use it to consolidate code and remove redundancy.
4466 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4467
254c06a8
SM
4468 * regex.c (regex_compile): Setup gl_state as well.
4469
618db430
SM
4470 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4471 (in_classes): Use CONSP before XCAR/XCDR.
4472
233f0c9f
CY
44732010-03-03 Chong Yidong <cyd@stupidchicken.com>
4474
4475 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4476 definitions, so that keyboard macros are correctly handled
4477 (Bug#5481).
4478
75f80e63
EZ
44792010-03-02 Eli Zaretskii <eliz@gnu.org>
4480
4481 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4482 text that could be relocated inside the call to emacs_mule_char.
4483 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4484 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4485
dcfb9bc4
KH
44862010-03-02 Kenichi Handa <handa@m17n.org>
4487
fc9a17bc
KH
4488 * character.c (parse_str_as_multibyte): Fix handling of the
4489 multibyte form of raw-bytes.
4490 (str_as_multibyte): Likewise.
4491
dcfb9bc4
KH
4492 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4493 form of raw-bytes.
4494
412c01b6
CY
44952010-02-28 Chong Yidong <cyd@stupidchicken.com>
4496
4497 * charset.c (load_charset_map_from_file)
4498 (load_charset_map_from_vector): Zero out allocated
4499 charset_map_entries before using them.
4500
df7e1ea0
AS
45012010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4502
4503 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4504
fe69a722
CY
45052010-02-27 Chong Yidong <cyd@stupidchicken.com>
4506
4ed28cf4
CY
4507 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4508 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4509
7379cfce
KH
45102010-02-26 Kenichi Handa <handa@m17n.org>
4511
f88cc4d6
KH
4512 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4513
7379cfce
KH
4514 * xdisp.c (reseat_to_string): Fix previous change.
4515
cf2fdcfb
CY
45162010-02-26 David Reitter <david.reitter@gmail.com>
4517
4518 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4519 Lisp_Object (Bug#4736).
4520
cc6c7c75
KH
45212010-02-25 Kenichi Handa <handa@m17n.org>
4522
4523 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4524
32e737d7
JD
45252010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4526
4527 * xterm.c (XTflash): Move declarations before statements.
4528
4529 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4530 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4531 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4532 (xg_create_tool_bar): Remove unused variables.
4533 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4534 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4535
676cae9f
CY
45362010-02-21 Chong Yidong <cyd@stupidchicken.com>
4537
4538 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4539
886cc2b8
SM
45402010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4541
4542 * term.c (fatal): Add a final \n if needed (bug#5596).
4543
ddb2d8e2
CY
45442010-02-18 Chong Yidong <cyd@stupidchicken.com>
4545
4546 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4547
2a4f8d3d
GM
45482010-02-18 Glenn Morris <rgm@gnu.org>
4549
4550 * callint.c (Finteractive): Doc fix.
4551
ebaf11b6
KH
45522010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4553
886cc2b8
SM
4554 * coding.c (record_conversion_result):
4555 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4556 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4557 memory allocation error.
4558
d0396581
KH
45592010-02-17 Kenichi Handa <handa@m17n.org>
4560
886cc2b8
SM
4561 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4562 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4563 (decode_coding): Setup ccl program here. Keep looping when the
4564 decoder stopped because the output buffer is
4565 fullfilled (bug#5534).
4566
4567 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4568
98599f74
JD
45692010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4570
471e4f04 4571 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4572 bug #5571.
886cc2b8 4573 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4574 overdrawn.
98599f74 4575
182659ae
JD
45762010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4577
4578 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4579 doing_interact here.
4580 (ice_connection_closed): New function.
4581 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4582 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4583 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4584 returns I/O error.
4585 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4586 bug #5512.
4587
9be32c4e 45882010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4589
4590 * nsfont.m (nsfont_open): The system's value for the font descent
4591 is negative, so round it down to avoid clipping.
4592
a2f3eb19
CY
45932010-02-06 Chong Yidong <cyd@stupidchicken.com>
4594
4595 * charset.c (load_charset_map_from_file)
4596 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4597 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4598
3088147c
CY
45992010-02-05 Chong Yidong <cyd@stupidchicken.com>
4600
4601 * charset.c (load_charset_map_from_file): Allocate large
4602 charset_map_entries structure on the heap rather than the stack.
4603 (Bug#5526).
4604
b57d9029
KH
46052010-01-31 Kenichi Handa <handa@m17n.org>
4606
4607 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4608 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4609
c67d885b
CY
46102010-01-31 Chong Yidong <cyd@stupidchicken.com>
4611
4612 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4613 <deactivated@gmail.com> (Bug#3605).
4614
8fab2362
CY
46152010-01-31 David De La Harpe Golden <david@harpegolden.net>
4616
4617 * fileio.c (Frename_file): Correctly rename symlinks to
4618 directories (Bug#5496).
4619
cb2a62f2
CY
46202010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4621
4622 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4623
944c7a26
AS
46242010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4625
4626 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4627
c024ac08
CY
46282010-01-29 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * frame.c (DEFAULT_ROWS): Change default to 35.
4631
4632 * xfns.c (x_default_font_parameter): Change default XFT font to
4633 monospace-10 (Bug#3643).
4634
af93af83
EZ
46352010-01-29 Eli Zaretskii <eliz@gnu.org>
4636
4637 * w32inevt.c (key_event): Remove unnecessary comparison of
4638 event->uChar.AsciiChar with 128.
4639
ca0eb708
CY
46402010-01-28 Chong Yidong <cyd@stupidchicken.com>
4641
b242dbfc
CY
4642 * fileio.c (Frename_file): Fix last change (Bug#5487).
4643
ca0eb708
CY
4644 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4645
4646 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4647
45d45af5
JD
46482010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4649
4650 * xfns.c (Fx_create_frame): Remove window size matching code from
4651 2010-01-15.
a73f9c9d 4652 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4653
7e233730
JR
46542010-01-27 Jason Rumney <jasonr@gnu.org>
4655
4656 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4657 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4658
86e893e3
KH
46592010-01-27 Kenichi Handa <handa@m17n.org>
4660
4661 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4662 pattern string (Bug#4209).
86e893e3 4663
8719abec
CY
46642010-01-27 David De La Harpe Golden <david@harpegolden.net>
4665
4666 * fileio.c (Frename_file): Call copy-directory and
4667 delete-directory for directories, in order to handle cross-device
4668 renaming (Bug#3353).
4669
844794c8
JD
46702010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4671
aa3e13b5 4672 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4673 sizes 24 and 10. Bug #3643.
844794c8 4674
bd4b5750
SM
46752010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4676
8dc1adf6 4677 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4678 * keymap.c (shadow_lookup): Add `remap' arg.
4679 (describe_map, describe_vector): Update calls to shadow_lookup.
4680 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4681 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4682 perform remapping during shadow_lookup check of remapped_sequences.
4683
285d07e2
CY
46842010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4685
4686 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4687 png_check_sig, which has been removed in libpng 1.4.
4688
c6d09b8d
CY
46892010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4690
4691 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4692 lacks this header file).
4693
3d782998
YM
46942010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4695
4696 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4697 as in Emacs 22.
4698
2aff7c53
YM
46992010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4700
4701 * lisp.h (make_pure_string): String pointer arg now points to const.
4702
4703 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4704 args now point to const.
4705
74327f7a
EZ
47062010-01-22 Eli Zaretskii <eliz@gnu.org>
4707
4708 * lread.c (Fload): Don't treat files without .elc extension as
4709 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4710 them. (bug#5303)
4711
4d1e6632
KH
47122010-01-20 Kenichi Handa <handa@m17n.org>
4713
4714 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4715 treat the source as actual byte sequence.
4716
1fdede8f
AM
47172010-01-19 Alan Mackenzie <acm@muc.de>
4718
4719 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4720 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4721 `signal_after_change_p' to `coherent_change_p', and make the
4722 invocation of `modify_region' conditional on it.
4723
67477f30
JD
47242010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4725
4726 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4727 for debug purpose.
4728 (syms_of_xsettings): Declare xft-settings.
4729
244b023e
CY
47302010-01-18 Chong Yidong <cyd@stupidchicken.com>
4731
4732 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4733
617364fe
CY
47342010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4735
4736 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4737
4fe22cdf
CY
47382010-01-16 Chong Yidong <cyd@stupidchicken.com>
4739
4740 * emacs.c (standard_args): Adjust arg priorities to reflect how
4741 they are processed in startup.el.
4742
e118d2be
AS
47432010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4744
4745 * Makefile.in (lisp, shortlisp): Update.
4746
523ae620
SM
47472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4748
4749 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4750 code, link the new kboard into all_kboard before running Lisp code,
4751 and protect the new terminal with GCPRO (Bug#5365).
4752 (x_term_init): Remove unused var `atom'.
4753 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4754
f0d13888
JD
47552010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4756
4757 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4758 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4759 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4760 this. Bug #3643.
f0d13888 4761
cc320f07
KH
47622010-01-15 Kenichi Handa <handa@m17n.org>
4763
4764 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4765
7ffdf101
CY
47662010-01-15 Chong Yidong <cyd@stupidchicken.com>
4767
4768 * nsterm.m (Qnone): Define.
4769
4770 * nsfns.m (Qnone): Move definition to nsterm.m.
4771
d12bd917
KH
47722010-01-14 Kenichi Handa <handa@m17n.org>
4773
4774 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4775 systems.
4776
d9a7c140
KH
47772010-01-14 Kenichi Handa <handa@m17n.org>
4778
4779 Make auto-composition work on all buffers even if they are
4780 fundamental mode.
4781
4782 * composite.c (Vauto_composition_mode): New variable.
4783 (composition_compute_stop_pos): Check Vauto_composition_mode
4784 instead of Vauto_composition_function.
4785 (composition_adjust_point, Ffind_composition_internal): Likewise.
4786 (syms_of_composite): Declare Lisp variable
4787 "auto-composition-mode" here.
4788
63286bb2
CY
47892010-01-13 Chong Yidong <cyd@stupidchicken.com>
4790
4791 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4792 during call to vendor-specific-keysyms (Bug#5365).
4793
c2623ee7
YM
47942010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4795
4796 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4797 Call SIGNAL_THREAD_CHECK (Bug#5333).
4798
4799 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4800 Call SIGNAL_THREAD_CHECK.
4801
0b5397c2
SM
48022010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4803
4804 Try to fix bug#5314. This is probably not the final word, tho.
4805 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4806 recent-auto-save-p as a side-effect.
4807 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4808 * buffer.c (Fkill_buffer, reset_buffer):
4809 * editfns.c (Fsubst_char_in_region):
4810 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4811 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4812
dc954cb2
KH
48132010-01-13 Kenichi Handa <handa@m17n.org>
4814
4815 Display buffer name, etc. in mode line by composing correctly.
4816
4817 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4818 STRING is not nil.
0b5397c2 4819 (display_mode_element): Adjust for the change of
dc954cb2
KH
4820 decode_mode_spec and display_line.
4821 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4822 (display_string): Handle the case that STRING is non-null and
4823 LISP_STRING is not nil.
4824
0b5397c2
SM
4825 * xterm.c (x_draw_composite_glyph_string_foreground):
4826 Pay attention to s->face->overstrike.
dc954cb2
KH
4827
4828 * composite.c (composition_reseat_it): Don't check PT if STRING is
4829 non nil.
4830
4a00eaca
YM
48312010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4832
4833 * keyboard.c (read_char): Don't apply previous change when current
4834 buffer is unchanged by command execution.
4835
60abb287
JD
48362010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4837
4838 * keyboard.c (read_char): Return after executing from special map.
4839
893db5bc
GM
48402010-01-12 Glenn Morris <rgm@gnu.org>
4841
4842 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4843 bug-gnu-emacs rather than emacs-pretest-bug.
4844
4d03ece0
CY
48452010-01-11 Chong Yidong <cyd@stupidchicken.com>
4846
4847 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4848 initializing the Lisp variables that depend on them.
4849
1df47e38
YM
48502010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4851
4852 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4853 Clear areas that will not be updated after change of menu bar lines.
4854 Clear the menu bar window's current matrix when the window gets empty.
4855
2f1c6384
CY
48562010-01-09 Chong Yidong <cyd@stupidchicken.com>
4857
e398c61c
CY
4858 * intervals.h, textprop.c (extend_property_ranges): Return value
4859 and args changed. Discard properties that begin at or after the
4860 new end (Bug#5306).
4861
4862 * editfns.c (Fformat): Caller changed.
4863
e5a29a10
CY
4864 * nsterm.m (ns_set_default_prefs): Delete function.
4865 (syms_of_nsterm): Initialize ns_command_modifier,
4866 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4867 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4868
2f1c6384
CY
4869 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4870 position (Bug#4040).
4871
d427a9fa
EZ
48722010-01-09 Eli Zaretskii <eliz@gnu.org>
4873
4874 * editfns.c (Ffloat_time): Doc fix.
4875
21b9df2f
JD
48762010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4877
4878 * xfns.c (Fx_create_frame): Don't create frame larger than display
4879 by default bug#3643.
4880
4b00d3b1
YM
48812010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4882
4883 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4884 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4885 windows above internal border.
4886
4887 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4888 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4889 windows above internal border.
4890
4891 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4892 tool bar windows specially.
4893
4894 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4895
4896 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4897 specially.
4898 (XTflash): Take account of menu bar height.
4899
4900 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4901 specially.
4902
5075d853
JD
49032010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4904
ac146f82 4905 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4906 also be true before we can return early (bug #5339).
4907
474217c8
CY
49082010-01-06 David Reitter <david.reitter@gmail.com>
4909
4910 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4911 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4912 (Bug#3233).
4913
c0e6d47d
JD
49142010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4915
d0cf45b7
JD
4916 * font.c (font_open_entity): Enable chache and call cached_font_ok
4917 for the driver if defined.
4918 (QCuser_spec): New symbol.
4919 (font_spec_from_name): Save name as user-spec.
4920 (font_load_for_lface): Keep user-spec instead of name.
4921 (font_open_by_name): Save name as user-spec.
4922 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4923 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4924
4925 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4926 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4927 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4928
4929 * font.h (struct font_driver): Add cached_font_ok.
4930
c0e6d47d
JD
4931 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4932
7c583cd8
JD
49332010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4934
4935 * xterm.c (x_new_font): Move code for setting rows/cols before
4936 resizing ...
ac146f82 4937 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4938
4939 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4940 (xg_frame_resized, xg_frame_set_char_size):
4941 Call xg_clear_under_internal_border.
7c583cd8 4942 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4943
03f77f0a
CY
49442010-01-05 Chong Yidong <cyd@stupidchicken.com>
4945
4946 * keyboard.c (read_key_sequence): Catch keyboard switch after
4947 making a new tty frame (Bug#5095).
4948
2a1ef5be
KH
49492010-01-05 Kenichi Handa <handa@m17n.org>
4950
4951 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4952
e3eb1dae
SM
49532010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4954
4955 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4956 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4957 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4958
777013f2
MA
49592010-01-03 Michael Albinus <michael.albinus@gmx.de>
4960
4961 * dbusbind.c (xd_add_watch): Improve debug message.
4962 (xd_remove_watch): Improve debug message. If DATA is the session
4963 bus, unset D-Bus session environment.
4964 (Fdbus_init_bus): Pass the bus as argument to
4965 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4966
8932b1c2
CY
49672010-01-01 Chong Yidong <cyd@stupidchicken.com>
4968
87231e2c
CY
4969 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4970
4801c5fa
CY
4971 * lread.c (syms_of_lread): Make it clearer that these are the
4972 names of loaded files (Bug#5068).
4973
8932b1c2
CY
4974 * eval.c (run_hook_with_args): Handle the case where the global
4975 value has the obsolete single-function form (Bug#5026).
4976
11e3c684
CY
49772009-12-27 Chong Yidong <cyd@stupidchicken.com>
4978
4979 * minibuf.c (Fall_completions): Minor optimization.
4980
5b28ce35
EZ
49812009-12-26 Eli Zaretskii <eliz@gnu.org>
4982
5ce6e4f4
JB
4983 * .gdbinit (pgx): Fix display of composite glyphs.
4984 Display cmp.from and cmp.to as well.
4985 (pitx): Fix last change.
5b28ce35 4986
bcffff46
KH
49872009-12-25 Kenichi Handa <handa@m17n.org>
4988
4989 * composite.h (composition_adjust_point): Update prototype.
4990
4991 * composite.c (composition_reseat_it): Don't make a composition
4992 spanning over point.
4993 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4994 composable characters.
4995 (composition_adjust_point): New arg NEW_PT. Callers changed.
4996
4997 * keyboard.c (command_loop_1): Force redisplay if the last point
4998 was within a composition.
4999 (adjust_point_for_property): Don't adjust point for automatic
5000 composition when called after buffer modification.
5001
3f670e9a
EZ
50022009-12-19 Eli Zaretskii <eliz@gnu.org>
5003
5ce6e4f4
JB
5004 * .gdbinit (pitx): Don't use enum names, use their values.
5005 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5006 (pgx): Don't use enum names, use their values.
5007 (pitmethod): New helper command.
5008 (pitx): Use it to display iteration method.
5009 (pgrowit): New command.
5010
ad903955
EZ
5011 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5012
3f670e9a
EZ
5013 Update dependencies in Makefile.in.
5014
5015 * Makefile.in (alloc.o): Depend on termhooks.h.
5016 (atimer.o): Depend on blockinput.h.
5017 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5018 and frame.h.
5019 (callint.o): Depend on systime.h, coding.h, and composite.h.
5020 (callproc.o): Depend on buffer.h.
5021 (casefiddle.o): Don't depend on charset.h.
5022 (casetab.o): Depend on character.h.
5023 (ccl.o): Depend on composite.h.
5024 (chartab.o): Depend on ccl.h.
5025 (cm.o): Depend on dispextern.h.
5026 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5027 (coding.o): Don't depend on $(INTERVALS_H).
5028 (composite.o): Don't depend on dispextern.h explicitly (it's in
5029 $(INTERVALS_H)). Depend on ccl.h.
5030 (data.o): Depend on systime.h, coding.h, composite.h,
5031 dispextern.h, font.h, and ccl.h.
5032 (dired.o): Depend on composite.h.
5033 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5034 composite.h (it's in $(INTERVALS_H)).
5035 (doc.o): Depend on systime.h, coding.h, and composite.h.
5036 (editfns.o): Don't depend explicitly on dispextern.h.
5037 (emacs.o): Depend on frame.h and coding.h.
5038 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5039 (fileio.o): Depend on frame.h and commands.h. Don't depend
5040 explicitly on dispextern.h.
5041 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5042 composite.h.
5043 (fns.o): Don't depend on termhooks.h.
5044 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5045 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5046 coding.h, $(INTERVALS_H), window.h, xterm.h.
5047 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5048 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5049 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5050 fontset.h, ccl.h, and ftfont.h.
5051 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5052 (gtkutil.o): Depend on dispextern.h and composite.h.
5053 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5054 termhooks.h, and ccl.h.
5055 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5056 (intervals.o): Depend on systime.h and coding.h.
5057 (keyboard.o): Depend on composite.h and coding.h.
5058 (keymap.o): Depend on coding.h and frame.h.
5059 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5060 (macros.o): Depend on systime.h, coding.h, and composite.h.
5061 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5062 and atimer.h.
5063 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5064 dispextern.h explicitly.
0b5397c2
SM
5065 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5066 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5067 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5068 (regex.o): Don't depend on charset.h.
5069 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5070 (search.o): Don't depend explicitly on composite.h.
5071 (sound.o): Depend on atimer.h and systime.h.
5072 (syntax.o): Don't depend explicitly on composite.h.
5073 (sysdep.o): Depend on coding.h and composite.h.
5074 (term.o): Depend on xterm.h and buffer.h.
5075 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5076 (textprop.o): Don't depend on dispextern.h explicitly.
5077 (undo.o): Depend on dispextern.h.
5078 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5079 dispextern.h and composite.h explicitly.
5080 (xdisp.o): Depend on ccl.h.
5081 (xfaces.o): Depend on coding.h and ccl.h.
5082 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5083 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5084 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5085 ftfont.h.
5086 (xgselect.o): New dependency.
5087 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5088 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5089 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5090 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5091 (xsmfns.o): Depend on frame.h and dispextern.h.
5092 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5093 sysselect.h.
5094
7a6f7fea
AS
50952009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5096
5097 * font.c (Fclear_font_cache): Pass correct cache argument to
5098 font_clear_cache.
5099
f4c21026
AS
51002009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5101
5102 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5103 twice.
5104
f7ab0997
CY
51052009-12-15 Chong Yidong <cyd@stupidchicken.com>
5106
5107 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5108 calling file-remote-p. Reported by Jim Meyering.
5109
fa8e045a
MA
51102009-12-15 Michael Albinus <michael.albinus@gmx.de>
5111
5112 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5113 avoid compiler warnings. (Bug #5217)
fa8e045a 5114
a63dba42
KH
51152009-12-14 Kenichi Handa <handa@m17n.org>
5116
5117 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5118 in 8-bit encoding.
5119
5ce6e4f4 51202009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5121
5122 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5123 tooltip windows.
5124
223e5fc6
JD
51252009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5126
36acb2a7
JD
5127 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5128 Xatom_net_window_type.
5129
5130 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5131 Xatom_net_window_type.
5132
b8f00677
JD
5133 * xterm.c (my_log_handler): New function.
5134 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5135 so we can filter out buggy messages. (Bug #5120).
b8f00677 5136
e5f0bc9a
JD
5137 * xterm.c (xg_scroll_callback): Parameter list changed,
5138 use parameter GtkScrollType to determine scroll/line/page.
5139 Only allow dragging if a button < 4 is grabbed (bug #5177).
5140 (xg_end_scroll_callback): New function.
5141 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5142 xg_create_scroll_bar.
5143
5144 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5145 (scroll_end_callback): Remove.
5146 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5147 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5148 bug #5177.
e5f0bc9a
JD
5149 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5150 bug #5177.
5151
5152 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5153 (xg_create_scroll_bar): Add GCallback end_callback.
5154
223e5fc6
JD
5155 * xftfont.c (QClcdfilter): New variable.
5156 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5157 (syms_of_xftfont): Initialize QClcdfilter.
5158
3c055b77
JD
51592009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5160
5161 * xsettings.c (struct xsettings): Add member seen.
5162 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5163 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5164 (apply_xft_settings): Only update Xft settings with what member seen
5165 indicates as new.
5166
05fe33ff
EZ
51672009-12-12 Eli Zaretskii <eliz@gnu.org>
5168
c4cc8b9a 5169 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5170 (struct glyph): Use EMACS_INT for charpos.
5171 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5172 region_beg_charpos, region_end_charpos,
5173 redisplay_end_trigger_charpos, and also for
5174 iterator_stack_entry.end_charpos and
5175 iterator_stack_entry.stop_charpos.
5176
e8d7886a
JD
51772009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5178
5ce6e4f4 5179 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5180 (xg_create_scroll_bar): Call scroll_end_callback on button release
5181 event (bug #5177).
5182 (xg_event_is_for_scrollbar): != replaced with ==.
5183
d0db2ec8
KH
51842009-12-12 Kenichi Handa <handa@m17n.org>
5185
5186 * ftfont.c (struct ftfont_info): New member matrix.
5187 (ftfont_open): Setup xftfont_info->matrix.
5188 (MFLTFontFT): New member matrix.
5189 (FLOOR, CEIL, ROUND): New macros.
5190 (ftfont_get_metrics): Handle matrix transformation.
5191 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5192
5193 * xftfont.c (struct xftfont_info): New member matrix.
5194 (xftfont_open): Setup xftfont_info->matrix.
5195
51962009-12-10 Kenichi Handa <handa@m17n.org>
5197
5198 * xdisp.c (append_space_for_newline): Consider face-remapping.
5199
2cc7b62f
AS
52002009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5201
b87dd913
AS
5202 * xsettings.c: Include "keyboard.h".
5203
eba5eb94
AS
5204 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5205
2cc7b62f
AS
5206 Fix implicit function declarations.
5207 * cmds.c: Include "frame.h".
5208 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5209 * frame.h: Move declaration of delete_frame outside of
5210 HAVE_WINDOW_SYSTEM.
5211
a4ef73c8
CY
52122009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5213
5214 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5215
5216 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5217 GTK builds.
5218
944a300c
AS
52192009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5220
5221 * unexelf.c (unexec): Don't search for .data twice.
5222
022eef62
CY
52232009-12-05 Chong Yidong <cyd@stupidchicken.com>
5224
426ac949
CY
5225 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5226 if push failed.
5227 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5228 of push_display_prop (Bug#5000).
5229
022eef62
CY
5230 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5231 value of font_list_entities (Bug#5085).
5232
be95bee9
JB
52332009-12-04 Juanma Barranquero <lekktu@gmail.com>
5234
5235 Fix `string-to-number' to deal consistently with integers and floats.
5236 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5237 trailing characters, not just whitespace.
5238 (read1): Pass new arg 0 to keep old behavior.
5239 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5240 trailing chars, as it is already done for integers. Doc fixes.
5241 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5242
24c2d7ce
EZ
52432009-12-04 Eli Zaretskii <eliz@gnu.org>
5244
0b5397c2
SM
5245 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5246 Delete unused enumeration value.
24c2d7ce 5247
7e694795
EZ
52482009-12-03 Eli Zaretskii <eliz@gnu.org>
5249
5250 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5251
84b31826
SM
52522009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5253
5254 * process.c (Fmake_network_process): Fix up the tests for
5255 "connectionless socket", so they DTRT for seqpacket sockets as well.
5256
f00c449b
SM
52572009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5258
5259 * process.c (Qseqpacket): New symbol.
5260 (HAVE_SEQPACKET): New macro.
5261 (Fmake_network_process): Accept new :type `seqpacket'.
5262 (init_process): Add `seqpacket' feature when applicable.
5263 (syms_of_process): Initialize Qseqpacket.
5264
8096a0ff
YM
52652009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5266
5267 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5268 if entity is Qnil.
5269
3e0de07f
SM
52702009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5271
5272 * print.c (print_preprocess): Preprocess the key_and_value table of
5273 hashtables, even tho they're "hidden" (bug#5082).
5274
abeafb2a
JD
52752009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5276
5277 * frame.c (frame_make_pointer_invisible)
5278 (frame_make_pointer_visible): Declare f before statements.
5279
4bf47195
EZ
52802009-11-28 Eli Zaretskii <eliz@gnu.org>
5281
5282 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5283 omitted dependencies on lisp.h.
5284
c525b3f2
JD
52852009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5286
ece2d4ed
JD
5287 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5288 is NULL.
5289
5290 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5291
5292 * frame.c (frame_make_pointer_invisible)
3e0de07f 5293 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5294 frame.
5295
c525b3f2
JD
5296 * search.c (simple_search): Remove warning by making *p const.
5297
2f00e299
DN
52982009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5299
5300 * xdisp.c (power_letter): Remove duplicate const.
5301
084b049b
JD
53022009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5303
a1fadc6f
JD
5304 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5305
5ce6e4f4 5306 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5307 defaults (bug #5025).
5308
28259cac
SM
53092009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5310
5311 * insdel.c (adjust_markers_for_delete): Move it in the
5312 right direction! (bug#4803)
5313
e8e14166
YM
53142009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5315
5316 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5317
5318 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5319
86677b58
GM
53202009-11-24 Glenn Morris <rgm@gnu.org>
5321
5322 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5323
581e51e8
JD
53242009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5325
cfc86c7a
JD
5326 * Makefile.in: Must create deps for ecrt0.o in its rule.
5327
581e51e8
JD
5328 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5329 because that is what Gtk+ font dialog understands.
5330
5331 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5332 of Fcopy_sequence.
5333 (font_open_by_name): Put name given into QCname for font-object returned.
5334
5335 * frame.c (x_set_font): Save original font name as frame parameter
5336 font-parameter.
5337
5338 * xsettings.c (set_default_xft_settings): New function.
5339 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5340 is found.
5341
8b264ecb
AS
53422009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5343
5344 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5345 searching backwards through multibyte buffer.
5346
872870b2
JD
53472009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5348
5349 * xterm.c: #include xgselect.h.
5350 (x_initialize): Call xgselect_initialize.
5351
5352 * xsettings.c (something_changedCB): C++ comments => C comments.
5353 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5354 does that now.
5355
5356 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5357 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5358 (scroll_bar_button_cb): Remove.
5ce6e4f4 5359 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5360 event.
5361 (xg_create_scroll_bar): Don't bind button-press-event and
5362 button-release-event.
5363
5364 * process.c: Include xgselect.h if defined (USE_GTK) ||
5365 defined (HAVE_GCONF).
5366 (wait_reading_process_output): Call xg_select for the same condition.
5367
5368 * xgselect.c (xg_select): New function to better integrate with
5369 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5370
5371 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5372
5373 * Makefile.in (XOBJ): Add xgselect.o.
5374
62a6e103
AS
53752009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5376
0b5397c2
SM
5377 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5378 Remove ignored second argument. All callers changed.
62a6e103
AS
5379 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5380 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5381 * xdisp.c (string_char_and_length): Likewise.
5382
b0ca0f33
DN
53832009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5384
5385 * xterm.c (x_new_font):
5386 * print.c (print_object):
5387 * cmds.c (Fself_insert_command): Move declarations before statements.
5388
dd5a6279
CY
53892009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5390
5391 * s/cygwin.h: Remove unneeded linker flags.
5392
4a8e097d
JD
53932009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5394
0d1d0d26
JD
5395 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5396
5397 * xsettings.h: Declare xsettings_get_system_font.
5398
5399 * xsettings.c (xsettings_get_system_font): New function.
5400 (init_gconf): No use initiating gconf unless we have Xft also.
5401 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5402 HAVE_GCONF.
5403
4a8e097d
JD
5404 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5405 add a blank entry so it doesn't collapse into nothing.
5406
8ab1650e
SM
54072009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5408
5409 * lread.c (Funintern): Comment out last change.
5410
82c602f0
RS
54112009-11-19 Richard Stallman <rms@gnu.org>
5412
5413 * lread.c (Funintern): Error if symbol is t or nil.
5414
87e32266
SM
54152009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5416
5417 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5418 representation of Lisp integers.
5419 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5420
1b9ac145
AS
54212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5422
5423 * lisp.h: Remove declaration of Ffont_get_system_font.
5424 * xfns.c: Move include of "xsettings.h".
5425 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5426
dfb3c4c6
JD
54272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5428
87e32266
SM
5429 * xsettings.c (something_changedCB, Ffont_get_system_font):
5430 Check use_system_font.
dfb3c4c6
JD
5431 (syms_of_xsettings): DEFVAR font-use-system-font.
5432
9370c1d8
AS
54332009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5434
25fe851a
AS
5435 * xfns.c (x_default_font_parameter): Remove dead assignment.
5436
9370c1d8
AS
5437 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5438
637fa988
JD
54392009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5440
87e32266 5441 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5442 not have FC_LCD_*. #define them if not there.
a6eb20d8 5443
87e32266 5444 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5445
637fa988
JD
5446 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5447
5448 * xterm.c (handle_one_xevent): Call xft_settings_event for
5449 ClientMessage, PropertyNotify and DestroyNotify.
5450 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5451 Call xsettings_initialize.
5452
5453 * xftfont.c (xftfont_fix_match): New function.
5454 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5455 Call xftfont_fix_match after XftFontMatch.
5456
5457 * xfont.c (xfont_driver): Initialize all members.
5458
87e32266
SM
5459 * xfns.c (x_default_font_parameter):
5460 Try font from Ffont_get_system_font.
637fa988
JD
5461 Do not get font from x_default_parameter if we got one from
5462 Ffont_get_system_font.
87e32266 5463 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5464
5465 * w32font.c (w32font_driver): Initialize all members.
5466
5467 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5468
5469 * lisp.h: Declare syms_of_xsettings.
5470
87e32266
SM
5471 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5472 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5473
5474 * ftfont.c (ftfont_filter_properties): New function.
5475
5476 * frame.c (x_set_font): Remove unused variable lval.
5477
87e32266 5478 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5479
5480 * font.c (font_put_extra): Don't return if val is nil, it means
5481 boolean option is off.
5482 (font_parse_fcname): Collect all extra properties in extra_props
5483 and call filter_properties for all drivers with extra_props and
5484 font as parameter.
87e32266
SM
5485 (font_open_entity): Do not use cache, it does not pick up new
5486 fontconfig settings like hinting.
637fa988
JD
5487 (font_load_for_lface): If spec had a name in it, store it in entity.
5488
a73f9c9d 5489 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5490
5491 * config.in: HAVE_GCONF is new.
5492
5493 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5494 xsettings.o is new.
5495
5a942932
KH
54962009-11-17 Kenichi Handa <handa@m17n.org>
5497
5498 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5499 back to the default font in case that no suitable font is found.
5500
b7c7a4d1
SM
55012009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5502
5503 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5504 Suggested by Chad Brown <yandros@mit.edu>.
5505 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5506
072f1e39
JD
55072009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5508
5509 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5510
5d1e70a2
AS
55112009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5512
87e32266 5513 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5514
a53cfbe5
JD
55152009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5516
473a99b7
JD
5517 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5518 has a parent.
5519
a53cfbe5 5520 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5521 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5522
5523 * config.in: Generated (AUTO_DEPEND).
5524
f04bb9b2
MA
55252009-11-13 Michael Albinus <michael.albinus@gmx.de>
5526
b7c7a4d1 5527 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5528 Vdbus_registered_functions_table, because it contains also
5529 properties. Fix docstring.
b7c7a4d1 5530 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5531
8f11f7ec
SM
55322009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5533
5534 * alloc.c (mark_object): Don't reprocess marked strings.
5535 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5536 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5537
8a605fe8
KH
55382009-11-13 Kenichi Handa <handa@m17n.org>
5539
8f11f7ec 5540 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5541 semantics of Vword_combining_categories.
5542 (Vword_combining_categories): Describe the slight change of the
5543 semantics.
5544
241c4680
EZ
55452009-11-13 Eli Zaretskii <eliz@gnu.org>
5546
5547 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5548
5549 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5550
5d58e44c
SM
55512009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5552
5553 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5554
5e13f9d3
JB
55552009-11-12 Juanma Barranquero <lekktu@gmail.com>
5556
5557 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5558
cf54c754
DR
55592009-11-11 David Reitter <david.reitter@gmail.com>
5560
5561 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5562 variables to fix 2009-11-09 change.
5563
a4ada374
DN
55642009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5565
91433552
DN
5566 * process.c (ifflag_def): Make flag_sym constant.
5567 (Fnetwork_interface_info): Use a constant pointer.
5568 (ifflag_table):
5569 * xfns.c (cursor_bits):
5570 * xdisp.c (power_letter):
5571 * termcap.c (speeds, esctab):
5572 * sysdep.c (baud_convert):
5573 * keyboard.c (lispy_accent_codes, modifier_names):
5574 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5575 (jpeg_format, tiff_format, gif_format, svg_format)
5576 (interlace_start, interlace_increment, gs_format):
5577 * gtkutil.c (separator_names):
5578 * fringe.c (swap_nibble):
5579 * fns.c (base64_value_to_char, base64_char_to_value):
5580 * fileio.c (make_temp_name_tbl):
5581 * coding.c (suffixes): Make constant.
5582
f4265f6c
DN
5583 * frame.c (make_initial_frame):
5584 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5585 build_string.
5586 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5587
04420943
DN
5588 * s/freebsd.h:
5589 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5590
0a5d24ae
DN
5591 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5592 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5593
a4ada374
DN
5594 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5595 * xterm.c (syms_of_xterm):
5596 * xfaces.c (syms_of_xfaces):
5597 * xdisp.c (syms_of_xdisp):
5598 * lread.c (syms_of_lread):
5599 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5600 build_string.
91433552 5601
a4ada374
DN
5602 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5603
af98fc7f
SM
56042009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5605
8ab1650e 5606 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5607
e90292a9
JD
56082009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5609
5610 * keyboard.h: Declare timer_check.
5611
5612 * keyboard.c (timer_check_2): New function that does what the old
5613 timer_check did.
5614 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5615 returned, i.e. don't return -1 with timers pending.
5616
5617 * process.c: Remove extern declaration of timer_check.
5618
5619 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5620 even if timer_check returned -1.
5621
af98fc7f
SM
5622 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5623 xg_dialog_data.
e90292a9
JD
5624 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5625 the event loop.
5626 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5627 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5628 Destroy the dialog after xg_dialog_run.
5629
045b83c0
SM
56302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5631
5632 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5633
1fb99a3a
JD
56342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5635
5636 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5637
04e452cb
JB
56382009-11-09 Juanma Barranquero <lekktu@gmail.com>
5639
5640 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5641
ef7417fd
SM
56422009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5643
5644 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5645 w32menu.c, and nsmenu.m.
5646 Simplify the obsolete case where position is nil.
5647 (cleanup_popup_menu): New function, moved from nsmenu.m.
5648 (struct skp): Remove slot `notreal'.
5649 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5650 adjust callers.
5651 (single_menu_item): Adjust call to parse_menu_item.
5652 (syms_of_menu): Defsubr x-popup-menu.
5653 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5654 (keymap_panes): Don't export any more.
5655 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5656 (xmenu_show): Declare.
5657 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5658 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5659 * keyboard.h (parse_menu_item): Update declaration.
5660 * xmenu.c (Fx_popup_menu): Remove.
5661 (syms_of_xmenu): Don't defsubr x-popup-menu.
5662 * w32menu.c (Fx_popup_menu): Remove.
5663 (syms_of_w32menu): Don't defsubr x-popup-menu.
5664 * nsmenu.m (cleanup_popup_menu): Remove.
5665 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5666 moved to menu.c's Fx_popup_menu.
5667 (Fx_popup_menu): Remove.
5668 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5669 menu_items (it's done in menu.c already).
5670
424d6179
SM
56712009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5672
5673 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5674 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5675
c0df13a6 56762009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5677
5678 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5679 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5680 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5681 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5682
2de9f71c
SM
56832009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5684
5685 Let integers use up 2 tags to give them one extra bit and thus double
5686 their range.
5687 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5688 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5689 New macros.
5690 (enum Lisp_Type): Use them. Give explicit values.
5691 (Lisp_Type_Limit): Remove.
5692 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5693 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5694 Pay attention to USE_2_TAGS_FOR_INTS.
5695 (INTEGERP): Use LISP_INT_TAG_P.
5696 * fns.c (internal_equal): Simplify the default case.
5697 (sxhash): Use case_Lisp_Int.
5698 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5699 any more.
5700 (Ftype_of): Use case_Lisp_Int.
5701 (store_symval_forwarding): Take into account the fact that Ints can
5702 now have more than one tag.
5703 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 5704 (buffer_slot_type_mismatch):
2de9f71c
SM
5705 * xfaces.c (face_attr_equal_p):
5706 * print.c (print_object):
5707 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5708 Use case_Lisp_Int.
5709
323637a2
EZ
57102009-11-06 Eli Zaretskii <eliz@gnu.org>
5711
7ac65b38
EZ
5712 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5713
323637a2
EZ
5714 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5715 warning.
5716
e511451f
JD
57172009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5718
5719 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5720
5721 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5722
5723 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5724 ButtonPressRelease and MotionNotify (bug#4870).
5725
5e2327cf
DN
57262009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5727
5adc433e
DN
5728 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5729
d67b4f80
DN
5730 * xterm.c (syms_of_xterm):
5731 * xselect.c (syms_of_xselect):
5732 * xmenu.c (syms_of_xmenu):
5733 * xfns.c (syms_of_xfns):
5734 * xfaces.c (syms_of_xfaces):
5735 * xdisp.c (syms_of_xdisp):
5736 * window.c (syms_of_window):
5737 * w32fns.c (syms_of_w32fns):
5738 * undo.c (syms_of_undo):
5739 * textprop.c (syms_of_textprop):
5740 * terminal.c (syms_of_terminal):
5741 * syntax.c (syms_of_syntax):
5742 * sound.c (syms_of_sound):
5743 * search.c (syms_of_search):
5744 * print.c (syms_of_print):
5745 * minibuf.c (syms_of_minibuf):
5746 * macros.c (syms_of_macros):
5747 * keymap.c (syms_of_keymap, initial_define_key)
5748 (initial_define_lispy_key):
5749 * keyboard.c (syms_of_keyboard):
5750 * insdel.c (syms_of_insdel):
5751 * image.c (syms_of_image):
5752 * fringe.c (syms_of_fringe):
5753 * frame.c (syms_of_frame):
5754 * fontset.c (syms_of_fontset):
5755 * fns.c (syms_of_fns):
5756 * fns.c (syms_of_fns):
5757 * fileio.c (syms_of_fileio):
5758 * fileio.c (syms_of_fileio):
5759 * eval.c (syms_of_eval):
5760 * doc.c (syms_of_doc):
5761 * dispnew.c (syms_of_display):
5762 * dired.c (syms_of_dired):
5763 * dbusbind.c (syms_of_dbusbind):
5764 * data.c (syms_of_data):
5765 * composite.c (syms_of_composite):
5766 * coding.c (syms_of_coding):
5767 * cmds.c (syms_of_cmds):
5768 * charset.c (define_charset_internal, syms_of_character):
5769 * ccl.c (syms_of_ccl):
5770 * category.c (syms_of_category, init_category_once):
5771 * casetab.c (syms_of_casetab):
5772 * casefiddle.c (syms_of_casefiddle):
5773 * callint.c (syms_of_callint):
5774 * bytecode.c (syms_of_bytecode):
5775 * buffer.c (keys_of_buffer, syms_of_buffer):
5776 * alloc.c (syms_of_alloc):
5777 * process.c (syms_of_process, init_process):
5778 * lread.c (syms_of_lread, init_obarray):
5779 * font.c (build_style_table):
5780 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5781 intern_c_string, calls to make_pure_string with
5782 make_pure_c_string. Use pure_cons instead of Fcons.
5783
5e2327cf
DN
5784 * process.c (socket_options): Make it const.
5785 (set_socket_option, init_process): Use a const pointer.
5786
5787 * lread.c (intern_c_string): New function.
5788 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5789 (defvar_int): Uset it. Make the name const char*.
5790
5791 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5792 (defvar_int): Update prototypes.
5793 (DEFUN, EXFUN): Support for prototypes is now required.
5794 (intern_c_string): New prototype.
5795 (struct Lisp_Subr): Make symbol_name constant.
5796
5797 * font.c (struct table_entry): Remove unused member. Make NAMES
5798 constant.
5799 (weight_table, slant_table, width_table): Make constant.
5800
5801 * emacs.c (struct standard_args): Make name and longname constant.
5802
5803 * character.h (DEFSYM): Use intern_c_string.
5804
a56eaaef
DN
58052009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5806
5807 * alloc.c (make_pure_c_string): New function.
5808
5809 * eval.c (Fautoload): Purecopy all arguments.
5810
f6a07420
KH
58112009-11-05 Kenichi Handa <handa@m17n.org>
5812
5813 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5814 the buffer in case of replace.
5815
5d28d4b1
DN
58162009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5817
5818 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5819
b349d111
SM
58202009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5821
d528b1ce
SM
5822 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5823 when applicable (bug#4851).
5824
b349d111
SM
5825 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5826 (P_): Support for prototypes is now required.
5827
c38eb027
CY
58282009-10-31 Chong Yidong <cyd@stupidchicken.com>
5829
5830 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5831 (Bug#4827).
5832
0405f8d9
EZ
58332009-10-30 Eli Zaretskii <eliz@gnu.org>
5834
d528b1ce 5835 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5836
ca0a881a
DN
58372009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5838
5839 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5840
d528b1ce
SM
5841 * lread.c (Fload): Purecopy the file name when building
5842 Vpreloaded_file_list.
ca0a881a 5843
47e0e0e4
JR
58442009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5845
5846 * w32fns.c (syms_of_w32fns): Change default value of
5847 w32-scroll-lock-modifier to nil. (Bug#2827)
5848
057bce6f
JB
58492009-10-26 Juanma Barranquero <lekktu@gmail.com>
5850
782a943e 5851 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5852
242bc74c
AS
58532009-10-26 Andreas Schwab <schwab@redhat.com>
5854
5855 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5856
522d013a
JB
58572009-10-26 Juanma Barranquero <lekktu@gmail.com>
5858
5859 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5860 For delta < 0, skip check that only makes sense when the mini-window
5861 is going to be enlarged. (Bug#4534)
5862
18060980
CY
58632009-10-25 Chong Yidong <cyd@stupidchicken.com>
5864
5865 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5866 string in menu maps (Bug#4471).
5867
fec8f0fe
CY
58682009-10-24 Chong Yidong <cyd@stupidchicken.com>
5869
5870 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5871 FRAME_NS_VIEW on terminal frames (Bug#4765).
5872
10d66ec0
AS
58732009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5874
1cae01f7
AS
5875 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5876 DBUS_TYPE_UINTnn separately to get proper sign extension.
5877
58a12889
AS
5878 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5879 can properly handle unsigned types.
d528b1ce 5880 (make_uid, make_gid): Remove.
58a12889 5881
987c9327
AS
5882 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5883 types again.
5884
522d013a 5885 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5886 (system_process_attributes): Likewise.
5887
905a9ed3
DN
58882009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5889
5890 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5891
5892 * eval.c (Fautoload): Purecopy the filename. Simplify.
5893
5894 * category.c (Fdefine_category): Purecopy docstring.
5895
a599b3e8
AS
58962009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5897
7b792fc9
AS
5898 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5899
a599b3e8
AS
5900 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5901
b35ac83e
CY
59022009-10-23 Chong Yidong <cyd@stupidchicken.com>
5903
5904 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5905 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5906 (Bug#4775).
5907
e8903e00
SM
59082009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5909
5910 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5911 (init_fileio_once):
5912 * lisp.h (init_fileio_once): Remove.
5913 * emacs.c (main): Don't call init_fileio_once.
5914
8f43cbf3
DN
59152009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5916
5917 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5918
26898943
AS
59192009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5920
5921 * doprnt.c (doprnt): Fix overflow check.
5922
5c646d5a
JD
59232009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5924
3132a7ea
JD
5925 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5926
5c646d5a
JD
5927 * xterm.h (x_wait_for_event): Declare it.
5928
5929 * xterm.c (pending_event_wait): New variable.
5930 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5931 see pending_event_wait.eventtype.
5932 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5933 (x_new_font): Call change_frame_size with new rows/columns before we
5934 try to resize the frame.
5c646d5a 5935 (x_wait_for_event): New function.
d528b1ce
SM
5936 (x_set_window_size_1): Don't change gravity unless change_gravity
5937 is set.
5c646d5a
JD
5938 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5939 don't change frame size, instead wait for the ConfigureNotify.
5940 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5941 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5942 (x_initialize): Initialize pending_event_wait.
5943
5944 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5945 size.
5946
5947 * widget.c (EmacsFrameSetValues): Add comment.
5948 (EmacsFrameSetCharSize): Just call x_set_window_size.
5949
5950 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5951 x_wait_for_event.
d528b1ce 5952 (flush_and_sync): Remove again.
5c646d5a
JD
5953 (xg_get_font_name): Suggest monospace if no previous font is known.
5954
e9c1637d
SM
59552009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5958 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5959
5a72cccb
YM
59602009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5961
5962 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5963 processing pending events when event is filtered for input method.
ab04798f 5964 (Bug#3681)
5a72cccb 5965
2629aa37
JB
59662009-10-20 Juanma Barranquero <lekktu@gmail.com>
5967
5968 * fns.c: Add #endif accidentally removed in previous change.
5969
c3417a74
DN
59702009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5971
5972 * fns.c: Remove code for unsupported system: MAC_OS.
5973 * image.c: Likewise. Include setjmp.h.
5974
9685cef2
JD
59752009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5976
5977 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5978 pixel -1 (bug #4742).
5979
d7306fe6
DN
59802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5981
019d2c4c
DN
5982 * process.c (create_pty): Remove conditionals for no longer
5983 supported systems: UNIPLUS and RTU.
5984
ee6bacd4
DN
5985 * xterm.c:
5986 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5987
d7306fe6
DN
5988 * alloc.c: Do not define struct catchtag.
5989 * eval.c: Move struct catchtag definition ...
5990 * lisp.h: ... here.
5991
5992 * image.c: Move png.h #include earlier to avoid warnings.
5993
5994 * xterm.c:
5995 * xsmfns.c:
5996 * xselect.c:
5997 * xrdb.c:
5998 * xmenu.c:
5999 * xftfont.c:
6000 * xfont.c:
6001 * xfns.c:
6002 * xfaces.c:
6003 * xdisp.c:
6004 * window.c:
6005 * widget.c:
6006 * w32xfns.c:
6007 * w32uniscribe.c:
6008 * w32term.c:
6009 * w32select.c:
6010 * w32reg.c:
6011 * w32proc.c:
6012 * w32menu.c:
6013 * w32inevt.c:
6014 * w32heap.c:
6015 * w32font.c:
6016 * w32fns.c:
6017 * w32console.c:
6018 * w32.c:
6019 * w16select.c:
6020 * vm-limit.c:
6021 * unexsol.c:
6022 * unexec.c:
6023 * unexcw.c:
6024 * unexaix.c:
6025 * undo.c:
6026 * tparam.c:
6027 * textprop.c:
6028 * terminfo.c:
6029 * terminal.c:
6030 * termcap.c:
6031 * term.c:
6032 * syntax.c:
6033 * sound.c:
6034 * sheap.c:
6035 * search.c:
6036 * scroll.c:
6037 * region-cache.c:
6038 * regex.c:
6039 * ralloc.c:
6040 * process.c:
6041 * print.c:
b024548b
DN
6042 * nsterm.m:
6043 * nsselect.m:
6044 * nsmenu.m:
6045 * nsimage.m:
6046 * nsfont.m:
6047 * nsfns.m:
d7306fe6
DN
6048 * msdos.c:
6049 * minibuf.c:
6050 * menu.c:
6051 * marker.c:
6052 * macros.c:
6053 * keymap.c:
6054 * keyboard.c:
6055 * intervals.c:
6056 * insdel.c:
6057 * indent.c:
6058 * gtkutil.c:
6059 * ftxfont.c:
6060 * ftfont.c:
6061 * fringe.c:
6062 * frame.c:
6063 * fontset.c:
6064 * font.c:
6065 * fns.c:
6066 * floatfns.c:
6067 * filelock.c:
6068 * fileio.c:
6069 * emacs.c:
6070 * editfns.c:
6071 * dosfns.c:
6072 * doprnt.c:
6073 * doc.c:
6074 * dispnew.c:
6075 * dired.c:
6076 * dbusbind.c:
6077 * data.c:
6078 * composite.c:
6079 * coding.c:
6080 * cmds.c:
6081 * cm.c:
6082 * chartab.c:
6083 * charset.c:
6084 * character.c:
6085 * ccl.c:
6086 * category.c:
6087 * casetab.c:
6088 * casefiddle.c:
6089 * callproc.c:
6090 * callint.c:
6091 * bytecode.c:
6092 * buffer.c:
6093 * atimer.c: Include setjmp.h. (Bug#4643)
6094
fd5f21e6
SM
60952009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6096
4c0354d7
SM
6097 Remove leftover table unibyte_to_multibyte_table.
6098 * character.c (unibyte_to_multibyte_table): Remove.
6099 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6100 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6101 * character.h (UNIBYTE_TO_CHAR): New macro.
6102 (MAKE_CHAR_MULTIBYTE): Use it.
6103 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6104 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6105 (message_dolog, set_message_1):
6106 * search.c (Freplace_match):
6107 * editfns.c (Fcompare_buffer_substrings):
6108 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6109 (concat):
6110 * insdel.c (copy_text, count_size_as_multibyte):
6111 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6112 * term.c (produce_glyphs):
6113 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6114 * regex.c (RE_CHAR_TO_MULTIBYTE):
6115 * cmds.c (internal_self_insert):
6116 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6117
fd5f21e6
SM
6118 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6119
4418646e
DN
61202009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6121
6122 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6123
35f5c1d2
JB
61242009-10-16 Juanma Barranquero <lekktu@gmail.com>
6125
6126 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6127
a0cd8f6b
AR
61282009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6129
6130 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6131 still needed under Tiger.
6132
6133 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6134
6135 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6136 __Apple__.
6137
6138 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6139
01a8d3fa
KH
61402009-10-15 Kenichi Handa <handa@m17n.org>
6141
6142 * print.c (print_object): Escape a symbol like "2E10" too.
6143
bf6c75c9 61442009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6145
6146 Cleanups and changes for 64-bit compile under Snow Leopard.
6147 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6148
6149 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6150
c5959062 6151 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6152 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6153 cast argument.
6154 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6155 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6156
6157 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6158
6159 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6160 where appropriate.
6161
6162 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6163 where appropriate.
6e4780c5
JB
6164 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6165 Use stringWithUTF8String.
bf6c75c9
AR
6166 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6167
6e4780c5
JB
6168 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6169 Add formal protocol mention to inheritance.
bf6c75c9
AR
6170 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6171
6e4780c5
JB
6172 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6173 Fix printf format.
bf6c75c9
AR
6174 (ns_query_color): Use CGFloat where appropriate.
6175 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6176 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6177 argument.
6178
3d87f118
AR
6179 * config.in (NS_HAVE_NSINTEGER): Drop.
6180
a95c8102
AR
6181 * dbusbind.c (dbus-method-return-internal)
6182 (dbus-method-error-internal): Use long format in printf, and cast
6183 argument.
6184
6185 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6186 in printf, and cast argument.
6187
6873acca 6188 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6189 cast argument.
6190
9ec6f100
GM
61912009-10-11 Glenn Morris <rgm@gnu.org>
6192
6193 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6194
5be883cd
JD
61952009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6196
6197 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6198 menu bar with a small width so it doesn't enlarge the frame.
6199
d7a39b51
JB
62002009-10-08 Juanma Barranquero <lekktu@gmail.com>
6201
6202 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6203
0c2b6f8e
GM
62042009-10-06 Glenn Morris <rgm@gnu.org>
6205
6206 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6207 SOME_MACHINE_LISP (this enters indirectly via DOC).
6208
e02131a2
EZ
62092009-10-05 Eli Zaretskii <eliz@gnu.org>
6210
6211 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6212
b4744254
EZ
62132009-10-04 Eli Zaretskii <eliz@gnu.org>
6214
6215 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6216 Doc fix.
6217
dbf64827
JB
62182009-10-03 Martin Rudalics <rudalics@gmx.at>
6219
6220 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6221
e9a0aef8
MA
62222009-10-02 Michael Albinus <michael.albinus@gmx.de>
6223
d528b1ce 6224 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6225 used anymore outside fileio.c.
6226
6227 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6228
64eb2b56
JB
62292009-10-01 Juanma Barranquero <lekktu@gmail.com>
6230
6231 * lisp.h (Qdelete_directory_internal):
6232 Declare, instead of Qdelete_directory.
6233
6234 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6235
9d28c33e
SM
62362009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6237
6238 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6239
9d8f3bd9
MA
62402009-10-01 Michael Albinus <michael.albinus@gmx.de>
6241
9d28c33e 6242 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6243 Fdelete_directory. It is not a command anymore. It has no file
6244 name handler.
6245
9694740b
SM
62462009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6247
6248 * xdisp.c (get_next_display_element): Use an enum in last change.
6249
748e162f
KH
62502009-09-28 Kenichi Handa <handa@m17n.org>
6251
9694740b 6252 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6253 unibyte_display_via_language_environment in handling
6254 Vnobreak_char_display.
6255
17efd58d
AR
62562009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6257
6258 * nsterm.h (ns_app_name): New extern variable.
6259
6260 * nsterm.m (ns_app_name): New variable.
6261 (ns_term_init): Set and use it.
6262 (ns_term_shutdown): Use it.
6263
6264 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6265 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6266
6267 * nsfns.m (ns_set_name_iconic, ns_set_name)
6268 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6269 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6270
9694740b
SM
6271 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6272 Remove double-casting in client_data comparison.
31c2d412 6273
3208cb35
YM
62742009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6275
6276 * keyboard.c (make_lispy_event): Remember last wheel direction.
6277 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6278
b7d552d6
GM
62792009-09-26 Glenn Morris <rgm@gnu.org>
6280
6281 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6282 internal.elc. Add term/pc-win.elc.
6283 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6284 term/x-win.elc.
6285 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6286 term/w32-win.elc.
6287 (NS_SUPPORT): New.
6288 (lisp): Add NS_SUPPORT.
6289 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6290
4ff670a8
DR
62912009-09-25 David Reitter <david.reitter@gmail.com>
6292
6293 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6294 on Mac OS X 10.6+ (bug#4513).
6295
feabfb6c
JB
62962009-09-24 Juanma Barranquero <lekktu@gmail.com>
6297
6298 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6299 some parts of Emacs code (like font selection) don't grok them.
6300 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6301
de59072a
AS
63022009-09-24 Andreas Schwab <schwab@redhat.com>
6303
6304 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6305
a489517b
JB
63062009-09-24 Juanma Barranquero <lekktu@gmail.com>
6307
6308 * dired.c (Fdirectory_files): Fix typo in docstring.
6309
0592970c
AR
63102009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6311
6312 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6313 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6314 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6315 under GNUstep.
6316 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6317
6318 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6319 glyph advancement.
6320
48e8a88b
AR
63212009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6322
6323 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6324 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6325
6326 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6327 deleted (bug #4492).
6328
e14f0a78
AR
6329 * nsfont.m (Vns_reg_to_script): New lisp variable.
6330 (syms_of_nsfont): Declare it.
6331 (ns_registry_to_script): New function.
6332 (ns_get_req_script): Call it.
6333 (ns_findfonts): Don't give up on non-unicode registry.
6334
6335 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6336
5b650faa
SM
63372009-09-20 Tom Tromey <tromey@redhat.com>
6338
6339 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6340 batch mode (bug#4228).
6341
a489517b 63422009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6343
6344 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6345 carefully. (Bug #4339)
0bae4e09 6346
fcfe06f3
CY
63472009-09-18 Chong Yidong <cyd@stupidchicken.com>
6348
d798ba87 6349 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6350
31642728
AR
63512009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6352
6353 * emacs.c (inhibit_x_resources): Update doc string for NS.
6354 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6355 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6356
6357 * nsterm.h (ns_no_defaults): Remove.
6358
6359 * nsterm.m (ns_no_defaults): Remove.
6360 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6361 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6362 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6363 don't update the NSWindow itself.
6364 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6365 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6366
6367 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6368 ns_use_qd_smoothing.
6369
6370 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6371 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6372 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6373 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6374
8686ac71
JB
63752009-09-17 Juanma Barranquero <lekktu@gmail.com>
6376
6377 * emacs.c (inhibit_x_resources): New variable.
6378 (main) [HAVE_NS]: Don't process --quick command line option.
6379 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6380
6381 * lisp.h (inhibit_x_resources): Declare it extern.
6382
6383 * w32reg.c (x_get_string_resource):
6384 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6385
e227ba05
EZ
63862009-09-17 Eli Zaretskii <eliz@gnu.org>
6387
362654a6
JB
6388 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6389 Add lisp/term/internal.elc.
e227ba05 6390
742d40e8
SM
63912009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6392
6393 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6394 (bug#4461).
6395
005bd5a2
DN
63962009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6397
6398 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6399
6400 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6401 (OBJECTS_MACHINE): Remove, unused.
6402
f9af9719
SM
64032009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6404
6405 * frame.c (x_get_resource_string): Remove unused.
6406
0307c7d2
JD
64072009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6408
6409 * xterm.c (x_new_font): Call change_frame_size before calling
6410 x_set_window_size, in case frame size won't change.
6411
6412 * frame.c (x_set_font): Remove dead code.
6413
428b13d6
SM
64142009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6415
6416 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6417
5766c380
SM
64182009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6419
6420 * lread.c (Fload): Don't output a message after loading an obsolete
6421 package any more (done in Lisp now).
6422
2fd0161b
CY
64232009-09-12 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6426
bc5e75b6
SM
64272009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6428
6429 * keymap.c (Fwhere_is_internal): Use nconc2.
6430
c31c985e
AM
64312009-09-11 Alan Mackenzie <acm@muc.de>
6432
6433 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6434 batch mode.
6435
78012bd2
AS
64362009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6437
6438 * xdisp.c (display_mode_element): Detect cycles.
6439
9d889332
SM
64402009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6441
6442 * keymap.c (where_is_internal): Don't erroneously return nil right after
6443 filling the cache.
6444 (where_is_internal_1): Fix up typo.
6445
7ab5d780
GM
64462009-09-11 Glenn Morris <rgm@gnu.org>
6447
6448 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6449 share a common doc-string.
6450
5238a749
SM
64512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6452
66d77eda
SM
6453 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6454 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6455
5238a749
SM
6456 * keymap.c (QCadvertised_binding): New constant.
6457 (syms_of_keymap): Initialize it.
6458 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6459 if applicable.
6460
19f48442
SM
64612009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6462
50d4ba39
SM
6463 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6464 (parse_menu_item): Streamline since bindings are recomputed all the
6465 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6466 more and don't support lmenu's menu-alias any more either.
6467
a88a5372
SM
6468 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6469 (where_is_internal): Strip it down to only traverse the keymaps.
6470 Move the cache handling from Fwhere_is_internal to here.
6471 (Fwhere_is_internal): Move the handling of remapping and the choice of
6472 the best binding from where_is_internal to here.
6473 Unify the cached/noncached paths, so remapping is also handled
6474 correctly when the cache is used, and so the cache can be used to
6475 speed up remap-handling when applicable.
6476 Give preference to non-remapped bindings.
6477 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6478 non-remapped bindings.
6479 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6480 command remapping.
6481
19f48442
SM
6482 * xdisp.c (display_mode_element): Move list length limit from 50 to
6483 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6484
599498c3 64852009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6486
6487 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6488
f9b7b5ac
SM
64892009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6490
a53af587
JB
6491 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6492 (Bug#4334)
6493
f9b7b5ac
SM
6494 * keymap.c (where_is_internal): Filter out shadowed remappings.
6495 Assume that where_is_internal returns unshadowed bindings to simplify
6496 the code and get rid of the gotos. Use ASIZE.
6497
04f4b72d
JD
64982009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6499
4da146f2
JD
6500 * xterm.c (x_focus_changed): If we get a focusout and pointer
6501 is invisible, make it visible.
6502
04f4b72d
JD
6503 * xterm.h: Remove condition for declaration of
6504 x_*_window_to_frame.
6505
7cef7ce3
SM
65062009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6509 initial terminal as well.
6510
a54fa5b7
JD
65112009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6512
6513 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6514 x_menubar_window_to_frame.
a54fa5b7 6515
50426a04 6516 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6517 (XTmouse_position): Do not return valid positions
6518 for clicks in the menubar and the toolbar for Gtk+.
6519
6520 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6521 if the widget for the event has the same top level as a frame,
6522 return the frame.
6523 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6524 internal windows, bug #4122.
6525 (x_non_menubar_window_to_frame): Remove.
6526
5a021dd0
GM
65272009-09-02 Glenn Morris <rgm@gnu.org>
6528
6529 * buffer.c (default-major-mode): Move most of the doc from here...
6530 (major-mode): ... to here.
6531
548fe2f3
NR
65322009-08-30 Nick Roberts <nickrob@snap.net.nz>
6533
6534 * process.c (wait_reading_process_output): Keep the descriptor
6535 when pty is used by a non-child process, e.g., in I/O buffer of
6536 GDB this allows inferior to be restarted.
6537
e0840eef
EZ
65382009-08-29 Eli Zaretskii <eliz@gnu.org>
6539
6540 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6541 both branches into one.
6542
82e98df4
SM
65432009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6546 (main): Use enable-multibyte-characters rather than
6547 default-enable-multibyte-characters. Output a warning message when
6548 running a unibyte session.
6549
890617cb
YM
65502009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6551
6552 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6553 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6554 (copy_data_segment): Also copy __program_vars section.
6555 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6556 (dump_it) [LC_DYLD_INFO]: Use it.
6557
6558 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6559
e7adeadc
EZ
65602009-08-28 Eli Zaretskii <eliz@gnu.org>
6561
6562 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6563 $(SRC)/buildobj.h.
6564 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6565 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6566 $(SRC)/buildobj.h.
6567 (clean): Add buildobj.h.
6568
3ed8bbdc
TZ
65692009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6570
6571 * print.c (print_object): Set escapeflag to 1 when printing
6572 hashtable keys and values.
6573
155a6764
SM
65742009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6575
6576 * lread.c (read_integer): Use doubles (and potentially return a float
6577 number) as we do in string-to-number.
6578 (read1): Use strtol to read integers, signal errors on strtol's
6579 overflow and use floats if strtol's output is too large for
6580 Elisp integers.
6581
877610de
EZ
65822009-08-27 Eli Zaretskii <eliz@gnu.org>
6583
6584 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6585 (make-buildobj-SH): Fix last change.
6586 (SRC): Move to before where it's first used.
6587
ef73e7be
KH
65882009-08-27 Kenichi Handa <handa@m17n.org>
6589
550c8289
KH
6590 * process.c (send_process): Use encode_coding_object instead of
6591 encode_coding_string to perform eol-conversion even if the string
6592 is unibyte.
6593
60afa08d
KH
6594 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6595 character.
6596
ef73e7be 6597 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6598 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6599
7b3a82d7
DN
66002009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6601
5654bf63
DN
6602 * callproc.c (Fcall_process): Remove always true #if.
6603
7b3a82d7
DN
6604 * lisp.h: Replace #if 0 code for checking with text pointing to
6605 the --enable-checking configure flag.
6606
6607 * emacs.c (main): Mention the --enable-profiling configure flag
6608 instead of using CFLAGS.
6609
878bde49
KR
66102009-08-26 Ken Raeburn <raeburn@raeburn.org>
6611
6612 * Makefile.in (buildobj.h): New target.
6613 (doc.o): Depend on it.
6614 (temacs${EXEEXT}): Don't generate buildobj.lst.
6615 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6616 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6617 ($(BLD)/doc.$(O)): Depend on it.
6618 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6619 provided by Eli Zaretskii.)
6620 ($(TEMACS)): Don't generate buildobj.lst.
6621 * doc.c: Include buildobj.h.
6622 (buildobj): New static variable.
6623 (Fsnarf_documentation): Use it, instead of opening and reading
6624 buildobj.lst.
6625
1574224c
MA
66262009-08-25 Michael Albinus <michael.albinus@gmx.de>
6627
6628 * dbusbind.c (Fdbus_call_method)
6629 (Fdbus_call_method_asynchronously): Use English numeric format for
6630 timeout values in doc string.
6631
d9da2f45
KH
66322009-08-25 Kenichi Handa <handa@m17n.org>
6633
ef73e7be
KH
6634 * alloc.c (mark_char_table): New function.
6635 (mark_object): Use mark_char_table for a char-table.
6636
d9da2f45
KH
6637 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6638 (CHAR_TABLE_REF): Use it.
6639
c8edcc01
KR
66402009-08-23 Ken Raeburn <raeburn@raeburn.org>
6641
6642 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6643 before invoking the newly build emacs to check for load-path
6644 shadowing.
6645
7763401b
GM
66462009-08-22 Glenn Morris <rgm@gnu.org>
6647
6648 * Makefile.in (bootstrap_exe): New variable.
6649 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6650 Use ${bootstrap_exe}.
6651
729eadda
EZ
66522009-08-22 Eli Zaretskii <eliz@gnu.org>
6653
6654 * coding.h (encode_coding_string): Don't encode unibyte strings.
6655 (Bug#4047)
6656
eb4c6ace
MA
66572009-08-22 Michael Albinus <michael.albinus@gmx.de>
6658
6659 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6660
6661 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6662 intended as hotfix only.
6663 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6664
36e34d1b
AR
66652009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6666
6667 * nsterm.m (ns_get_color): Update documentation properly for last
6668 change, and clean up loose ends in the code left by it. Fix
6669 longstanding bug with 16-bit hex parsing, and add support for
6670 yet another X11 format (rgb:r/g/b) for compatibility.
6671 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6672 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6673
f983eb8a
SM
66742009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6675
6676 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6677
3f56d3c6
MA
66782009-08-20 Michael Albinus <michael.albinus@gmx.de>
6679
6680 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6681 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6682 (xd_initialize, xd_pending_messages): Check, whether
6683 $DBUS_SESSION_BUS_ADDRESS is set.
6684
fb641d68
YM
66852009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6686
6687 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6688
6689 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6690
cf59a374
GM
66912009-08-20 Glenn Morris <rgm@gnu.org>
6692
6693 * emacs.c (system-type): Doc fix.
6694
1373f3be
SM
66952009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6696
6697 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6698 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6699
058ed861
MA
67002009-08-18 Michael Albinus <michael.albinus@gmx.de>
6701
1373f3be
SM
6702 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6703 New functions.
058ed861
MA
6704 (xd_initialize): Revert change from 2009-08-16.
6705
563a866e 67062009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6707
6708 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6709 font-group vector, return nil.
5fc05db0 6710
e42bdf01
CY
67112009-08-17 Chong Yidong <cyd@stupidchicken.com>
6712
6713 * process.c (status_notify): Don't perform redisplay.
6714 (Fdelete_process, list_processes_1, process_send_signal):
6715 Expliticly perform redisplay.
6716 (wait_reading_process_output): Always check process status, but
6717 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6718
4230ab74
KR
67192009-08-17 Ken Raeburn <raeburn@raeburn.org>
6720
1373f3be 6721 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6722 (XFLOAT_INIT): New macro for storing a float value.
6723 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6724 * fns.c (sxhash): Copy out the value of a float in order to
6725 examine its bytes.
6726 * dbusbind.c (xd_append_arg): Likewise.
6727
4230ab74
KR
6728 * emacs.c (main): Don't call syms_of_data twice.
6729
a0645cdd
MA
67302009-08-16 Michael Albinus <michael.albinus@gmx.de>
6731
6732 * dbusbind.c (xd_initialize): Add connection file descriptor to
6733 input_wait_mask, in order to let select() detect, whether a new
6734 message has been arrived.
ca4f31ea 6735 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6736
485db0ba
MA
67372009-08-15 Michael Albinus <michael.albinus@gmx.de>
6738
1373f3be
SM
6739 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6740 New functions.
485db0ba
MA
6741
6742 * lisp.h (xd_pending_messages): Declare.
6743
6744 * keyboard.c (readable_events): Call xd_pending_messages.
6745
b5b98ff4
CY
67462009-08-15 Chong Yidong <cyd@stupidchicken.com>
6747
1373f3be 6748 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6749
f8354c6e
CY
6750 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6751
b5b98ff4
CY
6752 * buffer.c (set_buffer_internal_1)
6753 (swap_out_buffer_local_variables): Check for unbound local
6754 variables (Bug#4138).
6755
8b9fc636
EZ
67562009-08-14 Eli Zaretskii <eliz@gnu.org>
6757
6758 * process.c (create_pty): Fix last change.
6759
ce959360
CY
67602009-08-13 Chong Yidong <cyd@stupidchicken.com>
6761
6762 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6763 (xbm_load_image): Caller changed.
64b807c9 6764 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6765
c7baf7e9
NR
67662009-08-13 Nick Roberts <nickrob@snap.net.nz>
6767
6768 * process.c (create_pty): New function.
6769 (Fstart_process): Use it to allow Emacs to just associate a pty
6770 with the buffer. See associated change in gdb-mi.el.
6771 (list_processes_1): Deal with no program name.
6772 (start_process_unwind): Use pid == -2 to mean no process.
6773
1ac9108a
SM
67742009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6775
6776 * cmds.c (nonundocount): New global variable.
6777 (keys_of_cmds): Initialize it.
6778 (Fself_insert_command): Use it to combine upto 20 sequential chars
6779 into a single undo entry, just like the Qself_insert_command code in
6780 keyboard.c does.
6781 Call frame_make_pointer_invisible, also like the Qself_insert_command
6782 code in keyboard.c does.
6783 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6784 than its own local replacement for it.
6785
e267324c
KR
67862009-08-10 Ken Raeburn <raeburn@raeburn.org>
6787
1ac9108a 6788 * fns.c (concat): Don't re-set string length to its current value.
77437343 6789
1ac9108a
SM
6790 * coding.h (decode_coding_string, encode_coding_string):
6791 Use SBYTES macro.
f0bed503 6792
1ac9108a 6793 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6794 (doprnt): Merge with doprnt1, discarding lispstrings code.
6795 * lisp.h (doprnt_lisp): Don't declare.
6796
416e006d
JL
67972009-08-07 Juri Linkov <juri@jurta.org>
6798
6799 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6800
6f7d5780
DN
68012009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6802
6803 * print.c (syms_of_print): Undo previous change.
6804
f19a0f5b
TZ
68052009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6806
6807 * lread.c (read1, syms_of_lread): Read hashtables back from the
6808 readable format.
6809
6810 * print.c (print_preprocess, print_object): Print hashtables fully
6811 and readably.
6812 (syms_of_print): Provide 'hashtable-print-readable.
6813
b9173dc2
AR
68142009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6815
6816 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6817 no family set.
6818 (nsfont_open): Handle case when entity has no family.
6819
1586503c
AR
68202009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6821
6822 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6823 element, not a list, for match case.
6824
087048cd
KH
68252009-07-28 Kenichi Handa <handa@m17n.org>
6826
6827 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6828 rigidly.
6829
6830 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6831 font_parse_xlfd. Check font properties more rigidly.
6832
780c2506
DN
68332009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6834
31fd7c5c
JB
6835 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6836 bsd-common.h.
780c2506 6837
a8c0cc18
KH
68382009-07-27 Kenichi Handa <handa@m17n.org>
6839
6840 * xfaces.c (face_with_height): Call font_clear_prop.
6841
4fbe2306
CY
68422009-07-26 Chong Yidong <cyd@stupidchicken.com>
6843
111d9af3
CY
6844 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6845
6846 * xterm.c (x_term_init): Use Qx.
6847
4fbe2306
CY
6848 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6849
1ac9108a 6850 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6851 (ns_get_color): Revert 2009-07-16 change.
6852
beb0b7f9
EZ
68532009-07-25 Eli Zaretskii <eliz@gnu.org>
6854
6855 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6856 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6857
2baf5e76
KR
68582009-07-25 Ken Raeburn <raeburn@raeburn.org>
6859
1ac9108a
SM
6860 * coding.h (decode_coding_string, encode_coding_string):
6861 Use SCHARS macro.
8890e5f5 6862
2baf5e76 6863 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6864 (load_depth): Delete.
2baf5e76
KR
6865 (Qload_in_progress): New variable.
6866 (load_unwind): Don't reference load_depth or load_in_progress.
6867 (Fload): Likewise; specbind Qload_in_progress instead.
6868 (init_lread): Don't initialize load_depth.
6869 (syms_of_lread): Initialize and protect Qload_in_progress.
6870
1395c6f5
AR
68712009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6872
6873 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6874
4e2f36cf
AR
68752009-07-23 Yavor Doganov <yavor@gnu.org>
6876
6877 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6878
5dd9a6f7
AR
68792009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6880
6881 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6882 Bugs 3792, 3720, 2402.
6883 (ns_lookup_indexed_color): Check for bad index.
6884 (ns_index_color): Init unused slot to 0.
6885 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6886 Bug 3714, possibly 3082.
5dd9a6f7 6887
c902b920
JR
68882009-07-22 Jason Rumney <jasonr@gnu.org>
6889
1ac9108a
SM
6890 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6891 Position IME window at cursor (Bug#2570).
c902b920
JR
6892 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6893 (globals_of_w32fns): Dynamically load functions required above.
6894
6895 * w32term.c (w32_draw_window_cursor): Send message to reposition
6896 any IME window.
6897
090101cf
CY
68982009-07-21 Chong Yidong <cyd@stupidchicken.com>
6899
6900 * fileio.c: Revert 2009-07-16 changes.
6901 (Vauto_save_include_big_deletions): New variable.
6902 (Fdo_auto_save): Disable auto-save only if
6903 auto-save-include-big-deletions is nil.
6904
e6583e3d
CY
69052009-07-21 Chong Yidong <cyd@stupidchicken.com>
6906
6907 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6908 the overflowed pixels into account (Bug#3879).
6909
ece435a5
KR
69102009-07-21 Ken Raeburn <raeburn@raeburn.org>
6911
6912 * lread.c (load_depth): New variable.
6913 (Fload, load_unwind, init_lread): Set it to the load recursion
6914 depth; set load_in_progress as a simple boolean based on the
6915 current load_depth. (Bug#3892)
6916
40b2d973
AR
69172009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6918
6919 * nsfont.m (ns_has_attribute): Remove.
6920 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6921
10be7e0d
JL
69222009-07-18 Juri Linkov <juri@jurta.org>
6923
6924 * process.c (Fset_process_query_on_exit_flag): Mention killing
6925 a buffer in docstring.
6926
fa055055
KH
69272009-07-17 Kenichi Handa <handa@m17n.org>
6928
6929 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6930
042f7b69
YM
69312009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6932
6933 * nsfns.m (Fns_set_alpha): Remove function.
6934 (syms_of_nsfns): Don't defsubr it.
6935
6936 * nsterm.m (ns_get_color): Remove incompatible color formats.
6937 (ns_color_to_lisp): Generate #rrggbb color format string.
6938
4be941e3
RS
69392009-07-16 Richard Stallman <rms@gnu.org>
6940
6941 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6942 (Fset_buffer_auto_saved): Handle save_length = -2.
6943
4e6b227d
CY
69442009-07-16 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * xterm.c (Qx_gtk_map_stock): New var.
6947
6948 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6949 of calling intern each time.
6950
a1856973
YM
69512009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6952
6953 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6954 does tiling.
6955
6956 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6957
497e54d8
KH
69582009-07-14 Kenichi Handa <handa@m17n.org>
6959
72d36834
KH
6960 * font.c (font_vconcat_entity_vectors): New function.
6961 (struct font_sort_data): New member font_driver_preference.
6962 (font_compare): Check font_driver_preference.
6963 (font_sort_entities): The format of the first argument changed.
6964 (font_delete_unmatched): Likewise.
6965 (font_list_entities): The return type changed.
6966 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6967 (font_find_for_lface): Adjuste for the above changes.
6968 Don't suppress the checking of C even if the repertory supports it.
6969 (Flist_fonts): Adjust for the above changes.
72d36834 6970
1ac9108a
SM
6971 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6972 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6973 Reject a font who has adstyle property that is different from a
6974 langname derived from registry property.
1ac9108a 6975 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6976
b6046155
EZ
69772009-07-13 Eli Zaretskii <eliz@gnu.org>
6978
6979 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6980 local copy of dirfilename.
6981
fb6b6049
KH
69822009-07-13 Kenichi Handa <handa@m17n.org>
6983
e2402a5e
KH
6984 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6985 against max_char.
6986
fb6b6049
KH
6987 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6988 calling XSYMBOL (sym).
6989
65156807
EZ
69902009-07-11 Eli Zaretskii <eliz@gnu.org>
6991
1ac9108a
SM
6992 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6993 New function.
6994 (directory_files_internal) [WINDOWSNT]:
6995 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6996 the filesystem of the directory is fast or slow.
6997
6998 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6999 file name.
7000 (is_slow_fs): New function.
7001 (stat): Use it to determine whether to issue more system calls to
7002 get accurate file attributes, when w32-get-true-file-attributes is
7003 `local'.
7004
e0ab5fcf
JD
70052009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7006
7007 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7008 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7009 parameter font-parameter as default to the font dialog.
7010
784ceded
KH
70112009-07-10 Kenichi Handa <handa@m17n.org>
7012
7013 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7014
fb8edc0b
EZ
70152009-07-09 Eli Zaretskii <eliz@gnu.org>
7016
1ac9108a 7017 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7018
fb8edc0b
EZ
7019 * w32.c (stat): Treat UNC file names as residing on remote
7020 drives. (Bug#3542)
7021
635c75b1
KH
70222009-07-09 Kenichi Handa <handa@m17n.org>
7023
7024 * fontset.c (fontset_find_font): Fix previous change.
7025
c1d5ce94
MA
70262009-07-08 Michael Albinus <michael.albinus@gmx.de>
7027
7028 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7029 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7030 error flag.
7031
edb61b39
KH
70322009-07-08 Kenichi Handa <handa@m17n.org>
7033
374bf7e4
KH
7034 * fontset.c (fontset_find_font): Fix the logic of handling
7035 charset_matched.
7036 (font_for_char): Delete unused var.
7037 (generate_ascii_font_name): Delete it.
7038
edb61b39
KH
7039 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7040
7041 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7042 (encode_coding_sjis): Fix the code range check.
7043
0f3f018c
CY
70442009-07-07 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7047 (Fexpand_file_name): Copy string data properly (Bug#3772).
7048
fcaf6f3a
JD
70492009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7050
7051 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7052 first MapNotify.
7053
6809ca75
KH
70542009-07-07 Kenichi Handa <handa@m17n.org>
7055
7056 * character.h (unibyte_has_multibyte_table): Delete extern.
7057 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7058
7059 * charset.c (Fset_charset_priority): Update charset_unibyte.
7060 (syms_of_charset): Initialize charset_unibyte.
7061
7062 * character.c (unibyte_has_multibyte_table): Delete it.
7063 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7064 charset_unibyte.
7065 (multibyte_char_to_unibyte_safe): Likewise.
7066 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7067
1ac9108a 7068 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7069 (x_produce_glyphs): Likewise.
7070
7071 * .gdbinit (xcharset): Fix the treating $arg0.
7072
ad9e2d54
EZ
70732009-07-04 Eli Zaretskii <eliz@gnu.org>
7074
7075 Emulation of `getloadavg' on MS-Windows.
50426a04 7076 * w32.c: Include float.h.
ad9e2d54
EZ
7077 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7078 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7079 (get_native_system_info, get_system_times): New functions.
7080 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7081 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7082 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7083 g_b_init_get_system_times, and num_of_processors.
7084
0a3472c7
JR
70852009-07-03 Jason Rumney <jasonr@gnu.org>
7086
7087 * w32term.c (w32_initialize): Use standard types.
7088
80904120
EZ
70892009-07-03 Eli Zaretskii <eliz@gnu.org>
7090
7091 * dired.c (Ffile_attributes): Decode user and group names by the
7092 locale's encoding. (Bug#3443)
7093
6978862d
DN
70942009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7095
f8d23104
DN
7096 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7097 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7098
7099 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7100
7101 * term.c (init_tty): Remove spurious #ifdef.
7102
6978862d
DN
7103 * m/mips.h: Mention this file is also used for netbsd.
7104 * m/pmax.h: Remove file.
7105
e044e4fc
JD
71062009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7107
7108 * xterm.h (struct x_display_info): Add invisible_cursor.
7109 (struct x_output): Add current_cursor.
7110
7111 * xterm.c (XTtoggle_invisible_pointer): New function.
7112 (x_define_frame_cursor): Don't define cursor if invisible or the
7113 same as before. Set current_cursor.
7114 (x_create_terminal): Set toggle_invisible_pointer_hook.
7115
7116 * xfns.c (make_invisible_cursor): New function.
7117 (x_set_mouse_color): Call make_invisible_cursor.
7118 Set current_cursor.
7119 (x_window): Set current_cursor.
7120
7121 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7122
7123 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7124 inserting a character.
7125 (read_avail_input): Call frame_make_pointer_visible.
7126
7127 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7128 (frame_make_pointer_invisible, frame_make_pointer_visible):
7129 New functions.
e044e4fc
JD
7130 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7131
7132 * frame.h: Declare frame_make_pointer_invisible and
7133 frame_make_pointer_visible.
7134 (struct frame): Add pointer_invisible.
7135
574c8efa
JD
71362009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7137
7b507248
JD
7138 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7139 frame isn't visible.
7140 (xg_frame_resized): If width/height is -1, get size of window
7141 from X server.
7142
7143 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7144 for MapNotify.
7145
835bdaa7 7146 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7147 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7148 (flush_and_sync): Reintroduce.
574c8efa 7149
3f1c6666 71502009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7151
31fd7c5c 7152 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7153
7154 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7155 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7156
7157 * frame.h: Declare Qsticky.
7158
cad9ef74
JD
7159 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7160
7161 * nsfns.m (ns_frame_parm_handlers): Ditto.
7162
7163 * frame.c: Declare Qsticky.
7164 (frame_parms): Add sticky.
7165
7166 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7167
7168 * xterm.h: Declare x_set_sticky.
7169
7170 * xterm.c (x_set_sticky): New function.
7171
69b16610
JD
7172 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7173 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7174 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7175
7176 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7177
7178 * frame.c: Qmaximized is new.
7179 (x_set_frame_parameters): Do not handle fullscreen specially.
7180 Only set width and height if explicitly set.
7181 (x_set_fullscreen): Handle Qmaximized.
7182 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7183 (syms_of_frame): Initialize Qmaximized.
7184
1ac9108a
SM
7185 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7186 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7187
7188 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7189 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7190 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7191 set gravity to NorthWestGravity when USE_GTK.
7192 (set_wm_state): New function.
31fd7c5c 7193 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7194 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7195 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7196 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7197 to x_real_positions and x_fullscreen_adjust.
7198
7199 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7200 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7201 flush_and_sync.
7202 (xg_height_changed): New function.
7203 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7204 and gtk_window_set_policy. Set frame gravity after parsing the
7205 geometry string.
3f1c6666
JD
7206 (xg_update_frame_menubar, free_frame_menubar)
7207 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7208 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7209 Remove calls to xg_frame_set_char_size.
7210
fd503d99
KH
72112009-07-01 Kenichi Handa <handa@m17n.org>
7212
7213 * keyboard.c (decode_keyboard_code): New function.
7214 (tty_read_avail_input): Decode the input bytes if necessary.
7215
1ac9108a
SM
7216 * coding.c (setup_coding_system):
7217 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7218 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7219 use Qno_conversion.
7220
24ed93fb
YM
72212009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7222
7223 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7224
99061dfc
CY
72252009-06-30 Chong Yidong <cyd@stupidchicken.com>
7226
1ac9108a 7227 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7228
ff90fbde
JR
72292009-06-30 Jason Rumney <jasonr@gnu.org>
7230
7231 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7232 is already loaded.
7233 Set user model ID if supported (bug#1849).
7234
5f445726
JM
72352009-06-29 Jim Meyering <meyering@redhat.com>
7236
7237 Remove useless if-before-xfree test.
7238 * nsfont.m (nsfont_close): Remove useless test.
7239 * term.c (delete_tty): Likewise.
7240 * w32.c (system_process_attributes): Likewise.
7241 * w32font.c (w32font_close): Likewise.
7242 * xfaces.c (x_free_gc): Likewise.
7243 * xselect.c (buffer): Likewise.
7244
b9607587
AS
72452009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7246
7247 * process.c (send_process): Keep decoded string in a local
7248 variable and protect it from GC. (Bug#3521)
7249
89ba96f4
EZ
72502009-06-28 Eli Zaretskii <eliz@gnu.org>
7251
7252 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7253 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7254
098a1589
CY
72552009-06-28 Chong Yidong <cyd@stupidchicken.com>
7256
485422be
CY
7257 * xdisp.c (start_display, handle_face_prop)
7258 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7259 (redisplay_window, try_window_id, produce_image_glyph):
7260 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7261
098a1589
CY
7262 * xterm.c (x_update_window_begin, x_new_focus_frame)
7263 (x_scroll_bar_handle_click, handle_one_xevent)
7264 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7265 (x_make_frame_visible, x_make_frame_invisible)
7266 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7267 code chunks that are now obsolete.
7268
78c38319
MA
72692009-06-28 Michael Albinus <michael.albinus@gmx.de>
7270
7271 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7272 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7273 for hours, when optimzation is enabled.
7274 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7275 (xd_read_message): Make them static.
7276
4189ed40
CY
72772009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7278
7279 * term.c (turn_on_face): Allow simultaneously bold and dim
7280 terminal faces (Bug#3530).
7281
cd9b5e16
CY
72822009-06-27 Chong Yidong <cyd@stupidchicken.com>
7283
4e23bedb
CY
7284 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7285
cd9b5e16
CY
7286 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7287 truncation glyphs (Bug#3686).
7288
07cc3c35
GM
72892009-06-27 Glenn Morris <rgm@gnu.org>
7290
7291 * m/pmax.h: Restore file, with only netbsd portions.
7292
31fd7c5c 72932009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7294
cd9b5e16 7295 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7296
42d4a64f
KH
72972009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7298
7299 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7300 the arg FORCE_SYMBOL.
7301
930fe55b 73022009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7303
7304 * fontset.c (fontset_find_font): When a usable rfont_def is found
7305 in a fallback font-group, make it the first element of the group.
7306
57ebc3fd
CY
73072009-06-24 Chong Yidong <cyd@stupidchicken.com>
7308
7309 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7310
f084f942
KH
73112009-06-24 Kenichi Handa <handa@m17n.org>
7312
7313 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7314 set for C.
7315 (fontset_font): Record the availability of a font for C both in
7316 the realized fontsets of the current one and the default one.
7317
2f686c87
DN
73182009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7319
7320 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7321 conditional, it is always defined on AIX.
7322
666e158e
MB
73232009-06-23 Miles Bader <miles@gnu.org>
7324
7325 * window.c (Vrecenter_redisplay): New variable.
7326 (syms_of_window): Initialize it.
7327 (Qtty): New extern declaration.
7328 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7329
c6da7cd2
JM
73302009-06-23 Jim Meyering <meyering@redhat.com>
7331
1ac9108a
SM
7332 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7333 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7334 pointer dereferences are guaranteed to be valid.
c6da7cd2 7335
678dca3d
KH
73362009-06-23 Kenichi Handa <handa@m17n.org>
7337
74d75424
KH
7338 * emacs.c (main): Call init_font ().
7339
7340 * font.h (Vfont_log): Extern it.
7341 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7342
7343 * font.c (font_sort_entities, font_list_entities)
7344 (font_matching_entity, font_open_entity)
7345 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7346 (Vfont_log): Delete static.
7347 (font_log_env_checked): Delete this variable.
7348 (font_add_log): Don't check font_log_env_checked.
7349 (font_deferred_log): Check Vfont_log.
7350 (init_font): New function.
7351
678dca3d
KH
7352 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7353
7354 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7355
7356 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7357
7358 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7359
7360 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7361 (face_for_char): Don't call font_deferred_log here.
7362 (font_for_char): Likewise.
7363
8a668709
CY
73642009-06-22 Chong Yidong <cyd@stupidchicken.com>
7365
9a01ee33
CY
7366 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7367 rather than its background_width for drawing the overline and
7368 underline (Bug#489).
7369
7370 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7371 rather than its background_width for drawing the overline and
7372 underline (Bug#489).
ec7c9926
CY
7373 (xg_default_icon_file): New variable.
7374 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7375 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7376
8a668709
CY
7377 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7378 (load_overlay_strings): Remove externs.
7379 (fast_find_position): Function deleted.
7380 (mouse_face_from_buffer_pos): New function, based on
7381 fast_find_position. Correctly handle before-strings,
7382 display-strings, and after-strings (Bug#1220).
7383 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7384
4d4c02d8
CY
73852009-06-21 Chong Yidong <cyd@stupidchicken.com>
7386
1ac9108a 7387 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7388 (move_it_in_display_line_to, move_it_in_display_line_to)
7389 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7390
70243478
CY
73912009-06-21 Chong Yidong <cyd@stupidchicken.com>
7392
7393 * Branch for 23.1.
7394
13087e59
JR
73952009-06-21 Jason Rumney <jasonr@gnu.org>
7396
7397 * w32term.c (keyboard_codepage): New static variable.
7398 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7399 (w32_read_socket) [WM_CHAR]: Use it to decode character
7400 input (bug#3237).
7401 (w32_initialize): Initialize it.
7402 (codepage_for_locale): New function.
7403
4735b74e
KR
74042009-06-20 Ken Raeburn <raeburn@raeburn.org>
7405
7406 * process.c (status_message): Pass Faset index argument as a lisp
7407 object, so as to work with USE_LISP_UNION_TYPE.
7408
0e727afa
YM
74092009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7410
7411 * coding.c (Ffind_coding_systems_region_internal):
7412 Cache checked characters.
7413
cf299835
KH
74142009-06-18 Kenichi Handa <handa@m17n.org>
7415
1ac9108a 7416 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7417
90f20d94
AS
74182009-06-18 Andreas Schwab <aschwab@redhat.com>
7419
7420 * xdisp.c (redisplay_internal): Check that the frame is still
7421 live after redisplay of its windows.
7422 (redisplay_windows): Check that the window is still live.
7423
7f1faf1c
KH
74242009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7425
7426 * coding.c (detect_coding_utf_16): Fix previous change.
7427
cc13543e
KH
74282009-06-16 Kenichi Handa <handa@m17n.org>
7429
7430 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7431 UTF-16 by checking the dispersion of Eth and Oth bytes.
7432
977b85f4
AS
74332009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7434
7435 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7436
66bd43d1
KH
74372009-06-15 Kenichi Handa <handa@m17n.org>
7438
7439 * process.c (status_message): Fix previous change. Be sure to
7440 decode a localized string.
7441
cb5ca9c5
YM
74422009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7443
7444 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7445 add comment explaining why.
7446
ec7709ba 74472009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7448
ec7709ba 7449 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7450
4b7f335c
AR
74512009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7452
7453 * nsfont.m (ns_attribute_value): Remove.
7454 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7455 (ns_has_attribute): Shrink the normal range.
7456 (ns_findfonts): Don't worry about requested spec in determining
7457 need for synthItal.
e41820ee 7458 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7459
73b26103
SZ
74602009-06-14 Seiji Zenitani <zenitani@mac.com>
7461
7462 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7463
5753e4da
KH
74642009-06-11 Kenichi Handa <handa@m17n.org>
7465
7466 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7467 overhang for the static composition case.
7468
3561b671
KH
74692009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7470
5753e4da
KH
7471 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7472 overhang for the automatic composition case.
7473
3561b671
KH
7474 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7475 composition case.
7476
852bbd41
CY
74772009-06-10 Chong Yidong <cyd@stupidchicken.com>
7478
7479 * xdisp.c (get_next_display_element): When handling wrap-prefix
7480 and line-prefix, treat \n as a control character (bug#3502).
7481
9903d1e6
KH
74822009-06-10 Kenichi Handa <handa@m17n.org>
7483
7484 * font.c (font_parse_family_registry): Fix for one-char foundry.
7485 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7486
0bcbaaaa
CY
74872009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7488
7489 * process.c (status_message): Fix handling of multibyte signal
7490 string (Bug#3499).
7491
40aa3f13
JM
74922009-06-09 Jim Meyering <meyering@redhat.com>
7493
1f80c7e2
CY
7494 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7495 color name is missing.
40aa3f13 7496
72d51285
KH
74972009-06-09 Kenichi Handa <handa@m17n.org>
7498
7499 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7500 FROM-CODE and TO-CODE are codepoints of CHARSET.
7501
c1d04d84
AR
75022009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7503
7504 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7505
75062009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7507
7508 Changes to support :script/:lang/:otf in NS font driver.
7509 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7510 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7511 indicate not part of font driver interface, and change callers.
7512 (ns_get_family): Remove pointless null check.
7513 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7514 ns_spec_to_descriptor, ns_descriptor_to_entity.
7515 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7516 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7517 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7518 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7519 (ns_get_req_script, ns_accumulate_script_ranges)
7520 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7521 New functions.
7522 (nsfont_list, nsfont_match): Use ns_findfonts.
7523 (nsfont_open): Use font descriptor instead of traits.
7524 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7525 (dump_glyphstring): Rename to ns_dump_glyphstring.
7526
c7eb9816
AR
7527 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7528
c1d04d84
AR
7529 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7530
7531 * fontset.c (fontset_from_font): Remove NS-specific code.
7532
ec7709ba 75332009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7534
7535 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7536 nonactive windows.
7537
31fd7c5c 75382009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7539
1ac9108a 7540 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7541
68852c13 75422009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7543
7544 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7545
6756cd1d
CY
75462009-06-07 Chong Yidong <cyd@stupidchicken.com>
7547
7548 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7549 account for the overflowing of newlines into the last glyph on the
7550 display line (Bug#3482).
7551
28bf482a
DR
75522009-06-05 David Reitter <david.reitter@gmail.com>
7553
ec7709ba
JB
7554 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7555 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7556 Fns_selection_exists_p, Fns_selection_owner_p.
7557
fdb55376
JR
75582009-06-03 Jason Rumney <jasonr@gnu.org>
7559
7560 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7561 available. (Bug#3379)
7562
05129fbe
KH
75632009-05-29 Kenichi Handa <handa@m17n.org>
7564
1ac9108a
SM
7565 * coding.c (get_translation_table):
7566 Check Venable_character_translation.
05129fbe 7567
ec7709ba 75682009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7569
ec7709ba
JB
7570 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7571 (x_make_frame_visible): Move frame to front rather than calling
15891144 7572 ns_raise_frame().
ec7709ba 7573 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7574 isn't key window.
ec7709ba 7575 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7576 drawRect may be called by NSView even if the frame is hidden.
7577
ec7709ba
JB
7578 * nsfns.m (Fx_create_frame): Follow other ports in
7579 determining visibility; default to t. Ensure async_visible is set.
15891144 7580
21f73755
EZ
75812009-05-23 Eli Zaretskii <eliz@gnu.org>
7582
7583 * dired.c (Ffile_attributes): Doc fix.
7584
34001e41
CY
75852009-05-22 Chong Yidong <cyd@stupidchicken.com>
7586
7587 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7588
46306a17
SM
75892009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7590
7591 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7592 and xfont_scratch_props.
7593 (syms_of_xfont): Do it here instead.
7594 (xfont_find_ccl_program): Delete, unused.
7595 (xfont_open): Delete unused var `i'.
7596
ef6e0694
KH
75972009-05-21 Kenichi Handa <handa@m17n.org>
7598
7599 * fontset.c (Qlatin): Don't make it static.
7600
46306a17
SM
7601 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7602 New functions.
ef6e0694
KH
7603 (xfont_scripts_cache, xfont_scratch_props): New variables.
7604 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7605 (xfont_list_pattern): Argument changed. Callers changed.
7606 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7607 (xfont_list): Don't reject a font spec with :script property.
7608 (xfont_has_char): Fix setting of encoding.
7609 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7610 xfont_scratch_props.
7611
76122009-05-19 Kenichi Handa <handa@m17n.org>
7613
46306a17 7614 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7615 Callers changed.
7616
76172009-05-18 Kenichi Handa <handa@m17n.org>
7618
7619 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7620
ac71ced7
SM
76212009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7622
7623 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7624 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7625
1c6d1051
YM
76262009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7627
7628 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7629 (x_delete_terminal): Dissociate resource database from display and
7630 then call XrmDestroyDatabase before closing display.
7631
9b9b779c
AR
76322009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7633
7634 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7635 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7636 whether selected frame is viable before raising it (based on patch
7637 by David Reitter), and improve commentary.
7638 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7639
cccd42d5
KH
76402009-05-15 Kenichi Handa <handa@m17n.org>
7641
7642 * font.c (Ffont_spec): Check arguments.
7643
337fbd17
CY
76442009-05-14 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7647 weight when testing attributes (Bug#3282).
7648
47a6002f
JD
76492009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7650
7651 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7652 what we expect to get in the next ConfigureNotify event.
7653
9cb363db
YM
7654 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7655 before Xft one (Bug#1696).
7656
b9126609
CY
76572009-05-07 David Reitter <david.reitter@gmail.com>
7658
7659 * nsfns.m (Fx_display_planes): Compute bitplanes using
7660 NSBitsPerPixelFromDepth (Bug#3207).
7661
27a69fd9
CY
76622009-05-10 Chong Yidong <cyd@stupidchicken.com>
7663
7664 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7665
00f37552
TTN
76662009-05-10 Ulrich Mueller <ulm@gentoo.org>
7667
7668 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7669
2d82a920
DR
76702009-05-07 David Reitter <david.reitter@gmail.com>
7671
ec7709ba
JB
7672 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7673 Respect mouse face background.
2d82a920 7674
46b0d52d
DR
76752009-05-07 David Reitter <david.reitter@gmail.com>
7676
ec7709ba
JB
7677 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7678 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7679 in ns_update_begin and ns_update_end.
7680
ce1b23bb
SM
76812009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7682
5996e1b7
SM
7683 * nsfns.m (ns_get_screen): Rewrite.
7684 Don't presume selected-frame is of type `ns'.
7685
ba98e3a0
SM
7686 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7687 all drivers.
7688
ce1b23bb
SM
7689 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7690
bcda200f
YM
76912009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7692
7693 * keyboard.h (add_user_signal): Fix typo in extern.
7694
7695 * lisp.h (add_user_signal): Remove extern.
7696
7697 * unexelf.c (unexec): Consider a section to precede the .bss section
7698 if its addresses overlap that of .bss.
7699 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7700 instead of dumping process.
7701
864660a2
SM
77022009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7703
7704 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7705
50da4e56
SM
77062009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7707
7708 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7709
51520a1a
DN
77102009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7711
7712 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7713 any statements.
7714
409ea3a1
AS
77152009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7716
59c4c60f
AS
7717 * process.c (read_process_output): Make sure the current buffer is
7718 always restored.
7719
409ea3a1
AS
7720 * coding.c (record_conversion_result): Don't modify
7721 Vlast_code_conversion_error for successful result.
7722 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7723
56f00ed2
KH
77242009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7725
7726 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7727 (load_charset_map): Remove unnecessary code.
56f00ed2 7728
4491c9d2
DR
77292009-04-30 David Reitter <david.reitter@gmail.com>
7730
35f5b128 7731 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7732 through f24.
7733
6970f632
CY
77342009-04-30 Chong Yidong <cyd@stupidchicken.com>
7735
7736 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7737
7738 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7739 face_at_buffer_position.
7740 (face_before_or_after_it_pos, get_next_display_element)
7741 (note_mouse_highlight): Update face_at_buffer_position call.
7742
7743 * term.c (term_mouse_highlight):
7744 * msdos.c (IT_note_mouse_highlight):
7745 * fontset.c (Finternal_char_font):
35f5b128 7746 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7747
7748 * dispextern.h (face_at_buffer_position): Update prototype.
7749
0c616f63
KH
77502009-04-30 Kenichi Handa <handa@m17n.org>
7751
35f5b128 7752 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7753
ad3aaf33
AS
77542009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7755
7756 * callproc.c (Fcall_process): Fix GC protection. Make sure
7757 current buffer is always restored.
7758
c3c963a0
YM
77592009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7760
7761 * atimer.c (init_atimer): Also clear stopped_atimers.
7762
7763 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7764
7e3386cb
YM
7765 * process.c (create_process): Clean up merger residues of
7766 2008-07-17 change.
7767
91f68422
CY
77682009-04-29 Ulrich Mueller <ulm@gentoo.org>
7769
7770 * lread.c (Vread_circle): New variable.
7771 (read1): Disable recursive read if Vread_circle is nil.
7772
24b34550
KH
77732009-04-29 Kenichi Handa <handa@m17n.org>
7774
7775 * fontset.h (set_default_ascii_font): Delete extern.
7776
7777 * fontset.c (set_default_ascii_font): Delete this unused function.
7778
7779 * frame.c (x_set_font): When ARG is a font-object, check if the
7780 font-object matches with the ASCII font-spec of the frame's
9c358bda 7781 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7782
77bf07e1
AS
77832009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7784
7785 * fns.c (Flocale_info): Protect vector from GC during decoding.
7786
7787 * process.c (Fstart_process): Protect argv strings from GC during
7788 encoding.
7789
2c55aacf
AS
77902009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7791
7792 * sysdep.c: Include <ctype.h>.
7793
b892d3c9
DR
77942009-04-27 David Reitter <david.reitter@gmail.com>
7795
35f5b128 7796 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7797 Remove commented-out code.
7798
9d0644c4
JB
77992009-04-26 Johan Bockgård <bojohan@gnu.org>
7800
7801 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7802
b7053016
JR
78032009-04-25 Jason Rumney <jasonr@gnu.org>
7804
7805 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7806
4e8231f3
YM
78072009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7808
7809 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7810 Swap bytes in short integer if fringe bitmap width > 8.
7811
493dcf2c
KH
78122009-04-23 Kenichi Handa <handa@m17n.org>
7813
7814 * xfaces.c (Fx_list_fonts): If a font size is specified in
7815 PATTERN, set it in returned scalable fonts.
7816
401e9e57
CY
78172009-04-22 Chong Yidong <cyd@stupidchicken.com>
7818
708e05dc
CY
7819 * keyboard.c (Fset_input_meta_mode): Doc fix.
7820
7821 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7822
1ac9108a 7823 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7824
7825 * coding.c (Fterminal_coding_system): Doc fix.
7826
7827 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7828 (Fx_display_pixel_height, Fx_display_planes)
7829 (Fx_display_color_cells, Fx_server_max_request_size)
7830 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7831 (Fx_display_mm_height, Fx_display_mm_width)
7832 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7833 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7834 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7835 (check_x_display_info): Handle terminal objects instead of
7836 terminal ids.
7837
401e9e57
CY
7838 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7839 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7840 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7841 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7842
df80c7f0
KH
78432009-04-21 Kenichi Handa <handa@m17n.org>
7844
5a8f12af 7845 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7846 (font_score): Check AVGWIDTH too.
908567ef 7847
df80c7f0
KH
7848 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7849 worst case.
1ac9108a
SM
7850 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7851 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7852
705af33f
JR
78532009-04-19 Jason Rumney <jasonr@gnu.org>
7854
7855 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7856 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7857
7858 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7859 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7860 get_phys_cursor_geometry.
7861
b71ac3dd 7862 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7863 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7864 using get_phys_cursor_geometry.
7865
7866 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7867 correctly calculated.
7868
dc2933eb
JD
78692009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7870
1ac9108a
SM
7871 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7872 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7873 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7874 is deprecated.
7875
973e7849
AS
78762009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7877
7878 * font.c (font_put_frame_data): Use xfree instead of free.
7879
314d66f4
JB
78802009-04-17 Juanma Barranquero <lekktu@gmail.com>
7881
7882 * w32font.c (Qja, Qko): Remove declarations.
7883 (syms_of_w32font): Don't DEFSYM them.
7884
cf702558
CY
78852009-04-17 Chong Yidong <cyd@stupidchicken.com>
7886
7887 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7888
7889 * font.h (Qja, Qko): Extern them.
7890
7891 * ftfont.c (Qja, Qko): Remove declarations.
7892
7893 * xfont.c (Qja, Qko): Remove declarations.
7894
b50504f5
KH
78952009-04-17 Kenichi Handa <handa@m17n.org>
7896
bde25748
KH
7897 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7898 string from a vector to handle Latin-1 characters correctly.
7899
b50504f5
KH
7900 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7901 entity even if the cache hits.
7902
f4646fff
AS
79032009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7904
7905 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7906 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7907
e7deaab0
AS
7908 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7909 * lisp.h: Adjust prototypes.
7910
0a0e7d49
CY
79112009-04-16 Chong Yidong <cyd@stupidchicken.com>
7912
7913 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7914 change (Bug#3003).
7915
3c908a57
KH
79162009-04-16 Kenichi Handa <handa@m17n.org>
7917
1ac9108a 7918 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7919
7920 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7921 adstyle.
7922
7923 * ftfont.c (Qja, Qko): Don't make them static.
7924 (enum ftfont_cache_for): New enum.
7925 (fc_charset_table): Undo the previous change.
7926 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7927 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7928 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7929 non-scarable font, try to get AVERAGE_WIDTH.
7930 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7931 Change ft_face_cache from a list of a hash-table. Don't check
7932 `ja' and `ko' adstyle here.
7933 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7934 FTFONT_CACHE_FOR_CHARET.
7935 (ftfont_get_charset): Undo the previous change.
1ac9108a 7936 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7937 (ftfont_close): Likewise.
7938 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7939
7940 * font.c (font_sort_entites): Change the meaning of the arg
7941 BEST-ONLY. Don't optimize for VEC of lenght 1.
7942 (font_select_entity): Just return the value of font_sort_entites.
7943
7944 * xfaces.c (merge_face_vectors): Reflect font properties in
7945 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7946 font_clear_prop if a face attribute doesn't change.
7947
3c908a57
KH
7948 * charset.h (charset_ksc5601): Extern it.
7949
7950 * charset.c (charset_ksc5601): New variable.
7951 (Fdefine_charset_internal): Set charset_ksc5601.
7952 (init_charset_once): Initialize charset_ksc5601 to -1.
7953
d65859c3
DN
79542009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7955
7956 * fileio.c (history_delete_duplicates): Remove unused declaration.
7957
7958 * callint.c (history_delete_duplicates): New declaration.
7959 (Fcall_interactively): Remove command history duplicates when
7960 history_delete_duplicates is true.
7961
3ba010e5
EZ
79622009-04-14 Eli Zaretskii <eliz@gnu.org>
7963
7964 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7965
06f19b91
KH
79662009-04-14 Kenichi Handa <handa@m17n.org>
7967
7968 * font.c (Ffont_info): Fix docstring. Fix the second element of
7969 the returned value (bug#2949).
7970
2cce8bfc
CY
79712009-04-14 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7974
d156542d
KH
79752009-04-14 Kenichi Handa <handa@m17n.org>
7976
7977 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7978 encoding charset is ascii_compatible.
7979
7980 * charset.c (Fdefine_charset_internal): Make charset
7981 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7982 code_offset is 0, and covers all ASCII characters.
7983
86fa089e
SM
79842009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7985
7986 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7987 (ns_string_to_pasteboard_internal):
7988 * nsmenu.m (process_dialog):
7989 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7990 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7991 * lisp.h (Fx_load_color_file): Declare.
7992
a8a3728b
KH
79932009-04-13 Kenichi Handa <handa@m17n.org>
7994
1ac9108a 7995 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7996 (font_select_entity): Suppress the code to optimize for the same
7997 kind of fonts.
7998 (font_load_for_lface): Get a font that supports at least ASCII
7999 characters.
8000
8001 * ftfont.c (Qja, Qko): New variables.
8002 (fc_charset_table): Delete uniquifier data for iso8859-1.
8003 (ftfont_get_latin1_charset): New function.
8004 (get_adstyle_property): New function.
8005 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8006 bitmap fonts.
8007 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8008 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8009 `ko' or `ja'.
8010 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8011 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8012 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8013 property.
8014 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8015 (syms_of_ftfont): DEFSYM Qja and Qko.
8016
483670b5
KH
80172009-04-09 Kenichi Handa <handa@m17n.org>
8018
12b55765
KH
8019 * charset.c (map_charset_chars): For a charset of `superset'
8020 method, fix calculation of code range.
8021
483670b5
KH
8022 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8023 from the list of extra properties.
8024 (font_clear_prop): Be sure to delete `:name' font property.
8025
57d3b93b
KH
80262009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8027
b4b2c2ca
YM
8028 * dispnew.c (redraw_overlapping_rows): Fix detection of
8029 overlapping for topmost and bottommost rows.
8030
1ac9108a 8031 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8032
472c3609
JR
80332009-04-06 Jason Rumney <jasonr@gnu.org>
8034
8035 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8036
ab193662
KH
80372009-04-06 Kenichi Handa <handa@m17n.org>
8038
8039 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8040
8041 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8042
0c26f026
KH
80432009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8044
8045 * ftfont.c (ftfont_open): Fix checking of the return value of
8046 FT_Load_Char. Fix setting font->underline_thickness.
8047
e173bbce
CY
80482009-04-04 Chong Yidong <cyd@stupidchicken.com>
8049
8050 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8051 (Fterminal_parameters, Fterminal_parameter)
8052 (Fset_terminal_parameter): In doc string, refer to terminal
8053 objects rather than terminal ids.
8054
693a2698
EZ
80552009-04-04 Eli Zaretskii <eliz@gnu.org>
8056
8057 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8058 ret_lim_data. (Bug#2867)
8059
d5221487
CY
80602009-04-03 Chong Yidong <cyd@stupidchicken.com>
8061
8062 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8063 so they don't get wider than the window, matching 2006-01-23
8064 change to the partner function in xdisp.c (Bug#2800).
8065
223509a3
KH
80662009-04-03 Kenichi Handa <handa@m17n.org>
8067
8068 * print.c (print_object): Make each lowest sub_char_table start a
8069 new line (Bug#2866).
8070
74fcd0b1
KH
80712009-04-02 Kenichi Handa <handa@m17n.org>
8072
8073 * fontset.c (fontset_font): Record no-font when a fontset
8074 explicitly tells not to try another font-specs.
8075
c542407d
SM
80762009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8077
8078 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8079
e3869731
KH
80802009-03-30 Kenichi Handa <handa@m17n.org>
8081
d8d2f142
KH
8082 * fontset.c (fontset_from_font): Specify only registry in a
8083 font-spec for all characters supported by that registry.
8084
e3869731
KH
8085 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8086 even if HAVE_M17N_FLT is not defined.
8087
5da5f805
CY
80882009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8089
8090 * ftfont.c: Conditionalize prototyping and use of
8091 ftfont_variation_glyphs.
8092
ab226c50
SM
80932009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8094
9628fed7
SM
8095 * frame.c (delete_frame): Work around compiler bug.
8096
8097 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8098 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8099 Some more EMACS_INT.
8100 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8101
8102 * xdisp.c (dump_glyph): Fix typo.
8103
ae19ba7c
SM
8104 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8105 (adjust_markers_gap_motion, adjust_markers_for_delete)
8106 (adjust_markers_for_insert, adjust_point)
8107 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8108 (make_gap, copy_text, count_size_as_multibyte, insert)
8109 (insert_and_inherit, insert_before_markers)
8110 (insert_before_markers_and_inherit, insert_1)
8111 (count_combining_before, count_combining_after, insert_1_both)
8112 (insert_from_string, insert_from_string_before_markers)
8113 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8114 (insert_from_buffer_1, adjust_after_replace)
8115 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8116 (replace_range_2, del_range, del_range_1, del_range_byte)
8117 (del_range_both, del_range_2, modify_region)
8118 (prepare_to_modify_buffer, signal_before_change)
8119 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8120 for buffer positions and sizes.
8121 * lisp.h: Adjust prototypes accordingly.
8122
8123 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8124 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8125 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8126
ab226c50
SM
8127 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8128
46dfb8fb
JD
81292009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8130
8131 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8132 lines and columns so we keep the same pixel height and width.
8133
8134 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8135 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8136 (x_handle_net_wm_state): New function to update frame parameter
8137 fullscreen.
8138 (x_term_init): Initialize atoms for _NET_WM_STATE.
8139
8140 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8141
d347e494
SM
81422009-03-27 Kevin Ryde <user42@zip.com.au>
8143
8144 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8145 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8146 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8147 (Fgpm_mouse_stop): Pass that new parameter.
8148 * termhooks.h (close_gpm): Adjust prototype.
8149
84db11d6
SM
81502009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8151
c95a5008
SM
8152 * lisp.h (Fx_focus_frame): Declare.
8153
84db11d6
SM
8154 * callint.c (Fcall_interactively): For '^' just delegate the work to
8155 handle-shift-selection.
8156 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8157
0a1958d6
CY
81582009-03-24 Chong Yidong <cyd@stupidchicken.com>
8159
0bfdff23
CY
8160 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8161
0a1958d6
CY
8162 * data.c (Qinteractive_form): New variable.
8163 (Finteractive_form): Use it.
8164
8165 * eval.c (Fcommandp): Use Qinteractive_form.
8166
58aec0d6
JR
81672009-03-24 Jason Rumney <jasonr@gnu.org>
8168
8169 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8170 Calculate total size precisely. Decode environment variables
8171 before substituting. (Bug#38)
8172
553dd618
KH
81732009-03-24 Kenichi Handa <handa@m17n.org>
8174
8175 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8176 encoding (Bug#2722).
553dd618 8177
c39ea606
JD
81782009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8179
8180 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8181 that gdpy is set.
8182
bc9b2b5e
AM
81832009-03-22 Alan Mackenzie <acm@muc.de>
8184
8185 * callint.c (Finteractive): Clarify the doc string - even
8186 promptless elements need \n separators.
8187
9f995a76
JR
81882009-03-22 Jason Rumney <jasonr@gnu.org>
8189
8190 * w32term.c (syms_of_w32term): Doc fix for
8191 x-use-underline-position-properties.
8192
22749e9a
EZ
81932009-03-21 Eli Zaretskii <eliz@gnu.org>
8194
8195 * w32.c (getpwuid): Change argument type to unsigned.
8196 (struct w32_id): Change type of `rid' member to unsigned.
8197 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8198 argument ID to unsigned. All callers changed.
8199 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8200
e00553bf
EZ
82012009-03-20 Eli Zaretskii <eliz@gnu.org>
8202
8203 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8204 negative, produce a float value.
8205
8206 * dired.c (make_uid, make_gid): New functions.
8207 (Ffile_attributes): Use them to avoid negative UID and GID.
8208
f761d6b6
JB
82092009-03-20 Juanma Barranquero <lekktu@gmail.com>
8210
8211 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8212 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8213 Fix typos in docstrings.
8214
d507f8d7
KH
82152009-03-19 Kenichi Handa <handa@m17n.org>
8216
8217 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8218 changed, use font_load_for_lface to get a new font object.
8219 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8220
8221 * frame.c (x_set_font): Handle the case that ARG is a cons.
8222
c68845e0
GM
82232009-03-19 Glenn Morris <rgm@gnu.org>
8224
8225 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8226
bfa49dd1
CY
82272009-03-19 Chong Yidong <cyd@stupidchicken.com>
8228
8229 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8230
8458d4c1
KH
82312009-03-19 Kenichi Handa <handa@m17n.org>
8232
8233 * charset.c (load_charset_map_from_file): When a mapfile can't be
8234 loaded, signal an error.
8235
78e7d1fe
EZ
82362009-03-18 Eli Zaretskii <eliz@gnu.org>
8237
8238 * dired.c (Ffile_attributes): Make sure UID and GID are always
8239 positive, even if the value is too large for a positive EMACS_INT.
8240 Doc fix.
8241
8242 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8243
5da9fdfa
YM
82442009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8245
8246 * xmenu.c (xdialog_show): Move Fredisplay call ...
8247 (Fx_popup_dialog): ... here.
8248
7519c40d
SM
82492009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8250
8251 * dired.c (file_name_completion): Disable the first optimization just
8252 installed, since it is not implemented correctly.
8253
2cd298e2
SM
82542009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8255
8256 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8257 only if the entry can affect bestmatch.
2cd298e2
SM
8258 Stop the search early, as Ftry_completion already does.
8259
48d37adf
CY
82602009-03-17 Chong Yidong <cyd@stupidchicken.com>
8261
e10c9c93 8262 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8263
9286b16a
CY
82642009-03-15 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * keyboard.c (parse_menu_item): Don't display remappings as menu
8267 equivalent bindings (Bug#788).
8268
f7b146dc
JR
82692009-03-15 Jason Rumney <jasonr@gnu.org>
8270
8271 * w32term.h (WM_EMACS_PAINT): New message.
8272 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8273 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8274 before passing to lisp thread. (Bug#950)
8275
f761d6b6 82762009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8277
d93f9575
CY
8278 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8279 variable as it was never reset.
8280 (ns_term_init): Remove initialization of Lisp-settable defaults
8281 and ns_expand_space.
8282 (-setPanelFromDefaultValues): Remove ns_expand_space.
8283 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8284 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8285 i.e. no additional spacing, similar to Carbon port.
8286
d93f9575
CY
8287 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8288 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8289
305018ec
JD
82902009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8291
8292 * sound.c (alsa_configure): Remove call to deprecated
8293 snd_pcm_sw_params_set_xfer_align.
8294
f761d6b6 82952009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8296
8297 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8298 after clicking in a detached tool bar.
8299 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8300
46e722a9
SM
83012009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8302
348db3dd
SM
8303 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8304 int/Lisp_Object mixup).
46e722a9 8305
a3d16f39
KH
83062009-03-13 Kenichi Handa <handa@m17n.org>
8307
8308 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8309 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8310 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8311 (set_fontset_font): Change ARG to a vector. Handle range_list in
8312 ARG correctly.
8313 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8314 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8315 the above change.
8316 (fontset_from_font): Fix previous change.
fe24f56a 8317 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8318 entry. If FONTSET is the default fontset, don't set the extra
8319 slot of the returning char-table.
8320
b066e6b6
JB
83212009-03-12 Juanma Barranquero <lekktu@gmail.com>
8322
8323 * nsfns.m (Fx_close_connection): Doc fix.
8324 (Fns_do_applescript): Reflow docstring.
8325 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8326 (Fx_display_pixel_width, Fx_display_pixel_height)
8327 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8328 Fix typos in docstrings.
8329 (Fns_set_alpha): Fix typos in error messages.
8330
d472514e 83312009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8332
d472514e 8333 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8334 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8335 were used for such events.
8336
d472514e
JB
8337 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8338 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8339
d472514e 8340 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8341 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8342
fb930676
KH
83432009-03-11 Kenichi Handa <handa@m17n.org>
8344
ff85581a
KH
8345 * font.h (font_open_by_spec): Extern it.
8346
c50b7e98
KH
8347 * font.c (font_open_by_spec): New function.
8348 (font_open_by_name): Use font_open_by_spec.
8349
fb930676
KH
8350 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8351 fontset of the frame.
8352
8353 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8354 modify the default font of frames that use this fontset.
8355 (num_auto_fontsets): New variable.
8356 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8357 name. Be sure to set FONTSET_ASCII to the correct font name.
8358 (update_auto_fontset_alist): New function.
8359
df4e8455
JB
83602009-03-11 Juanma Barranquero <lekktu@gmail.com>
8361
8362 * makefile.w32-in: Update dependencies.
8363
0a375797
AR
83642009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8365
8366 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8367
61313fa3
SM
83682009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8369
8370 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8371
b55103fb
CY
83722009-03-10 Chong Yidong <cyd@stupidchicken.com>
8373
8374 * lread.c (Feval_buffer): Doc fix.
8375
dde2559c
KH
83762009-03-09 Kenichi Handa <handa@m17n.org>
8377
8378 * charset.c (Qfile_name_handler_alist): Extern it.
8379 (load_charset_map_from_file): Temporarily bind
8380 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8381
df4e8455 83822009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8383
47f588bb
GM
8384 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8385 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8386
4ddf94bd
AR
83872009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8388
4c9bdfc2
AR
8389 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8390 (x_set_window_size): Change back to calculated method of setting
8391 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8392 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8393 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8394
fe41ae9e
AR
8395 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8396
4c9bdfc2
AR
8397 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8398 accelerator in parens under GNUstep.
8399
825d0875
KH
84002009-03-06 Kenichi Handa <handa@m17n.org>
8401
8402 These changes are to detect incorrect composition sequence without
f3b3be74 8403 looking ahead the source. (Bug#2370)
825d0875
KH
8404
8405 * coding.h: Include "composite.h".
8406 (enum compisition_state): New enum.
8407 (struct compisition_status): New struct.
8408 (struct iso_2022_spec): New member cmp_status.
8409 (struct emacs_mule_spec): New struct.
8410 (struct coding_system): New members ctext_extended_segment_len and
8411 embedded_utf_8. Change the union member
8412 spec.emacs_mule_full_support to spec.emacs_mule.
8413
8414 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8415 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8416 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8417 (ADD_COMPOSITION_DATA): New arg nbytes.
8418 (emacs_mule_char): New arg cmp_status.
8419 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8420 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8421 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8422 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8423 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8424 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8425 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8426 (EMACS_MULE_COMPOSITION_END): New macro.
8427 (emacs_mule_finish_composition): New function.
8428 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8429 (decode_coding_emacs_mule): Avoid long looking ahead while
8430 handling composition.
8431 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8432 (ENCODE_COMPOSITION_RULE): New macro.
8433 (finish_composition): New function.
8434 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8435 (DECODE_COMPOSITION_START): New implementation.
8436 (DECODE_COMPOSITION_END): Likewise.
8437 (STORE_COMPOSITION_RULE): New macro.
8438 (decode_coding_iso_2022): Avoid long looking ahead while handling
8439 composition, CTEXT extended segment, and embedded UTF-8.
8440 (setup_coding_system): For a coding of type iso-2022, reset
8441 CODING_ISO_EXTSEGMENT_LEN (coding) and
8442 CODING_ISO_EMBEDDED_UTF_8 (coding).
8443 (get_translation): Delete arguments last_block, from_nchars,
8444 to_nchars. Callers changed.
8445 (produce_chars): Don't modify charbuf. Adjusted for the change of
8446 get_translation.
98a326f7 8447 (produce_composition): Adjust for the new annotation sequence.
825d0875 8448 (handle_composition_annotation): Likewise.
98a326f7 8449 (consume_chars): Adjust for the change of get_translation.
825d0875 8450
ccbc4452
AR
84512009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8452
4ddf94bd 8453 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8454
988a7ddb
KH
84552009-03-05 Kenichi Handa <handa@m17n.org>
8456
8457 * font.c (font_select_entity): New function.
8458 (font_find_for_lface): Use font_select_entity to select a font.
8459
8460 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8461 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8462 font with C restriction.
8463
98a326f7 84642009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8465
be1bce46 8466 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8467
10ea2b82
JR
84682009-03-04 Jason Rumney <jasonr@gnu.org>
8469
2c93b248 8470 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8471 characters that have already been read. (Bug#2569)
2c93b248 8472
10ea2b82
JR
8473 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8474 Log an error message if check_image_size failed.
8475 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8476 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8477
71a0c011
EZ
84782009-03-02 Eli Zaretskii <eliz@gnu.org>
8479
8480 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8481 when decoding process output.
8482
2f63bba8
RS
84832009-03-01 Richard M Stallman <rms@gnu.org>
8484
8485 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8486
8487 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8488
0a9564cb
EZ
84892009-02-28 Eli Zaretskii <eliz@gnu.org>
8490
8491 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8492 (decode_coding_emacs_mule, decode_coding_iso_2022)
8493 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8494 (decode_coding_raw_text, decode_coding_charset)
8495 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8496 Honor inhibit-eol-conversion. (Bug #2186)
8497
449148b3
JR
84982009-02-28 Jason Rumney <jasonr@gnu.org>
8499
8500 * coding.c (detect_coding_charset): If not checking latin extra,
8501 fail on characters between 0x80 and 0xA0. (Bug#2354)
8502
a4aee864
EZ
85032009-02-28 Eli Zaretskii <eliz@gnu.org>
8504
8505 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8506 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8507
d88bee5a
GM
85082009-02-27 Glenn Morris <rgm@gnu.org>
8509
8510 * callint.c (Finteractive): Doc fix.
8511
a808f22d
KH
85122009-02-27 Kenichi Handa <handa@m17n.org>
8513
8514 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8515
caf8d60c
CY
85162009-02-27 Chong Yidong <cyd@stupidchicken.com>
8517
8518 * font.c (font_style_to_value): Set value for unknown symbols to
8519 100 instead of 255.
b61137ea
CY
8520 (weight_table, slant_table, width_table): Treat "unspecified" as
8521 the default value.
caf8d60c 8522
1a0de25c
JB
85232009-02-26 Juanma Barranquero <lekktu@gmail.com>
8524
8525 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8526
8fc45744
JB
85272009-02-25 Juanma Barranquero <lekktu@gmail.com>
8528
107bd7d1
JB
8529 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8530 error as soon as a recursive load is detected.
8fc45744 8531
f097e223
AR
85322009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8533
8534 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8535 before caching.
8536
8810a12f
KH
85372009-02-24 Kenichi Handa <handa@m17n.org>
8538
8539 * fontset.c (fontset_find_font): Fix the condition for checking
8540 unavailable font.
8541
2c7d1565
GM
85422009-02-24 Glenn Morris <rgm@gnu.org>
8543
8544 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8545 whitespace that confuses documentation.
8546
a20878b6
MB
85472009-02-23 Miles Bader <miles@gnu.org>
8548
8549 * process.c (Flist_system_processes, Fprocess_attributes)
8550 (syms_of_process): Rename `system-process-attributes' to
8551 `process-attributes'.
8552
b3b58c01
AS
85532009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8554
1b3b981b
AS
8555 * coding.h (struct coding_system): Make safe_charsets a pointer to
8556 unsigned char.
8557 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8558 being 255.
8559 (SAFE_CHARSET_P): Likewise.
8560 (setup_iso_safe_charsets): Properly setup safe_charsets.
8561 (Fdefine_coding_system_internal): Likewise.
8562 (setup_coding_system): Likewise. Remove unneeded casts.
8563 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8564 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8565 unneeded casts.
8566
b3b58c01
AS
8567 * insdel.c (del_range_2): Don't modify gap contents when called
8568 from decode_coding_object. (Bug#1809)
8569
0b6f228c
CY
85702009-02-21 Chong Yidong <cyd@stupidchicken.com>
8571
8572 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8573 Qfont_object.
8574 (Ftype_of): Recognize font objects.
8575
8576 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8577
8578 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8579 moved to data.c.
8580
52f8870b
AR
85812009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8582
8583 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8584 async_iconified. Based on a patch by Christian Lynbech
8585 <christian.lynbech@tieto.com>.
8586 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8587
7087d5e9
GM
85882009-02-20 Glenn Morris <rgm@gnu.org>
8589
8590 * syntax.c (Fskip_chars_forward): Fix doc typo.
8591
41d2ceef
CY
85922009-02-20 Chong Yidong <cyd@stupidchicken.com>
8593
8594 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8595
1a3b7ca6
CY
85962009-02-19 Chong Yidong <cyd@stupidchicken.com>
8597
8598 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8599
73cce38d
KH
86002009-02-19 Kenichi Handa <handa@m17n.org>
8601
8602 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8603 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8604
a51092ee
DN
86052009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8606
8607 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8608
c423ecca
KH
86092009-02-18 Kenichi Handa <handa@m17n.org>
8610
8611 * font.c (font_check_otf_features): Fix handling of `nil' element.
8612 (Ffont_spec): Describe :lang and :otf in the docstring.
8613
4c1958f4
AS
86142009-02-16 Andreas Schwab <schwab@suse.de>
8615
8616 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8617 string.
8618
5704f39a
KH
86192009-02-16 Kenichi Handa <handa@m17n.org>
8620
8621 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8622 (Bug#1723)
5704f39a 8623
8f0085aa
CY
86242009-02-14 Chong Yidong <cyd@stupidchicken.com>
8625
a057d86a 8626 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8627
8628 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8629 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8630
aff01dd9
EZ
86312009-02-14 Eli Zaretskii <eliz@gnu.org>
8632
8633 * msdos.c (MAX_SCREEN_BUF): New macro.
8634 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8635 Encode the entire run of glyphs sharing the same face, instead of
8636 doing that one glyph at a time (fixes a bug with displaying
8637 double-size characters).
8638
ba301db3
AR
86392009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8640
8641 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8642
8643 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8644 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8645 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8646
8647 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8648 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8649
51d861de
SM
86502009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8651
ac146f82 8652 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8653 invisible areas.
8654
7fed8996
JR
86552009-02-12 Jason Rumney <jasonr@gnu.org>
8656
631ea4fb
JR
8657 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8658 (add_font_entity_to_list): Call check_face_name even when family
8659 is unspecified.
8660
cb4a3e42
JR
8661 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8662 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8663 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8664
7fed8996 8665 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8666 raster fonts. (Bug#2219)
7fed8996 8667
895416e3
KH
86682009-02-12 Kenichi Handa <handa@m17n.org>
8669
8670 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8671 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8672 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8673 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8674 (find_automatic_composition): While looking forward and backward,
8675 check static composition. Fix where to stop looking forward.
8676 (composition_adjust_point): Fix checking of static composition.
8677 (Fcomposition_get_gstring): Pay attention to
1dacf998 8678 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8679
8680 * lisp.h (fast_looking_at): Extern it.
8681
8682 * search.c (fast_looking_at): New function.
8683
51d861de 8684 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8685 <struct glyph>.u.cmp.to.
8686 (append_composite_glyph): Likewise.
8687
51d861de 8688 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8689 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8690 composition.
51d861de 8691 (append_composite_glyph): Adjust for the change of
895416e3
KH
8692 <strcut glyph>.u.cmp.to.
8693
8510724d
JB
86942009-02-11 Juanma Barranquero <lekktu@gmail.com>
8695
8696 * casetab.c (init_casetab_once):
8697 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8698 * font.c (font_update_lface):
8699 * fontset.c (Fnew_fontset):
8700 * ftfont.c (ftfont_drive_otf):
8701 * xfont.c (xfont_open):
8702 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8703
294fa707
SM
87042009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8705
8706 * fileio.c (Fwrite_region): !NILP -> CONSP.
8707
b5bfebec
AS
87082009-02-10 Andreas Schwab <schwab@suse.de>
8709
8710 * process.c (send_process): Properly relocate pointer into data
adab88bd 8711 when using encoded data. (Bug#2272)
b5bfebec 8712
cb84a2be
KH
87132009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8714
8715 * coding.c (detect_coding_charset): Fix previous change.
8716
89e09428
JR
87172009-02-08 Jason Rumney <jasonr@gnu.org>
8718
8719 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8720 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8721
4470a277
AS
87222009-02-07 Andreas Schwab <schwab@suse.de>
8723
8724 * unexelf.c (unexec): Fix error message.
8725
3175b12a
AR
87262009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8727
8728 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8729 when modal window is active. (Bug #2152)
3175b12a
AR
8730 (applicationShouldTerminate:): Remove now-unneeded while loop
8731 around NSRunAlertPanel.
8732
8733 * nsmenu.m (popupSession): New file-global variable.
8734 (pop_down_menu): End the popupSession before closing dialog.
8735 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8736 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8737 don't query NSApp for events (just sleep instead).
8738
8434d0b8
EZ
87392009-02-07 Eli Zaretskii <eliz@gnu.org>
8740
51d861de
SM
8741 * coding.c (syms_of_coding) <translation-table-for-input>:
8742 Modify doc string to discourage use for character code unification.
8434d0b8 8743
aa82edfd
CY
87442009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8745
8746 * atimer.c (run_timers): Update pending_atimers.
8747
2d283c7c
CY
87482009-02-06 Chong Yidong <cyd@stupidchicken.com>
8749
eb306cab
CY
8750 * image.c (svg_load_image): Fix last change.
8751
2d283c7c
CY
8752 * xfns.c (Fx_create_frame): Signal an error if no font is
8753 found (Bug#2147).
8754
4d8e170e
JB
87552009-02-05 Juanma Barranquero <lekktu@gmail.com>
8756
8757 * character.c (syms_of_character) <script-representative-chars>:
8758 Fix typo in docstring.
8759
c96169a0
AR
87602009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8761
8762 * nsmenu.m (pop_down_menu): New function.
8763 (ns_popup_dialog): Call it on unwind.
8764 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8765 call timer_check() (Bug#2154).
8766 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8767 handling_signal is set.
8768 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8769
31fd7c5c 8770 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8771
8772 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8773
8774 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8775
51d861de
SM
8776 * keyboard.c (poll_for_input_1, handle_async_input):
8777 Set handling_signal under HAVE_NS.
c96169a0 8778
aacd8ba1
GM
87792009-02-04 Glenn Morris <rgm@gnu.org>
8780
8781 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8782
4cb75c4b
KH
87832009-02-04 Kenichi Handa <handa@m17n.org>
8784
8785 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8786
8787 * charset.c (Fchar_charset): New optional arg restriction.
8788
8789 * coding.h (coding_system_charset_list): Extern it.
8790
8791 * coding.c (coding_system_charset_list): New function.
8792
8793 * composite.c: Include coding.h and termhooks.h.
8794 (composition_gstring_p): Fix for the terminal case.
8795 (composition_gstring_width): Likewise.
8796 (fill_gstring_body): Likewise.
8797 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8798 the frame.
8799 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8800 is within a composition.
867d4bb3 8801 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8802
8803 * term.c (encode_terminal_code): Fix handling of composition.
8804 (produce_composite_glyph): For static composition, get pixel_width
8805 from struct composition.
8806
826ba17e
AS
88072009-02-02 Andreas Schwab <schwab@suse.de>
8808
8809 * unexelf.c (unexec): Handle unaligned bss offset.
8810
8ad093db
AR
88112009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8812
8813 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8814 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8815
8ad093db
AR
8816 * keyboard.c (handle_interrupt): Don't call
8817 quit_throw_to_read_char() under NS.
d0a76a6e 8818
8ad093db
AR
8819 * blockinput.h: Remove NS-specific code.
8820
4d18a7a2
DN
88212009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8822
db878925
DN
8823 * dispnew.c (window_change_signal): Don't try to get the size of a
8824 suspended tty frame.
8825 * term.c (Fresume_tty): Resize if the size has changed while the
8826 tty was suspended.
8827
4d18a7a2
DN
8828 * alloc.c (mark_stack): Properly conditionalize previous change.
8829
8984df7c
JB
88302009-01-30 Juanma Barranquero <lekktu@gmail.com>
8831
8832 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8833 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8834 Remove; this code is not used on Windows.
8835
75f4f1ac
EZ
88362009-01-30 Eli Zaretskii <eliz@gnu.org>
8837
8838 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8839 EOLs that also has stray ^M characters.
8840
07a1e794
JB
88412009-01-30 Juanma Barranquero <lekktu@gmail.com>
8842
8843 * atimer.c (run_timers, alarm_signal_handler):
8844 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8845 * w32inevt.c (w32_console_read_socket):
8846 * w32term.c (w32_read_socket):
8847 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8848
a8b11cc9
CY
88492009-01-30 Chong Yidong <cyd@stupidchicken.com>
8850
8851 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8852 Initialize it as a relative filename pattern.
8853 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8854 (Fcall_process_region): Simplify temp file creation using
8855 temporary-file-directory.
8856
c279587b
EZ
88572009-01-29 Eli Zaretskii <eliz@gnu.org>
8858
8859 * msdos.c: Rename pending_signals to msdos_pending_signals.
8860 (sig_suspender, sigprocmask): Adjust.
8861
a8fe3242
CY
88622009-01-29 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * keyboard.c (pending_signals): New var.
8865 (poll_for_input, input_available_signal, init_keyboard): Set it.
8866 (process_pending_signals): New function.
8867
8868 * lisp.h (QUIT): Check pending_signals instead of
8869 interrupt_input_pending. Use process_pending_signals.
8870
51d861de 8871 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8872
51d861de 8873 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8874
8875 * sysdep.c (emacs_write): Use process_pending_signals.
8876
8877 * xterm.c (XTread_socket): Update pending_signals.
8878
8879 * w32term.c (w32_read_socket): Update pending_signals.
8880
8881 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8882
6570a1c4
KH
88832009-01-29 Kenichi Handa <handa@m17n.org>
8884
8885 * xftfont.c (xftfont_has_char): New function.
8886 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8887
d72a4afa
AR
88882009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8889
8890 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8891 under GNUstep.
8892 (ns_query_color): New declaration.
8893
8894 * nsterm.m (ns_confirm_quit): New variable.
8895 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8896 (EmacsApp-applicationShouldTerminate:): Use it.
8897 (EmacsPrefsController): Let user set it.
8898 (ns_query_color): New function.
8899 (ns_defined_color): Use it.
8900 (ns_initialize): Drop.
8901 (ns_term_init): Add two lines from ns_initialize(), and set
8902 input_interrupt_mode to nil.
8903
8904 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8905 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8906
9fe78804
KH
89072009-01-28 Kenichi Handa <handa@m17n.org>
8908
8909 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8910 (fontset_get_font_group): Remember that no font-group is specified
8911 for C.
9fe78804 8912
fa57de36
CY
89132009-01-27 Chong Yidong <cyd@stupidchicken.com>
8914
930600e9
CY
8915 * fns.c (concat): Check for string overflow (bug#1787).
8916
fa57de36
CY
8917 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8918 Quadruple undo limits (bug#1501).
8919
7179ce7b
KH
89202009-01-27 Kenichi Handa <handa@m17n.org>
8921
8922 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8923 directly use GT_Get_Char_index.
8924
8925 * xftfont.c (struct xftfont_info): New member `index'.
8926
8927 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8928 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8929
5be8fcc0
CY
89302009-01-26 Kenichi Handa <handa@m17n.org>
8931
8932 * fontset.c (fontset_find_font): Fix handling of non-cons return
8933 value of fontset_get_font_group.
8934 (fontset_font): Revert last change.
8935
19ae3e61
JR
89362009-01-26 Jason Rumney <jasonr@gnu.org>
8937
8938 * w32font.c (w32font_list_internal): Return quickly if registry is
8939 unknown. Simplify final return.
8940 (add_font_entity_to_list): Break complex logic down into more
8941 manageable chunks. Move unknown registry check to
8942 w32font_list_internal.
8943
8612b71a
AR
89442009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8945
8946 Changes to remove Feval calls from GUI under NS.
8947
d8038940
JB
8948 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8949 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8950 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8951
8952 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8953 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8954 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8955 instead of NON_ASCII_KEYSTROKE_EVENT.
8956 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8957 (EmacsApp-applicationShouldTerminate:): Query user.
8958 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8959 instead of Feval.
8960
8961 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8962
8963 * keyboard.c (kbd_buffer_get_event): Check for it.
8964 (keys_of_keyboard): Define lispy keys for
8965 ns-put/unput-working-text.
8966
8967 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8968 versions.
8969 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8970
6288ae55
CY
89712009-01-25 Chong Yidong <cyd@stupidchicken.com>
8972
8973 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8974 setting current_buffer directly. (Bug#2044)
6288ae55 8975
289e7f8f
CY
89762009-01-24 Chong Yidong <cyd@stupidchicken.com>
8977
5ce87308 8978 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8979 any work. (Bug#1952, bug#1990).
5ce87308 8980
64cc3cf6 8981 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8982
b3243e6f
AR
89832009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8984
8985 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8986 (ns_no_defaults): New declaration.
8987 (main): Use it.
e0d2e69a 8988
d900b2af 8989 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8990
d900b2af 8991 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8992
d900b2af
AR
8993 * nsterm.m (ns_no_defaults): New variable.
8994 (ns_initialize): Don't read defaults when ns_no_defaults.
8995 (EmacsView-readSelectionFromPasteboard:)
8996 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8997 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8998 (ns_dumpglyphs_stretch): New function.
8999 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9000 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9001
e0d2e69a
AR
9002 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9003
3ac71f5d
CY
90042009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9005
9006 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9007 call for Sparc64.
9008
3fe53a83
AR
90092009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9010
9011 * nsfns.m:
9012 * nsgui.h:
9013 * nsmenu.m:
9014 * nsselect.m:
9015 * nsterm.h:
9016 * nsterm.m: Remove '23' comments that indicated code added during
9017 update from emacs-20 -> emacs-23.
9018
10f87c6f 90192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9020
9021 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9022 ns_alternate_modifier. (Bug#1217)
a3b53a85 9023
c7cef62d
AR
9024 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9025 Display all shortcuts, including those w/o super modifier.
9026
575fb8bd
AR
9027 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9028
918b848b
CY
90292009-01-22 Chong Yidong <cyd@stupidchicken.com>
9030
9031 * fileio.c (Vwrite_region_post_annotation_function)
9032 (Vwrite_region_annotation_buffers): New vars.
9033 (build_annotations_unwind): Just reset
9034 Vwrite_region_annotation_buffers.
9035 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9036 Call write-region-post-annotation-function.
9037 (build_annotations): Add to Vwrite_region_annotation_buffers if
9038 buffer changes.
9039
a39e2539
AR
90402009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9041
9042 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9043 Tiger.
51d861de
SM
9044 * nsfns.m (ns_do_applescript):
9045 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9046
35ed44db
AR
90472009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9048
9049 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9050
cbe0b5bf
AR
90512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9052
9053 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9054
6049d3a0
AR
9055 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9056
9057 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9058 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9059 handle Ctrl-tab. (Bug#1841)
9060 (ns_get_color): Use unsigned long long for scanned hex string value.
9061 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9062 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9063 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9064 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9065 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9066 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9067 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9068
d3810c21 9069 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9070 DPI. (Bug#1316)
d3810c21
AR
9071 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9072 values in onTiger section.
4c7077c3 9073
e301e634
CY
90742009-01-19 Chong Yidong <cyd@stupidchicken.com>
9075
7f82490b
CY
9076 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9077 Check return value of font_spec_from_name.
64cc3cf6 9078 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9079
9080 * font.c (font_spec_from_name): Return Qnil if font name could not
9081 be parsed.
9082 (font_parse_name): Treat a `?' character as part of an XLFD.
9083
e301e634
CY
9084 * fns.c (Fsubstring): Doc fix.
9085
1c0db158
KH
90862009-01-19 Kenichi Handa <handa@m17n.org>
9087
51d861de 9088 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9089 (ftfont_list): Likewise.
9090
acf20901
JB
90912009-01-18 Juanma Barranquero <lekktu@gmail.com>
9092
fff4e459
JB
9093 * dbusbind.c (Fdbus_register_signal):
9094 * process.c (conv_sockaddr_to_lisp):
9095 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9096
acf20901
JB
9097 * callproc.c (Fgetenv_internal): Doc fix.
9098
e7abcdfb
CY
90992009-01-16 Chong Yidong <cyd@stupidchicken.com>
9100
9101 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9102 it is not even used.
9103
b60861e6
GM
91042009-01-16 Glenn Morris <rgm@gnu.org>
9105
9106 * font.c (Ffont_variation_glyphs): Silence compiler.
9107
8db52afe
JB
91082009-01-15 Juanma Barranquero <lekktu@gmail.com>
9109
9110 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9111 Reported by David Robinow <drobinow@gmail.com>.
9112
4cddb209
KH
91132009-01-15 Kenichi Handa <handa@m17n.org>
9114
51d861de 9115 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9116
f247f67b
JR
91172009-01-14 Jason Rumney <jasonr@gnu.org>
9118
9119 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9120 never a fontset. (Bug#1562)
f247f67b 9121
f56a4450
KH
91222009-01-14 Kenichi Handa <handa@m17n.org>
9123
9124 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9125 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9126
4e99855e
CY
91272009-01-13 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * font.c (font_clear_prop): If clearing the family, clear the font
9130 width index too.
9131
fff4e459 9132 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9133
24f01470
JB
91342009-01-12 Juanma Barranquero <lekktu@gmail.com>
9135
9136 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9137 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9138 functions, use sizeof.
9139
a41240a3
MR
91402009-01-12 Martin Rudalics <rudalics@gmx.at>
9141
9142 * keyboard.c (read_char): Fix case where last_nonmenu_event
9143 returned a bad value with submenus. (Bug#447)
9144
944636b8
CY
91452009-01-12 Chong Yidong <cyd@stupidchicken.com>
9146
9147 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9148 family, clear the font width index too.
9149
0dad7c6f
JR
91502009-01-11 Jason Rumney <jasonr@gnu.org>
9151
9152 * keyboard.c (cmd_error_internal): Exit when errors occur before
9153 frame creation and not in daemon mode. (Bug#1836)
9154
7c2363af
CY
91552009-01-10 Chong Yidong <cyd@stupidchicken.com>
9156
9157 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9158 of a display vector, backtrack.
9159 (try_window_reusing_current_matrix): Check glyph type before
9160 referencing charpos member.
9161
97b1b294
EZ
91622009-01-10 Eli Zaretskii <eliz@gnu.org>
9163
9164 Fix Bug #876:
9165
9166 * coding.c (inhibit_null_byte_detection): New variable.
9167 (detect_coding, detect_coding_system): Don't pay attention to null
9168 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9169 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9170 <inhibit-iso-escape-detection>: Doc fix.
9171
4624b6e3
JR
91722009-01-09 Jason Rumney <jasonr@gnu.org>
9173
9174 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9175 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9176 Only report Unicode Plane 2 fonts as unicode-sip.
9177
323b840c
CY
91782009-01-09 Chong Yidong <cyd@stupidchicken.com>
9179
51d861de
SM
9180 * xfaces.c (Fx_font_family_list): Delete function.
9181 Move compatibility version to faces.el.
323b840c 9182
51d861de 9183 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9184
eba7400d
MR
91852009-01-09 Martin Rudalics <rudalics@gmx.at>
9186
9187 * frame.c (x_set_frame_parameters): Remember requested value for
9188 fullscreen before it's reset by the parameter handler.
9189
4b09796d
GM
91902009-01-09 Glenn Morris <rgm@gnu.org>
9191
9192 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9193 (last_command_event): ... and update all users.
4b09796d
GM
9194 (last_input_char): For clarity, rename to...
9195 (last_input_event): ... and update all users.
9196 (last-command-char, last-input-char): Move to subr.el as aliases.
9197 * cmds.c, commands.h: Update for last_command_char rename.
9198
14ccea62
CY
91992009-01-08 Chong Yidong <cyd@stupidchicken.com>
9200
51d861de 9201 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9202
5f004711
JR
92032009-01-08 Jason Rumney <jasonr@gnu.org>
9204
9205 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9206 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9207 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9208 Don't declare.
fff4e459 9209 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9210 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9211
b71f6f73
KH
92122009-01-07 Kenichi Handa <handa@m17n.org>
9213
50b06221 9214 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9215 remember the coding system used for decoding in
50b06221
KH
9216 coding_system (Bug#1039).
9217
b71f6f73 9218 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9219 breaking the loop. (Bug#870)
b71f6f73
KH
9220 (decode_coding_utf_16, decode_coding_emacs_mule)
9221 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9222 (decode_coding_charset): Likewise.
9223
56f668f7
MR
92242009-01-05 Martin Rudalics <rudalics@gmx.at>
9225
9226 * frame.c (x_set_frame_parameters): Make sure height (width) get
9227 applied when fullwidth (fullheight) is set. (Bug#1522)
9228
5da9424d
JB
92292009-01-04 Juanma Barranquero <lekktu@gmail.com>
9230
9231 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9232 (utc_base): Declare as ULONGLONG, not long double.
9233 (convert_time_raw): Delete.
9234 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9235 (initialize_utc_base): New function.
9236 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9237 (convert_from_time_t): Use initialize_utc_base; compute result with
9238 64-bit arithmetic.
9239 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9240
c4605e09
EZ
92412009-01-03 Eli Zaretskii <eliz@gnu.org>
9242
9acef61c 9243 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9244 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9245 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9246 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9247 [!subprocesses]: Define.
9248 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9249 (Flist_system_processes, Fsystem_process_attributes)
9250 [!subprocesses]: Call list_system_processes and
9251 system_process_attributes instead of returning Qnil.
9252
9acef61c
JB
9253 * dosfns.c (system_process_attributes, list_system_processes):
9254 New functions.
c4605e09
EZ
9255
9256 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9257
9258 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9259 Don't use the default (no-op) implementation.
9260
8b7d0a16
JR
92612009-01-03 Jason Rumney <jasonr@gnu.org>
9262
a6d46bc1
JR
9263 * keyboard.c (parse_modifiers_uncached): Wheel events are
9264 clicks (bug#687).
9265
8b7d0a16
JR
9266 * w32term.c (x_query_colors, x_query_color): New functions.
9267
9268 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9269 (svg_load_image): Cast returned pointers from dynamically loaded
9270 functions. Eliminate W32 specific code.
9271
bfe11752
DN
92722009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9273
89e2438a
DN
9274 * nsfns.m (x_set_foreground_color, x_set_background_color)
9275 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9276 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9277 x_ prefix instead of ns_. Update references.
9278 (syms_of_nsfns): Add a FIXME comment.
9279
9280 * nsterm.m (x_set_cursor_type): New prototype.
9281 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9282
bfe11752
DN
9283 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9284 for Solaris instead of incorrectly providing Qutime and Qcutime.
9285
031da700
EZ
92862009-01-02 Eli Zaretskii <eliz@gnu.org>
9287
9288 * w32.c (process_times): Compute sum of utime and stime.
9289 (system_process_attributes): Add Qtime to the alist.
9290
9291 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9292 and add them to the alist.
9293
9294 * process.c (top level) <Qtime, Qctime>: New variables.
9295 (syms_of_process): staticpro them.
9296 (Fsystem_process_attributes): Add their documentation to the doc
9297 string.
9298
9299 * process.h: Declare Qtime and Qctime.
9300
df23bf08
JR
93012009-01-02 Jason Rumney <jasonr@gnu.org>
9302
9acef61c 9303 * image.c (Qgobject): New symbol.
df23bf08
JR
9304 (syms_of_image): Initialize it.
9305 (init_svg_functions): Load some functions from gobject library.
9306
5bbdf7aa
DN
93072009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9308
9309 * frame.c (make_terminal_frame): Remove redundant code and useless
9310 block.
9311
63136da6
AS
93122009-01-01 Andreas Schwab <schwab@suse.de>
9313
9314 * process.c (conv_sockaddr_to_lisp): Add workaround for
9315 getsockname bug on BSD.
9316
9ef69046
CY
93172009-01-01 Chong Yidong <cyd@stupidchicken.com>
9318
d6fafbe0
CY
9319 * xfns.c (x_create_tip_frame): Set border width of the X window.
9320
51d861de 9321 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9322
f9c34147
JR
93232009-01-01 Jason Rumney <jasonr@gnu.org>
9324
9acef61c 9325 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9326 Don't block input, as per earlier xterm.c changes.
9327
f5497e45
AR
93282008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9329
9330 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9331 (ns_appkit_version_int): New function.
9332 (x-server-version): Use ns_appkit_version_int and follow 21+
9333 convention of returning 3 integers.
9334
c19cab20
KH
93352008-12-30 Kenichi Handa <handa@m17n.org>
9336
9337 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9338 (CHAR_SURROGATE_PAIR_P): New macro.
9339
9340 * font.h (struct font_driver): New member get_variation_glyphs.
9341
9acef61c 9342 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9343 (Ffont_variation_glyphs): New function.
9344 (syms_of_font): Defsubr it.
9345
9346 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9347 ftfont_variation_glyphs.
9348 (setup_otf_gstring): New function.
9349 (ftfont_drive_otf): Use it.
9350 (ftfont_shape_by_flt): Handle variation selector.
9351 (ftfont_variation_glyphs): New function.
9352
28cd591f
MR
93532008-12-30 Martin Rudalics <rudalics@gmx.at>
9354
9355 * frame.c (Vemacs_iconified): Remove.
9356
7f714baf
JR
93572008-12-30 Jason Rumney <jasonr@gnu.org>
9358
9359 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9360 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9361
9d2d22ab
CY
93622008-12-30 Chong Yidong <cyd@stupidchicken.com>
9363
9364 * indent.c (Fvertical_motion): Don't advance iterator if we have
9365 reseated to the desired position.
9366
9367 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9368 checking for pos match.
9369
545312c2
KH
93702008-12-30 Kenichi Handa <handa@m17n.org>
9371
1ede3eb6
KH
9372 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9373 just get the low 8-bit of the code.
9374
545312c2
KH
9375 * font.c (font_intern_prop): Validate str as multibyte.
9376
bd7bbf29
DN
93772008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9378
31e0750e
DN
9379 * dispextern.h (struct face): Move lface and hash from the middle
9380 of bitfields.
9381
bd7bbf29
DN
9382 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9383
b5672e7c
DN
93842008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9385
9386 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9387 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9388 instead of intervals.h.
9389
d704470f
AS
93902008-12-26 Andreas Schwab <schwab@suse.de>
9391
9392 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9393 cons.
9394
54b33868
MR
93952008-12-26 Martin Rudalics <rudalics@gmx.at>
9396
9397 * textprop.c (Qminibuffer_prompt): New variable.
9398 (syms_of_textprop): Initialize it.
9399 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9400 in minibuffer-prompt face. (Bug#1662)
9401
40b615d6
JR
94022008-12-25 Jason Rumney <jasonr@gnu.org>
9403
9404 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9405
baae5c2d
JR
94062008-12-24 Jason Rumney <jasonr@gnu.org>
9407
9408 * ralloc.c (r_alloc_reset_variable): New function.
9409
9410 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9411 record of what points where. (Bug#716)
baae5c2d 9412
a9051c88
DN
94132008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9414
9415 * minibuf.c (read_minibuf): Follow the non-interactive case when
9416 running as a daemon, before detaching.
9417
8b146312
AS
94182008-12-22 Andreas Schwab <schwab@suse.de>
9419
9420 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9421 * gtkutil.c (free_widget_value): Use xfree instead of free.
9422
56f2de10
MR
94232008-12-22 Martin Rudalics <rudalics@gmx.at>
9424
9425 * frame.c (delete_frame): New function derived from
9426 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9427 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9428 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9429 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9430 * frame.h: Extern delete_frame.
9431 * window.c (window_loop):
9432 * terminal.c (delete_terminal):
9433 * xterm.c (x_connection_closed):
9434 * xfns.c (Fx_hide_tip):
9acef61c 9435 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9436
1fc200d6
JR
94372008-12-21 Jason Rumney <jasonr@gnu.org>
9438
9439 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9440 when character maps to .notdef character.
9441
5e252df2
SM
94422008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9443
9444 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9445
99b72cc4
JR
94462008-12-20 Jason Rumney <jasonr@gnu.org>
9447
9448 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9449 a graphical frame on Windows. (Bug#1325)
99b72cc4 9450
acc49a52
JD
94512008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9452
9453 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9454
6ea15123
CY
94552008-12-20 Chong Yidong <cyd@stupidchicken.com>
9456
9457 * minibuf.c (Fread_buffer): Doc fix.
9458
b2dab6c8
JR
94592008-12-20 Jason Rumney <jasonr@gnu.org>
9460
54ea0c87 9461 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9462 server name in UNC paths. (Bug#719)
54ea0c87 9463
b2dab6c8 9464 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9465 charbuf. (Bug#1035)
b2dab6c8 9466
6d1921be
DN
94672008-12-19 Daniel Engeler <engeler@gmail.com>
9468
9469 * sysdep.c (serial_configure): Fix typo.
9470
53934c98
DN
94712008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9472
9473 * sysdep.c: Include alloca.h.
f4f634e8
DN
9474 (system_process_attributes): Add implementation for Solaris.
9475
9476 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9477
06e111a6
DN
94782008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9479
9480 Reorganize implementation of Flist_system_processes and
9481 Fsystem_process_attributes. No functional changes.
9482 * process.c: Don't #include pwd.h, grp.h and limits.h.
9483 (Flist_system_processes): Just call list_system_processes.
9484 (Fsystem_process_attributes): Just call system_process_attributes.
9485 (procfs_list_system_processes, time_from_jiffies)
9486 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9487 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9488
9489 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9490 (list_system_processes): Rename from
9491 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9492 Provide a do nothing implementation.
9493 (system_process_attributes): Rename from
9494 procfs_list_system_processes.
9495 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9496 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9497
9498 * w32.c (list_system_processes): Rename from
9499 w32_list_system_processes.
9500 (system_process_attributes): Rename from
9501 w32_system_process_attributes.
9502
9503 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9504
9505 * process.h (w32_list_system_processes)
9506 (w32_system_process_attributes): Remove.
362654a6
JB
9507 (list_system_processes, system_process_attributes):
9508 New prototypes.
06e111a6 9509
6a705b23
KH
95102008-12-19 Kenichi Handa <handa@m17n.org>
9511
9512 * xfont.c (xfont_decode_coding_xlfd): New function.
9513 (xfont_encode_coding_xlfd): New function.
9514 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9515 (xfont_list): Decode and encode XLFD by iso-8859-1.
9516 (xfont_match): Likewise.
9517 (xfont_list_family): Likewise.
9518 (xfont_open): Likewise.
9519
d66c0241 9520 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9521 names are utf-8.
9522
d66c0241 9523 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9524 names are utf-8.
9525
5a130941
JD
95262008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9527
9528 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9529 changed.
bfd20325
JD
9530 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9531 clicked on a detached tool bar button.
5a130941 9532
fd95644b
DN
95332008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9534
9535 * emacs.c (main): Print and error and exit when no data is read
9536 from the pipe.
9537
e6eee6ae
JR
95382008-12-17 Jason Rumney <jasonr@gnu.org>
9539
9540 * w32font.c (w32font_has_char): Always return -1.
9541
a35dd56b
KH
95422008-12-16 Kenichi Handa <handa@m17n.org>
9543
9544 * font.c (font_open_entity): Fix previous change.
9545
0e3635c2
DN
95462008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9547
9548 * process.c: Include <limits.h>.
9549
d4835507 95502008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9551
9552 * font.c (font_update_drivers): Fix mistake in reconstructing the
9553 driver list.
9554
95552008-12-16 Chong Yidong <cyd@stupidchicken.com>
9556
9557 * font.c (font_clear_cache): Fix format of font cache data.
9558
e2cbc401
CY
95592008-12-15 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * xftfont.c (xftfont_open): Free Xft font pattern if
9562 XftFontOpenPattern fails.
9563
9564 * xterm.c (x_free_frame_resources): Remove extraneous call to
9565 free_frame_faces.
9566
b131d535
CY
95672008-12-13 Chong Yidong <cyd@stupidchicken.com>
9568
9569 * xterm.c (x_delete_display): Move xim_close_dpy call to
9570 x_delete_terminal.
9571 (x_delete_terminal): Call xim_close_dpy.
9572
e6df5336
JR
95732008-12-13 Jason Rumney <jasonr@gnu.org>
9574
9575 * w32font.c (intern_font_name): New function.
9576 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9577 (w32font_open_internal, Fx_select_font): Decode font name.
9578 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9579
9580 * w32font.h (intern_font_name): Declare new function.
9581
9582 * w32uniscribe.c (add_opentype_font_name_to_list):
9583 Use intern_font_name.
9584
20d68145
CY
95852008-12-13 Chong Yidong <cyd@stupidchicken.com>
9586
9f2554de
CY
9587 * frame.c (Fdelete_frame): Call free_font_driver_list.
9588
3d9bec9a
CY
9589 * font.c (free_font_driver_list): Implement missing function.
9590
20d68145
CY
9591 * w32term.c (w32_term_init): Don't initialize the image cache
9592 here; it will be done in init_frame_faces.
9593
9594 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9595 (struct x_display_info): Remove unused member null_pixel. New
9596 member xim_callback_data.
9597
9598 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9599 (xim_initialize): Save pointer to callback function data.
9600 (xim_close_dpy): Free callback function data. Call XCloseIM,
9601 reverting 2008-11-04 change by David Smith.
9602 (x_term_init): Don't initialize the image cache here; it will be
9603 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9604 (x_delete_display): Free x_dnd_atoms member.
9605
96f9306b
KH
96062008-12-13 Kenichi Handa <handa@m17n.org>
9607
6dec9044
JB
9608 * font.c (font_rescale_ratio): Moved from xfaces.c.
9609 Argument type changed. Handle a font-spec too.
96f9306b 9610 (font_score): Check Vface_font_rescale_alist.
6dec9044 9611 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9612
9613 * xfaces.c (font_rescale_ratio): Moved to font.c.
9614
8d5b4964
CY
96152008-12-13 Chong Yidong <cyd@stupidchicken.com>
9616
9617 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9618
e6df5336
JR
96192008-12-12 Jason Rumney <jasonr@gnu.org>
9620
9621 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9622 Vwindow_system_version to the real w32 major version.
9623
97c6058a
DN
96242008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9625
9626 * term.c (init_tty): Move setting the terminal name before the
9627 potential user: maybe_fatal.
9628
ec4e88d7
CY
96292008-12-11 Chong Yidong <cyd@stupidchicken.com>
9630
d4835507
JB
9631 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9632 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9633
b4233ec9
JR
96342008-12-11 Jason Rumney <jasonr@gnu.org>
9635
8ec71e23 9636 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9637 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9638
b4233ec9 9639 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9640 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9641
011a0143
JB
96422008-12-11 Juanma Barranquero <lekktu@gmail.com>
9643
9644 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9645
3c309f34
JB
96462008-12-11 Juanma Barranquero <lekktu@gmail.com>
9647
9648 * process.c (Fsystem_process_attributes, syms_of_process):
9649 Fix typo in name of Ssystem_process_attributes.
9650 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9651
fedc6ab5
JB
96522008-12-11 Juanma Barranquero <lekktu@gmail.com>
9653
9654 * syntax.c (Fmodify_syntax_entry): Doc fix.
9655
ba3de0e8
JB
96562008-12-10 Juanma Barranquero <lekktu@gmail.com>
9657
9658 * font.c (Ffont_spec): Move usage to end of docstring.
9659
174f1c74
JR
96602008-12-10 Jason Rumney <jasonr@gnu.org>
9661
9662 * w32font.c (Qcham): New symbol.
9663 (font_supported_scripts): Add cham, and comments for other new
9664 scripts in bitfield from OpenType spec.
9d32f818
JR
9665 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9666 contain characters beyond the bmp.
174f1c74 9667
7b649478
KH
96682008-12-10 Kenichi Handa <handa@m17n.org>
9669
9670 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9671 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9672 Qunicode_sip.
9673
2133e2d1
JB
96742008-12-10 Juanma Barranquero <lekktu@gmail.com>
9675
9676 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9677 (Fcoding_system_put): Use QCdefault_char.
9678 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9679
9af886ee
CY
96802008-12-09 Chong Yidong <cyd@stupidchicken.com>
9681
74d819eb
CY
9682 * xftfont.c (syms_of_xftfont): Fix typo.
9683
4ccfa1c0 9684 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9685
7c19d3ae
DN
96862008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9687
9688 * emacs.c (main): Close daemon_pipe on exec.
9689
567826bb
CY
96902008-12-08 Chong Yidong <cyd@stupidchicken.com>
9691
9692 * termchar.h (struct tty): New members termcap_term_buffer and
9693 termcap_strings_buffer.
9694
9695 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9696 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9697 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9698 All callers changed.
9699 (init_tty): Store termcap data and string buffers in new struct
9700 tty members termcap_term_buffer and termcap_strings_buffer.
9701 (delete_tty): Free them.
4ccfa1c0 9702 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9703
aa96c42b
SZ
97042008-12-07 Seiji Zenitani <zenitani@mac.com>
9705
9706 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9707 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9708
b7e1d896
CY
97092008-12-06 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * coding.c (make_conversion_work_buffer): Disable buffer
9712 modification hooks in the work buffer.
9713
b5ec91a5
EZ
97142008-12-05 Eli Zaretskii <eliz@gnu.org>
9715
9716 * process.c (procfs_system_process_attributes): If `nread' has a
9717 negative value, assign zero to it.
9718
a5d2a52b
CY
97192008-12-05 Chong Yidong <cyd@stupidchicken.com>
9720
68c5540b 9721 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9722
7bf1bb21
KH
97232008-12-05 Kenichi Handa <handa@m17n.org>
9724
9725 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9726 second character is a combining character.
9727
2fdc7d00
EZ
97282008-12-05 Eli Zaretskii <eliz@gnu.org>
9729
9730 * process.c (procfs_system_process_attributes): Don't use cmd,
9731 cmdsize, and q without initializing them first.
9732
bf6bfba8
JR
97332008-12-04 Jason Rumney <jasonr@gnu.org>
9734
9735 * w32font.c (w32font_draw): Initialize orig_clip before getting
9736 it, and delete it when finished.
9737
a3b1a468
DN
97382008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9739
9740 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9741 case when running as a daemon before detaching.
9742
8b8be8eb
JB
97432008-12-03 Juanma Barranquero <lekktu@gmail.com>
9744
805f2638 9745 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9746
b1bde622
KH
97472008-12-03 Kenichi Handa <handa@m17n.org>
9748
e500c47d
KH
9749 * font.c (font_at): Set `multibyte' at first.
9750
ca516334
KH
9751 * coding.c (decode_coding_charset): Check type of an element of
9752 vector VALIDS.
7bf1bb21 9753 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9754
4ccfa1c0 9755 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9756 (font_for_char): Likewise.
9757
1e5ecd37
CY
97582008-12-03 Chong Yidong <cyd@stupidchicken.com>
9759
d5b01609 9760 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9761 (font_update_lface): Handle fonts with corrupted size specs,
9762 i.e. non-int and non-float.
d5b01609 9763
11e3a6e4 9764 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9765 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9766 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9767
ab06788b
CY
9768 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9769
1e5ecd37 9770 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9771 underline_minimum_offset for underline position.
1e5ecd37 9772
63c125ab
DN
97732008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9774
9775 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9776
9777 * character.c (c_string_width): Specify the type for LEN.
9778
3a8406e1
KH
97792008-12-03 Kenichi Handa <handa@m17n.org>
9780
4ccfa1c0 9781 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9782 (decode_coding_utf_8): Likewise.
4ccfa1c0 9783 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9784 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9785
651df7d9
CY
97862008-12-02 Chong Yidong <cyd@stupidchicken.com>
9787
9788 * keyboard.c (make_lispy_position): Only use PT if the selected
9789 window is current.
9790
1f625c6c
AS
97912008-12-02 Andreas Schwab <schwab@suse.de>
9792
f7741ce9
AS
9793 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9794
1f625c6c
AS
9795 * doprnt.c (doprnt1): Fix size of charbuf.
9796
92bc2678
CY
97972008-12-02 Chong Yidong <cyd@stupidchicken.com>
9798
9799 * keyboard.c (timer_check): Revert last change.
9800
93b9e8cc
JB
98012008-12-02 Juanma Barranquero <lekktu@gmail.com>
9802
9803 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9804
fd7a37d5
JB
98052008-12-01 Juanma Barranquero <lekktu@gmail.com>
9806
9807 * makefile.w32-in: Update dependencies.
9808 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9809
c115043b
AS
98102008-12-01 Andreas Schwab <schwab@suse.de>
9811
9812 * font.c (register_font_driver): Use xmalloc.
9813 (font_put_frame_data): Likewise.
9814
f5668d2a
CY
98152008-12-01 Chong Yidong <cyd@stupidchicken.com>
9816
860d96be
CY
9817 * xfaces.c (realize_x_face): Make abort condition clearer.
9818
f5668d2a
CY
9819 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9820
379c17e7
CY
98212008-11-30 Chong Yidong <cyd@stupidchicken.com>
9822
9823 * keyboard.c (timer_check): After a timer runs, ensure that the
9824 selected window's buffer is current.
9825
35f36d65
JB
98262008-11-30 Juanma Barranquero <lekktu@gmail.com>
9827
f952c61c
JB
9828 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9829 It was accidentally restored by the Unicode merge.
9830
35f36d65
JB
9831 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9832
b23077df
JB
98332008-11-29 Juanma Barranquero <lekktu@gmail.com>
9834
9835 * w32proc.c: Include "coding.h".
9836 (Fw32_short_file_name): Encode filename passed to Windows API.
9837 (Fw32_long_file_name): Encode filename passed to Windows API and
9838 decode back the result. (Bug#1433)
9839
b8ebe9dd
KH
98402008-11-29 Kenichi Handa <handa@m17n.org>
9841
8cc53f96
KH
9842 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9843 not before accessing it.
9844
b8ebe9dd
KH
9845 * charset.c (Fdefine_charset_internal): After calculating
9846 min_char, max_char, and fastmap, copy the charset structure again.
9847 (encode_char): Fix the previous change.
9848
59bc82c0
SZ
98492008-11-28 Seiji Zenitani <zenitani@mac.com>
9850
9851 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9852
9853 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9854
9855 * nsterm.m (x_set_frame_alpha): New function.
9856
32247e3d
EZ
98572008-11-27 Eli Zaretskii <eliz@gnu.org>
9858
9859 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9860
b003e5ff
JB
98612008-11-27 Juanma Barranquero <lekktu@gmail.com>
9862
9863 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9864 pointer to check_face_name.
9865
708550f5
KH
98662008-11-27 Kenichi Handa <handa@m17n.org>
9867
9868 * category.h (SET_CATEGORY_SET): Call set_category_set.
9869 (set_category_set): Extern it.
9870
9871 * category.c (hash_get_category_set): New function.
9872 (Fmodify_category_entry): Adjusted for the change of
9873 char_table_ref_and_range. Call hash_get_category_set to get a
9874 category set to store in the table.
9875
9876 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9877 Funify_charset.
9878
2ae37cf0 9879 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9880 (DECODE_CHAR): Check if the decoder vector is ready.
9881 (ENCODE_CHAR): Check if the encoder char-table is ready.
9882 (maybe_unify_char): Extern it.
9883
9884 * charset.c (Vchar_unified_charset_table): Delete it.
9885 (inhibit_load_charset_map): New variable.
9886 (temp_charset_work): New variable.
9887 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9888 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9889 New macros.
9890 (load_charset_map): Meaning of control_flag changed. If
9891 inhibit_load_charset_map is nonzero, setup a table in
9892 temp_charset_work.
9893 (load_charset): New argument control_flag.
9894 (map_charset_for_dump): New function.
9895 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9896 map_charset_for_dump.
9897 (Fdefine_charset_internal): If the charset method is MAP, load
9898 mapping tables by calling load_charset.
9899 (Funify_charset): Don't load a mapping table but directly set
9900 Vchar_unify_table.
9901 (maybe_unify_char): New function.
9902 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9903 Handle the case of inhibit_load_charset_map being nonzero.
9904 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9905 Handle the case of inhibit_load_charset_map being nonzero.
9906 (Fclear_charset_maps): Just free temp_charset_work.
9907 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9908 variable.
9909
9910 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9911 change of char_table_ref_and_range.
9912 (char_table_ref_and_range): Change the meaning of argument FROM
9913 and TO. Now the caller must provide initial values for *FROM
9914 and *TO.
9915
9916 * fontset.c (fontset_add): Adjusted for the change of
9917 char_table_ref_and_range.
9918 (fontset_get_font_group): Likewise.
9919 (Ffontset_info): Likewise.
9920
9921 * keymap.c (describe_vector): Adjusted for the change of
9922 char_table_ref_and_range. For char-table, put boundary between
9923 non-ASCII and 8-bit characters.
9924
9925 * print.c (print_object): For bool-vector, delete unnecessary
9926 check of ASCII_BYTE_P.
9927
9196133b
JR
99282008-11-26 Jason Rumney <jasonr@gnu.org>
9929
9930 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9931 leading in font height. (Bug#879)
9196133b 9932
9f688acf
GM
99332008-11-26 Glenn Morris <rgm@gnu.org>
9934
9935 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9936 redefinition with ifdef. (Bug#1383)
9937
90d19aff
AR
99382008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9939
9940 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9941
4ccfa1c0 99422008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9943
9944 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9945 New EmacsView methods.
9946 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9947 Fixes bug #1048,1357,1414.
9948
99492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9950
9951 Fix bug #1362.
9952 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9953 is not an indexed color.
9954 * nsterm.m (free_indexed_color): Add argument checking.
9955 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9956
e7d5ecb3
CY
99572008-11-24 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9960 Document confirm-after-completion value for
9961 minibuffer-completion-confirm.
9962
c285743c
JR
99632008-11-24 Jason Rumney <jasonr@gnu.org>
9964
9965 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9966 warning.
9967
b0857706
JR
99682008-11-23 Jason Rumney <jasonr@gnu.org>
9969
9970 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9971 restored before returning.
9972
9973 * w32font.c (check_face_name): New function.
9974 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9975 fonts. (Bug#642)
b0857706 9976
ee50ff07
MR
99772008-11-22 Martin Rudalics <rudalics@gmx.at>
9978
9979 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9980 confirm-nonexistent-file-or-buffer in doc-string.
9981
b8ff72fa
SM
99822008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9983
9984 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9985 Fix copy/paste typo. Add checks.
9986
cee53ed4
KH
99872008-11-21 Kenichi Handa <handa@m17n.org>
9988
9989 * coding.c (detect_coding_iso_2022): Reject invalid composition
9990 sequence.
9991 (DECODE_COMPOSITION_START): If the current source is the last
9992 block, and the current composition doesn't end, regard this
9993 sequence as invalid.
9994 (decode_coding_iso_2022): Handle invalid composition sequence.
9995
f6ef1e65
MR
99962008-11-20 Martin Rudalics <rudalics@gmx.at>
9997
9998 * window.c (coordinates_in_window): Don't return
9999 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10000 line when the window is not the rightmost one. (Bug#1372)
10001
e08b1705
MR
100022008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10003
10004 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10005
ad98e89f
EZ
100062008-11-15 Eli Zaretskii <eliz@gnu.org>
10007
10008 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10009 and bright_bg if noninteractive is non-zero.
10010
fb098a4b
CY
100112008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10012
10013 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10014 x_draw_glyph_string_background.
10015
10016 * w32term.c (x_draw_glyph_string): Likewise.
10017
ce952b6e
CY
100182008-11-15 Chong Yidong <cyd@stupidchicken.com>
10019
10020 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10021 the next glyph string once past the overhang width.
10022
10023 * nsterm.m (ns_draw_glyph_string): Likewise.
10024
10025 * w32term.c (x_draw_glyph_string): Likewise.
10026
26ea7079
CY
100272008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10028
10029 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10030 double file close.
10031
1c33c906
MR
100322008-11-14 Martin Rudalics <rudalics@gmx.at>
10033
10034 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10035 dedicated status of window before attempting to display another
10036 buffer in it.
10037
8fc29035
JB
100382008-11-14 Juanma Barranquero <lekktu@gmail.com>
10039
10040 * msdos.c (Fmsdos_long_file_names):
10041 (syms_of_msdos) <dos-unsupported-char-glyph>:
10042 * dosfns.c (Fint86): Fix typos in docstrings.
10043
55fb4286
EZ
100442008-11-14 Eli Zaretskii <eliz@gnu.org>
10045
10046 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10047
3fda0315
KY
100482008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10049
10050 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10051
7e849c17
CY
100522008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10053
10054 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10055
10056 * frame.h: Negative alpha means "don't touch".
10057
10058 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10059
10060 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10061
b9fd67bd
DN
100622008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10063
10064 * hftctl.c:
10065 * chpdef.h:
10066 * acldef.h: Remove files used only for systems no longer supported.
10067
10068 * Makefile.in: Fix .o alphabetical ordering.
10069 (hftctl.o): Remove dependency, file removed.
10070 (keymap.o, print.o): Depend on charset.h.
10071
d5998e03
KH
100722008-11-10 Kenichi Handa <handa@m17n.org>
10073
2ae37cf0 10074 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10075
be70e183
CY
100762008-11-08 Chong Yidong <cyd@stupidchicken.com>
10077
10078 * dired.c (file_name_completion): If completion_ignore_case is
10079 enabled, ignore case when checking completion-regexp-list.
10080
7cf94eac
EZ
100812008-11-08 Eli Zaretskii <eliz@gnu.org>
10082
10083 * vm-limit.c (get_lim_data): Fix last change.
10084
ee107a89
KH
100852008-11-08 Kenichi Handa <handa@m17n.org>
10086
10087 * character.c (Fget_byte): New function.
10088 (syms_of_character): Defsubr Fget_byte.
10089
5fd15622
CY
100902008-11-07 Chong Yidong <cyd@stupidchicken.com>
10091
10092 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10093 cursor position is valid after scrolling.
10094
13d62fad
JB
100952008-11-06 Juanma Barranquero <lekktu@gmail.com>
10096
10097 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10098
a1dd2936
GM
100992008-11-06 Glenn Morris <rgm@gnu.org>
10100
10101 * xterm.c (handle_one_xevent): Don't let popup menus cause
10102 mouse-autoselect-window related window switching. (Bug#1261)
10103
860cd236
CY
101042008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10105
10106 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10107
653a3150
AS
101082008-11-04 Andreas Schwab <schwab@suse.de>
10109
10110 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10111
870f5cac
CY
101122008-11-03 Chong Yidong <cyd@stupidchicken.com>
10113
10114 * xfns.c (Fx_wm_set_size_hint): New function.
10115
1e02f3cb
MR
101162008-11-03 Martin Rudalics <rudalics@gmx.at>
10117
10118 * textprop.c (Fprevious_single_char_property_change): Return 0
10119 when there's no change in a string. (Bug#1301)
10120
e630dfc6
MR
101212008-11-02 Martin Rudalics <rudalics@gmx.at>
10122
10123 * frame.c (do_switch_frame): New argument NORECORD passed to
10124 Fselect_window.
10125 (Fselect_frame): New argument NORECORD passed to
10126 do_switch_frame.
10127 (Fset_frame_selected_window): New argument NORECORD passed to
10128 Fselect_frame.
10129 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10130 in call of do_switch_frame.
10131 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10132 Handle NORECORD argument in call of Fselect_frame.
10133 * lisp.h (do_switch_frame, Fselect_frame)
10134 (Fset_frame_selected_window): Adjust declarations.
10135 * window.c (select_frame_norecord): New function.
10136 (run_window_configuration_change_hook): Use it and call
10137 Fselect_frame with NORECORD set.
10138 (Fselect_window): Pass NORECORD to Fselect_frame.
10139 (Fset_window_configuration): Handle NORECORD argument in call of
10140 do_switch_frame.
10141 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10142 Fset_frame_selected_window.
10143 * keyboard.c (command_loop_1): Handle NORECORD in call of
10144 Fselect_frame (currently ifdefd).
10145
9020b223
GM
101462008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10147
10148 * emacs.c (USAGE2): Untabify.
10149
793ffee8
SM
101502008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10151
10152 * composite.c (fill_gstring_header): Fix copy/paste typo.
10153
ab6d1131
MR
101542008-10-31 Martin Rudalics <rudalics@gmx.at>
10155
10156 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10157 (Fother_window): Rename argument and rewrite doc-string.
10158 (select_window_norecord): Fix return value. (Bug#1276)
10159
601a9cf1
JB
101602008-10-30 Juanma Barranquero <lekktu@gmail.com>
10161
10162 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10163 new frames overriding foreground for tooltips. Based on similar patch
10164 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10165
813b0652
CY
101662008-10-29 Chong Yidong <cyd@stupidchicken.com>
10167
10168 * emacs.c (Fdaemon_initialized): Initialize nfd.
10169
4414f58f
MR
101702008-10-29 Martin Rudalics <rudalics@gmx.at>
10171
10172 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10173 (Fwindow_text_height): Clarify doc-strings.
10174 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10175 doc-string of window-scroll-functions.
10176
ecdcaa09
RS
101772008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10178
10179 * category.c (syms_of_category): Fix typo in docstring.
10180
23fe745a
JB
101812008-10-28 Juanma Barranquero <lekktu@gmail.com>
10182
10183 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10184 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10185 Fix typos in docstrings.
10186
ff808935
DN
101872008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10188
10189 * emacs.c (daemon_pipe): Make non-static.
10190 (IS_DAEMON): Move definition ...
10191 * lisp.h (IS_DAEMON): ... here.
10192 (daemon_pipe): Declare.
10193 (is_daemon): Remove.
10194 * dispnew.c (init_display): Use IS_DAEMON.
10195
fc012771
SM
101962008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10197
10198 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10199 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10200
10201 * emacs.c (is_daemon): Remove.
10202 (main): Don't set is_daemon.
10203 (IS_DAEMON): New macro.
10204 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10205 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10206 parent exits.
10207 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10208
d8bdbe6f
CY
102092008-10-27 Chong Yidong <cyd@stupidchicken.com>
10210
d1a072bf
CY
10211 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10212 over-sized glyph, draw it with the default glyph width.
10213
e2e325aa
CY
10214 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10215 glyph, draw it with the default glyph width.
10216
10217 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10218 glyph, draw it with the default glyph width.
10219
d8bdbe6f
CY
10220 * xdisp.c (try_scrolling): When computing the distance from the
10221 scroll margin to PT, try moving some distance past the window
10222 bottom before giving up.
10223
7bfac547
MR
102242008-10-27 Martin Rudalics <rudalics@gmx.at>
10225
10226 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10227 (Fset_window_buffer): Explain in doc-string that a window can be
10228 "strongly" dedicated to its buffer.
10229
4ff029f6
DN
102302008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10231
10232 * emacs.c (daemon_name): New variable.
10233 (main): Deal with --daemon=SERVER_NAME.
10234 (Fdaemonp): Return a name if one was passed to --daemon.
10235
5790ef40
DN
102362008-10-26 Romain Francoise <romain@orebokech.com>
10237
f9bd0df9 10238 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10239 (main): Create a pipe before forking, make the parent exit only after
10240 the child has closed its end of the pipe. Move closing the
10241 descriptors ...
10242 (Fdaemon_initialized): ... here. New function.
10243
f5385255
SM
102442008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10245
4d632321
SM
10246 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10247 the previous unoptimized table.
10248
f5385255
SM
10249 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10250 the distinction between non-nil and non-t value of `dedicated'.
10251
6c56a0f3
CY
102522008-10-25 Chong Yidong <cyd@stupidchicken.com>
10253
10254 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10255 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10256
fec89261
MR
102572008-10-25 Martin Rudalics <rudalics@gmx.at>
10258
10259 * window.c (Fget_buffer_window, Fdelete_windows_on)
10260 (Freplace_buffer_in_windows): Make buffer argument optional and
10261 rename to buffer_or_name.
10262
34fcddd0
CY
102632008-10-24 Chong Yidong <cyd@stupidchicken.com>
10264
f5385255
SM
10265 * xdisp.c (handle_single_display_spec, handle_display_prop):
10266 Undo 2005-05-16 change.
34fcddd0
CY
10267 (handle_stop): Pop iterator if it's loaded with an empty string.
10268 (get_overlay_strings_1): Don't save iterator if it's loaded with
10269 an empty string (bug#1201).
10270
064766f2
KH
102712008-10-24 Kenichi Handa <handa@m17n.org>
10272
10273 * ftfont.c (ftfont_otf_features): Fix previous change.
10274 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10275 calling ftfont_otf_features.
10276
f9bd0df9 102772008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10278
10279 * font.c (font_match_p): Fix for the case that a vector of
10280 characters is in script-representative-chars.
10281
1dae9197
MA
102822008-10-24 Michael Albinus <michael.albinus@gmx.de>
10283
10284 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10285 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10286 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10287 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10288 macro. (Bug#1186)
1dae9197 10289
f9bd0df9 102902008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10291
10292 * s/sol2-10.h: New file.
10293
878a4584
JB
102942008-10-23 Juanma Barranquero <lekktu@gmail.com>
10295
10296 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10297 poor beast has survived 9+ years and the jump from xterm.c!).
10298
cd265ca6
MR
102992008-10-23 Martin Rudalics <rudalics@gmx.at>
10300
10301 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10302 Reword doc-string.
f5385255 10303 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10304
472a4dc9
JB
103052008-10-23 Juanma Barranquero <lekktu@gmail.com>
10306
10307 * character.c (syms_of_character) <script-representative-chars>:
10308 <unicode-category-table>: Doc fixes.
10309
159bd5a2
NF
103102008-10-23 Noah Friedman <friedman@splode.com>
10311
10312 * coding.c (make_conversion_work_buffer): Check that
10313 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10314 Fget_buffer_create.
10315
49f9c344
KH
103162008-10-23 Kenichi Handa <handa@m17n.org>
10317
10318 * font.c (font_add_log): Check the values of extra properties.
10319
12bb3111
MR
103202008-10-22 Martin Rudalics <rudalics@gmx.at>
10321
10322 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10323 Reword doc-string.
10324 (Fset_window_parameter): Use NILP.
10325 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10326 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10327
bbeb4e99
JB
103282008-10-22 Juanma Barranquero <lekktu@gmail.com>
10329
10330 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10331
103322008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10333
10334 * nsfns.m (ns_appkit_version): New function.
10335 (x-server-version): Use it.
10336 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10337 (x-server-vendor): Don't check_ns().
10338
10339 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10340
a9b555d3
JB
103412008-10-22 Juanma Barranquero <lekktu@gmail.com>
10342
10343 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10344 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10345
4626499f
KH
103462008-10-22 Kenichi Handa <handa@m17n.org>
10347
e3681952
KH
10348 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10349 scripts.
10350
4626499f
KH
10351 * category.c (word_boundary_p): Check scripts instead of charset.
10352 Handle nil value in word-separating-categories and
10353 word-combining-categories.
10354 (syms_of_category): Fix docstrings of word-separating-categories
10355 and word-combining-categories.
10356
1560f91a
EZ
103572008-10-21 Eli Zaretskii <eliz@gnu.org>
10358
10359 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10360 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10361
f4668441
MR
103622008-10-21 Martin Rudalics <rudalics@gmx.at>
10363
10364 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10365 Rename arg "buffer" to "buffer_or_name".
10366 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10367 it optional.
10368 (no_switch_window): Remove since the return value is not used.
a9b555d3 10369 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10370 Consider window as dedicated when Fwindow_dedicated_p returns a
10371 non-nil value.
10372 * lisp.h: Remove prototype for no_switch_window.
10373
fd75ddb2
JD
103742008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10375
10376 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10377 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10378
07295713
KH
103792008-10-21 Kenichi Handa <handa@m17n.org>
10380
10381 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10382 check Vlatin_extra_code_table.
10383
712adc82
EZ
103842008-10-20 Eli Zaretskii <eliz@gnu.org>
10385
10386 * fileio.c (Fset_file_modes): Doc fix.
10387
f549eb0b
MA
103882008-10-19 Michael Albinus <michael.albinus@gmx.de>
10389
10390 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10391 in arrays.
10392
aac0c6e3
MR
103932008-10-19 Martin Rudalics <rudalics@gmx.at>
10394
10395 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10396 Mention kill-buffer in doc-string.
10397 (Fset_window_buffer): Reinsert tem check removed in last commit.
10398 (Fenlarge_window, Fshrink_window): Have argument names and
10399 doc-string follow Elisp manual more closely.
10400
104012008-10-18 Eli Zaretskii <eliz@gnu.org>
10402
10403 * fileio.c (Fset_file_modes): Doc fix.
10404
104052008-10-18 Martin Rudalics <rudalics@gmx.at>
10406
10407 * window.c (Fwindow_width, Fset_window_start)
10408 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10409 (Fdelete_windows_on, Freplace_buffer_in_windows):
10410 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10411 (Fwindow_dedicated_p): Make window argument optional.
10412 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10413 (Fset_window_buffer): Respect any non-nil dedicated value for
10414 window. Rename "buffer" argument to "buffer_or_name".
10415
104162008-10-18 Ulrich Mueller <ulm@gentoo.org>
10417
10418 * m/sh3.h: New file, machine description for SuperH.
10419
104202008-10-17 Martin Rudalics <rudalics@gmx.at>
10421
10422 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10423
104242008-10-17 Kenichi Handa <handa@m17n.org>
10425
10426 * ftfont.c (ftfont_otf_features): Fix indexing
10427 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10428
104292008-10-16 Magnus Henoch <mange@freemail.hu>
10430
10431 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10432 (Fdbus_call_method_asynchronously): Ditto.
10433 This change makes C-h f display the argument list.
10434
104352008-10-16 Chong Yidong <cyd@stupidchicken.com>
10436
10437 * fileio.c (Fexpand_file_name): Doc fix.
10438
10439 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10440 of :foreground and :background equivalent to unspecified (20.x
10441 compatibility).
10442
104432008-10-15 Eli Zaretskii <eliz@gnu.org>
10444
10445 * buffer.c (syms_of_buffer): Doc fix.
10446
104472008-10-14 Kenichi Handa <handa@m17n.org>
10448
10449 * font.c (font_clear_prop): When clearing font width, clear the
10450 average width field too.
10451
104522008-10-12 Andreas Schwab <schwab@suse.de>
10453
10454 * ftfont.c (ftfont_shape_by_flt): Make static.
10455 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10456
10457 * font.c: Don't include <m17n-flt.h>.
10458
104592008-10-10 Eli Zaretskii <eliz@gnu.org>
10460
10461 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10462
104632008-10-09 Eli Zaretskii <eliz@gnu.org>
10464
10465 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10466 away code.
10467
104682008-10-09 Chong Yidong <cyd@stupidchicken.com>
10469
10470 * dispnew.c (update_text_area): Avoid looping due to large glyph
10471 overhangs (bug#1070).
10472
104732008-10-09 Kenichi Handa <handa@m17n.org>
10474
10475 * fontset.c (face_for_char): If face->fontset is negative, just
10476 return ascii_face.
10477
f5385255
SM
10478 * font.c (font_delete_unmatched): Fix previous change.
10479 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10480
104812008-10-09 Martin Rudalics <rudalics@gmx.at>
10482
10483 * frame.c (Fraise_frame): On text-only terminals select frame in
10484 order to make it visible. (Bug#1061)
10485
104862008-10-08 Chong Yidong <cyd@stupidchicken.com>
10487
10488 * fontset.c (fontset_find_font): Check frame validity.
10489
104902008-10-07 Chong Yidong <cyd@stupidchicken.com>
10491
a9b555d3 10492 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10493 (xg_display_close): Allow Emacs to close all displays (bug#985).
10494
104952008-10-06 Andreas Schwab <schwab@suse.de>
10496
f5385255 10497 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10498
104992008-10-06 Chong Yidong <cyd@stupidchicken.com>
10500
f5385255 10501 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10502
a9b555d3 10503 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10504
10505 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10506 during initialization.
10507
105082008-10-04 Eli Zaretskii <eliz@gnu.org>
10509
10510 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10511 whole thing on MSDOS frames as well as on a TTY.
10512
10513 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10514 well as for TTY.
10515 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10516 well as on a TTY.
10517
10518 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10519 as well as for TTY.
10520
10521 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10522
10523 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10524 MSDOS frames as well.
10525
105262008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10527
10528 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10529 correct arguments.
b71ac3dd 10530 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10531
105322008-10-03 Glenn Morris <rgm@gnu.org>
10533
10534 * emacs.c (USAGE1): Add --daemon.
10535
105362008-10-02 Eli Zaretskii <eliz@gnu.org>
10537
10538 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10539 100, so it's in percents as advertised.
10540
105412008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10542
10543 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10544 (ns_output.current_cursor, ns_output.desired_cursor)
10545 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10546 (FRAME_NEW_CURSOR_COLOR): Remove.
10547
10548 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10549 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10550 enumeration (HOLLOW_BOX_CURSOR, etc.).
10551
10552 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10553 (draw_window_cursor): Simplify code.
f5385255
SM
10554 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10555 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10556 updates manually.
a9b555d3
JB
10557 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10558 Use core Emacs cursor types.
aac0c6e3 10559
b8ff72fa 10560 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10561
105622008-10-02 Martin Rudalics <rudalics@gmx.at>
10563
10564 * process.c (Faccept_process_output): Fix doc-string.
10565
105662008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10567
10568 * gmalloc.c (__sbrk): Also define for uClibc.
10569
10570 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10571 for uClibc.
10572
105732008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10574
10575 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10576 styles.
10577 (nsfont_open): Reenable the cache.
10578
105792008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10580
10581 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10582 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10583
105842008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10585
10586 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10587 a suspended terminal.
10588
105892008-09-30 Michael Albinus <michael.albinus@gmx.de>
10590
10591 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10592
105932008-09-30 Eli Zaretskii <eliz@gnu.org>
10594
10595 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10596
105972008-09-30 Chong Yidong <cyd@stupidchicken.com>
10598
10599 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10600 in a continued line coincides with a line beginning.
10601
106022008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10603
10604 * nsfont.m (nsfont_trait_distance): Fix bug.
10605 (nsfont_list): Return a list rather than a vector (syncs with Handa
10606 changes of 2008-05-14).
10607 (nsfont_open): Improve logging.
10608
106092008-09-29 Andreas Schwab <schwab@suse.de>
10610
10611 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10612
106132008-09-28 Martin Rudalics <rudalics@gmx.at>
10614
10615 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10616 name as char-resolve-modifiers.
10617 Reported by: Markus Triska <markus.triska@gmx.at>
10618
106192008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10620
10621 * dispnew.c (init_display): Return earlier when running as a daemon.
10622
106232008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10624
10625 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10626
106272008-09-27 Eli Zaretskii <eliz@gnu.org>
10628
10629 * composite.c (Fcomposition_get_gstring)
10630 (Fcompose_region_internal, Fcompose_string_internal)
10631 (Ffind_composition_internal): Doc fix.
10632 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10633 (syms_of_composite) <auto-composition-function>: Doc fix.
10634 (syms_of_composite) <composition-function-table>: Doc fix.
10635
106362008-09-25 Chong Yidong <cyd@stupidchicken.com>
10637
10638 * search.c (wordify): New argument for lax word-ends.
10639 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10640
106412008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10642
10643 * lisp.h (is_daemon): Declare.
10644 * dispnew.c (init_display): Do not try to initialize the terminal
10645 when running as a daemon.
10646
106472008-09-22 Chong Yidong <cyd@stupidchicken.com>
10648
10649 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10650 x_display_pixel_height.
10651
106522008-09-22 Martin Rudalics <rudalics@gmx.at>
10653
10654 * undo.c (record_point): Don't call Fundo_boundary for first
10655 change. (Bug#731)
10656
106572008-09-22 Juanma Barranquero <lekktu@gmail.com>
10658
10659 * emacs.c (Fdaemonp): Doc fix.
10660
106612008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10662
10663 * emacs.c (main): Place #ifdef in the proper place.
10664
106652008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10666
10667 * emacs.c (standard_args): Add --daemon.
10668 (main): Disconnect from the terminal when --daemon is passed.
10669 (is_daemon): New variable.
10670 (Fdaemonp): New function.
10671 (syms_of_emacs): Defsubr it.
10672
106732008-09-20 Chong Yidong <cyd@stupidchicken.com>
10674
10675 * xdisp.c (get_next_display_element): Handle string display
10676 correctly when checking for the end of a box run.
10677
106782008-09-20 Glenn Morris <rgm@gnu.org>
10679
10680 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10681 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10682 (Frename_file): Avoid copying to trash if a rename involves
10683 a delete. (Bug#964).
10684
106852008-09-20 Eli Zaretskii <eliz@gnu.org>
10686
10687 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10688 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10689 frames as well as termcap frames.
10690 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10691 get_named_tty.
10692
106932008-09-19 Eli Zaretskii <eliz@gnu.org>
10694
10695 * process.c (procfs_system_process_attributes): Fix cmdline in
10696 case /proc/PID/cmdline is empty.
10697
10698 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10699 x_display_pixel_height.
10700
107012008-09-19 Juanma Barranquero <lekktu@gmail.com>
10702
10703 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10704
10705 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10706 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10707
107082008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10709
10710 * dispextern.h (struct it): Move line_wrap away from the middle of
10711 bitfields. Move voffset in struct iterator_stack_entry after the
10712 bitfields. Move tab_width near after another short.
10713
107142008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10715
10716 * frame.h (struct frame): Move alpha from the middle of bitfields.
10717
10718 * window.h (struct window): Move frozen_window_start_p after the
10719 rest of the bitfields to reduce padding.
10720
107212008-09-18 Chong Yidong <cyd@stupidchicken.com>
10722
10723 * xterm.h (x_display_info): Remove `height' and `width' members.
10724
10725 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10726
10727 * w32term.h (w32_display_info): Remove `height', `width',
10728 `height_in', and `width_in' members.
10729
b8ff72fa
SM
10730 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10731 New functions.
aac0c6e3
MR
10732 (x_calc_absolute_position): Use them.
10733 (x_term_init): Omit removed `height' and `width' members.
10734
b8ff72fa
SM
10735 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10736 New functions.
aac0c6e3
MR
10737 (w32_read_socket, x_calc_absolute_position): Use them.
10738 (w32_initialize_display_info, w32_term_init): Omit removed members
10739 of w32_display_info.
10740
b8ff72fa
SM
10741 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10742 New functions.
10743 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10744
b8ff72fa
SM
10745 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10746 New functions.
aac0c6e3
MR
10747 (x_calc_absolute_position): Use them.
10748 (x_term_init): Omit removed `height' and `width' members.
10749
10750 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10751 (compute_tip_xy):
10752 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10753 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10754 x_display_pixel_width.
10755
107562008-09-18 Kenichi Handa <handa@m17n.org>
10757
10758 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10759 (composition_compute_stop_pos): Fix handling of static composition.
10760 (Fcomposition_get_gstring): Check FROM and TO at first.
10761
107622008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10763
46e722a9 10764 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10765 mixup (YAILOM).
10766
107672008-09-17 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * indent.c (Fvertical_motion): Use position reported by iterator
10770 instead of PT for determining screen motion (bug#943).
10771
107722008-09-17 Romain Francoise <romain@orebokech.com>
10773
10774 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10775
107762008-09-17 Kenichi Handa <handa@m17n.org>
10777
10778 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10779
10780 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10781 if necessary.
10782
107832008-09-16 Kenichi Handa <handa@m17n.org>
10784
10785 * coding.c (make_conversion_work_buffer): Avoid calling
10786 Fget_buffer_create if it is not necessary.
10787
107882008-09-15 Martin Rudalics <rudalics@gmx.at>
10789
10790 * window.c (Fselect_window): Don't update window_select_count and
10791 use_time when norecord is not nil.
10792
107932008-09-14 Kenichi Handa <handa@m17n.org>
10794
10795 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10796 specpdl_ptr.
10797
107982008-09-12 Kenichi Handa <handa@m17n.org>
10799
10800 * indent.c (scan_for_column): Don't handle automatic composition
10801 if the current buffer is not associated with a window.
10802
10803 * composite.c (composition_reseat_it): If the current buffer is
10804 not associated with a window, ignore the automatic composition.
10805 (find_automatic_composition): Likewise.
10806
108072008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10810 (Fgpm_mouse_stop): Use it.
10811 * termhooks.h (close_gpm): Declare.
10812 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10813 connection if Gpm_GetEvent fails.
10814
10815 * window.c (set_window_buffer): Always preserve current-buffer.
10816
108172008-09-12 Glenn Morris <rgm@gnu.org>
10818
10819 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10820
108212008-09-11 Glenn Morris <rgm@gnu.org>
10822
10823 * charset.c (charset-map-path): Doc fix.
10824
108252008-09-10 Kenichi Handa <handa@m17n.org>
10826
10827 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10828
10829 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10830 compose a grapheme cluster with the preceding base glyph.
10831
10832 * composite.c (composition_compute_stop_pos): Fix previous change.
10833 Reset cmp_it->id to -1 at first.
10834
108352008-09-10 Glenn Morris <rgm@gnu.org>
10836
10837 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10838
108392008-09-09 Chong Yidong <cyd@stupidchicken.com>
10840
10841 * keyboard.c (read_key_sequence): Reapply translation maps when
10842 switching keyboards.
10843
108442008-09-09 Kenichi Handa <handa@m17n.org>
10845
10846 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10847 characters.
10848
10849 * composite.c (FORWARD_CHAR): Fix calculation
10850 of (POSITION).pos_byte.
10851 (composition_compute_stop_pos): Limit the search of composition to
10852 at most 500 characters ahead. If we reach the limit or find a
10853 newline, set cmp_it->ch to -2 and return 0.
10854 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10855
108562008-09-08 Kenichi Handa <handa@m17n.org>
10857
10858 * indent.c (Fvertical_motion): Be sure to set
10859 it_overshoot_expected if it.cmp_it.id is non-negative.
10860
108612008-09-07 Andreas Schwab <schwab@suse.de>
10862
10863 * callproc.c (Fcall_process): Don't hold references to string data
10864 across garbage collection. Move initialisation of new_argv down
10865 to avoid compiler bug.
10866
108672008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10868
10869 * process.c (Fsystem_process_attributes): Doc fix.
10870
108712008-09-07 Chong Yidong <cyd@stupidchicken.com>
10872
10873 * callproc.c (Fcall_process): Canonicalize current directory name.
10874
10875 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10876 iterator advances to the next line if the current line ends in a
10877 continued tab.
10878
108792008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10880
10881 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10882 member to point to cmp_from.
10883
10884 * xdisp.c: Doc fix for references to gidx data member.
10885
108862008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10887
10888 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10889
108902008-09-07 Kenichi Handa <handa@m17n.org>
10891
10892 * composite.c (FORWARD_CHAR): Check STOP after
10893 incrementing (POSITION).pos.
10894
108952008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10896
10897 * process.c (Fsystem_process_attributes): Doc fix.
10898
108992008-09-06 Chong Yidong <cyd@stupidchicken.com>
10900
10901 * keyboard.c (Ftop_level): Doc fix.
10902
109032008-09-06 Eli Zaretskii <eliz@gnu.org>
10904
10905 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10906 minibuffer, don't let lower part of menu invade the echo area.
10907
10908 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10909 "char *q" to access menu text and advance through it. Revert the
10910 change that displayed ">" instead of ASCII character 0x10.
10911
109122008-09-05 Eli Zaretskii <eliz@gnu.org>
10913
10914 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10915 toggle boxes and radio buttons on MS-DOS as well.
10916
109172008-09-05 Kenichi Handa <handa@m17n.org>
10918
10919 * composite.c (autocmp_chars): Check lookback count.
10920 (composition_compute_stop_pos): Set cmp_it->lookback.
10921 (composition_reseat_it): Check lookback count.
10922 (struct position_record): New struct.
10923 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10924 (find_automatic_composition): New function.
10925 (composition_adjust_point): Use find_automatic_composition.
10926
10927 * dispextern.h (struct composition_it): New member lookback.
10928
109292008-09-02 Chong Yidong <cyd@stupidchicken.com>
10930
10931 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10932 if moving by a single line.
10933
109342008-09-02 Andreas Schwab <schwab@suse.de>
10935
10936 * xterm.c (x_delete_display): Fix merge error.
10937
10938 * fileio.c (Fexpand_file_name): Remove unused variables.
10939
109402008-09-02 Eli Zaretskii <eliz@gnu.org>
10941
10942 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10943 storage on all platforms, not just on DOS_NT.
10944
109452008-09-02 Jason Rumney <jasonr@gnu.org>
10946
b8ff72fa
SM
10947 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10948 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10949
109502008-09-01 Chong Yidong <cyd@stupidchicken.com>
10951
10952 * xfaces.c (Finternal_set_alternative_font_family_alist)
10953 (Finternal_set_alternative_font_registry_alist): Properly copy
10954 entire alist structure.
10955
109562008-09-01 Kenichi Handa <handa@m17n.org>
10957
d66c0241 10958 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10959 representative chars of the script is a vector.
d66c0241
JB
10960 (ftfont_list): Handle the case where the representative chars of
10961 the script is a vector.
aac0c6e3
MR
10962
10963 * character.c (syms_of_character): Docstring of
10964 script-representative-chars fixed.
10965
109662008-08-31 Eli Zaretskii <eliz@gnu.org>
10967
10968 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10969 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10970 the menu. Allocate larger buffer for `text', to account for
10971 possible ^C characters.
10972
109732008-08-31 Martin Rudalics <rudalics@gmx.at>
10974
10975 * xdisp.c (prepare_menu_bars): Don't call
10976 Vwindow_size_change_functions with arg Qt.
10977
109782008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * font.h (font_range):
10981 * fileio.c (report_file_error):
46e722a9
SM
10982 * composite.c (composition_update_it): Yet another int/Lisp_Object
10983 mixup (YAILOM).
aac0c6e3
MR
10984
109852008-08-30 Glenn Morris <rgm@gnu.org>
10986
10987 * data.c (Fmake_variable_frame_local): Doc fix.
10988
10989 * frame.c (Fmodify_frame_parameters): Doc fix.
10990
109912008-08-30 Eli Zaretskii <eliz@gnu.org>
10992
10993 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10994 needed by GetTokenInformation.
10995 (w32_system_process_attributes): Check return values of all system
10996 APIs.
10997
10998 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10999 only when the state changes.
11000 (IT_update_begin, IT_update_end): Add termscript trace.
11001
11002 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11003 clipboard is unavailable. Set dst to NULL if it doesn't point to
11004 malloc'ed data.
11005 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11006 passing random values to xfree.
11007
11008 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11009 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11010
110112008-08-29 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11014
110152008-08-29 Eli Zaretskii <eliz@gnu.org>
11016
11017 * composite.c (fill_gstring_body): Avoid compiler warnings.
11018
11019 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11020 LGLYPH_SET_CODE to avoid compiler warnings.
11021
2ae37cf0 11022 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11023
11024 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11025
11026 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11027 LGLYPH_SET_CODE.
11028
110292008-08-29 Kenichi Handa <handa@m17n.org>
11030
11031 * fileio.c (report_file_error): Don't downcase the first character
11032 of errstring if it is still unibyte.
11033
110342008-08-29 Kenichi Handa <handa@m17n.org>
11035
11036 These changes are to re-implement the automatic composition so
11037 that it doesn't use text properties.
11038
11039 * Makefile.in (ftfont.o): Depend on composite.h.
11040 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11041
11042 * character.h (Vunicode_category_table): Extern it.
11043
11044 * character.c (Vunicode_category_table): New variable.
11045 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11046
11047 * chartab.c (optimize_sub_char_table): Perform more greedy
11048 optimization.
11049
b8ff72fa
SM
11050 * composite.h (enum composition_method):
11051 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11052 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11053 (Vcomposition_function_table): Extern it.
11054 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11055 (composition_gstring_put_cache, composition_gstring_from_id)
11056 (composition_gstring_p, composition_gstring_width)
11057 (composition_compute_stop_pos, composition_reseat_it)
11058 (composition_update_it, composition_adjust_point): Extern them.
11059 (Fcomposition_get_gstring): EXFUN it.
11060
d66c0241 11061 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11062 (Vcomposition_function_table)
11063 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11064 (gstring_hash_table, gstring_work, gstring_work_headers):
11065 New variables.
aac0c6e3
MR
11066 (gstring_lookup_cache, composition_gstring_put_cache)
11067 (composition_gstring_from_id, composition_gstring_p)
11068 (composition_gstring_width, fill_gstring_header)
11069 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11070 (composition_reseat_it, composition_update_it)
b8ff72fa 11071 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11072 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11073 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11074 Defsubr composition_get_gstring.
aac0c6e3
MR
11075
11076 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11077 cmp_id.
11078 (struct glyph_string): Delete the member gidx. New members
11079 cmp_id, cmp_from, and cmp_to.
11080 (enum it_method): Delete GET_FROM_COMPOSITION.
11081 (struct composition_it): New struct.
11082 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11083 Delete c, len, cmp_id, cmp_len in u.comp.
11084
11085 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11086 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11087 (enum lglyph_indices): Likewise.
b8ff72fa 11088 (font_range): Adjust extern.
aac0c6e3
MR
11089 (font_fill_lglyph_metrics): Extern it.
11090
11091 * font.c (QCf): New variable.
11092 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11093 (font_prepare_composition): Delete this function.
11094 (font_range): Type and arguments changed.
11095 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11096 (font_fill_lglyph_metrics): New function.
b8ff72fa 11097 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11098 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11099 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11100 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11101
11102 * fontset.h (font_for_char): Extern it.
11103
11104 * fontset.c (font_for_char): New function.
11105
11106 * ftfont.c: Include composite.h.
11107 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11108 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11109
11110 * indent.c: Include composite.h and dispextern.h.
11111 (check_composition): Delete this function.
11112 (scan_for_column): Handle composition by
11113 composition_compute_stop_pos, composition_reseat_it, and
11114 composition_update_it.
11115 (compute_motion): Likewise.
11116 (Fvertical_motion): Fix checking of composition.
11117
11118 * keyboard.c (adjust_point_for_property): Check composition by
11119 composition_adjust_point.
11120
b8ff72fa 11121 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11122 struct glyph_string.
11123
b8ff72fa
SM
11124 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11125 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11126 struct glyph.
11127 (produce_composite_glyph): Likewise.
11128
b8ff72fa
SM
11129 * w32term.c (x_draw_composite_glyph_string_foreground):
11130 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11131 (x_draw_glyph_string): Likewise.
11132
11133 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11134 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11135
11136 * xdisp.c: Include font.h.
11137 (it_props): Delete the entry for Qauto_composed.
11138 (init_iterator): Initialize it->cmp_it.id to -1.
11139 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11140 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11141 (handle_auto_composed_prop): Delete it.
11142 (handle_composition_prop): Handle only static composition.
11143 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11144 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11145 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11146 (pop_it): Likewise.
11147 (get_next_element): Delete next_element_from_composition.
11148 (CHAR_COMPOSED_P): New macro.
11149 (get_next_display_element): For automatic composition, get a face
11150 from the font in the glyph-string.
11151 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11152 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11153 (next_element_from_string): Check if the character at the current
11154 position is composed by CHAR_COMPOSED_P.
11155 (next_element_from_buffer): Likewise.
d66c0241
JB
11156 (next_element_from_composition): Adjust for the change of struct it.
11157 Update it->cmp_it.
b8ff72fa
SM
11158 (dump_glyph): Adjust for the change of struct glyph.
11159 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11160 it and struct glyph. Don't handle automatic composition here.
11161 (fill_gstring_glyph_string): New function.
11162 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11163 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11164 (BUILD_GSTRING_GLYPH_STRING): New macro.
11165 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11166 automatic composition.
b8ff72fa 11167 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11168 struct glyph.
b8ff72fa 11169 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11170
b8ff72fa 11171 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11172 the change of struct glyph_string.
11173 (x_draw_glyph_string): Likewise.
11174
111752008-08-29 Glenn Morris <rgm@gnu.org>
11176
11177 * buffer.c (word-wrap): Doc fix.
11178 * xdisp.c (truncate-partial-width-windows): Doc fix.
11179 Increase default to 50.
11180
111812008-08-29 Chong Yidong <cyd@stupidchicken.com>
11182
11183 * xdisp.c (update_tool_bar_unwind): New function.
11184 (update_tool_bar): Temporarily set selected frame before building
11185 tool-bar items.
11186
111872008-08-28 Michael Albinus <michael.albinus@gmx.de>
11188
11189 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11190 snprintf, respectively.
11191 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11192
111932008-08-28 Chong Yidong <cyd@stupidchicken.com>
11194
11195 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11196 LDFLAGS to GNUstep CC invocation.
11197
111982008-08-27 Chong Yidong <cyd@stupidchicken.com>
11199
11200 * indent.c (Fvertical_motion): Revert last change. Handle the
11201 general case where we are moving forward, and PT spans multiple
11202 screen lines.
11203
11204 * eval.c (find_handler_clause): Temporarily increase
11205 max-lisp-eval-depth while printing the backtrace buffer, to
11206 guarantee that help-mode code can run.
11207
112082008-08-27 Eli Zaretskii <eliz@gnu.org>
11209
11210 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11211 colors under -rv.
11212 (IT_set_frame_parameters): Don't swap foreground and background
11213 colors if `(reverse . t)' is present in the frame properties.
11214 (internal_terminal_init): Call init_frame_faces only for the
11215 initial frame.
11216
112172008-08-27 Andreas Schwab <schwab@suse.de>
11218
11219 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11220
112212008-08-27 Andreas Schwab <schwab@suse.de>
11222
11223 * search.c (search_buffer): Set char_base to zero only at the end.
11224
112252008-08-27 Kenichi Handa <handa@m17n.org>
11226
b8ff72fa 11227 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11228
112292008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11230
11231 * xterm.c (x_term_init): Temporarily hide the partially
11232 initialized terminal while calling vendor-specific-keysyms.
11233
112342008-08-26 Eli Zaretskii <eliz@gnu.org>
11235
11236 * msdos.c (internal_terminal_init): Most initializations done only
11237 once, especially initial_screen_colors[] and termscript open.
11238
112392008-08-26 Chong Yidong <cyd@stupidchicken.com>
11240
11241 * eval.c (Fcondition_case): Doc fix.
11242
11243 * widgetprv.h (EmacsFramePart): Change font member to the new font
11244 struct.
11245
11246 * widget.c: Include character.h and font.h for XSETFONT.
11247 (setup_frame_gcs): Compute X font id from font struct, just once.
11248
112492008-08-26 Eli Zaretskii <eliz@gnu.org>
11250
11251 * term.c (get_named_tty): Fix last change.
11252
112532008-08-26 Chong Yidong <cyd@stupidchicken.com>
11254
11255 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11256 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11257
112582008-08-25 Eli Zaretskii <eliz@gnu.org>
11259
11260 * frame.c (do_switch_frame): Mark previously displayed frame as
11261 obscured for FRAME_MSDOS_P frames as well.
11262
112632008-08-24 Eli Zaretskii <eliz@gnu.org>
11264
11265 * frame.c (make_terminal_frame): Initialize f->terminal,
11266 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11267 Set the top frame to newly created frame.
11268 (Fmake_terminal_frame): Reuse the_only_display_info.
11269
11270 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11271 estimating available memory.
11272
b97439ce 112732008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11274
11275 * nsterm.m (ns_draw_window_cursor): Don't call
11276 NSDisableScreenUpdates and NSEnableScreenUpdates on
11277 non-NS_IMPL_COCOA systems.
11278
112792008-08-23 Andreas Schwab <schwab@suse.de>
11280
11281 * process.c (procfs_system_process_attributes): Fix use of
11282 uninitialized variables.
11283
112842008-08-23 Eli Zaretskii <eliz@gnu.org>
11285
11286 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11287
11288 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11289 calling tty-set-up-initial-frame-faces.
11290
b8ff72fa
SM
11291 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11292 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11293
11294 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11295 addition to output_termcap.
11296
11297 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11298
11299 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11300 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11301 highlight.
11302
11303 * process.c [!subprocesses]: Define QCname.
11304 (syms_of_process): Intern and staticpro it.
11305
11306 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11307 Adjust for changes in encoding/decoding routines.
11308 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11309 encode_coding and decode_coding.
11310
b8ff72fa 11311 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11312
11313 * dosfns.c: Include frame.h before termhooks.h.
11314 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11315 variable termscript.
11316
11317 * s/msdos.h (USER_FULL_NAME): Define.
11318 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11319
11320 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11321 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11322 pw->pw_gecos.
11323
11324 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11325 SELECTED_FRAME as additional (1st) argument.
11326 (tty_read_avail_input): Handle output_msdos_raw in
11327 addition to output_termcap.
11328
11329 * msdos.c: Include frame.h before termhooks.h.
11330 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11331 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11332 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11333 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11334 (IT_set_terminal_modes, IT_reset_terminal_modes)
11335 (IT_set_frame_parameters): Use tty->termscript instead of a global
11336 variable termscript.
11337 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11338 global variable terminal_coding. Don't refer to
11339 Vnonascii_translation_table.
11340 (internal_terminal_init): Set Vwindow_system in current_kboard.
11341 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11342 Announce date and time of session start, if termscript is open.
11343 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11344 term.c:init_tty). Open termscript only of not already open.
11345 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11346 here instead of dos_ttraw. Don't initialize display if this is an
11347 initial tty. Don't set FRAME_FONT.
11348 (Vwindow_system_version): Bump to 23.
11349 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11350 is available, set up mouse_position_hook.
11351 (dos_ttraw, IT_set_terminal_modes): If called with initial
11352 terminal, do nothing.
11353 (IT_set_frame_parameters): Handle the Qtty_type frame
11354 parameter by calling internal_terminal_init.
11355 (dos_set_window_size, show_mouse_face)
11356 (clear_mouse_face, IT_note_mode_line_highlight)
11357 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11358 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11359 (initialize_msdos_display): New function.
11360 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11361 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11362 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11363 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11364 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11365 (request_sigio, unrequest_sigio): Don't define, now defined on
11366 sysdep.c.
11367 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11368
11369 * term.c [MSDOS]: Include msdos.h.
11370 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11371 conditional to DOS_NT. Allow only one call to this function in a
11372 session. Don't allocate a new struct tty_display_info; instead,
11373 reuse the_only_display_info. Call get_tty_size to get screen
11374 dimensions. Call init_baud_rate to set bad_rate.
11375 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11376 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11377 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11378 (get_tty_terminal, get_named_tty, Ftty_type)
11379 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11380 output_termcap.
b8ff72fa
SM
11381 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11382 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11383 only when subprocesses are supported.
aac0c6e3
MR
11384
11385 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11386 f->output_data.x.
11387 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11388 terminal devices.
11389
5582fbc7 11390 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11391 x_output.
11392 (FRAME_FONT): Use output_data.tty.
11393 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11394 (struct x_display_info): Rename from display_info. Update all users in
11395 msdos.c.
aac0c6e3 11396 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11397 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11398 (dos_ttraw): Update prototype.
11399
11400 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11401 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11402
114032008-08-23 Jason Rumney <jasonr@gnu.org>
11404
11405 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11406 (fn_TIFFSetDirectory): New library function used.
11407 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11408 (tiff_load): Use :index to select among multiple images. Set count
11409 property when multiple images exist.
11410 (gif_format): Use :index, not :image.
11411
114122008-08-23 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * xdisp.c (try_scrolling): Check INT_MAX instead of
11415 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11416 to obtain INT_MAX.
11417
114182008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11419
11420 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11421
114222008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11423
11424 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11425 GNUstep library location.
11426
114272008-08-21 Chong Yidong <cyd@stupidchicken.com>
11428
11429 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11430 before using it.
11431
11432 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11433
114342008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11435
11436 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11437 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11438 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11439 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11440 (EmacsApp-cursor_blink_handler): Remove declaration.
11441 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11442 match 01 Feb 2008 changes in xterm.c.
11443 (ns_read_socket): Add cast to avoid warning.
11444 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11445 GNUstep.
11446
114472008-08-20 Chong Yidong <cyd@stupidchicken.com>
11448
11449 * xselect.c (x_get_foreign_selection): Return nil if desired
11450 selection could not be obtained, instead of signalling an error.
11451
114522008-08-20 David Reitter <david.reitter@gmail.com>
11453
11454 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11455 * nsterm.m: Remove ns-specific code for cursor blinking.
11456 (ns_draw_window_cursor): Clear cursor properly rather than
11457 redrawing the area. Respect width of bar cursors.
11458 These changes enable the use of generic blink-cursor-mode and
11459 generic cursor types in NS and support smooth cursor movements (do
11460 not blink off after command).
11461 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11462 Nextstep, too.
11463
114642008-08-19 Kenichi Handa <handa@m17n.org>
11465
11466 * font.c (Vfont_log_deferred): New variable.
11467 (font_add_log): Check Vfont_log_deferred.
11468 (font_deferred_log): New function.
11469
11470 * font.h (font_deferred_log): Extern it.
11471
11472 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11473 for sorting.
11474 (face_for_char): Use deferred log.
11475
114762008-08-18 Kenichi Handa <handa@m17n.org>
11477
11478 * fontset.c (face_for_char): Add font log.
11479
11480 * font.c (font_add_log): Add the font properties :script, :lang,
11481 and :otf in the log.
11482
114832008-08-17 Chong Yidong <cyd@stupidchicken.com>
11484
11485 * xdisp.c: Remove dead code.
11486 (handle_invisible_prop, next_overlay_string): Defer call to
11487 setup_for_ellipsis.
11488 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11489
114902008-08-15 Chong Yidong <cyd@stupidchicken.com>
11491
11492 * xfaces.c (lookup_derived_face): Properly handle possible zero
11493 return value of get_lface_attributes.
11494 (merge_faces): Don't tell lookup_derived_face to signal an error
11495 if face is not found.
11496
11497 * dired.c (Fdirectory_files): Doc fix.
11498
11499 * process.c (make_process): Initialize kill_without_query struct
11500 member.
11501
115022008-08-15 Eli Zaretskii <eliz@gnu.org>
11503
11504 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11505 Alternative calculation of totphys for Visual Studio 6.
11506
11507 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11508
11509 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11510 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11511 All users changed.
11512 (stat): Only root directory passed to GetDriveType. Allow RAM
11513 disk as well as local fixed disk when w32-get-true-file-attributes
11514 is set to `local'.
11515 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11516 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11517 (w32_cached_id, w32_add_to_cache): New functions.
11518 (get_name_and_id): Look account names in the cache before calling
11519 lookup_account_sid.
11520 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11521 New initialization flags.
11522 (globals_of_w32): Initialize them to zero.
11523 (w32_system_process_attributes): Use w32_cached_id and
11524 w32_add_to_cache.
11525
115262008-08-14 Lawrence Mitchell <wence@gmx.li>
11527
11528 * lread.c (Fread_char, Fread_char_exclusive): If no character
11529 event is read before timeout is reached, return nil, rather than
11530 converting to a number.
11531
115322008-08-14 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * fns.c (use_dialog_box): Doc fix.
11535
11536 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11537 on OS X.
11538
115392008-08-13 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * frame.c (Qns_parse_geometry): New var.
11542 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11543
115442008-08-11 Chong Yidong <cyd@stupidchicken.com>
11545
11546 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11547 space character in calculating tabs.
11548
115492008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11550
11551 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11552
115532008-08-10 Glenn Morris <rgm@gnu.org>
11554
11555 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11556 silence gcc "limited range of data type" warnings in some
11557 make_fixnum_or_float calls.
11558
115592008-08-09 Eli Zaretskii <eliz@gnu.org>
11560
11561 * w32.c (w32_system_process_attributes): If the process does not
11562 exist, return nil.
11563
11564 * w32.c: Include thelp32.h, psapi.h and coding.h.
11565 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11566 declarations.
11567 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11568 (Process32Next_Proc): New typedefs.
11569 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11570 (g_b_init_process32_next, g_b_init_open_thread_token)
11571 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11572 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11573 (g_b_init_get_process_working_set_size)
11574 (g_b_init_global_memory_status_ex): New static variables.
11575 (globals_of_w32): Initialize them.
11576 (create_toolhelp32_snapshot, process32_first, process32_next)
11577 (open_thread_token, impersonate_self, revert_to_self)
11578 (get_process_memory_info, get_process_working_set_size)
11579 (global_memory_status, global_memory_status_ex): New wrapper
11580 functions.
11581 (w32_list_system_processes, w32_system_process_attributes)
11582 (enable_privilege, restore_privilege, ltime, process_times):
11583 New functions.
11584 (convert_time_raw): New function.
11585 (convert_time): Remove conversion of FILETIME into time in 100
11586 nsec units, call convert_time_raw instead.
11587
11588 * process.h (w32_list_system_processes, w32_system_process_attributes):
11589 Add prototypes.
11590 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11591 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11592 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11593 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11594
11595 * process.c (Fsystem_process_attributes): Doc fix.
11596
115972008-08-08 Chong Yidong <cyd@stupidchicken.com>
11598
11599 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11600 a continued multi-char glyph; if so, advance to the actual glyph.
11601
116022008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11603
11604 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11605
11606 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11607 (.m.o): Use it.
11608 * config.in: Regenerate.
11609
116102008-08-07 Chong Yidong <cyd@stupidchicken.com>
11611
11612 * xdisp.c (redisplay_window): Revert last change.
11613 (try_window): Check bottom scroll margin too.
11614
116152008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11616
11617 * config.in: Regenerate.
11618
11619 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11620 -list-load-path-shadows'.
11621 (nsgui.h): Reduce number of things depending on it.
11622
116232008-08-06 Chong Yidong <cyd@stupidchicken.com>
11624
11625 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11626 instead of window-end which does the wrong thing at eob.
11627 (try_cursor_movement): Minor optimization.
11628 (redisplay_window): If scroll margin is defined, don't assume
11629 window doesn't need scrolling.
11630
116312008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11632
11633 * config.in: Regenerate.
11634
11635 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11636 (mostlyclean): Don't delete *.d under NS.
11637
11638 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11639
116402008-08-06 Kenichi Handa <handa@m17n.org>
11641
11642 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11643
116442008-08-06 Andreas Schwab <schwab@suse.de>
11645
11646 * config.in: Regenerate.
11647
116482008-08-05 Chong Yidong <cyd@stupidchicken.com>
11649
11650 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11651 forcing a window start.
11652
11653 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11654 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11655
116562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11657
11658 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11659 argument.
11660
116612008-08-05 Juanma Barranquero <lekktu@gmail.com>
11662
11663 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11664 <scroll-down-aggressively, before-change-functions>:
11665 <after-change-functions>: Reflow docstrings.
11666
116672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11668 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11669
11670 Dock menu customization, based on a patch by Ken Raeburn, plus some
11671 other fixes.
11672 * nsmenu.m (dockMenu): New variable.
11673 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11674
11675 * nsterm.h (dockMenu): Declare.
11676
11677 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11678 (ns_term_init): Initialize dockMenu.
11679 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11680 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11681 left.
11682
11683 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11684
116852008-08-04 Chong Yidong <cyd@stupidchicken.com>
11686
11687 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11688
11689 * config.in: Regenerate.
11690
116912008-08-04 Seiji Zenitani <zenitani@mac.com>
11692
11693 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11694
116952008-08-04 Chong Yidong <cyd@stupidchicken.com>
11696
11697 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11698
116992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11700
11701 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11702
11703 * keyboard.h: Comment an #endif.
11704
11705 * lisp.h (have_menus_p): Adjust comment.
11706
11707 * menu.c (find_and_return_menu_selection): Fix comparison with
11708 client_data.
11709
11710 * nsmenu.m (popup_activated_flag): New variable.
11711 (popup_activated): New function.
11712 (menu-or-popup-active-p): New exported lisp definition.
11713 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11714 when popup done.
11715 (ns_popup_dialog): Set popup_activated_flag.
11716
11717 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11718 version for GNUstep (handled by conditional typedef in nsterm.m).
11719 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11720 in rgb.txt).
11721
11722 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11723
11724 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11725
11726 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11727
11728 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11729 shortcircuit if popup_activated like GTK and X toolkit.
11730
11731 * m/inter386.h: Change DARWIN to DARWIN_OS.
11732
11733 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11734 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11735 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11736 comment on NO_SOCK_SIGIO.
11737
117382008-08-03 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * nsterm.m (windowDidResize): Remove stopModal call.
11741
117422008-08-03 Andreas Schwab <schwab@suse.de>
11743
11744 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11745 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11746
117472008-08-02 Chong Yidong <cyd@stupidchicken.com>
11748
11749 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11750 Don't use uninitialized pointer variable when using getrlimit.
11751
117522008-08-02 Jason Rumney <jasonr@gnu.org>
11753
11754 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11755
117562008-08-02 Eli Zaretskii <eliz@gnu.org>
11757
11758 * alloc.c (NSTATICS): Bump to 0x640.
11759
11760 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11761
11762 * lisp.h: Add prototype for directory_files_internal.
11763
11764 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11765 New functions.
11766 (syms_of_process): Defsubr them. Add initializations for various
11767 Q* symbols used in procfs_system_process_attributes.
11768 (procfs_list_system_processes, procfs_system_process_attributes)
11769 [HAVE_PROCFS]: New functions.
11770 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11771 (procfs_get_total_memory): New functions.
11772
117732008-08-01 Juanma Barranquero <lekktu@gmail.com>
11774
11775 * xfaces.c (Fx_load_color_file): Fix previous change;
11776 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11777
117782008-08-01 Michael Albinus <michael.albinus@gmx.de>
11779
11780 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11781
117822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11783
11784 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11785
117862008-08-01 Chong Yidong <cyd@stupidchicken.com>
11787
11788 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11789
11790 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11791 define NSApplicationDelegateReplySuccess.
11792 (EmacsView -converstationIdentifier): Use long instead of
11793 NSInteger for GNUstep, since it doesn't have NSInteger.
11794
11795 * xmenu.c: Revert last change.
11796
11797 * keyboard.h: Fix last change.
11798
117992008-08-01 Juanma Barranquero <lekktu@gmail.com>
11800
11801 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11802 on Windows.
11803
118042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11805
11806 Warning clearing and clean-up in NS port.
11807 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11808 Add prototypes.
11809 * nsgui.h (FACE_DEFAULT): Remove, unused.
11810 (XGCValues): Change colors to unsigned long.
11811 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11812 nsterm.m.
11813 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11814 (ns_list_fonts): Remove, unused.
11815 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11816 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11817 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11818 (nsfont_draw): Compare face colors to 0, not nil.
11819 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11820 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11821 (-addSubmenuWithTitle:): Use NSMenuItem class.
11822 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11823 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11824 (ns_clip_to_row): Make gc arg a BOOL.
11825 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11826 ns_clip_to_row() call.
11827 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11828 used). Cast FRAME_FONT assignments.
11829 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11830 (ns_string_to_lispmod): Change arg to const char.
11831 (ns_term_init): Use NSMenuItem class.
11832 (EmacsApp -openFile:): Move to different section of file.
11833 (EmacsApp -application:openFiles:): Don't return a value, call
11834 -replyToOpenOrPrint:.
11835 (EmacsView -keyDown:): Fix up cast.
11836 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11837 (EmacsView -menuDown:): Cast tag in call to
11838 find_and_call_menu_selection().
11839 (ns_list_fonts): Remove, unused.
11840 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11841 (ns_fontname_to_xlfd): Make static.
11842 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11843 Remove prototypes (now in keyboard.h).
11844 (next_menubar_widget_id): Remove, unused.
11845 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11846 Remove prototypes (now in keyboard.h).
11847 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11848
118492008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11850
11851 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11852 (floatfns.o): Depend on syssignal.h.
11853 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11854
11855 * systty.h: Fix previous change that removed BSD_TERMIOS.
11856 Add comments to #ifdefs.
11857
118582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11859
11860 * w32fns.c (w32-load-color-file): Remove.
11861 (x-open-connection): Use renamed Fx_load_color_file.
11862 * xfaces.c (x-load-color-file): Add.
11863 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11864 Emacs.clr.
11865 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11866
118672008-07-31 Michael Albinus <michael.albinus@gmx.de>
11868
11869 * dbusbind.c (Fdbus_call_method_asynchronously)
11870 (Fdbus_method_error_internal): New defuns.
11871 (xd_read_message): Handle also reply messages.
11872 (Vdbus_registered_functions_table): Extend docstring.
11873
118742008-07-31 Juanma Barranquero <lekktu@gmail.com>
11875
11876 * keyboard.c (gobble_input): Fix previous change.
11877
118782008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11879
11880 * bitmaps/README:
11881 * xfns.c:
11882 * termcap.c:
11883 * term.c:
11884 * syswait.h:
11885 * systty.h:
11886 * systime.h:
11887 * syssignal.h:
11888 * sysdep.c:
11889 * process.h:
11890 * process.c:
11891 * print.c:
11892 * ndir.h:
11893 * lread.c:
11894 * keyboard.c:
11895 * getpagesize.h:
11896 * floatfns.c:
11897 * fileio.c:
11898 * emacs.c:
11899 * doc.c:
11900 * dispnew.c:
11901 * dired.c:
11902 * data.c:
11903 * callproc.c:
11904 * buffer.c:
11905 * README:
11906 * Makefile.in:
11907 * s/template.h:
11908 * s/msdos.h:
11909 * m/vax.h: Remove VMS support.
11910 * s/vms.h:
11911 * vlimit.h:
11912 * uaf.h:
11913 * temacs.opt:
11914 * param.h:
11915 * ioctl.h: Remove file.
11916
119172008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11918
11919 * s/ms-w32.h (MULTI_KBOARD): Remove.
11920 * xterm.c:
11921 * xselect.c:
11922 * xfns.c:
11923 * window.c:
11924 * w32term.c:
11925 * w32fns.c:
11926 * terminal.c:
11927 * termhooks.h:
11928 * term.c:
11929 * sysdep.c:
11930 * keyboard.h:
11931 * keyboard.c:
11932 * frame.h:
11933 * frame.c:
11934 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11935 * config.in: Regenerate.
11936
119372008-07-30 Jason Rumney <jasonr@gnu.org>
11938
11939 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11940
11941 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11942 (w32font_open_internal): Get unicode version of textmetrics.
11943 Don't enable or disable glyph indices here.
11944 (w32font_open): Disable use of glyph indices.
11945
11946 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11947
119482008-07-30 Chong Yidong <cyd@stupidchicken.com>
11949
11950 * minibuf.c (Vread_buffer_function): Doc fix.
11951
119522008-07-30 John Paul Wallington <jpw@pobox.com>
11953
11954 * minibuf.c (read_buffer_completion_ignore_case): New var.
11955 (Fread_buffer): Use it.
11956
119572008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11958
11959 * systty.h (sensemode): Remove empty #if. Remove reference to
11960 BSD_TERMIOS, unused.
11961
11962 * sysdep.c: Remove reference to DGUX.
11963 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11964
11965 * config.in: Regenerate.
11966
119672008-07-30 Jason Rumney <jasonr@gnu.org>
11968
11969 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11970
119712008-07-29 Jason Rumney <jasonr@gnu.org>
11972
11973 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11974 is populated.
11975 (uniscribe_encode_char): Always use uniscribe.
11976 Avoid using context if cache is populated.
11977
119782008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11979
11980 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11981 open menu.
11982
11983 * gtkutil.c (menu_nav_ended): Remove.
11984 (create_menus): Remove signal connect for menu_nav_ended.
11985
119862008-07-28 Chong Yidong <cyd@stupidchicken.com>
11987
11988 * xdisp.c (redisplay_window): Check return value of
11989 compute_window_start_on_continuation_line before forcing a window
11990 start.
11991
119922008-07-28 Jason Rumney <jasonr@gnu.org>
11993
11994 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11995
11996 * w32term.c (w32_enable_unicode_output, cleartype_active):
11997 Remove obsolete display options.
11998 (x_draw_glyph_string_background): Don't use old cleartype_active
11999 workaround.
12000 (w32_initialize): Remove cleartype_active initialization.
12001 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12002
120032008-07-28 Andreas Schwab <schwab@suse.de>
12004
12005 * lisp.h (init_weak_hash_tables, syms_of_font)
12006 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12007 (remove_hash_entry): Don't declare.
12008 * eval.c (maybe_call_debugger): Make static and move before use.
12009 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12010 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12011 * xterm.h (x_set_frame_alpha): Declare.
12012
120132008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12014
12015 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12016 (create_menus): Connect selection-done to menu_nav_ended.
12017
120182008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12019
12020 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12021 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12022 parameter with read of 'alpha' one.
12023 (Qns_frame_parameter): Remove.
5582fbc7 12024 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12025 (next-selection-coding-system, Vselection_coding_system)
12026 (Vnext_selection_coding_system): Drop.
12027
120282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12029
12030 * nsfns.m (do-applescript, do_applescript): Rename to
12031 ns-do-applescript, ns_do_applescript, and move within file.
12032
120332008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12034
12035 Remove support for Mac Carbon.
12036 * mactoolbox.c:
12037 * macterm.h:
12038 * macterm.c:
12039 * macselect.c:
12040 * macmenu.c:
12041 * macgui.h:
12042 * macfns.c:
12043 * mac.c: Remove file.
12044 * s/darwin.h:
12045 * m/intel386.h:
12046 * xfaces.c:
12047 * xdisp.c:
12048 * window.c:
12049 * tparam.c:
12050 * termhooks.h:
12051 * termcap.c:
12052 * term.c:
12053 * syssignal.h:
12054 * sysselect.h:
12055 * sysdep.c:
12056 * process.c:
12057 * lread.c:
12058 * lisp.h:
12059 * keyboard.c:
12060 * image.c:
12061 * fringe.c:
12062 * frame.h:
12063 * frame.c:
12064 * fontset.c:
12065 * font.h:
12066 * font.c:
12067 * fns.c:
12068 * fileio.c:
12069 * emacs.c:
12070 * dispnew.c:
12071 * dispextern.h:
12072 * config.in:
12073 * atimer.c:
2ae37cf0 12074 * Makefile.in: Remove code for Carbon.
aac0c6e3 12075
f0131492 120762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12077
12078 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12079
120802008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12081
12082 * macterm.h (kCGBitmapByteOrder32Host): New define for
12083 non-universal SDKs.
12084
12085 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12086 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12087
12088 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12089 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12090
120912008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12092
12093 * w32inevt.c: Include dispextern.h.
12094
120952008-07-26 Andreas Schwab <schwab@suse.de>
12096
12097 * print.c (print_object): Fix off-by-one in last change.
12098
120992008-07-25 Juanma Barranquero <lekktu@gmail.com>
12100
12101 * term.c (syms_of_term): Don't initialize default_orig_pair,
12102 default_set_foreground and default_set_background on Windows.
12103
121042008-07-25 Jason Rumney <jasonr@gnu.org>
12105
12106 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12107 ScriptItemize. Clean up return value checking. Remove unused
12108 variables.
12109 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12110 shaping engine.
12111
12112 * w32font.c (w32font_has_char): Handle the case where we can't
12113 determine the script for a character.
12114
121152008-07-25 Chong Yidong <cyd@stupidchicken.com>
12116
12117 * term.c (syms_of_term): Initialize default_orig_pair,
12118 default_set_foreground, and default_set_background.
12119
12120 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12121 clash (bug#86).
12122 (getloadavg): Callers changed.
12123
12124 * image.c (svg_load_image): Fix last change.
12125 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12126 image size is valid. Use g_object_unref instead of deprecated
12127 rsvg_handle_free to free rsvg handle.
12128 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12129
121302008-07-25 Jason Rumney <jasonr@gnu.org>
12131
12132 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12133 surrogates before looking up glyph index.
12134 (w32font_text_extents): Encode as surrogates if falling back to
12135 functions that need UTF-16 wide chars.
12136
12137 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12138 BMP as surrogates before looking up glyph index.
12139
121402008-07-25 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * image.c (svg_load_image): Check for failure in return value of
12143 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12144
121452008-07-25 Jason Rumney <jasonr@gnu.org>
12146
12147 * w32font.c (Fx_select_font): Reverse sense of second arg.
12148
121492008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12150
12151 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12152 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12153
12154 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12155 (PURESIZE): Use it.
12156
121572008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12158
12159 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12160 * m/alpha.h (TEXT_END):
12161 * m/ibmrs6000.h (TEXT_END):
12162 * m/macppc.h (TEXT_END):
12163 * s/darwin.h (TEXT_END):
12164 * s/msdos.h (TEXT_END): Remove, unused.
12165 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12166 * s/cygwin.h: Remove comment.
12167
12168 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12169 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12170 * m/intel386.h (DOT_GLOBAL_START):
12171 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12172 (USG): Remove, file not used on USG platforms.
12173
12174 * Makefile.in (HAVE_X11): Remove empty #else.
12175
121762008-07-24 Andreas Schwab <schwab@suse.de>
12177
12178 * fileio.c (Finsert_file_contents): Properly adjust undo list
12179 after format conversion.
12180
121812008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12182
12183 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12184 (menu_nav_ended): Remove.
12185 (create_menus): Remove signal connect for menu_nav_ended.
12186 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12187 create_menus.
12188 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12189
121902008-07-23 Jason Rumney <jasonr@gnu.org>
12191
12192 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12193 with opened font.
12194 (w32font_open): Set font type to gdi.
12195
12196 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12197
121982008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12199
12200 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12201 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12202 defines it.
12203 * unexec.c (ADDR_CORRECT): Define unconditionally.
12204
12205 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12206
12207 * unexec.c: Remove code depending on !COFF and USG, the file is
12208 not used for such systems.
12209
12210 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12211 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12212 (LD_SWITCH_SYSTEM_1): Remove, update users.
12213
12214 * s/darwin.h (DATA_END):
12215 * m/intel386.h (DATA_END):
12216 * m/ibmrs6000.h (DATA_END):
12217 * m/alpha.h (DATA_END): Remove, unused.
12218
12219 * config.in: Regenerate.
12220 * s/ms-w32.h (subprocesses): Define unconditionally.
12221 * s/template.h (subprocesses): Update comment.
12222 * s/vms.h (subprocesses):
12223 * s/usg5-4.h (subprocesses):
12224 * s/hpux10-20.h (subprocesses):
12225 * s/gnu-linux.h (subprocesses):
12226 * s/cygwin.h (subprocesses):
12227 * s/bsd-common.h (subprocesses):
12228 * s/aix4-2.h (subprocesses):
12229 * s/darwin.h (subprocesses): Do not define, defined by default now.
12230
12231 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12232 Remove all references.
12233 (temacs): Add GNUstep specific ld flags.
12234
12235 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12236 similarly to what X does.
12237
122382008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12239
12240 * nsfns.m (x-list-fonts): Remove.
12241 (syms_of_nsfns): Drop the x-list-fonts declaration.
12242 * nsterm.m: Get rid of remaining "//" comments.
12243
122442008-07-22 Chong Yidong <cyd@stupidchicken.com>
12245
12246 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12247
12248 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12249 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12250 (Fns_own_selection_internal, Fx_disown_selection_internal)
12251 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12252
12253 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12254 ... */' style of docstrings. Doc fixes.
12255
122562008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12257
12258 * terminfo.c (UP, BC, PC): Undo previous change.
12259
12260 * nsfns.m: Rename ns prefixed functions/variables to the
12261 corresponding x versions. Update references.
12262
122632008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12264
12265 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12266
122672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12268
12269 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12270 Remove forwarding functions.
12271 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12272 non-static.
12273 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12274 non-static.
12275 (ns_frame_parm_handlers): Use the new names.
12276 (syms_of_nsfns): Move to the end of file.
12277
12278 * nsterm.m (syms_of_nsterm): Move to the end of file.
12279
12280 * dispnew.c (init_display): Remove code for X10.
12281
122822008-07-22 Jason Rumney <jasonr@gnu.org>
12283
12284 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12285 bare drive.
12286
122872008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12288
12289 * nsterm.m (syms_of_nsterm): Remove debugging println.
12290
122912008-07-22 David Reitter <david.reitter@gmail.com>
12292
12293 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12294 Carbon implementation of the same functionality: execute arbitrary
12295 AppleScript code.
12296
122972008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12298
12299 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12300 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12301 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12302 (Fx_display_mm_height, Fx_display_mm_width)
12303 (Fx_display_backing_store, Fx_display_visual_class)
12304 (Fx_display_save_under, Fx_open_connection)
12305 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12306 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12307 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12308 (Fx_display_pixel_width, Fx_display_pixel_height)
12309 (Fx_display_usable_bounds, Fx_display_planes)
12310 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12311 ... */' style of docstrings.
12312
123132008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12314
12315 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12316 on this platform.
12317 (mips):
12318 * m/iris4d.h (mips): Do not define.
12319 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12320
12321 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12322
12323 * image.c:
12324 * nsfns.m:
12325 * nsselect.m:
12326 * nsterm.h:
12327 * nsterm.m: Rename ns prefixed functions/variables to the
12328 corresponding x versions. Update references.
12329
12330 * m/ibms390x.h (NO_REMAP): Do not undefine.
12331
12332 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12333
123342008-07-21 Chong Yidong <cyd@stupidchicken.com>
12335
12336 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12337 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12338 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12339 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12340 (Fns_display_mm_height, Fns_display_mm_width)
12341 (Fns_display_backing_store, Fns_display_visual_class)
12342 (Fns_display_save_under, Fns_open_connection)
12343 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12344 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12345 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12346 (Fns_display_pixel_width, Fns_display_pixel_height)
12347 (Fns_display_usable_bounds, Fx_display_planes)
12348 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12349
123502008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12351
12352 * print.c (print_object): Check print_depth before searching for
12353 circularities.
12354
123552008-07-21 Michael Albinus <michael.albinus@gmx.de>
12356
12357 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12358 only sprintf.
12359
123602008-07-21 Kenichi Handa <handa@m17n.org>
12361
12362 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12363
123642008-07-20 Andreas Schwab <schwab@suse.de>
12365
12366 * syntax.c (find_start_pos, find_start_value)
12367 (find_start_value_byte, find_start_begv, find_defun_start)
12368 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12369
123702008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12371
12372 * s/sol2-3.h: Insert contents of s/sol2.h.
12373 (LD_SWITCH_SYSTEM): Remove redundant definition.
12374 * s/sol2.h: Remove, unused.
12375
123762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12377
12378 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12379
123802008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12381
12382 * Makefile.in (ns_appdir): Fix typo in find command.
12383
123842008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12385
12386 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12387
12388 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12389 added not supported anymore.
12390
12391 * s/usg5-4-2.h (LIBS_SYSTEM):
12392 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12393
12394 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12395 * s/lynxos.h (GETPGRP_NO_ARG):
12396 * s/hpux10-20.h (NO_SIOCTL_H):
12397 * s/gnu.h (GETPGRP_NO_ARG):
12398 * s/gnu-linux.h (NO_SIOCTL_H):
12399 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12400 * s/cygwin.h (GETPGRP_NO_ARG):
12401 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12402 (C_DEBUG_SWITCH): Remove duplicate definition.
12403
12404 * m/ibms390.h: Remove boilerplate comments.
12405
12406 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12407
12408 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12409 (wait_reading_process_output): Remove code for SunOS, platform not
12410 supported anymore. Use SOLARIS2 instead of sun.
12411
124122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12413
12414 * font.c (font_open_by_name): Under NS, default lface height to zero.
12415 (font_open_for_lface): Under NS, set size based on frame fontsize.
12416 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12417 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12418
124192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12420
12421 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12422 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12423 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12424 YES/NO.
12425 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12426 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12427 * Makefile.in (clean): Clear out build destination dir.
12428
124292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12430
12431 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12432 xterm, xselect.
12433 * lisp.h: Remove declaration of hash_remove.
12434 * nsgui.h: Remove redefinitions of hash_remove.
12435 * fns.c (hash_remove): Rename to hash_remove_from_table.
12436
124372008-07-19 Seiji Zenitani <zenitani@mac.com>
12438
12439 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12440 strdup() the family UTF8String before modifying it.
12441
124422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12443
12444 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12445 NS_FACE_BACKGROUND with 0 instead of nil.
12446 * nsfont.m (nsfont_draw): Same.
12447
124482008-07-19 Chong Yidong <cyd@stupidchicken.com>
12449
12450 * nsfns.m (ns_set_background_color): Fix crash.
12451
124522008-07-18 Chong Yidong <cyd@stupidchicken.com>
12453
12454 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12455
124562008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12457
12458 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12459
124602008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12461
12462 * gtkutil.c: Include <config.h> instead of "config.h".
12463
12464 * lisp.h (Foverlay_buffer): Add EXFUN.
12465
12466 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12467 child process to complete child_setup. Undo 2005-09-21 change.
12468
12469 * s/darwin.h: Mention setsid after vfork.
12470
124712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12472
12473 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12474 Depend on macgui.h.
12475
12476 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12477 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12478
12479 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12480 and f19.
12481 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12482
12483 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12484 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12485 Remove enumerators.
12486
12487 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12488 Check if FACE_FROM_ID returns NULL.
12489
124902008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12491
12492 * w32inevt.c (change_frame_size): Remove extern declaration.
12493 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12494 change_frame_size.
12495
124962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12497
12498 * getloadavg.c: Revert last change (2008-07-15).
12499
125002008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12501
12502 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12503 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12504 from configure.
12505
125062008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12507
12508 * s/sol2.h:
12509 * s/sol2-4.h: Reorganize conditionals.
12510
12511 * ecrt0.c: Remove code depending on m68000, not used anymore.
12512
12513 * fns.c (hash_remove): Make static.
12514 * lisp.h (hash_remove): Don't prototype.
12515
12516 * m/ibmrs6000.h:
12517 * m/ibms390x.h:
12518 * m/macppc.h: Remove boilerplate comments.
12519
12520 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12521 Solaris, which does not need them.
12522
12523 * m/vax.h: Remove comments about unsupported systems.
12524
12525 * s/darwin.h: Reorganize ifdefs.
12526
125272008-07-17 Andreas Schwab <schwab@suse.de>
12528
12529 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12530
125312008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 Use SDATA. Follow coding convention of placing operators at
12534 beginning of next line rather than end of previous line, and placing
12535 spaces around infix operators.
12536
12537 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12538 in case it was defined already.
12539 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12540 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12541 ns_default.
12542 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12543 Lisp_Objects.
12544 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12545 (ns_defined_color, ns_color_to_lisp): Declare.
12546 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12547 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12548 it's accepted even with USE_LISP_UNION_TYPE.
12549 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12550 (update_frame_tool_bar): Remove apparently obsolete tests for
12551 non-integerness of f->tool_bar_lines.
12552 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12553 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12554 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12555 (nsfont_open): Don't confuse NULL for Qnil.
12556 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12557 * menu.h (find_and_call_menu_selection):
12558 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12559 (find_and_return_menu_selection): Always return something.
12560 * frame.h: Include dispextern.h for Display_Info.
12561 (display_x_get_resource): Declare.
12562
125632008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12564
12565 * syntax.c: Remove stdio.h include accidentally introduced in
12566 Emacs.app commit.
12567 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12568 NS_IMPL_COCOA.
12569 * keyboard.c (handle_async_input, input_available_signal): Remove
12570 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12571
125722008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12573
12574 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12575 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12576 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12577 Use SDATA.
12578
12579 * keymap.c: Remove all NS-specific code.
12580 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12581 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12582 where_is_preferred_modifier, return a different value depending on how
12583 preferred is the binding.
12584 (where_is_internal): Adjust accordingly.
12585 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12586 Adjust to new preferred_sequence_p.
12587 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12588 * keyboard.c (parse_solitary_modifier): Not static any more.
12589 * keyboard.h (parse_solitary_modifier): Declare.
12590
125912008-07-16 Andreas Schwab <schwab@suse.de>
12592
12593 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12594 of easymenu.
12595
125962008-07-16 Chong Yidong <cyd@stupidchicken.com>
12597
12598 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12599 that we don't move off the line.
12600
126012008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12602
12603 * keyboard.c (Qsuper): Remove.
12604 (parse_menu_item): Don't call where_is_internal specially for NS.
12605
126062008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12607
12608 * s/gnu-linux.h: Remove boilerplate comments.
12609
12610 * m/alpha.h (__ELF__): Consolidate conditions.
12611
12612 * m/m68k.h (linux): Use GNU_LINUX instead.
12613 Remove boilerplate comments.
12614
12615 * m/intel386.h: Undo refactoring from previous change.
12616 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12617 too, remove dead code.
12618 (linux): Use GNU_LINUX instead.
12619
126202008-07-16 Jason Rumney <jasonr@gnu.org>
12621
12622 * w32gui.h: Repeat 26 June changes lost by last change.
12623
126242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12625
12626 * systty.h: Remove code for Aix on 386, unsupported platform.
12627
12628 * s/ms-w32.h: Remove boilerplate comments.
12629 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12630
12631 * s/gnu-linux.h (TERM): Remove support.
12632 (HAVE_SYSVIPC): Remove, unused.
12633 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12634 for this system.
12635
12636 * process.c: Remove support for IRIS, unused.
12637 Remove support for TERM, not relevant anymore.
12638
12639 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12640 used with the definition.
12641
12642 * s/aix4-2.h (static): Do not undef.
12643
12644 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12645 only used on Aix.
12646 (HAVE_SYSVIPC): Remove, unused.
12647
12648 * m/hp800.h (CANNOT_DUMP): Do not undef.
12649
12650 * m/alpha.h: Fix comment.
12651
12652 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12653 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12654 used by this configuration.
12655 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12656 * unexec.c: Remove code depending on HPUX and
12657 USG_SHARED_LIBRARIES, not used with this file. Remove code
12658 depending on IRIS, unused. Remove if 0-ed code.
12659
12660 * s/template.h: Remove comments about static.
12661
12662 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12663 Remove if 0-ed code.
12664 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12665 were the same as the default.
12666 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12667 Remove boilerplate comments.
12668 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12669 (HAVE_SYSVIPC): Remove, unused.
12670 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12671
12672 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12673 Remove boilerplate comments.
12674 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12675 Remove boilerplate comments.
12676 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12677 Remove boilerplate comments.
12678 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12679
12680 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12681 USG systems which do not use DATA_SEG_BITS.
12682 Refactor code. Remove boilerplate comments.
12683
12684 * m/ibms390.h:
12685 * m/m68k.h:
12686 * s/bsd-common.h:
12687 * s/cygwin.h:
12688 * s/darwin.h:
12689 * s/freebsd.h:
12690 * s/gnu.h:
12691 * s/msdos.h: Remove boilerplate comments.
12692
12693 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12694 do not use this file.
aac0c6e3
MR
12695 (IRIS_4D): Remove, unused.
12696
12697 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12698 do not use this file.
aac0c6e3
MR
12699 (SIGN_EXTEND_CHAR):
12700 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12701 * unexmips.c: Remove file, unused.
12702
12703 * editfns.c (Fuser_full_name): Replace the only use of
12704 USER_FULL_NAME with its value.
12705 * config.in: Regenerate.
12706
127072008-07-16 David Reitter <david.reitter@gmail.com>
12708
12709 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12710 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12711
127122008-07-16 Glenn Morris <rgm@gnu.org>
12713
12714 * emacs.c (system-type): Doc fix.
12715
127162008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12717
12718 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12719 If the cache doesn't work, let's fix it, rather than work around it.
12720
127212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12722
12723 * Makefile.in: Correct additions for nsfont.o in last commit.
12724 * nsfont.m: New file (forgot last commit).
12725
127262008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12727
12728 * callproc.c (set_initial_environment): Initialize
12729 Vprocess_environment under CANNOT_DUMP (fixes crash when
12730 batch-compiling for bootstrap).
12731
127322008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12733 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12734
c4cc8b9a
JB
12735 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12736 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12737
127382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12739
12740 Changes and additions for NeXTstep windowing system (Cocoa and
12741 GNUstep) support.
12742
12743 * Makefile.in:
12744 * config.in: Support defines and build commands for NS port.
12745 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12746 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12747 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12748 windowing.
12749 (struct face): Add synth_ital field.
12750 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12751 (init_display): Initialize Vinitial_window_system to "ns" when so
12752 compiled.
12753 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12754 (display_arg): Use under NS.
12755 (main): Under NS, allocate autorelease pool and handle command line
12756 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12757 (standard_args): Add NS-specific args.
12758 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12759 * font.c (DEFAULT_ENCODING): New variable.
12760 (font_find_for_lface): Use it.
12761 (syms_of_font): Load syms_of_nsfont under NS.
12762 * font.h: Declare nsfont_driver when compiled under NS.
12763 * fontset.c: When compiling under NS, include nsterm.h.
12764 (fontset_from_font): Autoconstruct fontset under NS.
12765 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12766 symbol, document and use it.
12767 (do_switch_frame): When for_deletion under Cocoa, add
12768 Fraise_frame(Qnil).
12769 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12770 (x_get_arg): Allow "yes" and "no" as boolean values.
12771 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12772 Qright under Cocoa.
12773 (focus-follows-mouse): Default to 0 under NS.
12774 * frame.h (enum output_method): Add output_ns.
12775 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12776 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12777 (FRAME_WINDOW_P): NS-specific definition.
12778 * fringe.c (max_used_fringe_bitmap): Make public.
12779 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12780 (getloadavg): Use NeXT code under descendant OS's.
12781 * image.c (includes and header section, x_create_bitmap_from_data)
12782 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12783 (image_background_transparent, x_clear_image_1)
12784 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12785 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12786 (x_to_xcolors, x_from_xcolors, x_disable_image)
12787 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12788 other GUIs, including XPM support using code originally written for
12789 Carbon GUI.
12790 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12791 using NS API.
12792 (image_ascent): Use font metrics macros instead of direct struct field
12793 access.
12794 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12795 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12796 Also, handle NS as GTK for menu bar purposes.
12797 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12798 toolkit where they differ.
12799 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12800 use cachelist, still needed under NS.
12801 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12802 (struct widget_value): Define it here for menu.c.
12803 * keymap.c (includes): Include modifier internals.
12804 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12805 NS.
12806 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12807 support for preferring sequences using certain modifiers, specified by
12808 the FIRSTONLY argument.
12809 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12810 under NS GNUstep implementation.
12811 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12812 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12813 * menu.c: Include nsterm.h under NS.
12814 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12815 (free_menubar_widget_tree_value, update_submenu_strings)
12816 (find_and_call_menu_selection): Treat NS as X and NT.
12817 (find_and_return_menu_selection): New function, used for popup menus.
12818 * nsgui.h:
12819 * nsterm.h:
12820 * nsfns.m:
12821 * nsimage.m:
12822 * nsmenu.m:
12823 * nsselect.m:
12824 * nsterm.m: New files.
12825 * process.c (wait_reading_process_output): Under NS, call ns_select()
12826 instead of plain select().
12827 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12828 beginning of buffer.
12829 * sysselect.h (init_process): Rename when compiling under Cocoa to
12830 avoid name conflict.
12831 * termhooks.h (display_info): Add ns_display_info to union.
12832 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12833 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12834 COCOA environment.
12835 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12836 unexec() signature. (Note, this will dump, but the resulting file
12837 crashes; unexosx is used instead; keeping around for reference and
12838 possible aid in getting dump working under GNUstep.)
12839 * w32gui.h (button_type, widget_value): Remove definitions (now in
12840 keyboard.h).
12841 * window.c: Include nsterm.h when compiling under NS.
12842 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12843 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12844 other GUI windowing systems.
12845 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12846 GTK.
12847 (x_consider_frame_title): Under NS, set icon type and frame
12848 modified-state indicator; use ns_set_name_as_filename() when using
12849 formatted title.
12850 (update_window_cursor): Make public when compiling under NS.
12851 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12852 (hourglass_atimer, Vhourglass_delay
12853 * xfaces.c (header section, init_frame_faces, clear_font_table)
12854 (defined_color, unload_color, x_face_list_fonts)
12855 (prepare_face_for_display): Add NS support parallel to other GUIs.
12856 Emulate GCs like other non-X GUIs.
12857 (split_font_name): Don't lowercase font name under NS.
12858 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12859 under NS.
12860 * s/darwin.h: Add support for compilation under NS.
12861
128622008-07-15 Jason Rumney <jasonr@gnu.org>
12863
12864 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12865 (w32_show_hourglass): Rename from show_hourglass.
12866 (w32_hide_hourglass): Rename from hide_hourglass.
12867 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12868 (Vhourglass_delay): Declare extern.
12869 (hourglass_started): Remove.
12870
12871 * xdisp.c (Vhourglass_delay): Remove static.
12872 (hourglass_started, start_hourglass, cancel_hourglass):
12873 Don't include these versions on WINDOWSNT.
12874
128752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12876
12877 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12878 variables (formerly in xfns.c).
12879 (show_hourglass, hide_hourglass): New prototypes (same).
12880 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12881 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12882 in xfns.c).
12883 (syms_of_xdisp): Declare/initialize display-hourglass,
12884 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12885 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12886 formerly in xfns.c.
12887 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12888 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12889 (start_hourglass, cancel_hourglass): Remove.
12890 (show_hourglass, hide_hourglass): Remove prototypes and static
12891 modifiers.
12892 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12893 hourglass_atimer, hourglass_shown_p declaration/initialization.
12894 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12895 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12896 (start_hourglass, cancel_hourglass): Remove.
12897 (show_hourglass, hide_hourglass): Remove prototypes and static
12898 modifiers.
12899 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12900 hourglass_atimer, hourglass_shown_p declaration/initialization.
12901 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12902 (DEFAULT_HOURGLASS_DELAY): Remove.
12903 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12904 hourglass_shown_p declaration/initialization.
12905
129062008-07-14 Jason Rumney <jasonr@gnu.org>
12907
12908 * w32fns.c (w32_get_arg): Remove wrapper function.
12909 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12910 directly.
12911 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12912
129132008-07-14 Kenichi Handa <handa@m17n.org>
12914
12915 * xfont.c (xfont_open): Add workaround for X's bug.
12916
129172008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12918
12919 * fontset.c: Include <stdio.h> unconditionally.
12920
129212008-07-13 Michael Albinus <michael.albinus@gmx.de>
12922
12923 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12924 for filtering.
12925
129262008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12927
12928 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12929
12930 * m/macppc.h:
12931 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12932
c4cc8b9a 12933 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12934 (SPECIAL_EMACS_INT):
12935 * m/ia64.h (SPECIAL_EMACS_INT):
12936 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12937 * s/gnu.h (NLIST_STRUCT):
12938 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12939 * s/gnu-linux.h (LINUX):
12940 * s/msdos.h (HAVE_FACES):
12941 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12942
12943 * systty.h:
12944 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12945 anymore.
12946
129472008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12948
12949 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12950 always defined as int.
12951
12952 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12953 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12954 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12955 * s/freebsd.h (HAVE_WAIT_HEADER):
12956 * s/bsd-common.h (HAVE_UNION_WAIT):
12957 * s/aix4-2.h (HAVE_WAIT_HEADER):
12958 * m/mips.h (HAVE_UNION_WAIT):
12959 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12960 (COFF, static): Do not define, they are undefined later in the file.
12961
12962 * process.c (update_status): Don't use a union.
12963 (status_convert):
12964 (sigchld_handler): Use int instead of WAITTYPE.
12965
129662008-07-12 Chong Yidong <cyd@stupidchicken.com>
12967
12968 * indent.c (Fvertical_motion): Restore hscroll before moving to
12969 goal column.
12970
129712008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12972
12973 * lisp.h: Remove left over code.
12974
129752008-07-11 Andreas Schwab <schwab@suse.de>
12976
12977 * lisp.h: Fix logic in last change.
12978
12979 * menu.h: New file.
12980 * menu.c: Include it.
12981 * xmenu.c: Likewise.
12982 * Makefile.in: Update dependencies.
12983
129842008-07-11 Kenichi Handa <handa@m17n.org>
12985
12986 * fontset.c (fontset_from_font): Cancel the previous change.
12987
129882008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12989
12990 * lisp.h:
12991 * w32heap.c:
12992 * emacs.c:
12993 * alloc.c: Replace all references of NO_UNION_TYPE with
12994 USE_LISP_UNION_TYPE.
12995
12996 * m/xtensa.h (NO_UNION_TYPE):
12997 * m/vax.h (NO_UNION_TYPE):
12998 * m/template.h (NO_UNION_TYPE):
12999 * m/sparc.h (NO_UNION_TYPE):
13000 * m/mips.h (NO_UNION_TYPE):
13001 * m/macppc.h (NO_UNION_TYPE):
13002 * m/m68k.h (NO_UNION_TYPE):
13003 * m/iris4d.h (NO_UNION_TYPE):
13004 * m/intel386.h (NO_UNION_TYPE):
13005 * m/ibms390x.h (NO_UNION_TYPE):
13006 * m/ibms390.h (NO_UNION_TYPE):
13007 * m/ibmrs6000.h (NO_UNION_TYPE):
13008 * m/ia64.h (NO_UNION_TYPE):
13009 * m/hp800.h (NO_UNION_TYPE):
13010 * m/arm.h (NO_UNION_TYPE):
13011 * m/amdx86-64.h (NO_UNION_TYPE):
13012 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13013 defining it the same.
13014
130152008-07-10 Chong Yidong <cyd@stupidchicken.com>
13016
13017 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13018
130192008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13020
13021 * fileio.c:
50426a04 13022 * sysdep.c:
aac0c6e3
MR
13023 * systty.h:
13024 * m/ibmrs6000.h:
13025 * m/iris4d.h:
13026 * s/aix4-2.h:
13027 * s/freebsd.h:
13028 * s/gnu-linux.h:
13029 * s/hpux10-20.h:
13030 * s/hpux11.h:
13031 * s/netbsd.h:
13032 * s/sol2-3.h:
13033 * s/sol2-4.h:
13034 * s/sol2.h:
13035 * s/usg5-4.h:
13036 * s/vms.h: Remove references to unused variables.
13037
130382008-07-10 Andreas Schwab <schwab@suse.de>
13039
13040 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13041 pattern before matching the generic family.
13042
130432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13044
13045 * unexec.c:
13046 * s/vms.h:
13047 * s/usg5-4-2.h:
13048 * s/sol2-5.h:
13049 * s/freebsd.h:
13050 * s/darwin.h: Remove dead code.
13051
13052 * m/template.h:
13053 * m/sparc.h:
13054 * m/mips.h:
13055 * m/m68k.h:
13056 * m/iris4d.h:
13057 * m/intel386.h:
13058 * m/ibms390x.h:
13059 * m/ibms390.h:
13060 * m/ia64.h:
13061 * m/hp800.h:
13062 * m/arm.h:
13063 * m/amdx86-64.h: Remove dead code and references to unused
13064 and compiler defined symbols.
13065
13066 * unexmips.c:
13067 * unexelf.c: Remove references to desupported systems.
13068
13069 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13070
13071 * m/powermac.h: Remove boilerplate comments.
13072 (NO_REMAP): Remove unused definition.
13073
13074 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13075 define them.
13076
130772008-07-10 Kenichi Handa <handa@m17n.org>
13078
13079 * xfont.c (xfont_open): Log the reason of failure.
13080
130812008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * fontset.c (fontset_get_font_group):
13084 * font.c (font_check_otf): Specify argument types.
13085
130862008-07-09 Kenichi Handa <handa@m17n.org>
13087
13088 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13089 non-ASCII char is found.
13090
13091 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13092 (reorder_font_vector): Change the arg preferred_family to font.
13093 Prefer the spec matching with font.
13094 (fontset_get_font_group): New function.
13095 (fontset_find_font): Change the format of an element of a realized
13096 fontset. Use fontset_get_font_group.
13097 (fontset_font): Try the current fontset, the default fontset, the
13098 fallbacks of the current fontset, and the fallbacks of the default
13099 fontset in this order.
13100 (face_for_char): Delete the shortcut to use the current font.
13101 (fontset_from_font): Don't set fonts for Latin in the fontset.
13102
13103 * font.h (font_make_object, font_match_p): Adjust prototypes.
13104
13105 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13106
13107 * font.c (font_make_object): New arg entity and pixelsize.
13108 (font_check_otf_features, font_check_otf): New functions.
13109 (font_match_p): Check :lang, :script, and :otf properties.
13110
13111 * xfont.c (xfont_open): Adjust it for the change of
13112 font_make_object.
13113 (xfont_text_extents): Fix initial setting of metrics.
13114
13115 * ftfont.c (struct ftfont_info): New member index, delete member
13116 fc_charset_idx. Make the member order compatible with struct
13117 xftfont_info.
13118 (fc_charset_table): Change charset names to registry names.
13119 (ftfont_pattern_entity): Delete the args registry and
13120 fc_charset_idx. Change the value of :font-entity property
13121 to (FONTNAME . INDEX). Always set :registry property to
13122 `iso10646-1'.
13123 (struct ftfont_cache_data): New struct.
13124 (ftfont_lookup_cache): New arg for_face.
13125 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13126 (ftfont_driver): Set the member otf_capability.
13127 (ftfont_get_charset): Adjust it for the change of
13128 fc_charset_table.
13129 (OTF_TAG_SYM): New macro.
13130 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13131 for the change of fc_charset_table.
13132 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13133 ftfont_pattern_entity. Add FC_INDEX to objset.
13134 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13135 and ftfont_pattern_entity.
13136 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13137 font_make_object, struct ftfont_info.
13138 (ftfont_has_char): Use ftfont_get_fc_charset.
13139 (ftfont_otf_features, ftfont_otf_capability): New functions.
13140 (ftfont_shape): Use ftfont_get_otf.
13141 (ftfont_text_extents): Fix initial setting of metrics.
13142
13143 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13144 member order compatible with struct ftfont_info.
13145 (xftfont_open): Add FC_CHARSET to the pattern. Set
13146 xftfont_info->ft_size. Don't unlock the face. Check BDF
13147 properties if appropriate.
13148 (xftfont_close): Unlock the face.
13149 (xftfont_anchor_point, xftfont_shape): Deleted.
13150 (syms_of_xftfont): Don't set members anchor_point and shape of
13151 xftfont_driver.
13152
13153 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13154 font_make_object.
13155
13156 * w32font.c (w32font_open): Adjust it for the change of
13157 font_make_object.
13158 (w32font_open_internal): Don't set properties of font_object here.
13159
131602008-07-08 Chong Yidong <cyd@stupidchicken.com>
13161
13162 * macfns.c (x_create_tip_frame):
13163 * w32fns.c (x_create_tip_frame):
13164 * xfns.c (x_create_tip_frame): Pass parameter argument to
13165 face-set-after-frame-default.
13166
13167 * xfaces.c (Finternal_merge_in_global_face): Save merged
13168 attributes for the default face back into the face vector.
13169
131702008-07-08 Andreas Schwab <schwab@suse.de>
13171
13172 * fontset.h: Declare fontset_from_font. Don't declare
13173 new_fontset_from_font and fontset_from_font_name.
13174 * xterm.c: Include "fontset.h".
13175 * Makefile.in (xterm.o): Update dependencies.
13176
131772008-07-08 Glenn Morris <rgm@gnu.org>
13178
13179 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13180 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13181
131822008-07-07 Chong Yidong <cyd@stupidchicken.com>
13183
13184 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13185 (x_set_frame_parameters): Don't bind it.
13186
131872008-07-07 Juanma Barranquero <lekktu@gmail.com>
13188
13189 * w32fns.c (map_w32_filename): Declare extern.
13190
131912008-07-07 Jason Rumney <jasonr@gnu.org>
13192
13193 * w32term.c (WS_EX_LAYERED): Define if not already.
13194
131952008-07-06 Chong Yidong <cyd@stupidchicken.com>
13196
13197 * xfaces.c (set_font_frame_param): Don't try to set the font
13198 parameter if it is still unspecified in the lface.
13199
132002008-07-05 Chong Yidong <cyd@stupidchicken.com>
13201
13202 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13203 face if it didn't already exist.
13204
13205 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13206
132072008-07-05 Andreas Schwab <schwab@suse.de>
13208
13209 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13210
132112008-07-05 Chong Yidong <cyd@stupidchicken.com>
13212
13213 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13214 word-wrapping.
13215 (IT_DISPLAYING_WHITESPACE): New macro.
13216 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13217 when word-wrapping. Simplify word-wrapping logic. Use correct
13218 pixel positions when saving copies of the iterator.
13219 (display_line): Use proper wrap point if the last character on a
13220 line was preceded by whitespace.
13221
132222008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13223
13224 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13225
132262008-07-04 Kenichi Handa <handa@m17n.org>
13227
13228 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13229
13230 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13231
132322008-07-02 Jason Rumney <jasonr@gnu.org>
13233
13234 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13235 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13236
13237 * xdisp.c (next_element_from_display_vector): Move assignment out
13238 of if statement.
13239
132402008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13241
13242 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13243
13244 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13245 (syms_of_fileio): Initialize and export them.
13246 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13247
13248 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13249 (Fsystem_move_file_to_trash): New function.
13250 (syms_of_w32fns): Export it to lisp.
13251
132522008-07-01 Jason Rumney <jasonr@gnu.org>
13253
13254 * w32font.c (w32font_text_extents): Don't count overhang as part
13255 of width.
13256
132572008-06-30 Miles Bader <miles@gnu.org>
13258
13259 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13260 Add `avoid_cursor_p' field.
13261
13262 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13263 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13264 (append_glyph, append_composite_glyph, produce_image_glyph)
13265 (append_stretch_glyph): Initialize avoid_cursor_p.
13266 (get_it_property): Rename from `get_line_height_property'.
13267 (x_produce_glyphs): Use get_it_property.
13268 (handle_line_prefix, push_display_prop): New functions.
13269 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13270 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13271 New variables.
13272 (syms_of_xdisp): Initialize them.
13273
132742008-06-30 Kenichi Handa <handa@m17n.org>
13275
13276 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13277 XftDefaultSubstitute (they are called in XftFontMatch).
13278 (xftfont_open): Fix args to ftfont_font_format.
13279
13280 * ftfont.c (fc_charset_table): New member lang.
13281 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13282 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13283 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13284 (ftfont_open): Fix args to ftfont_font_format.
13285 (ftfont_font_format): New arg filename.
13286
132872008-06-30 Chong Yidong <cyd@stupidchicken.com>
13288
13289 * xfaces.c (Finternal_merge_in_global_face): If default face was
13290 modified, realize it again. Update the font face attribute.
13291
132922008-06-29 Jason Rumney <jasonr@gnu.org>
13293
13294 * w32term.c (x_set_frame_alpha): Fix logic.
13295
132962008-06-29 Kenichi Handa <handa@m17n.org>
13297
13298 * fontset.c (Finternal_char_font): Return font-object instead of
13299 font-name.
13300
13301 * composite.c (get_composition_id): Fix the width calculation for TAB.
13302
133032008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13304
13305 * indent.c (Fvertical_motion): Properly handle float column arg.
13306
133072008-06-28 Jason Rumney <jasonr@gnu.org>
13308
13309 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13310 (pfnSetLayeredWindowAttributes): New function pointer.
13311 (w32_initialize): Initialize it when supported.
13312 (x_set_frame_alpha): New function.
13313
13314 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13315 (w32_frame_parm_handlers): Set alpha handler.
13316
13317 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13318
133192008-06-27 Jason Rumney <jasonr@gnu.org>
13320
13321 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13322 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13323 (w32_to_x_charset, x_to_w32_charset)
13324 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13325 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13326 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13327 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13328 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13329 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13330 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13331 (Qw32_charset_unicode): Remove.
13332 (syms_of_w32fns): Update for above changes.
13333
13334 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13335 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13336 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13337 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13338 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13339 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13340 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13341 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13342 (syms_of_w32font): Update for above changes.
13343
133442008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13345
13346 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13347 removed #if.
13348 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13349
133502008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13351 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13352
13353 * makefile.w32-in (LOCAL_FLAGS):
13354 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13355
13356 * sysdep.c (_spawnlp, _getpid):
13357 Declare with explicit _cdecl instead of _CRTAPI1.
13358
13359 * editfns.c (Fget_internal_run_time):
13360 Check for WINDOWSNT with #ifdef, not #if.
13361
133622008-06-26 Jason Rumney <jasonr@gnu.org>
13363
13364 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13365
13366 * w32term.c (x_draw_glyph_string_foreground)
13367 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13368 Use FONT_HANDLE macro.
13369 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13370
13371 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13372 (uniscribe_encode_char): Use FONT_HANDLE macro.
13373
13374 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13375 (w32font_text_extents): Use precast w32_font.
13376 (w32font_close): Free cached metrics.
13377 (w32font_open_internal): Allocate space for name on stack.
13378
133792008-06-26 Chong Yidong <cyd@stupidchicken.com>
13380
13381 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13382
133832008-06-26 Jason Rumney <jasonr@gnu.org>
13384
13385 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13386 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13387
133882008-06-26 Juanma Barranquero <lekktu@gmail.com>
13389
13390 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13391
133922008-06-26 Jason Rumney <jasonr@gnu.org>
13393
13394 * w32bdf.c, w32bdf.h: Remove obsolete files.
13395
13396 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13397
13398 * w32gui.h: Don't include w32bdf.h.
13399 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13400 Remove obsolete font support.
13401
13402 * w32font.h (struct w32font_info): Remove compat_w32_font.
13403 Add hfont member.
13404 (FONT_COMPAT): Remove obsolete macro.
13405
13406 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13407 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13408 (w32font_open_internal): Remove compat code. Set new hfont member.
13409 (Fx_select_font): Use new hfont member.
13410
13411 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13412 (uniscribe_encode_char): Use new hfont member.
13413
13414 * w32term.c (x_draw_glyph_string_foreground)
13415 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13416 (x_draw_glyph_string): Use metrics in w32font_info.
13417
134182008-06-26 Kenichi Handa <handa@m17n.org>
13419
13420 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13421
134222008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13423
13424 * unexnext.c:
13425 * m/ews4800.h:
13426 * m/hp9000s300.h:
13427 * m/ibm370aix.h:
13428 * m/mips-siemens.h:
13429 * m/ncr386.h:
13430 * m/next.h:
13431 * m/pmax.h:
13432 * m/powerpcle.h:
13433 * m/tandem-s2.h:
13434 * s/386bsd.h:
13435 * s/bsd386.h:
13436 * s/bsd4-1.h:
13437 * s/bsd4-2.h:
13438 * s/bsdos2-1.h:
13439 * s/bsdos2.h:
13440 * s/bsdos3.h:
13441 * s/bsdos4.h:
13442 * s/nextstep.h:
13443 * s/ultrix4-3.h:
13444 * s/usg5-0.h:
13445 * s/usg5-2-2.h:
13446 * s/usg5-2.h:
13447 * s/usg5-4-3.h:
13448 * s/ux4800.h:
13449 * s/uxpds.h:
13450 * s/uxpv.h: Remove support for obsolete systems.
13451 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13452 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13453 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13454 Remove, insert contents in s/aix4-2.h.
13455 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13456 * s/bsd4-3.h: Rename to ...
13457 * s/bsd-common.h: ... this.
13458 * data.c:
13459 * doc.c:
13460 * ecrt0.c:
13461 * emacs.c:
13462 * fileio.c:
13463 * floatfns.c:
13464 * keyboard.c:
13465 * mem-limits.h:
13466 * print.c:
13467 * process.c:
13468 * sysdep.c:
13469 * syssignal.h:
13470 * systty.h:
13471 * syswait.h:
13472 * term.c:
13473 * unexec.c:
13474 * unexelf.c:
13475 * unexhp9k800.c:
13476 * m/hp800.h:
13477 * m/ibmrs6000.h:
13478 * m/mips.h:
13479 * m/vax.h:
13480 * s/darwin.h:
13481 * s/freebsd.h:
13482 * s/gnu.h:
13483 * s/ms-w32.h:
13484 * s/msdos.h:
13485 * s/netbsd.h:
13486 * s/template.h: Remove references to obsolete variables.
13487
13488 * Makefile.in: Add dependencies for all unexec files.
13489 (admindir): Remove unused variable.
13490 (UNEXEC_SRC): Remove references.
13491
134922008-06-25 Chong Yidong <cyd@stupidchicken.com>
13493
13494 * xfns.c (x_default_font_parameter): If Xft is available, first
13495 try Monospace-12 for the default font.
13496
134972008-06-25 Jason Rumney <jasonr@gnu.org>
13498
13499 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13500
135012008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13502
13503 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13504
13505 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13506
135072008-06-25 Juanma Barranquero <lekktu@gmail.com>
13508
13509 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13510 <scroll-conservatively>: Fix typo in docstring.
13511
13512 * xselect.c (Fx_send_client_event): Doc fix.
13513
135142008-06-25 Kenichi Handa <handa@m17n.org>
13515
13516 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13517
13518 * font.c (font_parse_fcname): Remove unused variables.
13519 (font_sort_entites): Delete the arg SPEC. Caller changed.
13520 Fix for the case of ! best_only.
13521 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13522
13523 * lisp.h (Fstring_to_unibyte): EXFUN it.
13524
13525 * character.h (str_to_unibyte): Extern it.
13526
13527 * character.c (str_to_unibyte): New function.
13528
13529 * fns.c (Fstring_to_unibyte): New function.
13530 (syms_of_fns): Defsubr it.
13531
135322008-06-24 Kenichi Handa <handa@m17n.org>
13533
13534 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13535 DPI too.
13536 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13537
135382008-06-24 Andreas Schwab <schwab@suse.de>
13539
13540 * Makefile.in (${lispsource}loaddefs.el): Rename from
13541 ../lisp/loaddefs.el.
13542 (bootstrap-clean): Do what distclean does but don't remove
13543 Makefile.
13544 (distclean): Depend on bootstrap-clean and remove Makefile.
13545
135462008-06-24 Chong Yidong <cyd@stupidchicken.com>
13547
13548 * buffer.h (struct buffer): New member word_wrap.
13549
13550 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13551 word-wrap.
13552 (init_buffer_once): Initialize them.
13553
13554 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13555 line_wrap enum possessing three possible values.
13556
13557 * termopts.h: Replace truncate_partial_width_windows with
13558 Vtruncate_partial_width_windows.
13559
13560 * dispnew.c (direct_output_for_insert): Avoid direct output when
13561 inserting a space with word wrap on.
13562
13563 * indent.c (compute_motion): Obey integer values of
13564 truncate-partial-width-windows.
13565
13566 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13567 replacing truncate_partial_width_windows.
13568 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13569 truncate only if the window width is below that integer.
13570 (start_display, resize_mini_window, produce_stretch_glyph)
13571 (display_string, move_it_in_display_line_to): Use line_wrap.
13572 (back_to_previous_visible_line_start, reseat_1): Reset
13573 string_from_display_prop_p.
13574 (display_line): Extend default face to end of line when wrapping.
13575
135762008-06-24 Kim F. Storm <storm@cua.dk>
13577
13578 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13579 to wrap continued lines at word boundaries.
13580
135812008-06-24 Jason Rumney <jasonr@gnu.org>
13582
13583 * font.c (Ffont_face_attributes): Multiply pixel size before point
13584 conversion to avoid multiplying rounding error.
13585
135862008-06-23 Jason Rumney <jasonr@gnu.org>
13587
13588 * w32term.c (x_draw_glyph_string_background)
13589 (x_draw_glyph_string): Remove old bdf font code.
13590
13591 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13592
135932008-06-22 Kenichi Handa <handa@m17n.org>
13594
13595 * font.c (font_find_for_lface): Try the adstyle specified in
13596 the property of LFACE_FONT of LFACE (if any).
13597
135982008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13599 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13600
13601 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13602
136032008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13604
13605 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13606 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13607 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13608 (witness-emacs): Remove.
13609 (lisp, shortlisp): Move loaddefs.el earlier.
13610 (mostlyclean): Forget about witness-emacs.
13611
136122008-06-22 Glenn Morris <rgm@gnu.org>
13613
13614 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13615 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13616
136172008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13618
13619 * Makefile.in (PRECOMP): Remove.
13620 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13621 (witness-emacs): Run `compile-first'.
13622 (.el.elc): Use the new compile-onefile target.
13623
136242008-06-21 Kenichi Handa <handa@m17n.org>
13625
13626 * xftfont.c (xftfont_open): Handle QCembolden only when
13627 FC_EMBOLDEN is defined.
13628
136292008-06-21 Andreas Schwab <schwab@suse.de>
13630
13631 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13632 (.el.elc): Likewise.
13633
136342008-06-21 Miles Bader <miles@gnu.org>
13635
13636 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13637 build dir, not the lisp source dir.
13638
136392008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13640
13641 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13642 (bootstrapclean): Remove.
13643 (.el.elc): New rule.
13644 (PRECOMP): New var.
13645 (../lisp/subdirs.el): Remove.
13646 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13647 (witness-emacs): New target.
13648 (mostlyclean): Remove witness-emacs as well.
13649 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13650 Add witness-emacs dependency.
13651
136522008-06-20 Chong Yidong <cyd@stupidchicken.com>
13653
13654 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13655 defined by the font.
13656
136572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13658
13659 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13660 (bootstrap-clean): New target that keeps TAGS around.
13661 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13662 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13663
136642008-06-20 Jason Rumney <jasonr@gnu.org>
13665
13666 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13667 Remove obsolete font code.
13668
13669 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13670 to determine language support.
13671
136722008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13673
13674 * sysdep.c (cfsetspeed): New fun extracted from the code.
13675 (cfmakeraw): Move before first use.
13676
136772008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13678
13679 * sysdep.c (cfmakeraw): Provide fallback implementation.
13680 (serial_configure): Provide fallback implementation of cfsetspeed.
13681
136822008-06-20 Kenichi Handa <handa@m17n.org>
13683
13684 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13685 the pattern.
13686
13687 * fontset.c (fontset_from_font): Copy font_spec before changing
13688 the elements.
13689
13690 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13691
136922008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13693
13694 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13695 for explicit `font' parameters.
13696
13697 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13698
136992008-06-19 Kenichi Handa <handa@m17n.org>
13700
13701 * frame.c: Include <ctype.h>.
13702 (x_set_font_backend): Allow spacing characters in the X resource
13703 for FontBackend.
13704
137052008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13706
13707 * w32fns.c, xfns.c (Qfont_param): New var.
13708 (syms_of_w32fns): Initialize it.
13709 (x_default_font_parameter): Record explicit `font' into
13710 `font-parameter'.
13711
137122008-06-18 Kenichi Handa <handa@m17n.org>
13713
13714 * font.c (font_parse_xlfd): Fix previous change.
13715 (font_parse_fcname): Don't use :fc-unknown-spec.
13716 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13717 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13718 (font_add_log): Prepend the driver name to the resulting fonts.
13719
13720 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13721 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13722 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13723
13724 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13725 (QCembolden): New variables.
13726 (syms_of_xftfont): DEFSYM them.
13727 (xftfont_open): Call XftFontMatch. Don't trust the result of
13728 XftTextExtents8 if the pixel_size is less than 5.
13729
137302008-06-18 Andreas Schwab <schwab@suse.de>
13731
13732 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13733 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13734
137352008-06-18 Jason Rumney <jasonr@gnu.org>
13736
13737 * w32font.c (w32font_list, w32font_match): Add logging.
13738
13739 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13740
137412008-06-17 Chong Yidong <cyd@stupidchicken.com>
13742
13743 * font.c (font_parse_fcname): Store divider characters for
13744 unknown-spec list. For known key symbols, intern using correct
13745 symbol name.
13746
137472008-06-17 Kenichi Handa <handa@m17n.org>
13748
13749 * xfaces.c (realize_default_face): If the frame is not on window
13750 system, set the fontset of face to nil.
13751
137522008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13753
13754 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13755
137562008-06-16 Juanma Barranquero <lekktu@gmail.com>
13757
13758 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13759 (build_font_name_from_vector): Delete externs.
13760
13761 * xfaces.c (struct font_name): Don't declare.
13762
137632008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13764
13765 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13766
137672008-06-16 Chong Yidong <cyd@stupidchicken.com>
13768
13769 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13770
137712008-06-16 Juanma Barranquero <lekktu@gmail.com>
13772
13773 * font.c (Ffont_spec): Fix usage in docstring.
13774 (Ffont_face_attributes): Doc fix.
13775
137762008-06-16 Andreas Schwab <schwab@suse.de>
13777
13778 * font.c (Ffont_face_attributes): Fix definition.
13779
137802008-06-16 Jason Rumney <jasonr@gnu.org>
13781
13782 * font.h (font_style_symbolic_from_value): Remove.
13783
13784 * font.c (font_style_symbolic_from_value): Remove.
13785 (font_style_symbolic): Revert to pre 2008-06-13 version.
13786
13787 * w32font.c (w32_to_fc_weight): New function.
13788 (w32font_full_name, logfont_to_fcname): Use it.
13789
137902008-06-16 Kenichi Handa <handa@m17n.org>
13791
13792 * font.c (font_check_object): Delete it.
13793 (font_clear_cache): Check if a font-object is alive.
13794 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13795 font-object to nil.
13796 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13797 (font_at): Don't call font_check_object.
13798 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13799
138002008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13801
13802 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13803
138042008-06-16 Chong Yidong <cyd@stupidchicken.com>
13805
13806 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13807
138082008-06-15 Chong Yidong <cyd@stupidchicken.com>
13809
13810 * font.c (font_parse_fcname): Only one decimal point.
13811 (font_unparse_fcname): Handle data in family and foundry indices
13812 as symbols, not strings.
13813 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13814
13815 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13816
13817 * font.h (font_unparse_gtkname): Add prototype.
13818
138192008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13820
13821 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13822
138232008-06-15 Andreas Schwab <schwab@suse.de>
13824
13825 * font.c (font_update_drivers): Fix crash when no drivers match.
13826
138272008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13828
13829 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13830 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13831
138322008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13835
138362008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13837
13838 * process.c (Fserial_process_configure, Fprocess_send_eof):
13839 Use EQ to compare Lisp_Objects.
13840
138412008-06-13 Jason Rumney <jasonr@gnu.org>
13842
13843 * w32fns.c (Fw32_select_font): Remove old font API function.
13844
13845 * w32font.c (logfont_to_fcname): New function.
13846 (Fx_select_font): New font dialog function compatible with
13847 GTK/fontconfig version.
13848
13849 * font.c (font_style_symbolic_from_value): New function.
13850 (font_style_symbolic): Use it.
13851
13852 * font.h (font_style_symbolic_from_value): Declare new function.
13853
138542008-06-13 Juanma Barranquero <lekktu@gmail.com>
13855
13856 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13857 <font-width-table>: Fix typos in docstrings.
13858
138592008-06-13 Daniel Engeler <engeler@gmail.com>
13860
13861 These changes add serial port access.
13862 * process.c: Add HAVE_SERIAL.
13863 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13864 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13865 (list_processes_1, select_wrapper, Fstop_process)
13866 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13867 (status_notify): Modify to handle serial processes.
13868 [HAVE_SERIAL] (Fserial_process_configure)
13869 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13870 New functions.
13871 * process.h (struct Lisp_Process): Add `type'.
13872 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13873 New functions.
13874 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13875 serial ports.
b71ac3dd 13876 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13877 * w32.h: Add FILE_SERIAL.
13878 (struct _child_process): Add ovl_read, ovl_write.
13879
138802008-06-13 Kenichi Handa <handa@m17n.org>
13881
13882 * dispextern.h (enum lface_attribute_index): New member
13883 LFACE_FOUNDRY_INDEX.
13884
13885 * font.c (font_score): Delete arg alternate_families. Check only
13886 weight, slant, width, and size. Ignore the difference of alias
13887 style symbols.
13888 (font_sort_entites): Adjust for the above change. Reflect the
13889 order of font-driver to scores.
13890 (font_list_entities): Don't check alternate_familes here.
13891 (font_clear_prop): Handle foundry.
13892 (font_update_lface): Don't parse "foundry-family" form here.
13893 Handle FONT_FOUNDRY_INDEX.
13894 (font_find_for_lface): Likewise. Handle alternate families here.
13895 If registry is nil, try iso8859-1 and ascii-0.
13896 (font_open_for_lface): Pay attention to size in ENTITY.
13897 (font_open_by_name): Simplify by calling font_load_for_lface.
13898 (free_font_driver_list): Delete it.
13899 (font_update_drivers): Preserve the order of backends.
13900 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13901 of font_score and font_sort_entites.
13902 (font_update_sort_order): Likewise.
13903
13904 * xfaces.c (LFACE_FOUNDRY): New macro.
13905 (check_lface_attrs): Check foundry.
13906 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13907 (merge_face_vectors): Check foundry.
13908 (merge_face_ref): Likewise.
13909 (Finternal_set_lisp_face_attribute): Likewise.
13910 (x_update_menu_appearance): Likewise.
13911 (Finternal_get_lisp_face_attribute): Likewise.
13912 (lface_hash): Likewise.
13913 (lface_same_font_attributes_p): Likewise.
13914 (x_supports_face_attributes_p): Likewise.
13915 (tty_supports_face_attributes_p): Likewise.
13916 (Finternal_set_alternative_font_family_alist): Intern strings.
13917 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13918 (realize_default_face): Set LFACE_FOUNDRY (lface).
13919
13920 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13921 font-driver at first.
13922
13923 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13924
139252008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13926
13927 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13928
139292008-06-12 Jim Meyering <meyering@redhat.com>
13930
13931 Make unexec_free handle NULL the same way free does.
13932 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13933
139342008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13935
13936 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13937 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13938 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13939 (WEAK_ALIAS): Simplify.
13940 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13941 when searching a unibyte buffer.
13942
139432008-06-12 Chong Yidong <cyd@stupidchicken.com>
13944
13945 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13946
139472008-06-12 Juanma Barranquero <lekktu@gmail.com>
13948
13949 * w32font.c: Include ctype.h.
13950
139512008-06-11 Jason Rumney <jasonr@gnu.org>
13952
13953 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13954 misreported as space.
13955 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13956 as aliases for registry iso10646-1.
13957
139582008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13959
13960 * buffer.c (clone_per_buffer_values): Skip `name'.
13961
139622008-06-11 Chong Yidong <cyd@stupidchicken.com>
13963
13964 * font.c (font_parse_fcname): Fix last change; accept decimal
13965 points in font size.
13966
139672008-06-10 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32uniscribe.c (add_opentype_font_name_to_list):
13970 Skip non unicode fonts.
13971
139722008-06-10 Chong Yidong <cyd@stupidchicken.com>
13973
13974 * xfns.c (Fx_font_dialog): New function.
13975
13976 * gtkutil.c (xg_dialog_response_cb): Rename from
13977 xg_file_response_callback.
13978 (pop_down_dialog): Rename from pop_down_file_dialog.
13979 (xg_get_file_name): Callers changed.
13980 (xg_get_font_name): New function.
13981
13982 * gtkutil.h (xg_get_font_name): Insert prototype.
13983
139842008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13985
13986 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13987 x_underline_minimum_display_offset.
13988 (syms_of_xdisp): Declare it here rather than in xterm.c.
13989 * dispextern.h (underline_minimum_offset): Declare it.
13990 * w32term.c (x_draw_glyph_string): Use it.
13991 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13992 (syms_of_xterm): Don't declare it any more.
13993 (x_draw_glyph_string): Adjust to the new name.
13994
8719abec 139952008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13996
13997 * xterm.c (x_underline_minimum_display_offset): New var.
13998 (x_draw_glyph_string): Use it.
13999 (syms_of_xterm): Declare it.
14000
140012008-06-10 Chong Yidong <cyd@stupidchicken.com>
14002
14003 * font.c (font_parse_fcname): Accept GTK-style font names too.
14004
140052008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14006
14007 * dired.c (file_name_completion): Don't return t if the match is exact
14008 but with different capitalization.
14009 * minibuf.c (Ftry_completion): Simplify.
14010
14011 * window.c (Vwindow_point_insertion_type): New var.
14012 (set_window_buffer): Use it.
14013 (syms_of_window): Init and export it to Lisp.
14014
140152008-06-10 Kenichi Handa <handa@m17n.org>
14016
14017 * font.h (font_intern_prop): Prototype adjusted.
14018
14019 * font.c (font_intern_prop): New arg force_symbol.
14020 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14021 Adjust for the change of font_intern_prop.
14022
14023 * ftfont.c (ftfont_pattern_entity):
14024 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14025 (w32_registry):
14026 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14027 the change of font_intern_prop.
14028
140292008-06-09 Juanma Barranquero <lekktu@gmail.com>
14030
14031 * w32menu.c (digest_single_submenu): Declare extern.
14032
140332008-06-09 Jason Rumney <jasonr@gnu.org>
14034
14035 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14036
14037 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14038 (parse_single_submenu): Remove.
14039 (digest_single_submenu): Remove.
14040 (syms_of_w32menu): Don't initialise variables that have moved
14041 to menu.c.
14042 (set_frame_menubar): Sync with version in xmenu.c.
14043 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14044
14045 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14046 Make static again.
14047
140482008-06-09 Jason Rumney <jasonr@gnu.org>
14049
14050 Changes to w32 files related to the move of common menu code
14051 to menu.c on 2008-06-08 by Chong Yidong.
14052
14053 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14054 defs to w32gui.h.
14055 (single_keymap_panes, push_menu_item, push_menu_pane):
14056 Make globally visible.
14057
14058 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14059 (local_free, malloc_widget_value, free_widget_value)
14060 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14061 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14062 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14063 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14064 (menu_items, menu_items_allocated, menu_items_used)
14065 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14066 (init_menu_items, finish_menu_items, discard_menu_items)
14067 (grow_menu_items, push_submenu_start, push_submenu_end)
14068 (push_left_right_boundary, push_menu_pane, push_menu_item)
14069 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14070 (free_menubar_widget_tree_value, parse_single_submenu)
14071 (update_submenu_strings): Remove functions.
14072 (xmalloc_widget_value): Remove and declare extern.
14073
14074 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14075 (OBJ1): Build it.
14076
14077 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14078 (local_heap, local_alloc, local_free, malloc_widget_value)
14079 (free_widget_value): Define here.
14080
140812008-06-09 Kenichi Handa <handa@m17n.org>
14082
14083 * font.h (Qascii_0): Extern it.
14084
14085 * font.c (Qascii_0): New variable.
14086 (syms_of_font): DEFSYM it.
14087 (font_open_by_name): If the registry "iso8859-1" fails, try also
14088 "ascii-0".
14089
14090 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14091
140922008-06-08 Kenichi Handa <handa@m17n.org>
14093
14094 * .gdbinit (xfont): New command.
14095
140962008-06-08 Andreas Schwab <schwab@suse.de>
14097
14098 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14099 * Makefile.in (menu.o): Update dependencies.
14100
14101 * Makefile.in (obj): Always add menu.o.
14102 * emacs.c (main): Always call syms_of_menu.
14103 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14104
141052008-06-08 Chong Yidong <cyd@stupidchicken.com>
14106
14107 * Makefile.in: Compile menu.c.
14108
14109 * lisp.h: Declare syms_of_menu.
14110
14111 * emacs.c (main): Call syms_of_menu.
14112
14113 * keyboard.h: Relocate platform-independent menu definitions from
14114 xmenu.c.
14115
14116 * menu.c: New file. Relocate platform-independent menu
14117 definitions from xmenu.c. Suggested by Adrian Robert.
14118
14119 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14120 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14121 (menu_items_used, menu_items_n_panes)
14122 (menu_items_submenu_depth): Move to keyboard.h.
14123 (init_menu_items, finish_menu_items, unuse_menu_items)
14124 (discard_menu_items, restore_menu_items, save_menu_items)
14125 (grow_menu_items, push_submenu_start, push_submenu_end)
14126 (push_left_right_boundary, push_menu_pane, push_menu_item)
14127 (keymap_panes, single_keymap_panes, single_menu_item)
14128 (list_of_panes, list_of_items, find_and_call_menu_selection)
14129 (xmalloc_widget_value, free_menubar_widget_value_tree)
14130 (parse_single_submenu, digest_single_submenu)
14131 (update_submenu_strings): Move to menu.c.
14132
141332008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14134
14135 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14136
141372008-06-06 Miles Bader <miles@gnu.org>
14138
14139 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14140 face, not frame default.
14141
141422008-06-05 Martin Rudalics <rudalics@gmx.at>
14143
14144 * window.c (pop_up_windows, pop_up_frames)
14145 (display_buffer_reuse_frames, Vpop_up_frame_function)
14146 (Vdisplay_buffer_function, Veven_window_heights)
14147 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14148 (Vspecial_display_function, Vsame_window_buffer_names)
14149 (Vsame_window_regexps, split_height_threshold)
14150 (Vsplit_window_preferred_function): Move those vars to window.el.
14151 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14152 (Fdisplay_buffer): Move those functions to window.el.
14153 (syms_of_window): Remove corresponding declarations.
14154 (display_buffer): New function.
14155 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14156 * dispnew.c (Flast_nonminibuf_frame): New function.
14157 * buffer.c (Fpop_to_buffer): Move to window.el.
14158
141592008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14160
14161 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14162
141632008-06-05 Kenichi Handa <handa@m17n.org>
14164
14165 * coding.c (detect_coding): Fix previous change.
14166 (detect_coding_system): Likewise.
14167
141682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14169
14170 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14171
14172 * keymap.c (Vminibuffer_local_filename_must_match_map):
14173 Rename from Vminibuffer_local_must_match_filename_map.
14174 (syms_of_keymap):
14175 * minibuf.c (Fcompleting_read): Adjust accordingly.
14176 * commands.h: Rename declaration as well.
14177
141782008-06-05 Kenichi Handa <handa@m17n.org>
14179
14180 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14181 family name.
14182 (Ffont_put): Likewise.
14183
14184 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14185 current font-spec.
14186
14187 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14188 is unspecified.
14189
14190 * xfaces.c (realize_x_face): If the font-related face attributes
14191 are the same as those of default face, realize a new fontset from
14192 default->fontset.
14193 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14194
141952008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14196
14197 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14198 (move_it_in_display_line): New wrapper.
14199
14200 * window.c (window_scroll_pixel_based_preserve_x)
14201 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14202 (window_scroll_pixel_based, window_scroll_line_based):
14203 Use them to preserve column positions.
14204 (syms_of_window): Initialize them.
14205
14206 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14207 (HPOS . VPOS) pair.
14208
14209 * dispextern.h (move_it_in_display_line): Declare.
14210
142112008-06-05 Juanma Barranquero <lekktu@gmail.com>
14212
14213 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14214 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14215 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14216
142172008-06-04 Juanma Barranquero <lekktu@gmail.com>
14218
14219 * window.c (Fset_window_parameter): Doc fix.
14220 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14221
142222008-06-04 Joakim Verona <joakim@verona.se>
14223
14224 * window.h (struct window): Add new member window_parameters.
14225
14226 * window.c (Fwindow_parameters, Fwindow_parameter)
14227 (Fset_window_parameter): New defuns.
14228 (syms_of_window): Defsubr the new defuns.
14229 (make_window): Initialize window_parameters to nil.
14230
142312008-06-04 John Paul Wallington <jpw@pobox.com>
14232
14233 * eval.c (Fdefmacro): Doc fix.
14234
142352008-06-04 Kenichi Handa <handa@m17n.org>
14236
14237 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14238 Be sure to call setup_coding_system when we find a proper coding system.
14239 (detect_coding_system): Fix handling of coding->head_ascii.
14240
142412008-06-03 Andreas Schwab <schwab@suse.de>
14242
14243 * font.c (font_prop_validate_spacing): Fix last change.
14244
142452008-06-03 Kenichi Handa <handa@m17n.org>
14246
14247 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14248 (font_parse_fcname): Fix handling of unknown key.
14249
14250 * xfont.c (xfont_list): Try an alias.
14251
14252 * charset.c (char_charset): Return NULL if the arg charset_list is
14253 specified and C doesn't belong to any of them.
14254
142552008-06-02 Chip Coldwell <coldwell@redhat.com>
14256
14257 * font.c (font_pixel_size): Don't take cdr of an integer.
14258
142592008-06-02 Jim Meyering <meyering@redhat.com>
14260
14261 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14262 * alloc.c (xfree): Return right away for a NULL arg.
14263 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14264 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14265 * mac.c (create_apple_event_from_event_ref): Likewise.
14266 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14267 Likewise.
14268 * doprnt.c (doprnt1): Likewise.
14269 * frame.c (frame): Likewise.
14270 * keyboard.c (wipe_kboard): Likewise.
14271 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14272 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14273 * term.c (tty_default_color_capabilities, maybe_fatal)
14274 (delete_tty): Likewise.
14275 * w16select.c (string): Likewise.
14276 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14277 * w32bdf.c (w32_free_bdf_font): Likewise.
14278 * w32fns.c (w32_unload_font): Likewise.
14279 * w32font.c (w32font_close): Likewise.
14280 * window.c (size_window): Likewise.
14281 * xselect.c (receive_incremental_selection): Likewise.
14282 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14283 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14284 * w32.c (stat): Likewise.
14285
14286 Remove useless if-before-free tests.
14287 * editfns.c (Fset_time_zone_rule): Likewise.
14288 * lread.c (nosuffix): Likewise.
14289 * ralloc.c (get_bloc): Likewise.
14290 * regex.c (reg_free): Likewise.
14291 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14292 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14293 * xsmfns.c (smc_save_yourself_CB): Likewise.
14294
142952008-06-02 Kenichi Handa <handa@m17n.org>
14296
14297 * font.c (font_find_for_lface): Handle float font size.
14298 (font_open_for_lface): Likewise.
14299
14300 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14301 comparing the properties.
14302
143032008-06-01 Jason Rumney <jasonr@gnu.org>
14304
14305 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14306 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14307 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14308 Don't add empty script list.
14309 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14310
143112008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14312
14313 * Makefile.in (dot, dotdot): Remove, update users.
14314 ".." has been used elsewhere in the file for a long time.
14315 (LIBXT_STATIC): Remove conditional based on unused variable.
14316
143172008-06-01 Miles Bader <miles@gnu.org>
14318
14319 * xfaces.c (Vface_remapping_alist): New variable.
14320 (syms_of_xfaces): Initialize it.
14321 (enum named_merge_point_kind): New type.
14322 (struct named_merge_point): Add `named_merge_point_kind' field.
14323 (push_named_merge_point): Make cycle detection respect different
14324 named-merge-point kinds.
14325 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14326 Remove face-name alias resolution.
14327 (lface_from_face_name): New definition using
14328 `lface_from_face_name_no_resolve'.
14329 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14330 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14331 (get_lface_attributes): New definition that layers face-remapping on
14332 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14333 (lookup_basic_face): New function.
14334 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14335 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14336 `get_lface_attributes'.
14337 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14338 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14339 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14340
14341 * xdisp.c (init_iterator): Pass base_face_id through
14342 `lookup_basic_face' when we actually use it as a face-id.
14343 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14344 DEFAULT_FACE_ID.
14345
14346 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14347 lookup the initial face-id.
14348
14349 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14350
143512008-06-01 Juanma Barranquero <lekktu@gmail.com>
14352
14353 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14354 (Fremove_text_properties): Fix typos in docstrings.
14355
143562008-05-31 Kenichi Handa <handa@m17n.org>
14357
14358 * font.c (font_list_entities): Fix the car part of data to be
14359 stored in the cache.
14360
14361 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14362
143632008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14364
14365 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14366 Add a `test' argument so another predicate than `equal' can be used.
14367 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14368 (map_char_table): Remove unused vars `c' and `i'.
14369 * lisp.h (Foptimize_char_table): Adjust declaration.
14370 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14371
143722008-05-30 Kenichi Handa <handa@m17n.org>
14373
14374 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14375 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14376 defined.
14377
143782008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14381 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14382 frame-local settings for the same variable.
14383
143842008-05-30 Kenichi Handa <handa@m17n.org>
14385
14386 * fontset.c (Ffont_info): Move to font.c.
14387 (syms_of_fontset): Delete defsubr of Sfont_info.
14388
14389 * font.c (font_style_to_value, font_score): Delete casting of the
14390 args to xstcasecmp.
14391 (register_font_driver): Increment num_font_drivers only when
14392 registering the driver globally.
14393 (Ffont_info): Move from fontset.c. Handle a font object too.
14394 (syms_of_font): Defsubr Sfont_info.
14395
143962008-05-29 Kenichi Handa <handa@m17n.org>
14397
14398 * coding.h (enum define_coding_utf8_arg_index): New enum.
14399 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14400 coding_attr_utf_bom.
14401 (enum utf_bom_type): Rename from utf_16_bom_type.
14402 (struct utf_16_spec): Adjust for the above change.
14403 (struct coding_system): Add utf_8_bom in `spec' union.
14404
14405 * coding.c (CODING_UTF_8_BOM): New macro.
14406 (enum coding_category): Delete coding_category_utf_8, add
14407 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14408 coding_category_utf_8_sig.
14409 (CATEGORY_MASK_UTF_8): Delete it.
14410 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14411 (CATEGORY_MASK_UTF_8_SIG): New macros.
14412 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14413 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14414 CATEGORY_MASK_UTF_8_SIG.
14415 (CATEGORY_MASK_UTF_8): New macro.
14416 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14417 (detect_coding_utf_8): Check BOM.
14418 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14419 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14420 (encode_coding_utf_16): Likewise.
14421 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14422 (detect_coding, detect_coding_system): Handle utf-8-auto.
14423 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14424 (syms_of_coding): Fix setting up of Vcoding_category_table.
14425
144262008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14427
14428 * process.c (Faccept_process_output): If `millisec' is non-nil,
14429 `seconds' default to 0.
14430 (wait_reading_process_output): Also return non-nil if we read output
14431 from a non-running process.
14432
144332008-05-29 Jason Rumney <jasonr@gnu.org>
14434
14435 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14436 `raster' specified.
14437 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14438 in the uniscribe backend, but disallow any font that has no
14439 unicode subrange support.
14440
144412008-05-29 Juanma Barranquero <lekktu@gmail.com>
14442
14443 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14444 Fix typos in docstrings.
14445
144462008-05-29 Kenichi Handa <handa@m17n.org>
14447
14448 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14449 (Fx_family_fonts): Set frame correctly.
14450
144512008-05-28 Jason Rumney <jasonr@gnu.org>
14452
14453 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14454
144552008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14456
14457 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14458 calling build_annotations.
14459
144602008-05-28 Juanma Barranquero <lekktu@gmail.com>
14461
14462 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14463 (Fencode_coding_string):
14464 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14465 <latin-extra-code-table>: Fix typos in docstrings.
14466 (syms_of_coding) <coding-system-alist>: Doc fix.
14467 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14468
144692008-05-28 Kenichi Handa <handa@m17n.org>
14470
14471 * fontset.c (Ffont_info): Don't call font_close_object.
14472
14473 * font.c (font_parse_family_registry): Use Ffont_put to validate
14474 foundry and family.
14475 (font_delete_unmatched): Don't check spacing.
14476 (font_list_entities): Add spacing to the spec to list fonts.
14477
14478 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14479 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14480
14481 * coding.c (encode_coding_raw_text): Fix previous change.
14482 (encode_coding_object): When the dst_object is a buffer and is
14483 different from src_object, move gap to PT.
14484
144852008-05-27 Chong Yidong <cyd@stupidchicken.com>
14486
14487 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14488
144892008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14490
14491 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14492 all branches. Compute it differently.
14493
14494 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14495
144962008-05-27 Juanma Barranquero <lekktu@gmail.com>
14497
14498 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14499 into "else if () ... else ...".
14500
145012008-05-27 Jason Rumney <jasonr@gnu.org>
14502
14503 * w32font.c (w32font_open_internal): Determine if glyph indices
14504 are likely to work here.
14505
145062008-05-27 Chong Yidong <cyd@stupidchicken.com>
14507
14508 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14509 draw overlap glyphs with appropriate highlighting.
14510
145112008-05-27 Kenichi Handa <handa@m17n.org>
14512
14513 * xfont.c (xfont_open): Fix calculation of font->average_width.
14514
145152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14516
14517 * casefiddle.c (casify_object): Try to guess better whether the
14518 argument is a byte or a char.
14519
145202008-05-26 Andreas Schwab <schwab@suse.de>
14521
14522 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14523 Always send multiples of format size.
14524
14525 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14526
145272008-05-26 Jason Rumney <jasonr@gnu.org>
14528
14529 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14530 (compute_metrics): Don't set failure if we just cleared the cache.
14531 (w32_weight_table): Remove unused variable.
14532 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14533 backwards compatibility.
14534
145352008-05-25 Kenichi Handa <handa@m17n.org>
14536
14537 * w32term.c (x_draw_glyph_string):
14538 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14539
14540 * xfaces.c: Delete unused function prototypes.
14541 (xstrlwr, font_frame): Delete them.
14542 (clear_face_cache): Delete unused variable.
14543
14544 * xftfont.c (xftfont_open): Delete unused variable.
14545 If underline_thickness is not 1, adjust underline_position.
14546
14547 * ftxfont.c (ftxfont_open): Delete unused variable.
14548
14549 * fontset.c (face_for_char): Optimize for the case of no charset
14550 property.
14551
14552 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14553 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14554 (otf_open, font_otf_capability, generate_otf_features)
14555 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14556 Comment out by surrounding "#if 0" and "#endif" for the moment.
14557 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14558 (syms_of_font): Codes for accessing above commented out.
14559
145602008-05-24 Eli Zaretskii <eliz@gnu.org>
14561
14562 * w32proc.c: Include dispextern.h.
14563
14564 * w32.c: Include dispextern.h.
14565
145662008-05-23 Juanma Barranquero <lekktu@gmail.com>
14567
14568 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14569 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14570 Fix typos in docstrings.
14571
145722008-05-23 Jason Rumney <jasonr@gnu.org>
14573
14574 * xsmfns.c: Remove includes that are already included by config.h.
14575
145762008-05-23 Kenichi Handa <handa@m17n.org>
14577
14578 * charset.c (Qemacs, charset_emacs): New variables.
14579 (char_charset): Fix for non-Unicode characters.
14580 (syms_of_charset): Define charset_emacs.
14581
14582 * w32term.c (x_draw_glyph_string): Be sure to update
14583 s->underline_thickness and s->underline_position. Be sure to draw
14584 underline within the current line area.
14585
14586 * xterm.c (x_draw_glyph_string): Be sure to update
14587 s->underline_thickness and s->underline_position. Be sure to draw
14588 underline within the current line area.
14589
14590 * fontset.c: Delete unused variables and add casting for char *
14591 throughout the file.
14592 (fontset_font): Try the fallback fonts of the current fontset
14593 before consulting the default fontset.
14594
14595 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14596
14597 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14598
145992008-05-22 Jason Rumney <jasonr@gnu.org>
14600
14601 * font.c: Don't include strings.h.
14602
14603 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14604
14605 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14606 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14607 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14608 to call xstrcasecmp.
14609
14610 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14611
14612 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14613
14614 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14615
14616 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14617
146182008-05-22 Kenichi Handa <handa@m17n.org>
14619
14620 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14621
14622 * font.c (font_prop_validate_style): Adjust for the format
14623 change of font_style_table.
14624
14625 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14626 two args.
14627
14628 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14629 two args.
14630
146312008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14632
14633 * minibuf.c (keys_of_minibuf): Delete.
14634 * lisp.h (keys_of_minibuf): Delete.
14635 * emacs.c (main): Don't call keys_of_minibuf.
14636
146372008-05-22 Kenichi Handa <handa@m17n.org>
14638
14639 * ftfont.c (ftfont_resolve_generic_family): Rename from
14640 ftfont_list_generic_family. Return a single family for each
14641 generic family.
14642 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14643 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14644 Call font_add_log.
14645 (ftfont_match): Call font_add_log.
14646
14647 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14648 (FONT_DEBUG): Define it.
14649 (font_add_log): Extern it.
14650 (font_assert): Rename from xassert.
14651
14652 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14653 (xfont_list_family): Call font_add_log.
14654 (xfont_match): Likewise.
14655 (memq_no_quit): Delete.
14656
14657 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14658 call of Ffont_xlfd_name.
14659
14660 * xfaces.c (struct table_entry, slant_table, weight_table)
14661 (swidth_table): Move to font.c.
14662
14663 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14664 xassert are changed to font_assert. Delete many unused variables.
14665 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14666 New variables.
14667 (struct table_entry): Move from xfaces.c and modified.
14668 (weight_table, slant_table, width_table): Move from xfaces.c and
14669 contents adjusted for the change of struct table_entry.
14670 (font_style_to_value, font_style_symbolic): Adjust for the
14671 format change of font_style_table.
14672 (font_parse_family_registry): Don't overwrite existing foundry and
14673 family of font_spec.
14674 (font_score): Fix calculation of diff for sizes.
14675 (font_sort_entites): Call font_add_log.
14676 (font_delete_unmatched): Return a newly created list.
14677 (font_list_entities): Fix previous change. Call font_add_log.
14678 (font_matching_entity, font_open_entity, font_close_entity):
14679 Call font_add_log.
14680 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14681 (Finternal_set_font_style_table): Delete.
14682 (BUILD_STYLE_TABLE): New macro.
14683 (build_style_table): New function.
14684 (Vfont_log, font_log_env_checked): New variables.
14685 (font_add_log): New function.
14686 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14687 Declare Lisp variables "font-weight-table", "font-slant-table",
14688 "font-width-table", and "font-log". Initialize font_style_table.
14689
146902008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14691
14692 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14693
146942008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14695 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14696
14697 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14698 (Vframe_alpha_lower_limit): New variable.
14699 (x_set_alpha): New function.
14700
14701 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14702
14703 * xfns.c (x-create-frame, Qalpha):
14704 Initialize the frame parameter `alpha'.
14705 * xterm.c (OPAQUE, OPACITY): New.
14706 (x_set_frame_alpha): New function.
14707 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14708
14709 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14710 * w32fns.c (w32_frame_parm_handlers): Likewise.
14711
147122008-05-20 Jason Rumney <jasonr@gnu.org>
14713
14714 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14715 truetype fonts to opentype list.
14716
147172008-05-20 Juanma Barranquero <lekktu@gmail.com>
14718
14719 * fontset.c (Ffontset_info): Doc fix.
14720 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14721 <ignore-relative-composition>: Fix typos in docstrings.
14722
14723 * font.c (syms-of-font) <font-encoding-alist>:
14724 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14725 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14726 (Ffont_otf_alternates): Doc fixes.
14727
147282008-05-20 Kenichi Handa <handa@m17n.org>
14729
14730 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14731 font.h through out the file.
14732 (FONT_DRIVERS): Rename from FONTOBJ.
14733 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14734 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14735
14736 * emacs.c (main): Call syms_of_font unconditionally.
14737
14738 * font.h (find_font_encoding): Extern it.
14739
14740 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14741 fontset.c.
194d44e7 14742 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14743 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14744 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14745 only when HAVE_WINDOW_SYSTEM is defined.
14746 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14747 when HAVE_WINDOW_SYSTEM is defined.
14748
14749 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14750 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14751
14752 * xfaces.c: Include font.h unconditionally.
14753 (merge_face_ref, merge_face_vectors)
14754 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14755
147562008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14757
14758 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14759 indirect_variable.
14760 * eval.c (lisp_indirect_variable): New fun.
14761 (Fuser_variable_p): Use it.
14762
147632008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14764
14765 * lisp.h (indirect_variable):
14766 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14767 Use Lisp_Symbol pointers rather than Lisp_Object.
14768 Adjust callers.
14769 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14770 To this end, change calling-convention.
14771
14772 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14773 if some non-hidden buffers are selected by string&pred.
14774
147752008-05-19 Chong Yidong <cyd@stupidchicken.com>
14776
14777 * process.c (wait_reading_process_output): Always check status
14778 when in batch mode.
14779
147802008-05-19 Kenichi Handa <handa@m17n.org>
14781
14782 * font.c (font_list_entities): Fix handling of cache.
14783 (font_matching_entity): Likewise.
14784
14785 * ftfont.c (cs_iso8859_1): Delete.
14786 (ft_face_cache): New variable.
14787 (struct ftfont_info): New member fc_charset_idx.
14788 (ftfont_build_basic_charsets): Delete.
14789 (fc_charset_table): New variable.
14790 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14791 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14792 Callers changed.
14793 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14794 (ftfont_spec_pattern): New argument fc_charset_idx.
14795 Check registry more rigidly. Change callers.
14796 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14797 change of :font-entity property of the font.
14798
14799 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14800 property of the font.
14801
148022008-05-18 Juanma Barranquero <lekktu@gmail.com>
14803
14804 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14805 (Funencodable_char_position, Fcheck_coding_systems_region)
14806 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14807 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14808 (Ffind_operation_coding_system, Fset_coding_system_priority)
14809 (Fcoding_system_eol_type): Doc fixes.
14810
148112008-05-17 Glenn Morris <rgm@gnu.org>
14812
14813 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14814
148152008-05-16 Eli Zaretskii <eliz@gnu.org>
14816
14817 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14818 and st_gid.
14819
14820 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14821 HAVE_WINDOW_SYSTEM is not defined.
14822
14823 * xfaces.c (merge_face_ref, merge_face_vectors)
14824 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14825 HAVE_WINDOW_SYSTEM is defined.
14826 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14827
148282008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14829
14830 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14831
148322008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14833
14834 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14835
148362008-05-15 Kenichi Handa <handa@m17n.org>
14837
14838 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14839 preference.
14840
148412008-05-15 Glenn Morris <rgm@gnu.org>
14842
14843 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14844
148452008-05-15 Chong Yidong <cyd@stupidchicken.com>
14846
14847 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14848 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14849
14850 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14851
148522008-05-15 Kenichi Handa <handa@m17n.org>
14853
14854 * ftfont.c (ftfont_list): Downcase family name to check generic
14855 families.
14856
14857 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14858 font-spec for QCfont value.
14859
14860 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14861 buffer. Check the return value of it.
14862
148632008-05-14 Jason Rumney <jasonr@gnu.org>
14864
14865 * w32term.c (w32_get_glyph_overhangs): Remove.
14866 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14867
148682008-05-14 Kenichi Handa <handa@m17n.org>
14869
14870 * font.c (font_prop_validate): Make nil a valid value.
14871 (font_clear_cache): Check if the cached vector of entities is nil
14872 or not.
14873
148742008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14875
14876 * emacs.c (main_thread): Conditionalize on
14877 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14878 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14879
14880 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14881 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14882 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14883
148842008-05-14 Kenichi Handa <handa@m17n.org>
14885
14886 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14887 has no corresponding coding system.
14888
148892008-05-14 Jason Rumney <jasonr@gnu.org>
14890
14891 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14892
14893 * w32font.h (w32font_open_internal): Update declaration.
14894
14895 * w32font.c (w32font_open_internal): Change last argument from
14896 w32font_info struct to font object. Fill in font object from
14897 font_entity. Get Outline metrics if possible. Use them to
14898 calculate underline position and thickness. Use xlfd name as name
14899 property. Don't set codepage.
14900 (w32font_open): Pass font_object to w32font_open_internal. Don't
14901 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14902 (w32font_draw): Use s->font.
14903 (clear_cached_metrics): Don't clear non-existent blocks.
14904
14905 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14906 font was not found.
14907 (x_draw_glyph_string): Use underline position and thickness from font.
14908
14909 * w32uniscribe.c (uniscribe_open): Pass font_object to
14910 w32font_open_internal.
14911
149122008-05-14 Kenichi Handa <handa@m17n.org>
14913
14914 These changes are to delete all legacy font-handling codes, and
14915 make Emacs use only font-backends.
14916
14917 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14918 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14919
14920 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14921
14922 * charset.h (Vcharset_non_preferred_head)
14923 (Vcurrent_iso639_language): Extern them.
14924
14925 * charset.c (Vcharset_non_preferred_head): New variable.
14926 (Vcurrent_iso639_language): New variable.
14927 (syms_of_charset): Declare it as a Lisp variable.
14928 (char_charset): Don't check non preferred charsets. As a last
14929 resort, return charset_unicode.
14930 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14931
14932 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14933 conditionals. Don't check enable_font_backend. Delete all codes
14934 used only when USE_FONT_BACKEND is not defined.
14935
14936 * dispextern.h (struct glyph_string): Change type of `font' to
14937 `struct font *'.
14938 (struct glyph_string): New member underline_position and
14939 underline_thickness.
14940 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14941 (struct face): Change type of `font' to `struct font *'. Remove
14942 members `font_name', `font_info_id'.
14943 (per_char_metric, encode_char): Delete externs.
14944 (calc_pixel_width_or_height): Adjust the prototype.
14945
14946 * emacs.c (enable_font_backend): Delete extern.
14947 (main): Don't set enable_font_backend. Don't check the command
14948 line argument "-disable-font-backend".
14949
14950 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14951 (enum font_property_index): New members FONT_DPI_INDEX,
14952 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14953 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14954 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14955 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14956 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14957 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14958 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14959 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14960 (struct font_spec, struct font_entity): New structs.
14961 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14962 (struct font): Many members from old "struct font_info" moved to
14963 here. Members font and entity deleted.
14964 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14965 the new font-related objects.
14966 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14967 (CHECK_FONT_GET_OBJECT): Likewise.
14968 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14969 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14970 (struct font_driver): New members case_sensitive anc check. Type
14971 of the member list and open changed.
14972 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14973 (font_symbolic_width, font_find_object, font_get_spec)
14974 (font_set_lface_from_name): Delete extern.
14975 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14976
14977 * font.c: Include <strings.h>.
14978 (enable_font_backend): Delete it.
14979 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14980 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14981 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14982 (null_string): Delete it.
14983 (null_vector): Make it static.
14984 (font_family_alist): Delete it.
14985 (Qnormal): Extern it.
14986 (QCextra, QClanguage): Delete it.
14987 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14988 (font_make_spec, font_make_entity, font_make_object)
14989 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14990 the string. Callers changed.
14991 (font_pixel_size): Adjusted for the format change of font-related
14992 objects.
14993 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14994 (font_style_to_value, font_style_symbolic): New function.
14995 (build_font_family_alist): Delete it.
14996 (font_registry_charsets): Use Fassoc_string instead of
14997 assq_no_quit.
14998 (font_prop_validate_symbol): Don't return null_string.
14999 (font_prop_validate_style): Adjusted for the change of
15000 style-related values in a font vector.
15001 (font_property_table): Delete entries for QClanguage and
15002 QCantialias, add entries for QCavgwidth.
15003 (get_font_prop_index): Delete the 2nd argument FROM.
15004 (font_prop_validate): Arguments changed.
15005 (font_put_extra): Adjusted for the change of font-related objects.
15006 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15007 (font_parse_fcname, font_unparse_fcname)
15008 (font_prepare_composition): Likewise.
15009 (font_parse_family_registry): Renamed from font_merge_old_spec.
15010 (otf_open): Delete the 1st arg entity.
15011 (font_otf_capability): Adjusted for the above change.
15012 (font_score): New arg alternate_families. Adjusted for the change
15013 of font-related objects.
15014 (font_sort_entites): New arg best_only.
15015 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15016 Delete them.
15017 (font_match_p): Check alternate families.
15018 (font_find_object): Delete it.
15019 (font_check_object): New function.
15020 (font_clear_cache): Adjusted for the change of font-related objects.
15021 (font_delete_unmatched): New arg.
15022 (font_list_entities): Call font_driver->list with a spec that
15023 doesn't specify style-related properties.
15024 (font_matching_entity): Arguments changed. Caller changed.
15025 (font_open_entity): Adjusted for the change of font-related objects.
15026 (font_close_object, font_has_char, font_encode_char)
15027 (font_get_name, font_get_spec): Likewise.
15028 (font_spec_from_name, font_clear_prop, font_update_lface):
15029 New functions.
15030 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15031 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15032 (font_at): Adjusted for the change of font-related objects.
15033 (font_range): New function.
15034 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15035 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15036 (Fcopy_font_spec, Fmerge_font_spec): New function.
15037 (Ffont_family_list): Renamed from list-families.
15038 (Finternal_set_font_style_table): Arguments changed.
15039 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15040 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15041 change of font-related objects.
15042 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15043
15044 * fontset.h (struct font_info): Delete it. Most members go to
15045 struct font.
15046 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15047 (enum FONT_SPEC_INDEX): Delete it.
15048 (font_info, list_fonts_func, load_font_func, query_font_func)
15049 (set_frame_fontset_func, find_ccl_program_func)
15050 (get_font_repertory_func, new_fontset_from_font_name): Delete
15051 externs.
15052 (fontset_from_font_name): Extern it.
15053 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15054 (FONT_INFO_FROM_FACE): Deleted.
15055 (face_for_font): Adjust prototype.
15056
15057 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15058 conditionals. Don't check enable_font_backend. Delete all codes
15059 used only when USE_FONT_BACKEND is not defined.
15060 (get_font_info_func, list_font_func, load_font_func)
15061 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15062 (get_font_repertory_func): Delete them.
15063 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15064 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15065 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15066 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15067 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15068 (fontset_compare_rfontdef): New function.
15069 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15070 rfont-defs by qsort. Adjusted for the change of font-group vector.
15071 (load_font_get_repertory): Deleted.
15072 (fontset_find_font): Use new macros to ref/set elements of
15073 font-def and rfont-def.
15074 (fontset_font): Fix the timing of remembering that no font for C.
15075 (free_face_fontset): Do nothing if the face has no fontset.
15076 (face_suitable_for_char_p): Use new macros to ref/set elements of
15077 rfont-def.
15078 (face_for_char): Likewise. Call face_for_char with font_object.
15079 (fs_load_font): Delete. Delete #pragma surrounding it.
15080 (fs_query_fontset): Use strcasecmp instead of strcmp.
15081 (generate_ascii_font_name): Adjusted for the format change of
15082 font-spec.
15083 (Fset_fontset_font): Likewise. Use new macros to set elements of
15084 font-def.
15085 (Fnew_fontset): Use font_unparse_xlfd to generate
15086 FONTSET_ASCII (fontset).
15087 (new_fontset_from_font_name): Deleted.
15088 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15089 a fontset is already created for the font. FIx updating of
15090 Vfontset_alias_alist.
15091 (fontset_ascii_font): Deleted.
15092 (Ffont_info): Adjusted for the format change of font-spec.
15093 (Finternal_char_font): Likewise.
15094 (Ffontset_info): Likewise.
15095 (syms_of_fontset): Don't check load_font_func.
15096
15097 * fns.c (internal_equal): Handle PREV_FONT.
15098
15099 * frame.h: Delete USE_FONT_BACKEND conditional.
15100
15101 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15102 conditionals. Don't check enable_font_backend. Delete all codes
15103 used only when USE_FONT_BACKEND is not defined.
15104 (x_set_font): Call x_new_font, not x_new_fontset2.
15105 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15106 already set for the frame.
15107
15108 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15109 a font-entity by font_make_entity. Use font_intern_prop instead
15110 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15111 font property. If a font is scalable, set avgwidth property to 0.
15112 Set font-entity property by font_put_extra.
15113 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15114 (ffont_driver): Adjusted for the change of struct font_driver.
15115 (ftfont_spec_pattern): New function.
15116 (ftfont_list): Return a list, not vector.
15117 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15118 (ftfont_list_family): Don't downcase names.
15119 (ftfont_free_entity): Deleted.
15120 (ftfont_open): Return a font-object. Adjusted for the change of
15121 struct font. Get underline_thickness and underline_position from
15122 font property. Don't update dpyinfo->smallest_font_height and
15123 dpyinfo->smallest_char_width.
15124 (ftfont_close): Don't free `struct font'.
15125 (ftfont_has_char): Adjusted for the format change of font-entity.
15126 (ftfont_encode_char, ftfont_text_extents): Likewise.
15127
15128 * ftxfont.c (ftxfont_list): Return a list, not vector.
15129 (ftxfont_open): Return a font-object. Adjusted for the change of
15130 struct font. Get underline_thickness and underline_position from
15131 font property. Don't update dpyinfo->smallest_font_height and
15132 dpyinfo->smallest_char_width.
15133 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15134 (ftxfont_draw): Adjusted for the change of struct font.
15135
15136 * image.c (image_ascent): Don't include "charset.h". Include
15137 "character.h" and "font.h".
15138
15139 * lisp.h (enum pvec_type): New member PREV_FONT.
15140 (Fassoc_string): EXFUN it.
15141
15142 * print.c: Include font.h.
15143 (print_object): Handle font-related objects.
15144
15145 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15146 conditionals. Don't check enable_font_backend. Delete all codes
15147 used only when USE_FONT_BACKEND is not defined.
15148 (handle_auto_composed_prop): Do nothing if it->f is not on a
15149 window system. Check how many following characters can be
15150 displayed by the same font.
15151 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15152 'struct font *'.
15153 (get_char_face_and_encoding): Assign the whole encoding task to
15154 the `encode-char' method of a font driver.
15155 (fill_composite_glyph_string): Adjusted for the change of `struct
15156 face' and `struct glyph_string'.
15157 (fill_glyph_string): Likewise.
15158 (get_per_char_metric): Arguments changed.
15159 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15160 and `struct glyph_string'.
15161 (produce_stretch_glyph, calc_line_height_property)
15162 (x_produce_glyphs): Likewise.
15163
15164 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15165 conditionals. Don't check enable_font_backend. Delete all codes
15166 used only when USE_FONT_BACKEND is not defined. Use
15167 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15168 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15169 (Qp): Extern them.
15170 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15171 Deleted.
15172 (struct font_name): Deleted.
15173 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15174 (compare_fonts_by_sort_order): New function.
15175 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15176 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15177 Deleted.
15178 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15179 compare_fonts_by_sort_order.
15180 (Fx_font_family_list): Call Ffont_family_list.
15181 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15182 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15183 (face_symbolic_slant, face_symbolic_swidth)
15184 (split_font_name_into_vector, build_font_name_from_vector)
15185 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15186 (font_rescale_ratio, split_font_name, build_font_name)
15187 (free_font_names, sort_fonts, x_face_list_fonts)
15188 (face_font_available_p, sorted_font_list, cmp_font_names)
15189 (font_list_1, concat_font_list, font_list, remove_duplicates):
15190 Deleted.
15191 (Fx_list_fonts): Use Ffont_list.
15192 (LFACE_AVGWIDTH): Deleted.
15193 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15194 by FONTP.
15195 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15196 (set_lface_from_font_name): Delete it.
15197 (set_lface_from_font): Renamed from
15198 set_lface_from_font_and_fontset. Caller changed. Don't set
15199 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15200 for face.
15201 (merge_face_vectors): Copy font-spec if necessary.
15202 Clear properties of the font-spec if necessary.
15203 (merge_face_ref): Clear properties of the font-spec if necessary.
15204 (Finternal_set_lisp_face_attribute): Likewise.
15205 (set_font_frame_param): Use font_load_for_lface to load a
15206 font-object, and call Fmodify_frame_parameters with it.
15207 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15208 font name by Ffont_xlfd_name.
15209 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15210 QCslant, and QCwidth.
15211 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15212 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15213 Compare fonts by EQ.
15214 (lookup_non_ascii_face): Deleted.
15215 (face_for_font): The 2nd argument changed.
15216 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15217 Check atomic font properties by case insensitive.
15218 (realize_non_ascii_face): Set face->overstrike correctly.
15219 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15220 (dump_realized_face): Get font name from
15221 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15222
15223 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15224 conditionals. Don't check enable_font_backend. Delete all codes
15225 used only when USE_FONT_BACKEND is not defined.
15226 (xic_create_xfontset): Original code deleted and renamed from
15227 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15228 (x_make_gc): Don't set GCFont in GCs.
15229 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15230 opened by "fixed".
15231 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15232 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15233 get_font_repertory_func.
15234
15235 * xfont.c: Include <stdlib.h> and "ccl.h".
15236 (struct xfont_info): New structure.
15237 (xfont_query_font): Deleted.
15238 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15239 moved from xterm.c.
15240 (xfont_driver): Adjusted for the change of struct font_driver.
15241 (compare_font_names): New function.
15242 (xfont_list_pattern): Sort font names case insensitively. Make
15243 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15244 (xfont_list): Return a list, not vector.
15245 (xfont_match): If the font doesn't have QCname property, generate
15246 a name from the other font properties.
15247 (xfont_open): Return a font-object. Adjusted for the change of
15248 struct font. Get underline_thickness and underline_position from
15249 font property. Don't update dpyinfo->smallest_font_height and
15250 dpyinfo->smallest_char_width.
15251 (xfont_close): Don't free struct font.
15252 (xfont_prepare_face): Adjusted for the change of struct font.
15253 (xfont_done_face): Deleted.
15254 (xfont_has_char): Adjusted for the change of struct font.
15255 (xfont_encode_char, xfont_draw): Likewise.
15256 (xfont_check): New function.
15257
15258 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15259 callback function.
15260 (xftfont_match): Adjusted for the format change of font-entity.
15261 (xftfont_open): Adjusted for the format change of font-entity and
15262 font-object. Adjusted for the change of struct font. Return a
15263 font-object. Don't update dpyinfo->smallest_font_height and
15264 dpyinfo->smallest_char_width.
15265 (xftfont_close): Block input while calling XftFontClose.
15266 (xftfont_prepare_face): Don't block input while calling
15267 xftfont_get_colors. Adjusted for the change of struct font.
15268 (xftfont_shape): Return value of error case fixed.
15269
15270 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15271
15272 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15273 conditionals.
15274 (FONT_WIDTH): Return (f)->max_width.
15275 (struct x_display_info): Delete member `font'.
15276 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15277 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15278 (struct x_output): Change type of `font' to `struct font *'.
15279
15280 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15281 conditionals. Don't check enable_font_backend. Delete all codes
15282 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15283 (x_per_char_metric, x_encode_char): Deleted.
15284 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15285 (x_compute_glyph_string_overhangs): Adjusted for the change of
15286 `struct face'.
15287 (x_draw_glyph_string_foreground)
15288 (x_draw_composite_glyph_string_foreground): Likewise.
15289 (x_draw_glyph_string): Likewise. Use font->underline_position and
15290 font->underline_thickness.
15291 (x_new_font): Renamed from x_new_fontset2.
15292 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15293 (x_check_font): Call `check' method of a font driver.
15294 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15295 (x_query_font, x_get_font_repertory): Deleted.
15296 (x_find_ccl_program): Renamed and moved to xfont.c.
15297 (x_redisplay_interface): Adjusted for the change of `struct
15298 redisplay_interface'.
15299
15300 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15301 conditionals. Don't check enable_font_backend. Delete all codes
15302 used only when USE_FONT_BACKEND is not defined. Surround non-used
15303 code by "#ifdef OLD_FONT" and "endif".
15304 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15305
15306 * w32font.h (struct w32font_info): New member.
15307 (FONT_COMPAT): New macro.
15308 (w32font_open_internal): Prototype adjusted.
15309
15310 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15311 OLD_FONT" and "endif".
15312
15313 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15314 conditionals. Don't check enable_font_backend. Delete all codes
15315 used only when USE_FONT_BACKEND is not defined.
15316 (w32font_open): Return a font-object. Make a font-object by
15317 font_make_object. Adjusted for the change of struct w32font_info.
15318 (w32font_close): Don't free struct font. Adjusted for the change
15319 of struct w32font_info.
15320 (w32font_encode_char, w32font_text_extents, w32font_draw):
15321 Adjusted for the change of struct w32font_info.
15322 (w32font_draw): Likewise.
15323 (w32font_list_internal): Return a list, not vector.
15324 (w32font_open_internal): Change the 4th arg to font-object.
15325 Adjusted for the change of struct w32font_info and font-object format.
15326 (add_font_name_to_list): Don't downcase names.
15327 (w32_enumfont_pattern_entity): Make a font-entity by
15328 font_make_entity. Adjusted for the format change of font-entity.
15329 Use FONT_SET_STYLE to set a style-related font property. If a
15330 font is scalable, set avgwidth property to 0. Set font-entity
15331 property by font_put_extra.
15332 (font_matches_spec): Adjusted for the format change of font-entity.
15333 (w32_weight_table, w32_decode_weight): New variables.
15334 (w32_encode_weight): New function.
15335 (fill_in_logfont): Adjusted for the format change of font-spec.
15336 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15337 weight value.
15338 (w32font_driver): Adjusted for the change of struct font_driver.
15339
15340 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15341 conditionals. Don't check enable_font_backend. Surround non-used
15342 code by "#ifdef OLD_FONT" and "endif".
15343 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15344 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15345
15346 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15347 conditionals. Don't check enable_font_backend. Delete all codes
15348 used only when USE_FONT_BACKEND is not defined. Surround non-used
15349 code by "#ifdef OLD_FONT" and "endif".
15350
15351 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15352 (uniscribe_open): Return value changed to font-object.
15353 Adjusted for the format change of font-object.
15354 (uniscribe_otf_capability): Adjusted for the change of struct font.
15355 (add_opentype_font_name_to_list): Don't downcase names.
15356 (uniscribe_font_driver): Adjusted for the change of struct
15357 font_driver.
15358
153592008-05-13 Chong Yidong <cyd@stupidchicken.com>
15360
15361 * dispnew.c (update_frame_1): Check if tty output is still valid
15362 before flushing it.
15363
153642008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15365
15366 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15367 to Gtk+ menus.
15368
153692008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15370
15371 * dired.c (file_name_completion): Tweak the code so as to always do it
15372 in a single pass. Tighten the scope of some variables.
15373
15374 * dired.c (Qdefault_directory): New var.
15375 (file_name_completion): Use it instead of Fexpand_file_name.
15376 (syms_of_dired): Initialize it.
15377
153782008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15379
15380 * fileio.c (double_dollars): Remove dead code.
15381
153822008-05-10 Eli Zaretskii <eliz@gnu.org>
15383
15384 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15385 Mention w32-get-true-file-attributes in doc string.
15386
15387 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15388
153892008-05-09 Glenn Morris <rgm@gnu.org>
15390
15391 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15392 2008-04-23.
15393
153942008-05-09 Eli Zaretskii <eliz@gnu.org>
15395
15396 Support for reporting owner and group of each file on MS-Windows:
15397 * dired.c (stat_uname, stat_gname): New functions, with special
15398 implementation for w32.
15399 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15400
15401 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15402 (dflt_group_name): New static variable.
15403 (dflt_group): Rename from the_group.
15404 (init_user_info): Init dflt_group fields. Get user's group name
15405 from LookupAccountSid.
15406 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15407 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15408 New initialization states.
15409 (globals_of_w32): Initialize them to zero. Initialize the default
15410 group name to "None".
15411 (GetFileSecurity_Name): New global var, the name of the function
15412 to call for GetFileSecurity.
15413 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15414 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15415 (get_file_security, get_security_descriptor_owner)
15416 (get_security_descriptor_group, is_valid_sid)
15417 (get_file_security_desc, get_rid, get_name_and_id)
15418 (get_file_owner_and_group): New functions.
15419 (stat): Use get_file_security_desc and get_file_owner_and_group to
15420 report the owner and primary group of each file. Don't ignore the
15421 high 32 bits of file's size, now that st_size is 64-bit wide.
15422 Fix test when to get true file attributes.
15423 (init_user_info): Use get_rid instead of equivalent inline code.
15424 (fstat): Don't ignore the high 32 bits of file's size.
15425
154262008-05-09 Chong Yidong <cyd@stupidchicken.com>
15427
15428 * image.c (png_load): Use correct bit-depth for setting background
15429 color.
15430
154312008-05-08 Eli Zaretskii <eliz@gnu.org>
15432
15433 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15434 epa-hook.elc.
15435
154362008-05-08 Juanma Barranquero <lekktu@gmail.com>
15437
15438 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15439
154402008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15441
15442 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15443 because the original parameters are in pure storage now.
15444 (mac_window): Remove unused params. Update callers.
15445
154462008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15447
15448 * lread.c (substitute_object_recurse): Use lower-level primitives.
15449 Don't signal errors when traversing sub-char-tables.
15450 Don't loop over all the possible characters when traversing char-tables.
15451
15452 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15453 just like we do in print.c.
15454
154552008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15456
15457 * minibuf.c (Ftry_completion): Remove code left over from when we used
15458 scmp instead of Fcompare_strings.
15459
154602008-05-04 Juanma Barranquero <lekktu@gmail.com>
15461
15462 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15463
154642008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15465
15466 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15467 Create bitmap context in native byte order.
15468
15469 * macterm.c (XDrawLine)
15470 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15471 context in native byte order.
15472
154732008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15474
15475 * config.in: Regenerate.
15476
15477 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15478 New definitions for Image I/O support.
15479 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15480 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15481 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15482 (mac_data_provider_release_data, image_load_image_io)
15483 [USE_MAC_IMAGE_IO]: New functions.
15484 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15485 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15486 (init_image_func_pointer) [MAC_OSX]: Remove function.
15487 (image_load_quartz2d) [MAC_OSX]: Check availability of
15488 CGImageCreateWithPNGDataProvider at compile time.
15489 Use lowercase `false' for boolean constant.
15490 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15491 Use image_load_image_io.
15492 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15493 Don't check MyCGImageCreateWithPNGDataProvider.
15494 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15495 Don't call init_image_func_pointer.
15496
15497 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15498
15499 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15500 Make variable non-static.
15501 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15502 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15503
15504 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15505 (RED_FROM_ULONG): Mask off higher bits.
15506 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15507
15508 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15509 Include AvailabilityMacros.h.
15510 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15511 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15512
155132008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15514
15515 * chartab.c (Fset_char_table_range): If range is t, really set all
15516 chars to that value.
15517
155182008-05-03 Eli Zaretskii <eliz@gnu.org>
15519
15520 * dired.c (Ffile_attributes): Don't allow the device number become
15521 negative.
15522
155232008-05-02 Daiki Ueno <ueno@unixuser.org>
15524
15525 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15526
155272008-05-02 Juri Linkov <juri@jurta.org>
15528
15529 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15530 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15531 DEFAULT argument as a list of default values in docstrings.
15532
155332008-05-01 Chong Yidong <cyd@stupidchicken.com>
15534
15535 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15536
155372008-05-01 Martin Rudalics <rudalics@gmx.at>
15538
15539 * dispnew.c (change_frame_size_1): Preserve small windows when
15540 shrinking frames by calling set_window_height|width with third
15541 arg 2.
15542
15543 * window.h (struct window): Replace field too_small_ok by field
15544 resize_proportionally.
15545
15546 * window.c (make_window): Initialize resize_proportionally.
15547 (enlarge_window): Temporarily set resize_proportionally to make
15548 sure that shrink_windows does scale the window proportionally.
15549 (shrink_windows): When window has resize_proportionally set try
15550 to shrink it proportionally by stealing from other windows.
15551 (struct saved_window, Fset_window_configuration)
15552 (compare_window_configurations): Handle resize_proportionally.
15553 (WINDOW_TOTAL_SIZE): New macro.
15554 (window_min_size, shrink_windows, size_window): Use it.
15555 (check_min_window_sizes): Remove. Invalid values of
15556 window-min-height|width are handled by window_min_size_2 now.
15557 (size_window, Fsplit_window, enlarge_window)
15558 (adjust_window_trailing_edge, grow_mini_window): Don't call
15559 check_min_window_sizes.
15560 (window_min_size_2, window_min_size_1, window_min_size):
15561 New argument safe_p for retrieving "safe" minimum sizes.
15562 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15563 (adjust_window_trailing_edge, grow_mini_window):
15564 Adjust arguments of window_min_size... functions.
15565 (shrink_windows): Argument min_size removed. New argument
15566 safe_p allows shrinking windows to their safe minimum sizes.
15567 Calculate minimum size and decide whether a window shall be
15568 deleted for each window individually.
15569 (size_window): When nodelete_p equals 2, tell shrink_windows to
15570 delete windows only if their new minimum size is no more safe.
15571 (shrink_window_lowest_first): Call window_min_size_1 to make
15572 sure to preserve modeline of bottom-most window when resizing
15573 the minibuffer.
15574 (Fset_window_configuration, Fcurrent_window_configuration)
15575 (compare_window_configurations): Do not handle
15576 window-min-height|width any more.
15577 (syms_of_window): Clarify window-min-height|width doc-strings.
15578
155792008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15580
15581 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15582 some more. Copy some of the code from Ftry_completions.
15583 Remove special case code that dates back to initial revision when the
15584 slash was only added when necessary and that can't trigger nowadays.
15585
155862008-04-27 Kenichi Handa <handa@m17n.org>
15587
15588 * font.c (font_prop_validate): Signal `error' instead of `font'.
15589
155902008-04-29 Jason Rumney <jasonr@gnu.org>
15591
15592 * w32fns.c (Fw32_battery_status): New defun.
15593 (syms_of_w32fns): Defsubr it.
15594
155952008-04-28 Andreas Schwab <schwab@suse.de>
15596
15597 * dired.c (file_name_completion): Fix another mixing of encoded
15598 and decoded names.
15599
156002008-04-28 Juanma Barranquero <lekktu@gmail.com>
15601
15602 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15603
156042008-04-27 Juanma Barranquero <lekktu@gmail.com>
15605
15606 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15607
156082008-04-27 Andreas Schwab <schwab@suse.de>
15609
15610 * dired.c (file_name_completion): Fix inappropriate mixing of
15611 encoded and decoded names.
15612
15613 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15614
15615 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15616
156172008-04-26 Eli Zaretskii <eliz@gnu.org>
15618
15619 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15620 2008-03-31, it's not needed anymore with `struct stat' definition
15621 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15622 for the same reasons.
15623
156242008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15625
15626 * m/sparc.h: Additional redefinitions for GNU/Linux.
15627
156282008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15629
15630 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15631 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15632 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15633 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15634 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15635 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15636 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15637 Likewise.
15638
15639 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15640 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15641 (mac_ax_number_of_characters): Add externs.
15642 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15643 [USE_MAC_TSM]: Likewise.
15644 (mac_handle_text_input_event) [MAC_OSX]:
15645 Handle kEventTextInputOffsetToPos for no active input area case.
15646 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15647 (mac_handle_document_access_event)
15648 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15649 (install_application_handler) [MAC_OSX]: Register handlers for
15650 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15651 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15652 Register mac_handle_document_access_event.
15653
15654 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15655 Make functions non-static.
15656
156572008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15660 (read_file_name_completion_ignore_case, insert_default_directory)
15661 (Qdefault_directory): Move to minibuffer.el.
15662 (Fread_file_name): Call the new `read-file-name' instead.
15663
156642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15665
15666 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15667 Make function non-static.
15668 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15669 Remove function.
15670 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15671 Move to mactoolbox.c.
15672 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15673
15674 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15675 (mac_rect_make): New macro.
15676
15677 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15678 instead of float.
15679 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15680 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15681 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15682 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15683 CGRectMake.
15684 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15685 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15686 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15687 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15688 instead of WindowRef in argument type.
15689 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15690 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15691 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15692 instead of DISPLAY. All uses changed.
15693 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15694 (x_calc_absolute_position): Simplify so as not to use
15695 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15696
15697 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15698 instead of WindowRef in argument type.
15699 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15700 [TARGET_API_MAC_CARBON]: Remove externs.
15701 (create_apple_event, mac_event_parameters_to_lisp)
15702 [TARGET_API_MAC_CARBON]: Add externs.
15703
15704 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15705 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15706 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15707 is clicked.
15708 (x_activate_menubar): Remove extern for saved_menu_event_location.
15709 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15710 Move from mac.c.
15711
157122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15713
15714 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15715 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15716
157172008-04-23 Jason Rumney <jasonr@gnu.org>
15718
15719 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15720 attributes only for local files.
15721
15722 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15723 default to Qlocal.
15724
157252008-04-22 Juri Linkov <juri@jurta.org>
15726
15727 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15728 read-buffer-to-switch instead of using the letter "B".
15729
157302008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15731
15732 * fileio.c (Qdefault_directory): New variable.
15733 (Fread_file_name): Use it to pass `dir' to the completion functions.
15734
157352008-04-20 Chong Yidong <cyd@stupidchicken.com>
15736
15737 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15738
157392008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15740
15741 * keyboard.c (Vpre_help_message): Remove.
15742 (show_help_echo): Remove default C code.
15743
15744 * dired.c (directory_files_internal, file_name_completion):
15745 Only call ENCODE_FILE if the string is indeed decoded.
15746
157472008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15748
15749 * Makefile.in (TOOLKIT_DEFINES): Remove.
15750 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15751
157522008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15753
15754 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15755 (mactoolbox.o): New target.
15756
15757 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15758 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15759
15760 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15761 Use mac_set_frame_window_background instead of XSetWindowBackground.
15762 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15763 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15764 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15765 instead of SetWindowTitleWithCFString.
15766 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15767 Move function to mactoolbox.c.
15768 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15769 Use mac_set_window_modified instead of SetWindowModified.
15770 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15771 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15772 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15773 FrontNonFloatingWindow. Use mac_activate_window instead of
15774 ActivateWindow. Use mac_active_non_floating_window instead of
15775 ActiveNonFloatingWindow.
15776 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15777 Use mac_show_hourglass and mac_hide_hourglass.
15778 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15779 instead of GetGlobalMouse.
15780 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15781 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15782 Use mac_bring_window_to_front instead of BringToFront.
15783 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15784 mactoolbox.c.
15785 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15786 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15787 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15788 mactoolbox.c.
15789
15790 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15791 (XtPointer): Move typedef from macmenu.c.
15792 (enum button_type): Move enum from macmenu.c.
15793 (widget_value): Move typedef from macmenu.c.
15794 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15795 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15796 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15797 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15798 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15799 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15800 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15801 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15802 (Selection): Move typedef from macselect.c.
15803 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15804 macterm.c.
15805 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15806 (mac_is_window_collapsed, mac_bring_window_to_front)
15807 (mac_send_window_behind, mac_hide_window, mac_show_window)
15808 (mac_collapse_window, mac_front_non_floating_window)
15809 (mac_active_non_floating_window, mac_activate_window)
15810 (mac_move_window_structure, mac_move_window, mac_size_window)
15811 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15812
15813 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15814 (enum mac_menu_kind): Move enum to mactoolbox.c.
15815 (min_menu_id): Move variable to mactoolbox.c.
15816 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15817 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15818 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15819 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15820 [TARGET_API_MAC_CARBON]: Likewise.
15821 (XtPointer): Move typedef to macgui.h.
15822 (enum button_type): Move enum to macgui.h.
15823 (widget_value): Move typedef to macgui.h.
15824 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15825 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15826 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15827 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15828 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15829 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15830 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15831 (popup_activated_flag): Make variable non-static.
15832 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15833 (add_menu_item, fill_menu, dispose_menus):
15834 Move functions to mactoolbox.c.
15835 (restore_show_help_function, menu_target_item_handler)
15836 (install_menu_target_item_handler, mac_handle_dialog_event)
15837 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15838 [TARGET_API_MAC_CARBON]: Likewise.
15839 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15840 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15841 (find_and_call_menu_selection, name_is_separator): Make function
15842 non-static.
15843 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15844 to mactoolbox.c.
15845 (set_frame_menubar): Don't call install_menu_quit_handler.
15846 (menu_item_selection): New variable.
15847 (mac_menu_show): Use create_and_show_popup_menu.
15848 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15849 selection but set variable menu_item_selection. All uses changed.
15850 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15851 Call install_menu_quit_handler. Move to mactoolbox.c.
15852
15853 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15854 (Selection): Move typedef to macgui.h.
15855 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15856 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15857 Make variables non-static.
15858 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15859 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15860 Make functions non-static.
15861 (Vmac_service_selection) [MAC_OSX]: Likewise.
15862 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15863 (mac_valid_selection_target_p, mac_clear_selection)
15864 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15865 (mac_put_selection_value, mac_selection_has_target_p)
15866 (mac_get_selection_value, mac_get_selection_target_list)
15867 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15868 Move functions to mactoolbox.c.
15869 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15870 Likewise.
15871 (copy_scrap_flavor_data, mac_handle_service_event)
15872 (install_service_handler) [MAC_OSX]: Likewise.
15873 (syms_of_macselect) <Vmac_dnd_known_types>:
15874 Use mac_dnd_default_known_types.
15875
15876 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15877 Move to mactoolbox.c.
15878 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15879 (Fx_selection_owner_p): Add EXFUN.
15880 (install_window_handler, remove_window_handler, XSetWindowBackground):
15881 Remove externs.
15882 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15883 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15884 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15885 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15886 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15887 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15888 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15889 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15890 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15891 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15892 (mac_valid_selection_target_p, mac_clear_selection)
15893 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15894 (mac_put_selection_value, mac_selection_has_target_p)
15895 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15896 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15897 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15898 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15899 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15900 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15901 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15902 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15903 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15904
15905 * mactoolbox.c: New file.
15906
159072008-04-18 Jason Rumney <jasonr@gnu.org>
15908
15909 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15910
159112008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15912
15913 * character.c (Fmultibyte_char_to_unibyte):
15914 Return latin1 chars unchanged.
15915
15916 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15917 relocated if it points to `name'.
15918
159192008-04-17 Kenichi Handa <handa@m17n.org>
15920
15921 * data.c (Faset): Allow setting a multibyte character in an
15922 ASCII-only unibyte string.
15923
15924 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15925
159262008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15927
15928 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15929 done in config.h.
15930
159312008-04-16 Juanma Barranquero <lekktu@gmail.com>
15932
15933 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15934 (Fchar_direction): Add usage in the docstring.
15935
159362008-04-15 Chong Yidong <cyd@stupidchicken.com>
15937
15938 * keyboard.c (read_key_sequence): Remove always-true checks.
15939
159402008-04-14 Jason Rumney <jasonr@gnu.org>
15941
15942 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15943 compatibility struct, for better underline positioning.
15944
159452008-04-13 David Hansen <david.hansen@gmx.net>
15946
15947 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15948 string.
15949
159502008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15951
15952 * m/hp800.h (XUINT, XSET): Remove.
15953
159542008-04-12 Juanma Barranquero <lekktu@gmail.com>
15955
15956 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15957 previous change.
15958
159592008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15960
15961 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15962 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15963
159642008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15965
15966 * keymap.h (map_keymap_canonical): Declare.
15967 * xmenu.c (single_keymap_panes): Use it.
15968
159692008-04-11 Glenn Morris <rgm@gnu.org>
15970
15971 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15972 set the target's value to that of the alias.
15973
159742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15975
15976 * term.c (set_tty_color_mode): Left over typo.
15977
159782008-04-10 Michael Albinus <michael.albinus@gmx.de>
15979
15980 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15981 only after check for file name handler functions. Signal, when
15982 native functionality is not supported.
15983 (syms_of_fileio): Declare it unconditionally.
15984
159852008-04-10 Jason Rumney <jasonr@gnu.org>
15986
15987 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15988 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15989
15990 * w32.c (logon_network_drive): Also logon to remote drives that
15991 are mapped to drive letters.
15992
159932008-04-10 Glenn Morris <rgm@gnu.org>
15994
15995 * xdisp.c (truncate-partial-width-windows): Doc fix.
15996
159972008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15998
15999 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16000 Move functions to minibuffer.el.
16001 (syms_of_fileio): Don't declare them.
16002
160032008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16004
16005 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16006 (syms_of_minibuf): Remove its initialization.
16007
16008 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16009
160102008-04-09 Juanma Barranquero <lekktu@gmail.com>
16011
16012 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16013
160142008-04-09 Jason Rumney <jasonr@gnu.org>
16015
16016 * makefile.w32-in (distclean): Delete makefile too.
16017 (maintainer-clean): New target.
16018
16019 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16020
16021 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16022 for new font backend and composite cases.
16023
160242008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16025
16026 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16027 Most of the code moved to run_timers.
16028 (do_pending_atimers): Call run_timers.
16029 (run_timers): New function.
16030
16031 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16032 run atimers.
16033
16034 * process.c (wait_reading_process_output): The same as above.
16035
160362008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16037
16038 * minibuf.c (last_exact_completion): Remove variable.
16039 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16040 (complete_and_exit_1, complete_and_exit_2)
16041 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16042 (Fdisplay_completion_list, display_completion_list_1)
16043 (Fminibuffer_completion_help, Fself_insert_and_exit)
16044 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16045 minibuffer.el.
16046 (syms_of_minibuf): Remove corresponding initializations.
16047
16048 * keyboard.c (Qdeactivate_mark): New var.
16049 (command_loop_1): Use it to call `deactivate-mark'.
16050 (syms_of_keyboard): Initialize it.
16051
16052 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16053 to another frame.
16054 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16055 Don't call set_tty_color_mode.
16056 (store_frame_param): Reset previous_frame rather than call
16057 set_tty_color_mode.
16058 * term.c (set_tty_color_mode): Rewrite.
16059 * dispextern.h (set_tty_color_mode): New type.
16060 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16061
160622008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16063
16064 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16065 for generic chars, which do not exist any more in emacs-unicode.
16066
160672008-04-08 Michael Albinus <michael.albinus@gmx.de>
16068
16069 * coding.c (detect_coding_emacs_mule)
16070 (Ffind_operation_coding_system): Fix typo.
16071
160722008-04-08 Jason Rumney <jasonr@gnu.org>
16073
16074 * w32uniscribe.c (SNAME): Extract only symbol name.
16075
16076 * w32font.h (struct w32_metric_cache): New struct.
16077 (w32font_info): Use it.
16078 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16079 (CACHE_BLOCKSIZE): New constants.
16080
16081 * w32font.c (Qja, Qko, Qzh): New symbols.
16082 (syms_of_w32font): Initialise them.
16083 (font_matches_spec): Use them to filter by language.
16084 (recompute_cached_metrics): Remove function.
16085 (compute_metrics, clear_cached_metrics): New functions.
16086 (w32font_encode_char): Use them to manage metric cache.
16087 (w32font_text_extents): Cache metrics for all glyphs on demand.
16088 Delay converting glyph indices to WORD until needed.
16089 (w32font_open_internal): Initialize metric cache to empty.
16090 (registry_to_w32_charset): Charset should always be a symbol.
16091 (fill_in_logfont, list_all_matching_fonts): Family should
16092 always be a symbol.
16093
160942008-04-06 Jason Rumney <jasonr@gnu.org>
16095
16096 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16097 Give up if glyph indices not supported. Use uniscribe obtained
16098 ABC widths for individual metrics. Map glyph clusters back to
16099 characters using fClusterStart flag. Return number of glyphs
16100 produced, not chars processed.
16101 (uniscribe_shape): Map char at FROM to current glyph.
16102
161032008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16104
16105 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16106 Use SetMenuItemHierarchicalMenu.
16107
161082008-04-05 Jason Rumney <jasonr@gnu.org>
16109
16110 * image.c (pbm_load): Allow color values up to 65535.
16111 Throw an error if max_color_idx is outside the supported range.
16112 Report an error when image size is invalid.
16113 Read two bytes at a time when raw images have max_color_idx above 255.
16114
aac0c6e3
MR
161152008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16116
16117 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16118 append "CCL: Quitted" when the CCL program is quitted.
16119 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16120
16121 * ccl.h (struct ccl_program): New member quit_silently.
16122
161232008-04-05 Chong Yidong <cyd@stupidchicken.com>
16124
16125 * search.c (compile_pattern_1): Treat non-nil and non-string of
16126 search-spaces-regexp as nil.
16127
16128 * minibuf.c (Fassoc_string): Tweak docstring.
16129
161302008-04-05 Eli Zaretskii <eliz@gnu.org>
16131
16132 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16133 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16134 2008-03-14 to force inode be positive.
16135
16136 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16137 _S_* ones, since we now use our own sys/stat.h.
16138 (stat, fstat): Don't mangle the inode number.
16139 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16140
161412008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16142
16143 * frame.h (struct frame): Give one more bit to `visible' since we use
16144 values larger than 1 to indicate obscured frames on ttys.
16145
16146 * keymap.c (Qkeymap_canonicalize): New var.
16147 (Fmap_keymap_internal): New fun.
16148 (describe_map): Use keymap-canonicalize.
16149
16150 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16151 (Fundo_boundary): Set them.
16152 (syms_of_undo): Initialize them.
16153 (record_point): Use them instead of last_point_position*.
16154 (last_undo_buffer): Change type.
16155
161562008-04-04 Jason Rumney <jasonr@gnu.org>
16157
16158 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16159 (recompute_cached_metrics): Don't set ascent and descent per char.
16160
16161 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16162 (uniscribe_check_otf): Add GC protection before consing.
16163 Rearrange loop for counting features.
16164
161652008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16166
16167 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16168 buffer with byte-size of source buffer.
16169
161702008-04-03 Chong Yidong <cyd@stupidchicken.com>
16171
16172 * callint.c (Fcall_interactively): Handle temporary region even
16173 when shift-select-mode is off.
16174
161752008-04-03 Jason Rumney <jasonr@gnu.org>
16176
16177 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16178
161792008-04-03 Kenichi Handa <handa@m17n.org>
16180
16181 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16182 (CATEGORY_MASK_UTF_16): Likewise.
16183 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16184 binary file.
16185 (detect_coding): Add null-byte detection for a binary file.
16186 (detect_coding_system): Likewise.
16187
161882008-04-03 Jason Rumney <jasonr@gnu.org>
16189
16190 * w32uniscribe.c: New file.
16191
16192 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16193
16194 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16195
16196 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16197 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16198 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16199 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16200 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16201 (Qphonetic): New symbols.
16202 (syms_of_w32font): Initialize them.
16203 (font_supported_scripts): Use them.
16204 (w32font_list_family): List all charsets.
16205 (w32font_text_extents, recompute_cached_metrics): Fix metric
16206 calculations.
16207 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16208 Give opentype fonts their own format.
16209 (font_matches_spec): New arguments backend and logfont.
16210 Handle :otf spec for uniscribe backend.
16211 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16212 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16213
16214 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16215 font backend.
16216 (globals_of_w32fns): Initialize uniscribe font backend.
16217
16218 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16219 dependencies.
16220 (w32uniscribe.$(O)): New file to build.
16221 (FONT_OBJ): Include w32uniscribe.$(O).
16222 (LIBS): Add uniscribe libraries.
16223
16224 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16225
162262008-04-02 Chong Yidong <cyd@stupidchicken.com>
16227
16228 * callint.c (Vshift_select_mode): New var.
16229 (Finteractive): Document new ^ spec.
16230 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16231 is present.
16232
16233 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16234 (command_loop_1): Avoid running the direct display versions of
16235 forward-char and backward-char if shift-selection may occur.
16236 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16237 shift-translation takes place.
16238
16239 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16240 avoid clobbering by define-minor-mode.
16241
16242 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16243 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16244
16245 * syntax.c (Fforward_word): Add ^ interactive spec.
16246
16247 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16248 (Fscroll_right): Add ^ interactive spec.
16249
162502008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16251
16252 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16253
16254 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16255
16256 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16257
162582008-03-31 Juri Linkov <juri@jurta.org>
16259
16260 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16261
162622008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16263
16264 * gtkutil.c (xg_set_geometry): Fix indentation.
16265 (xg_resize_outer_widget): Remove.
16266 (x_wm_size_hint_off): Fix indentation.
16267 (xg_frame_set_char_size): Call flush_and_sync after
16268 gtk_window_resize.
16269 (x_wm_set_size_hint): Pass NULL as geometry window to
16270 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16271 Add menu bar and tool bar height to base height.
16272 (xg_update_frame_menubar, free_frame_menubar)
16273 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16274 (update_frame_tool_bar, free_frame_tool_bar):
16275 Change xg_resize_outer_widget to xg_frame_set_char_size.
16276
162772008-03-30 Michael Albinus <michael.albinus@gmx.de>
16278
16279 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16280 (Fdbus_call_method): New parameter TIMEOUT.
16281 (dbus-send-signal): Optimize UNGCPRO call.
16282
162832008-03-29 Juri Linkov <juri@jurta.org>
16284
16285 * window.c (Fdisplay_buffer): Move call to
16286 Vsplit_window_preferred_function out of conditions that check
16287 if window is eligible for vertical splitting.
16288 When Vsplit_window_preferred_function is non-nil, call it and use
16289 its non-nil return value as window. Otherwise, continue doing
16290 vertical splitting using Fsplit_window with arg horflag=nil.
16291 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16292 default value from `split-window' to nil.
16293
162942008-03-29 Juri Linkov <juri@jurta.org>
16295
16296 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16297 for interactive code letters 'b' and 'B'.
16298
162992008-03-29 Eli Zaretskii <eliz@gnu.org>
16300
16301 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16302 multibyte string.
16303
163042008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16305
16306 * keyboard.c (pending_funcalls): New var.
16307 (timer_check): Run it.
16308 (syms_of_keyboard): Initialize it.
16309 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16310 (Vdelete_terminal_functions): New vars.
16311 (syms_of_terminal): Initialize them.
16312 (Fdelete_terminal): Run delete-terminal-functions.
16313 * xdisp.c (safe_eval): Rewrite.
16314 (safe_call2): New fun.
16315 * frame.c (Qdelete_frame_functions): New var.
16316 (syms_of_frame): Initialize it.
16317 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16318 * lisp.h (safe_call2, pending_funcalls): Declare.
16319
163202008-03-28 Andreas Schwab <schwab@suse.de>
16321
16322 * indent.c (Fmove_to_column): Move declaration before statements.
16323
163242008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16325
16326 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16327 (struct frame): Use bit fields for boolean vars.
16328
16329 * process.c (server_accept_connection): Simplify naming.
16330 (emacs_get_tty_pgrp): Use SDATA.
16331
16332 * coding.c (decode_coding_object): Fix last change.
16333
163342008-03-27 Jason Rumney <jasonr@gnu.org>
16335
16336 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16337
163382008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16339
16340 * charset.c (Fdefine_charset_internal): Change the way of
16341 registering charsets in Vcharset_order_list.
16342 (syms_of_charset): Make the charset `eight-bit' supplementary.
16343
163442008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16345
16346 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16347 operations, to avoid having the difference between pointers
16348 overflow.
16349
163502008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16351
16352 * indent.c (check_display_width): New fun.
16353 (scan_for_column): Use it.
16354
16355 * data.c (syms_of_data): Mark most-positive-fixnum and
16356 most-negative-fixnum as constants.
16357
16358 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16359
16360 * indent.c (scan_for_column): Extract from current_column_1.
16361 Merge with the same code from Fmove_to_column.
16362 (current_column_1, Fmove_to_column): Use it.
16363
163642008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16365
16366 * keymap.c (map_keymap_internal): New fun.
16367 (map_keymap): Use it.
16368 (Fmap_keymap_internal): New fun.
16369 (Fmap_keymap): Remove left-out test from before make_save_value.
16370
16371 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16372
16373 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16374 Use XCAR/XCDR.
16375
16376 * process.h (struct Lisp_Process): Remove filter_multibyte.
16377 * process.c (QCfilter_multibyte): Remove.
16378 (setup_process_coding_systems): Don't use filter_multibyte.
16379 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16380 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16381 (Fset_process_filter_multibyte): Change the coding-system to
16382 approximate the previous behavior.
16383 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16384 coding-system.
16385
16386 * coding.c (decode_coding_object): When not decoding into a buffer,
16387 obey the coding system's preference of (uni|multi)byte.
16388
163892008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16390
16391 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16392 every char is changed and has a different byte-length.
16393 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16394 Fix int -> EMACS_INT.
16395
163962008-03-23 David Hansen <david.hansen@gmx.net>
16397
16398 * dbusbind.c (xd_read_message): Remove extra copying of message
16399 strings. Check for NULL `interface' or `member'.
16400
164012008-03-22 Eli Zaretskii <eliz@gnu.org>
16402
16403 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16404 cFileName a file name that includes `?' characters, use the 8+3
16405 alias in cAlternateFileName instead.
16406
164072008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16408
16409 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16410
164112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16412
16413 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16414 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16415 work on current_buffer only instead (that was already the case
16416 for some of the code anyway).
16417 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16418 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16419 (SET_PT, SET_PT_BOTH): Adjust.
16420 * intervals.h (set_point, temp_set_point, set_point_both)
16421 (temp_set_point_both): Remove redundant declarations.
16422
164232008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16424
16425 * fileio.c (Finsert_file_contents):
16426 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16427 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16428 when buffer != current_buffer anyway.
16429
164302008-03-20 Andreas Schwab <schwab@suse.de>
16431
16432 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16433 as default.
16434
164352008-03-19 Jason Rumney <jasonr@gnu.org>
16436
16437 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16438 (syms_of_w32fns): Initialize them.
16439 (HOURGLASS_ID): New constant.
16440 (x_window_to_frame): Don't check hourglass_window.
16441 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16442 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16443 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16444 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16445 Only change the cursor if hourglass is not active.
16446 (Fx_create_frame): Initialize frame's current_cursor.
16447 (hourglass_atimer): Remove.
16448 (hourglass_started): New function.
16449 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16450 (show_hourglass): Adapt to w32, changing argument to frame.
16451
16452 * w32term.h (struct w32_output): Remove hourglass_window.
16453 Add current_cursor.
16454
16455 * eval.c (call_debugger, Fsignal):
16456 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16457 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16458 (Fexecute_extended_command, cancel_hourglass_unwind):
16459 * minibuf.c (read_minibuf):
16460 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16461
164622008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16463
16464 * window.c (run_funs): New fun.
16465 (run_window_configuration_change_hook): Use it to run the buffer-local
16466 and the global part of the hook.
16467
16468 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16469 (unwind_format_mode_line): Restore selected window.
16470 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16471
164722008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16473
16474 * editfns.c (Fchar_equal): Check they are valid characters.
16475
16476 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16477
164782008-03-17 Andreas Schwab <schwab@suse.de>
16479
16480 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16481 against a charset.
16482
16483 * lisp.h (Fbuffer_list): Declare.
16484
164852008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16486
aac0c6e3
MR
16487 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16488 handlebox_widget is != 0.
16489
164902008-03-16 Juri Linkov <juri@jurta.org>
16491
16492 * callint.c (Fcall_interactively): For interactive code letters
16493 'b' and 'B' put the buffer list into the list of default "future"
16494 values of the minibuffer.
16495
164962008-03-16 Andreas Schwab <schwab@suse.de>
16497
16498 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16499 modifiers.
16500
16501 * regex.c (re_match_2_internal): Correct matching of a charset
16502 against latin-1 characters.
16503
165042008-03-16 Kenichi Handa <handa@m17n.org>
16505
16506 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16507 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16508 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16509 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16510 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16511 CHAR_STRING_ADVANCE.
16512 (produce_chars): Fix for the case that the source and the
16513 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16514 instead of CHAR_STRING_ADVANCE.
16515 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16516 STRING_CHAR_ADVANCE.
16517
165182008-03-15 Andreas Schwab <schwab@suse.de>
16519
16520 * regex.c (re_match_2_internal): Correct matching of eight bit
16521 characters in unibyte strings.
16522
165232008-03-15 Martin Rudalics <rudalics@gmx.at>
16524
16525 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16526 at end of range when it coincides with the end of the buffer.
16527
165282008-03-14 Eli Zaretskii <eliz@gnu.org>
16529
16530 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16531
16532 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16533
165342008-03-14 Jason Rumney <jasonr@gnu.org>
16535
16536 * editfns.c (initial_tz): New variable.
16537 (syms_of_editfns): Initialize it.
16538 (Fset_time_zone_rule): Set it when first called.
16539 Use it when TZSTRING is nil.
16540
16541 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16542 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16543 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16544 (globals_of_w32fns): Initialize them.
16545 (compute_tip_xy): Use them to position tooltips.
16546
165472008-03-14 Glenn Morris <rgm@gnu.org>
16548
16549 * emacs.c (main): Revert previous change.
16550 (standard_args): Revert -internal-script back to -scriptload,
16551 and remove the long-option form.
16552
165532008-03-13 Glenn Morris <rgm@gnu.org>
16554
16555 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16556 Remove option -enable-font-backend.
16557
165582008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16559
16560 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16561
165622008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16563
16564 * xterm.c (x_connection_closed): For GTK: If this is the last
16565 terminal just exit without closing the display.
16566
165672008-03-11 Jason Rumney <jasonr@gnu.org>
16568
16569 * w32font.c (w32font_full_name): Use floor to round.
16570
f0131492 165712008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16572
16573 * sound.c (alsa_configure): Declare vol at beginning of block.
16574
16575 * fontset.c (Ffontset_info): Remove extra semicolon.
16576
165772008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16578
16579 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16580 size of resulting string.
16581
165822008-03-10 Jason Rumney <jasonr@gnu.org>
16583
16584 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16585
165862008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16587
16588 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16589 Don't pretend as if characters with display property haven't been
16590 consumed for string-replacing-string case.
16591
165922008-03-08 Kim F. Storm <storm@cua.dk>
16593
16594 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16595 (get_next_display_element, next_element_from_string)
16596 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16597
165982008-03-08 Andreas Schwab <schwab@suse.de>
16599
16600 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16601
166022008-03-06 Jason Rumney <jasonr@gnu.org>
16603
16604 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16605 when charset not specified. Only translate ANSI to unicode when
16606 font_type is truetype.
16607 (w32font_coverage_ok): New function.
16608 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16609
166102008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16611
16612 * lread.c (Fread_char): Resolve modifiers.
16613 (Fread_char_exclusive): Likewise.
16614
16615 * character.c (char_resolve_modifier_mask): New function.
16616 (char_string): Use char_resolve_modifier_mask.
16617 (Fchar_resolve_modifiers): New function.
16618 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16619 function.
16620
166212008-03-04 Jason Rumney <jasonr@gnu.org>
16622
16623 * makefile.w32-in: Always include w32font.c in the build.
16624 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16625
166262008-03-04 Andreas Schwab <schwab@suse.de>
16627
16628 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16629 (versionclean): Likewise.
16630
166312008-03-04 Juanma Barranquero <lekktu@gmail.com>
16632
16633 * .cvsignore: Add oo.
16634
166352008-03-03 Andreas Schwab <schwab@suse.de>
16636
16637 * coding.c (decode_coding_object): Inhibit gap shrinking while
16638 decoding in place.
16639
166402008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16641
16642 * w32term.c: Remove unused include "gnu.h".
16643 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16644
16645 * gnu.h: Rename to ...
16646 * emacs-icon.h: ... this.
16647 * xterm.c: Use emacs-icon.h instead of gnu.h.
16648 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16649
166502008-03-03 Juanma Barranquero <lekktu@gmail.com>
16651
16652 * w32font.c: Include math.h.
16653
166542008-03-03 Jason Rumney <jasonr@gnu.org>
16655
16656 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16657 Compute options separately.
16658 (w32font_open_internal): Set glyph_idx before caching metrics.
16659
16660 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16661 Define if system headers don't.
16662 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16663 (w32font_encode_char): Don't declare here.
16664
16665 * w32font.c (Quniscribe, QCformat): New symbols.
16666 (syms_of_w32font): Define them.
16667 (w32font_has_char): Indicate uncertainty.
16668 (w32font_encode_char): Encode as glyph point. Make static.
16669 (recompute_cached_metrics): New function.
16670 (w32font_open_internal): Use it. Set font to use glyph points
16671 initially. Set format based on type of font.
16672 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16673 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16674 on it. Set format based on information available here.
16675 (add_font_entity_to_list): Identify backend based on opentype_only.
16676
166772008-03-02 Andreas Schwab <schwab@suse.de>
16678
16679 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16680
16681 * coding.c (decode_coding_big5, produce_chars):
16682 Fix typos in last change.
16683
166842008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16685
16686 * gnu.h: New icon.
16687
166882008-03-02 Kenichi Handa <handa@m17n.org>
16689
16690 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16691 `dos', don't decode '\r' if that is the last in the source.
16692 (decode_coding_utf_16, decode_coding_emacs_mule)
16693 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16694 (decode_coding_raw_text, decode_coding_charset): Likewise.
16695 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16696
166972008-03-01 Jason Rumney <jasonr@gnu.org>
16698
16699 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16700
167012008-03-01 Kim F. Storm <storm@cua.dk>
16702
16703 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16704
167052008-03-01 Jason Rumney <jasonr@gnu.org>
16706
16707 * w32font.c (w32font_full_name): New function.
16708 (w32font_open_internal): Use it.
16709
167102008-03-01 Kim F. Storm <storm@cua.dk>
16711
16712 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16713
167142008-03-01 Jason Rumney <jasonr@gnu.org>
16715
16716 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16717
167182008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16719
16720 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16721 xg_frame_resized when the event is for the edit widget.
16722
16723 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16724
16725 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16726 set_char_size.
16727 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16728 operations on widgets here. Just set frame size if needed.
16729 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16730 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16731 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16732 the whole frame.
16733 (xg_create_tool_bar): Move attachment of the tool bar to
16734 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16735 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16736
167372008-03-01 Jason Rumney <jasonr@gnu.org>
16738
16739 * w32fns.c (w32_msg_pump): Disable debug code.
16740
167412008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16742
16743 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16744
167452008-02-29 Chong Yidong <cyd@stupidchicken.com>
16746
16747 * xdisp.c (next_overlay_string): Don't set
16748 overlay_strings_at_end_processed_p if we're currently reading from
16749 a display string.
16750
167512008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16752
16753 * xdisp.c (get_overlay_strings_1): Fix typo.
16754
167552008-02-29 Chong Yidong <cyd@stupidchicken.com>
16756
16757 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16758
167592008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16760
16761 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16762
16763 * xdisp.c (display_mode_element): Cancel the previous change.
16764 (decode_mode_spec): Likewise.
16765 (handle_auto_composed_prop): Don't make composition if it->string
16766 is a string.
16767
167682008-02-27 Kim F. Storm <storm@cua.dk>
16769
16770 * lisp.h (GLYPH): Change type from int to struct with separate char
16771 and face_id members.
16772 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16773 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16774 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16775 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16776 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16777 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16778 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16779 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16780 handle new Lisp glyph code encoding, either an integer or a cons.
16781
16782 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16783 (GLYPH_ALIAS): Delete.
16784 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16785 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16786 (GLYPH_FROM_CHAR): Replace macro by ...
16787 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16788
16789 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16790 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16791 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16792 (GLYPH_INVALID_P): New macro.
16793 (spec_glyph_lookup_face): Update prototype.
16794
16795 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16796 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16797 new glyph code encoding.
16798 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16799 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16800
16801 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16802 Adapt to new glyph type and new glyph code encoding.
16803
16804 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16805
16806 * indent.c (current_column, current_column_1, Fmove_to_column)
16807 (compute_motion): Adapt to new glyph code encoding.
16808
16809 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16810
168112008-02-27 Chong Yidong <cyd@stupidchicken.com>
16812
16813 * process.c (wait_reading_process_output): Check for window
16814 changes caused by timers.
16815 Suggested by Johan Bockgård.
16816
168172008-02-27 Glenn Morris <rgm@gnu.org>
16818
16819 * emacs.c (USAGE1): Add `--disable-font-backend'.
16820
168212008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16822
16823 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16824 is made to the buffer.
16825
168262008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16827
16828 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16829 (face_at_string_position):
16830 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16831 (face_at_string_position):
16832 * xdisp.c (display_string, next_overlay_change):
16833 * buffer.h (overlays_at):
16834 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16835 Update callers.
16836
168372008-02-26 Chong Yidong <cyd@stupidchicken.com>
16838
16839 * editfns.c (Fformat): Doc fix.
16840
168412008-02-26 Juanma Barranquero <lekktu@gmail.com>
16842
16843 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16844 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16845 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16846
168472008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16848
16849 * buffer.c (Fbuffer_swap_text): New function.
16850 (syms_of_buffer): Defsubr it.
16851
168522008-02-25 Chong Yidong <cyd@stupidchicken.com>
16853
16854 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16855
168562008-02-25 Jason Rumney <jasonr@gnu.org>
16857
16858 * w32font.c (w32font_draw): Draw one character at a time when padding.
16859
168602008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16861
16862 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16863 Handle a nil arg. Use run_window_configuration_change_hook.
16864 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16865 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16866 Use run_window_configuration_change_hook.
16867
168682008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16869
16870 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16871 1-pixel width.
16872
168732008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16874
16875 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16876 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16877 if the glyph in the font is zero pixel with.
16878
16879 * dispextern.h (struct glyph_string): New member padding_p.
16880
16881 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16882
16883 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16884
16885 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16886
16887 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16888
16889 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16890
168912008-02-25 Jason Rumney <jasonr@gnu.org>
16892
16893 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16894
168952008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16896
16897 Allow fine-grained image-cache flushing.
16898 * dispextern.h (struct image): Add `dependencies' field.
16899 (clear_image_caches): Change arg to Lisp_Object.
16900 * image.c (make_image): Initialize `dependencies' field.
16901 (clear_image_cache): Change arg to allow fine-grained flushing.
16902 Perform the flush even if image-cache-eviction-delay is nil.
16903 (clear_image_caches): Change arg to Lisp_Object.
16904 (Fclear_image_cache): Expand meaning of the argument.
16905 (mark_image): Mark `dependencies' field.
16906 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16907 (lface_hash): Use XHASH rather than XFASTINT.
16908 (face_at_buffer_position): Fix int -> EMACS_INT position.
16909 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16910 (select_frame_for_redisplay): Remove code duplication.
16911 (redisplay_internal): Adapt arg to call to clear_image_caches.
16912
169132008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16914
16915 * s/vms4-0.h:
16916 * s/vms4-2.h:
16917 * s/vms4-4.h:
16918 * s/vms5-5.h: Remove, unused.
16919
16920 * s/irix5-2.h:
16921 * s/irix6-0.h:
16922 * s/riscos5.h:
16923 * s/mach-bsd4-3.h:
16924 * m/mips4.h: Remove files for obsolete systems.
16925
16926 * Makefile.in:
16927 * filelock.c:
16928 * unexmips.c:
16929 * m/hp9000s300.h:
16930 * m/iris4d.h:
16931 * s/aix3-1.h:
16932 * s/hpux.h:
16933 * s/msdos.h:
16934 * s/usg5-0.h:
16935 * s/usg5-2-2.h:
16936 * s/usg5-2.h:
16937 * s/usg5-3.h: Remove references to obsolete variables.
16938
16939 * s/irix5-0.h: Remove, move all the contents ...
16940 * s/irix6-5.h: ... here. Simplify.
16941 * config.in: Regenerate.
16942
169432008-02-24 Jason Rumney <jasonr@gnu.org>
16944
16945 * w32term.c (x_draw_glyph_string_background): Clear the background
16946 manually when cleartype is in use.
16947 (x_draw_glyph_string_foreground): Draw text transparently when
16948 cleartype is in use.
16949
16950 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16951 a font into it unless we have to.
16952
169532008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16954
16955 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16956 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16957
aac0c6e3
MR
169582008-02-18 Jason Rumney <jasonr@gnu.org>
16959
16960 * w32fns.c (Fw32_shell_execute): Encode parameters.
16961
169622008-02-09 Eli Zaretskii <eliz@gnu.org>
16963
16964 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16965
169662008-02-05 Juanma Barranquero <lekktu@gmail.com>
16967
16968 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16969
169702008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16971
16972 * xterm.c (x_set_offset): Don't change the gravity if
16973 CHANGE_GRAVITY is -1.
16974
169752008-02-23 Chong Yidong <cyd@stupidchicken.com>
16976
16977 * fileio.c (auto_save_error_occurred): New var.
16978 (auto_save_error): Set it.
16979 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16980 error occurred.
16981
169822008-02-23 Eli Zaretskii <eliz@gnu.org>
16983
16984 * w32.c (globals_of_w32): Add initializations for
16985 g_b_init_get_sid_sub_authority and
16986 g_b_init_get_sid_sub_authority_count.
16987
169882008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16989
16990 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16991 (font_parse_xlfd): Use them for sanity check.
16992 (Finternal_set_font_style_table): Make sure the table is bijective.
16993
16994 Consolidate the image_cache to the terminal struct.
16995 * termhooks.h (P_): Remove redundant def.
16996 (struct terminal): New field `image_cache'.
16997 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16998 of FRAME_X_IMAGE_CACHE.
16999 * xterm.h (struct x_display_info): Remove image_cache field.
17000 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17001 * w32term.h (struct w32_display_info): Remove image_cache field.
17002 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17003 * macterm.h (struct mac_display_info): Remove image_cache field.
17004 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17005 * xterm.c (x_term_init):
17006 * w32term.c (w32_term_init):
17007 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17008 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17009 Remove declarations.
17010 (clear_image_caches, mark_image_cache): New declarations.
17011 * xfaces.c (clear_face_cache):
17012 * xdisp.c (redisplay_internal): Use clear_image_caches.
17013 * image.c (clear_image_cache): Don't check that a frame is on
17014 a window-system before checking if it shares the same cache.
17015 (clear_image_caches): New function.
17016 (Fclear_image_cache): Use it.
17017 (mark_image): Move from allo.c.
17018 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17019 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17020 (mark_object): Don't call mark_image_cache for frames.
17021 (mark_terminals): Call mark_image_cache.
17022
17023 * lisp.h (Fdelete_terminal): Declare.
17024
17025 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17026 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17027 wrong_type_argument.
17028
170292008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17030
17031 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17032 malayalam.el, and tamil.el. Add sinhala.el.
17033
170342008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17035
17036 * xterm.c (x_connection_closed): Consolidate identical tests.
17037 (x_delete_terminal): Don't crash if called via x_connection_closed.
17038
170392008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17040
17041 * xdisp.c (decode_mode_spec): New arg string.
17042 (display_mode_element): Adjust for the above change.
17043
170442008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17045
17046 * callint.c (Fcall_interactively): Use AREF.
17047
170482008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17049
17050 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17051
170522008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17053
17054 * xfns.c (Fx_show_tip): Set string to " " if empty.
17055
170562008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17057
17058 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17059 with Qt.
17060
170612008-02-17 Kenichi Handa <handa@m17n.org>
17062
17063 * ftfont.c (ftfont_shape): Return Lispy number.
17064
17065 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17066 for GCs.
17067 (Finternal_set_font_selection_order): Call font_update_sort_order
17068 only when enable_font_backend is set.
17069 (realize_x_face): Set face->font_info to that of default face only
17070 when enable_font_backend is set.
17071
17072 * xdisp.c (handle_composition_prop): Set it->c to the fist
17073 character of the composed region.
17074 (fill_composite_glyph_string): Set base_face->font_info to
17075 s->font_info. Get a face for ascii from base_face->ascii_face.
17076 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17077 with a face already decided.
17078 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17079 non-negative.
17080 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17081 call font_prepare_composition unconditionally.
17082
17083 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17084
17085 * xterm.h (struct x_display_info): New member font.
17086
17087 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17088 (x_set_mouse_face_gc, x_new_font): Likewise.
17089 (x_term_init): Setup display_info->font.
17090 (x_delete_terminal): Free display_info->font.
17091
17092 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17093
17094 * ftxfont.c (ftxfont_default_fid): Delete it.
17095 (ftxfont_open): Set xfont->fid to 0.
17096 (ftxfont_end_for_frame): Clear data specific to the frame and the
17097 font-driver.
17098
17099 * xftfont.c (xftfont_default_fid): Delete it.
17100 (xftfont_open): Set xfont->fid to 0.
17101
17102 * fontset.c (FONTSET_OBJLIST): New macro.
17103 (fontset_find_font): Update font-object list of the fontset.
17104 (free_realized_fontset): New function.
17105 (free_face_fontset): Call free_realized_fontset.
17106 (Ffont_info): Call font_close_object only when enable_font_backend
17107 is set.
17108
17109 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17110 [HAVE_NTGUI]: Include w32term.h.
17111 [MAC_OS]: Include macterm.ch.
17112 (font_otf_ValueRecord): Use make_number.
17113 (font_finish_cache): Fix handling of reference count.
17114 (font_clear_cache): Update num_fonts.
17115 (font_open_entity): Update smallest_char_width and
17116 smallest_font_height of the frame.
17117 (font_close_object): Update num_fonts.
17118 (Fclear_font_cache): Fix finding the target cache data.
17119
171202008-02-16 Glenn Morris <rgm@gnu.org>
17121
17122 * fontset.c (Finternal_char_font): Fix compilation warning.
17123
171242008-02-16 Eli Zaretskii <eliz@gnu.org>
17125
17126 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17127 instead of char arrays. Enlarge the size of array passed to
17128 get_token_information.
17129
17130 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17131 warnings.
17132
171332008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17134
17135 * .gdbinit: Don't set `args', it breaks gdb --args.
17136
171372008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17138
17139 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17140 within a narrowed buffer.
17141
171422008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17143
17144 * coding.c (decode_coding_object, encode_coding_object):
17145 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17146
171472008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17148
17149 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17150 hardcoding 1.
17151 (detect_coding_system):
17152 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17153 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17154 * insdel.c (insert_from_gap):
17155 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17156 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17157 (string_to_multibyte):
17158 * character.c (chars_in_text, multibyte_chars_in_text):
17159 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17160
17161 * character.h (FETCH_STRING_CHAR_ADVANCE)
17162 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17163 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17164 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17165
17166 * casefiddle.c (casify_region): Only call after-change and composition
17167 functions on the part of the region that was changed.
17168
17169 * keyboard.c (read_avail_input):
17170 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17171
171722008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17173
17174 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17175 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17176
171772008-02-11 Juanma Barranquero <lekktu@gmail.com>
17178
17179 * w32menu.c (push_submenu_start, push_submenu_end)
17180 (push_left_right_boundary, push_menu_pane, push_menu_item):
17181 * keyboard.c (read_key_sequence): Don't pass args with side effects
17182 to AREF, it fails when compiling with -DENABLE_CHECKING.
17183
171842008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17185
17186 * Makefile.in (${lispsource}international/charprop.el):
17187 Delete this target.
17188
17189 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17190 emacs-unicode-2.
17191
171922008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17193
17194 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17195
171962008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17197
17198 * frame.c (Qnoelisp): New symbol.
17199 (syms_of_frame): Initialize it.
17200 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17201 harmless Elisp code, from a strong `force' from x_connection_closed.
17202 * frame.h (Qnoelisp): Declare.
17203 * xterm.c (x_connection_closed): Pass `noelisp'.
17204
17205 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17206 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17207 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17208 rather than `int' for the type of `type'.
17209
172102008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17211
17212 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17213
17214 * Makefile.in (GNUC): Remove support for gcc-1.x.
17215
172162008-02-10 Richard Stallman <rms@gnu.org>
17217
17218 * lisp.h (ASET): Use AREF, not ASLOT.
17219
172202008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17221
17222 * lisp.h (ASET): Check bounds.
17223
172242008-02-10 Glenn Morris <rgm@gnu.org>
17225
17226 * buffer.c (mode-name): Doc fix.
17227
172282008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17229
17230 * Makefile.in:
17231 * emacs.c:
17232 * gmalloc.c:
17233 * keyboard.c:
17234 * lisp.h:
17235 * m/ibm370aix.h:
17236 * process.c:
17237 * regex.c:
17238 * s/hpux.h:
17239 * sysdep.c:
17240 * sysselect.h:
17241 * systty.h:
17242 * unexec.c:
17243 * w32term.c:
17244 * xsmfns.c:
17245 * xterm.c: Remove code that deals with obsolete variables.
17246
17247 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17248
17249 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17250 nothing else needs it anymore.
17251
172522008-02-09 Eli Zaretskii <eliz@gnu.org>
17253
17254 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17255 instead of unibyte_char_to_multibyte.
17256
172572008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17258
17259 * s/gnu-linux.h: Remove commented out code.
17260
17261 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17262
17263 * Makefile.in: Update what RMS says about using autoconf.
17264 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17265 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17266 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17267 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17268
172692008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17270
17271 * keymap.c (Fkey_description): Move side effect outside of macro call.
17272
17273 * xfaces.c (Finternal_make_lisp_face):
17274 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17275
17276 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17277 (syms_of_fontset): Use ASET.
17278
17279 * fns.c (concat): Move side effect outside of macro call.
17280 (hash_clear): Use ASET.
17281
172822008-02-08 Richard Stallman <rms@gnu.org>
17283
17284 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17285 If FORCE, and frame has a surrogate minibuffer for another frame,
17286 delete the other frame first.
17287
172882008-02-07 Timo Savola <timo.savola@iki.fi>
17289
17290 * xterm.c (x_detect_focus_change): Handle embed client message.
17291 (handle_one_xevent): Ditto.
17292 (handle_one_xevent): If embedded and we get a button press/release,
17293 request focus.
17294 (xembed_set_info, xembed_send_message): New functions.
17295 (x_make_frame_visible): Call xembed_set_info if embedded.
17296 (x_make_frame_invisible): Call xembed_set_info if embedded.
17297 (x_term_init): Initialize Xatom_XEMBED.
17298 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17299 (x_iconify_frame): Ditto.
17300
17301 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17302 (enum xembed_info, enum xembed_message, enum xembed_focus)
17303 (enum xembed_modifier, enum xembed_accelerator): New.
17304 (xembed_set_info, xembed_send_message): Declare.
17305 (FRAME_X_EMBEDDED_P): New.
17306
17307 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17308 gtk_plug_new.
17309
17310 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17311 window ID of a frame.
17312 (x_window): Reparent frame if embedded.
17313 (Fx_create_frame): Don't set border width if embedded.
17314
17315 * emacs.c (USAGE3): Add --parent-id.
17316 (standard_args): Ditto.
17317
173182008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17319
17320 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17321
173222008-02-07 Jim Meyering <meyering@redhat.com>
17323
17324 Use "do...while (0)", not "if (1)...else" in macro definitions.
17325 The latter provokes a warning from gcc about the empty else, when
17326 followed by ";". Also, without that trailing semicolon, it would
17327 silently swallow up any following statement.
17328 * syntax.h (SETUP_SYNTAX_TABLE)
17329 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17330 * buffer.h (DECODE_POSITION): Likewise.
17331 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17332 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17333 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17334 (FETCH_CHAR_ADVANCE): Likewise.
17335 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17336
173372008-02-07 Jim Meyering <meyering@redhat.com>
17338
17339 * lread.c [lint]: Don't include <sys/inode.h>.
17340
173412008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17342
17343 * xselect.c (x_handle_dnd_message):
17344 * xmenu.c (digest_single_submenu, xmenu_show):
17345 * xdisp.c (with_echo_area_buffer_unwind_data)
17346 (format_mode_line_unwind_data, unwind_format_mode_line)
17347 (display_menu_bar):
17348 * eval.c (Ffetch_bytecode):
17349 * doc.c (store_function_docstring):
17350 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17351 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17352 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17353
173542008-02-07 Kenichi Handa <handa@m17n.org>
17355
17356 * ftxfont.c (ftxfont_open): Don't set
17357 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17358
17359 * ftfont.c (ftfont_open): Fix previous change.
17360
173612008-02-06 Jason Rumney <jasonr@gnu.org>
17362
17363 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17364 Use cached metrics for ASCII characters.
17365 (w32font_open_internal): Don't set font's owning_frame.
17366 Cache metrics for ASCII characters.
17367
17368 * w32font.h (struct w32font_info): Add ascii_metrics.
17369 Remove owning_frame.
17370
173712008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17372
17373 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17374 to negative value.
17375
17376 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17377
17378 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17379
17380 * charset.c (syms_of_charset): Set QCtest and Qeq.
17381
173822008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17383
17384 * process.c (Fstart_process):
17385 * callproc.c (Fcall_process): Handle the case where
17386 Funhandled_file_name_directory returns nil.
17387
17388 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17389 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17390 * font.c (check_gstring): Use them and AREF to access the vector before
17391 we know it's really a gstring.
17392 (Ffont_shape_text): Fix typo.
46e722a9 17393 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17394
17395 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17396 Declare.
17397
17398 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17399
174002008-02-05 Jason Rumney <jasonr@gnu.org>
17401
17402 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17403 Set smallest_font_height and smallest_char_width in display info.
17404
174052008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17406
17407 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17408
174092008-02-05 Miles Bader <miles@gnu.org>
17410
17411 * xfaces.c (get_lface_attributes, merge_named_face)
17412 (lookup_named_face, lookup_derived_face, realize_named_face):
17413 Revert 2008-02-01 change by cyd@stupidchicken.com.
17414
174152008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17416
17417 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17418 fallback fonts.
17419 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17420
174212008-02-04 Jason Rumney <jasonr@gnu.org>
17422
17423 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17424 set full_name.
17425 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17426
174272008-02-03 Jason Rumney <jasonr@gnu.org>
17428
17429 * makefile.w32-in (OBJ1): Include font.o here.
17430 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17431
174322008-02-02 Jason Rumney <jasonr@gnu.org>
17433
17434 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17435
174362008-02-01 Jason Rumney <jasonr@gnu.org>
17437
17438 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17439
17440 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17441
174422008-02-01 Andreas Schwab <schwab@suse.de>
17443
17444 * Makefile.in (shortlisp, lisp): Update for rename of
17445 ../lisp/language/myanmar.el.
17446
174472008-02-01 Chong Yidong <cyd@stupidchicken.com>
17448
17449 * xfaces.c (get_lface_attributes): Delete function.
17450 (merge_named_face, lookup_named_face, lookup_derived_face)
17451 (realize_named_face): Call lface_from_face_name directly, and use
17452 the fact that merge_face_vectors does not alter its FROM argument.
17453
174542008-02-01 Jason Rumney <jasonr@gnu.org>
17455
17456 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17457 input in the default locale. Handle non-Unicode multibyte input.
17458
174592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17460
17461 * fontset.c (reorder_font_vector): Exclude nil elements from the
17462 font group. Don't try multiple fonts.
17463 (fontset_font): Adjust for the above change.
17464 (Finternal_char_font): Return nil if the found font doesn't
17465 contain the character ch.
17466
17467 * Makefile.in (lisp, shortlisp): Add cham.el.
17468
174692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17470
17471 * font.h (FONTP): Make it return 1 also for a font-object.
17472
17473 * .gdbinit (xfontset): New function.
17474
17475 * font.c (font_find_for_lface): Check if the character C is
17476 supported or not only for the first font.
17477
17478 * fontset.c (reorder_font_vector): Fix typo.
17479 (fontset_find_font): Don't add a font-spec specifying a script.
17480 Use 0 (not Qt) for the indication of empty font-group. Change the
17481 format of RFONT-DEF. Return Qt if no font in the font-group
17482 support the character.
17483 (fontset_font): Adjust for the above change. If no font was
17484 found the character, remember that.
17485 (face_for_char): Adjust for the change of RFONT-DEF.
17486 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17487 no font for the target.
17488 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17489
174902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17491
17492 * font.c (font_load_for_face): Handle the case that the font in
17493 face->lface is a string.
17494
174952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17496
17497 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17498
174992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17500
17501 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17502 Fix previous change. If the frame is not on a window system,
17503 signal an error.
17504
175052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17506
17507 * coding.c (decode_coding_object, encode_coding_object): Adjust
17508 marker positions after conversion.
17509
17510 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17511
175122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17513
17514 * font.c (font_find_for_lface): Fix the handling of the return
17515 value of font_has_char.
17516 (Ffont_shape_text): Fix previous change.
17517
17518 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17519 (fontset_ref_and_range): Delete it.
17520 (fontset_find_font): Call char_table_ref_and_range instead of
17521 FONTSET_REF_AND_RANGE.
17522 (make_fontset): Don't setup font groups of Latin here.
17523 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17524 (new_fontset_from_font): Make the specified font the default for
17525 all Latin characters.
17526
175272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17528
17529 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17530 is on a window system before accessing the fontset of the frame.
17531
175322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17533
17534 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17535
17536 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17537 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17538
17539 * font.c (Ffont_shape_text): If the font driver doesn't have a
17540 shaper function, make zero-width glyphs to have at least one-pixel
17541 width. Fix setting of `to' field of glyphs.
17542
175432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17544
17545 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17546 glyphs.
17547
17548 * font.h (struct font_driver): Improve docstring of member `shape'.
17549
175502008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * composite.c (syms_of_composite): Fix docstring of
17553 auto-composition-function.
17554
17555 * font.h (LGLYPH_SIZE): New macro.
17556
17557 * font.c (Ffont_fill_gstring): Stop filling when a character not
17558 supported by the font is found.
17559 (Ffont_shape_text): When a shape callback function returns nil,
17560 try at most two more times with larger gstring.
17561 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17562
17563 * xdisp.c (handle_auto_composed_prop): Change the argument to
17564 auto-composition-function.
17565
17566 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17567 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17568 Lispy glyph and store it in the lgstring.
17569
17570 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17571
17572 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17573
175742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17575
17576 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17577
17578 * fontset.c (Vfont_encoding_charset_alist): New variable.
17579 (syms_of_fontset): DEFVAR it.
17580 (reorder_font_vector, fontset_find_font): Optimize for the case of
17581 no need of reordering.
17582 (face_for_char): Map the charset property by
17583 Vfont_encoding_charset_alist.
17584
175852008-02-01 Jason Rumney <jasonr@gnu.org>
17586
17587 * w32font.c (logfonts_match): Don't check adstyle here.
17588 (font_matches_spec): Check here against physical font instead.
17589 (add_font_entity_to_list): Avoid some substitutions.
17590
17591 * font.c (font_parse_fcname): Default weight and slant to normal.
17592 (font_score): Prefer normal fonts if weight or slant unspecified.
17593 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17594 match freetype scores.
17595
175962008-02-01 Jason Rumney <jasonr@gnu.org>
17597
17598 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17599 font, as it may have been deleted.
17600 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17601 most common hyphenless variation.
17602 (logfonts_match): Check generic family.
17603 (font_matches_spec): Don't check generic family here.
17604 (fill_in_logfont): Set generic family based on adstyle.
17605
17606 * w32font.h (w32font_get_cache): Update declaration.
17607
176082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17609
17610 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17611
17612 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17613 If none of the new drivers are available, call font_update_drivers
17614 with the old drivers.
17615
17616 * w32font.c (w32font_get_cache): Adjust the argument type.
17617
17618 * xfont.c (xfont_get_cache): Adjust the argument type.
17619
17620 * font.h (struct font_driver): Change argument type of get_cache.
17621
17622 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17623
17624 * font.c (Ffont_get): Fix arguments to Fassoc.
17625 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17626 (font_clear_cache): New function.
17627 (font_list_entities, font_matching_entity): Use font_get_cache.
17628 (font_update_drivers): Call font_clear_cache when finishing a driver.
17629
17630 * fontset.c (fontset_find_font): Fix previous change.
17631
176322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17633
17634 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17635 dpyinfo->font_table.
17636 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17637 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17638
17639 * font.c (font_at): Handle the case that the arg C is negative.
17640 Handle the unibyte case.
17641 (Ffont_at): Call font_at with the arg C -1.
17642
17643 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17644 the position here, and call font_at with the arg C -1.
17645 Don't check the range of the existing composition at the point.
17646
176472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17648
17649 * fontset.c (fontset_add): New args charset_id and family.
17650 Change caller.
17651 (load_font_get_repertory, fontset_find_font): Assume that
17652 font_spec is always a font-spec object.
17653 (Fset_fontset_font): Always store a font-spec object in a fontset.
17654
17655 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17656 instead of get_property_and_range.
17657
176582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17659
17660 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17661 (xftfont_open): Don't keep locking face.
17662 (xftfont_close): Don't unlock face.
17663 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17664
17665 * fontset.c (fontset_find_font): Don't prefer a font of
17666 supplementary charset.
17667
176682008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17671 script, langsys_tag to langsys, new member script.
17672 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17673 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17674 listing to the script specified in that property. Fix arg to
17675 OTF_check_features.
17676
176772008-02-01 Jason Rumney <jasonr@gnu.org>
17678
17679 * w32font.h: New file.
17680
17681 * w32font.c: Include it.
17682 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17683 (w32font_open): Set owning_frame.
17684 (w32font_text_extents): Use owning_frame.
17685 (struct font_callback_data): Add opentype_only field.
17686 (add_font_entity_to_list): Use it to filter fonts.
17687 Don't check against full name.
17688 (w32font_list_internal): New function.
17689 (w32font_list): Use it.
17690 (w32font_match_internal): New function.
17691 (w32font_match): Use it.
17692 (w32font_open_internal): New function.
17693 (w32font_open): Use it.
17694 (w32font_get_cache, w32font_close, w32font_has_char)
17695 (w32font_encode_char, w32font_text_extents, w32font_draw):
17696 Make non-static.
17697
17698 * makefile.w32-in (w32font.o): Depend on w32font.h.
17699
177002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17701
17702 * charset.c (Fdefine_charset_internal): Record a supplementary
17703 charset at the tail of Vcharset_order_list.
17704
17705 * font.c (Ffont_shape_text): Fix the return value.
17706
17707 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17708
17709 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17710
177112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17712
17713 * ftfont.c (struct OpenTypeSpec): New struct.
17714 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17715 (ftfont_get_open_type_spec): New function.
17716 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17717
17718 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17719
177202008-02-01 Jason Rumney <jasonr@gnu.org>
17721
17722 * w32font.c (add_font_entity_to_list): Compare only the beginning
17723 of full name.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17728 Never return HANDLED_RECOMPUTE_PROPS.
17729
177302008-02-01 Kenichi Handa <handa@m17n.org>
17731
17732 * font.c (font_gstring_produce): Delete it.
17733
17734 * composite.h (COMPOSITION_METHOD):
17735 Handle COMPOSITION_WITH_GLYPH_STRING.
17736
177372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17738
17739 * xfont.c (Qx): Delete.
17740 (syms_of_xfont): Don't initialize Qx.
17741
17742 * composite.h (enum composition_method):
17743 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17744
177452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17746
17747 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17748 (choose_face_font): Accept new form of font-spec.
17749
17750 * frame.h (font_driver_list): Declare it unconditionally.
17751 (struct frame): Define members font_driver_list and font_data_list
17752 unconditionally.
17753
17754 * fontset.c: Include "font.h" unconditionally.
17755 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17756 (Fset_fontset_font): Accept a font-spec object.
17757
17758 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17759 PIXEL_SIZE part a wild card.
17760
17761 * dispextern.h (struct glyph_string): Define members clip and
17762 num_clips unconditionally.
17763 (struct face): Define members font_info and extra unconditionally.
17764
17765 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17766 ftfont_info only when HAVE_LIBOTF is defined.
17767
177682008-02-01 Andreas Schwab <schwab@suse.de>
17769
17770 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17771 and end.
17772
177732008-02-01 Jason Rumney <jasonr@gnu.org>
17774
17775 * w32font.c (w32font_driver): Add new fields.
17776
177772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17778
17779 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17780 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17781 (LIBES): Add @M17N_FLT_CFLAGS@.
17782
17783 * composite.c (compose_text): Don't treat the new style
17784 composition specially.
17785
17786 * emacs.c (main): Call syms_of_font unconditionally.
17787
17788 * font.h (FONT_ENTITY_NOT_LOADABLE)
17789 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17790 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17791 (struct font_driver): New member shape.
17792 (font_registry_charsets): Extern it.
17793 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17794 (font_otf_capability, font_drive_otf): Delete their externs.
17795
17796 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17797 (font_charset_alist, font_registry_charsets): Move from xfont.c
17798 and rename.
17799 (font_prop_validate_otf): New function.
17800 (font_property_table): Register it for QCotf.
17801 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17802 (font_drive_otf): Delete.
17803 (font_prepare_composition): New arg F. Adjust for the change of
17804 lispy gstring.
17805 (font_find_for_lface): New arg C.
17806 (font_load_for_face): Adjust for the change of font_find_for_lface.
17807 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17808 lispy gstring.
17809 (Ffont_shape_text): New function.
17810 (Fopen_font): If the font size is not given, use 12-pixel.
17811 (Ffont_at): New arg STRING.
17812 (syms_of_font): Initalize font_charset_alist.
17813 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17814 conditionally.
17815
17816 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17817 fonts of the same font-spec. Change the format of RFONT-DEF.
17818 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17819 Adjust for the change of RFONT-DEF.
17820 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17821
17822 * ftfont.h: New file.
17823
17824 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17825 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17826 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17827 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17828 font_otf_capability and font_drive_otf, set ftfont_shape.
17829 (ftfont_list): Adjust for the change of :otf property value.
17830 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17831 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17832 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17833 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17834 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17835 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17836
17837 * w32term.c (x_draw_composite_glyph_string_foreground):
17838 Adjust for the change of lispy gstring.
17839
17840 * xdisp.c (handle_composition_prop): Adjust for the change of
17841 lispy gstring. Call a function for auto-composition with the
17842 third arg it->window.
17843 (fill_composite_glyph_string): Adjust for the change of lispy string.
17844 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17845
17846 * xfaces.c (set_font_frame_param): Adjust for the change of
17847 font_find_for_lface.
17848
17849 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17850 (xfont_registry_charsets): Likewise. Change caller.
17851 (syms_of_xfont): Don't handle x_font_charset_alist.
17852
17853 * xftfont.c: Include "ftfont.h".
17854 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17855 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17856 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17857 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17858 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17859 Set xftfont_driver.shape to xftfont_shape.
17860
17861 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17862 the change of lispy gstring.
17863
178642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17865
17866 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17867
178682008-02-01 Jason Rumney <jasonr@gnu.org>
17869
17870 * w32font.c (w32font_draw): Fill background manually.
17871
178722008-02-01 Jason Rumney <jasonr@gnu.org>
17873
17874 * font.c (Qfontp): Remove unused symbol.
17875 (QCantialias): New symbol.
17876 (syms_of_font): Define it.
17877 (font_property_table): Set a validator for QCantialias.
17878
17879 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17880 Define if not already.
17881 (QCfamily): Share with xfaces.c.
17882 (Qstandard, Qsubpixel, Qnatural): New symbols.
17883 (syms_of_w32font): Define them. Don't define QCfamily here.
17884 (w32_antialias_type, lispy_antialias_type): New functions.
17885 (w32_enumfont_pattern_entity): New arg requested_font.
17886 Set antialias parameter if non-default was requested.
17887 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17888
178892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17890
17891 * lread.c (read1): Undo the previous change.
17892
178932008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17894
17895 * frame.c (Fdelete_frame): Call font_update_drivers only when
17896 USE_FONT_BACKEND is defined.
17897
178982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17899
17900 * font.h (struct font_bitmap): New member bits_per_pixel.
17901 (struct font_driver): New members start_for_frame and end_for_frame.
17902 (struct font_data_list): New struct.
17903 (font_put_frame_data, font_get_frame_data): Extern them.
17904
17905 * frame.h (struct frame): New member font_data_list.
17906
17907 * font.c (font_update_drivers): Call driver->start_for_frame and
17908 driver->end_for_frame at proper timings.
17909 (font_put_frame_data, font_get_frame_data): New functions.
17910 (Ffont_spec): Add usage in the docstring.
17911
17912 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17913 (Fdelete_frame): Call font_update_drivers.
17914
17915 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17916 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17917 (xftfont_get_xft_draw): New function.
17918 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17919 (xftfont_end_for_frame): New function.
17920 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17921
17922 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17923 Change argument. Cache GCs in the per-frame data.
17924 (struct ftxfont_frame_data): New struct.
17925 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17926 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17927 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17928 (ftxfont_end_for_frame): New function.
17929 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17930
17931 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17932
179332008-02-01 Kenichi Handa <handa@m17n.org>
17934
17935 * xselect.c (Vselection_coding_system)
17936 (Vnext_selection_coding_system): Delete them.
17937 (syms_of_xselect): Don't declare selection-coding-system and
17938 next-selection-coding-system. They are declared in select.el.
17939
179402008-02-01 Jason Rumney <jasonr@gnu.org>
17941
17942 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17943
17944 * w32fns.c: Include imm.h.
17945 (get_composition_string_fn, get_ime_context_fn): New optional
17946 system functions.
17947 (globals_of_w32fns): Load them from imm32.dll.
17948 (ignore_ime_char): New flag.
17949 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17950 WM_IME_ENDCOMPOSITION messages.
17951
17952 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17953 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17954
179552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17956
17957 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17958 (READCHAR_REPORT_MULTIBYTE): New macro.
17959 (readchar): New 2nd arg MULTIBYTE.
17960 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17961 Make symbol's name multibyte according to the multibyteness of the
17962 source.
17963
179642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17965
17966 * xfaces.c (face_for_overlay_string): Call lookup_face with
17967 correct arguments (fix of synching with the trunk).
17968
179692008-02-01 Kenichi Handa <handa@m17n.org>
17970
17971 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17972 (font_prop_validate_non_neg, font_prop_validate_spacing):
17973 Delete argument prop_index.
17974 (font_property_table): Change arguments to validater. Change Callers.
17975 (font_lispy_object): Delete.
17976 (font_at): Use font_find_object instead fo font_lispy_object.
17977
179782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17979
17980 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17981 and file names.
17982
179832008-02-01 Jason Rumney <jasonr@gnu.org>
17984
17985 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17986 (font_matches_spec): Remove debug output.
17987 (add_font_entity_to_list): Avoid using substituted fonts.
17988
179892008-02-01 Jason Rumney <jasonr@gnu.org>
17990
17991 * doc.c (Fsnarf_documentation):
17992 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17993
179942008-02-01 Miles Bader <miles@gnu.org>
17995
17996 * dispextern.h (struct glyph_row): Only define "clip" field if
17997 HAVE_WINDOW_SYSTEM is defined.
17998
179992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18000
18001 Fix up multi-tty merge.
18002
18003 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18004 and indentation.
18005
18006 * xfaces.c (free_realized_face, clear_face_gcs):
18007 Include font_done_for_face in the input_blocked section, just in case.
18008
18009 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18010 (get_char_face_and_encoding): Undo last change and remove the *other*
18011 duplicate definition (i.e. keep the one that's better scoped and that
18012 includes code for the font-backend).
18013
18014 * terminal.c (create_terminal): Default keyboard_coding to
18015 `no-conversion' and terminal_coding to `undecided'.
18016
18017 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18018
18019 * fontset.c (free_realized_fontsets): Check that the table entry does
18020 contain a fontset before trying to compare it to `base'.
18021
18022 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18023 syms_of_charset, and syms_of_coding earlier because init_window_once
18024 now needs Vcoding_system_hash_table to be setup.
18025
18026 * coding.h (default_buffer_file_coding): Remove.
18027
18028 * coding.c (default_buffer_file_coding): Remove.
18029 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18030 than ->symbol, and use the terminal-local coding system.
18031 (syms_of_coding): Don't setup the coding-systems that are not
18032 terminal-local.
18033 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18034
18035 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18036 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18037
18038 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18039 in chartab.c and were re-added here by mistake.
18040 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18041
18042 * doc.c (Fsnarf_documentation):
18043 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18044 src to etc.
18045
18046 * ChangeLog.10: Add mistakenly removed entry.
18047
180482008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18049
18050 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18051
180522008-02-01 Miles Bader <miles@gnu.org>
18053
18054 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18055 Add extra args to FACE_FOR_CHAR.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18060 in sequence.
18061
18062 * chartab.c (map_sub_char_table, map_char_table): If the range
18063 contains just one character, call the function with that character
18064 even if the depth is not 3.
18065
180662008-02-01 Jason Rumney <jasonr@gnu.org>
18067
18068 * w32font.c (w32font_text_extents): Calculate metrics for the
18069 whole string.
18070
180712008-02-01 Jason Rumney <jasonr@gnu.org>
18072
18073 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18074
180752008-02-01 Jason Rumney <jasonr@gnu.org>
18076
18077 * w32term.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 * w32font.c (w32font_draw): Do clipping here.
18083
180842008-02-01 Kenichi Handa <handa@m17n.org>
18085
18086 * xftfont.c (xftfont_draw): Adjust for the change of struct
18087 glyph_string.
18088
18089 * xterm.c (x_set_glyph_string_clipping): Use
18090 get_glyph_string_clip_rects.
18091 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18092 Adjust for the change of struct glyph_string.
18093
18094 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18095 the resulting clip(s}.
18096 (expose_overlaps): Add arg r. Change callers. Set it to
18097 row->clip temporarily.
18098 (expose_window): Redraw rows overlapping the exposed area.
18099
18100 * dispextern.h (struct glyph_row): New member clip.
18101 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18102 clip_height, new member clip, and num_clips.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * data.c (Fchar_or_string_p): Fix docstring.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18111 create a temporary XftDraw object.
18112
181132008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * font.c (Ffontp): Fix docstring.
18116
18117 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18118 strong evidence of ISO-2022.
18119
181202008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18123 SYNTAX_ENTRY_FOLLOW_PARENT.
18124
181252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18126
18127 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18128 its type.
18129 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18130 Update to the new type of weak_hash_tables and next_weak.
18131
18132 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18133 a plain C pointer to Lisp_Hash_Table.
18134
18135 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18136 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18137 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18138 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18139 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18140 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18141 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18142 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18143 (GC_EQ): Remove since they've been identical to their non-GC_
18144 alter-egos ever since the markbit was eradicated.
18145
18146 * alloc.c:
18147 * buffer.c:
18148 * buffer.h:
18149 * data.c:
18150 * fileio.c:
18151 * filelock.c:
18152 * fns.c:
18153 * frame.h:
18154 * lisp.h:
18155 * macterm.c:
18156 * print.c:
18157 * process.c:
18158 * w32fns.c:
18159 * w32menu.c:
18160 * w32term.c:
18161 * xfns.c:
18162 * xmenu.c:
18163 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * chartab.c (map_sub_char_table): Make it work for the top-level
18168 char-table. Fix handling of parent char-table.
18169 (map_char_table): Adjust for the above change.
18170
181712008-02-01 Jason Rumney <jasonr@gnu.org>
18172
18173 * w32font.c (Qgdi): Rename from Qw32.
18174
181752008-02-01 Jason Rumney <jasonr@gnu.org>
18176
18177 * w32bdf.c (get_quoted_string): Make function static.
18178
181792008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18182 bigger ascent and descent than those of the font, use them as
18183 font's ascent and descent.
18184
181852008-02-01 Kenichi Handa <handa@m17n.org>
18186
18187 * Makefile.in (${lispsource}international/charprop.el): Move this
18188 target within "#ifdef HAVE_UNIDATA" and "#endif".
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18193 (shortlisp): Add ../lisp/language/tai-viet.el.
18194
181952008-02-01 Ulrich Mueller <ulm@gentoo.org>
18196
18197 * Makefile.in (${lispsource}international/charprop.el): Depend on
18198 temacs${EXEEXT}.
18199
182002008-02-01 Jason Rumney <jasonr@gnu.org>
18201
18202 * w32font.c (w32font_close): Delete the GDI font object.
18203
18204 * w32menu.c: Include character.h.
18205
18206 * w32proc.c: Likewise.
18207
18208 * w32select.c: Likewise.
18209
18210 * makefile.w32-in (w32proc.o): Depend on character.h.
18211
182122008-02-01 Jason Rumney <jasonr@gnu.org>
18213
18214 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18215
18216 * w32menu.c (syms_of_w32menu): Likewise.
18217
18218 * w32proc.c (syms_of_ntproc): Likewise.
18219
18220 * w32select.c (syms_of_w32select): Likewise.
18221
18222 * w32term.c (syms_of_w32term): Likewise.
18223
182242008-02-01 Jason Rumney <jasonr@gnu.org>
18225
18226 * w32font.c (w32font_draw): Delete brush after using it.
18227
182282008-02-01 Jason Rumney <jasonr@gnu.org>
18229
18230 * w32font.c (w32font_open): Don't set font_idx.
18231 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18232 to font settings.
18233 (w32font_draw): Fill background explicitly.
18234
182352008-02-01 Jason Rumney <jasonr@gnu.org>
18236
18237 * w32term.c (w32_initialize): Don't call w32font_initialize.
18238
18239 * w32font.c (w32font_info): Remove subranges.
18240 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18241 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18242 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18243 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18244 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18245 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18246 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18247 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18248 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18249 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18250 New symbols.
18251 (font_callback_data): New struct.
18252 (w32font_list, w32font_match): Use it.
18253 (w32font_open): Don't populate subranges.
18254 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18255 (w32font_encode_char): Always return unicode code-point as-is.
18256 (w32font_text_extents): Supply a transformation matrix to
18257 GetGlyphOutline. Never look up by glyph index. Avoid looping
18258 twice. Use unicode version of GetTexExtentPoint32 instead of
18259 glyph index version.
18260 (set_fonts_frame): Remove.
18261 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18262 set frame parameter. Use backward compatible fake foundries.
18263 Save generic family in extra slot under QCfamily. Make width slot
18264 constant. Save QCspacing value. Save list of scripts instead of
18265 binary subranges.
18266 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18267 (add_font_entity_to_list): Use font_callback_data struct. Filter
18268 unwanted fonts.
18269 (add_one_font_entity_to_list): Use font_callback_data struct.
18270 (w32_registry): Default to iso10646_1.
18271 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18272 string font registries. Don't fill in font name if it is a generic
18273 family name, fill family instead. Use spacing, family and script
18274 extra info to fill pitch, family and charset fields.
18275 (list_all_matching_fonts): Use font_callback_data struct.
18276 (unicode_range_for_char): Remove.
18277 (font_supported_scripts): New function.
18278 (w32font_initialize): Remove.
18279 (syms_of_w32font): Update which symbols are defined.
18280
182812008-02-01 Jason Rumney <jasonr@gnu.org>
18282
18283 * font.c (font_pixel_size): Reverse assq_no_quit args.
18284
18285 * w32term.h (FONT_WIDTH): Report max width, not average.
18286 (FONT_MAX_WIDTH): Remove.
18287 (FONT_AVG_WIDTH): New macro.
18288
18289 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18290 redefinition of FONT_WIDTH.
18291
18292 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18293 (w32_cache_char_metrics): Use FONT_WIDTH.
18294
18295 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18296
182972008-02-01 Jason Rumney <jasonr@gnu.org>
18298
18299 * w32font.c (w32font_open): Make lfHeight negative.
18300
18301 * w32fns.c (x_default_font_parameter): Use new style font name.
18302 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18303
183042008-02-01 Jason Rumney <jasonr@gnu.org>
18305
18306 * w32font.c (QCsubranges): New symbol.
18307 (w32font_open, w32font_has_char): Get subranges from subproperty
18308 of extra.
18309 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18310 (syms_of_w32font): Define :subranges symbol.
18311
18312 * font.c (font_put_extra): Expose externally.
18313
18314 * font.h (font_put_extra): Move declaration from font.c.
18315
18316 * font.c (Ffont_get): Use font driver to determine otf capability.
18317 (adjust_anchor): Check if driver defines anchor_point before using.
18318
18319 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18320 (w32font_draw): Use options.
18321 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18322 Fix detection of truetype fonts.
18323 (registry_to_w32_charset): Handle charsets other than iso8859-1
18324 expressed as lisp symbols.
18325 (w32_registry): Express charset as lisp symbol.
18326 (fill_in_logfont): Reverse pixel and point height logic.
18327 Don't set width here. Set quality to default.
18328
18329 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18330 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18331
18332 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18333 Remove redundant loop and allocation.
18334
18335 * makefile.w32-in (font.o, w32font.o): New objects.
18336 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18337 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18338
18339 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18340 STORE_XCHARB a valid l-value.
18341
18342 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18343 calculations for non-Truetype fonts.
18344 (x_draw_glyph_string): Sync with xterm.c.
18345 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18346 Remove redundant code.
18347 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18348
18349 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18350 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18351
18352 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18353 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18354
18355 * w32font.c: New file for w32 font backend.
18356
183572008-02-01 Kenichi Handa <handa@m17n.org>
18358
18359 * term.c: Don't include "buffer.h" twice.
18360
183612008-02-01 Kenichi Handa <handa@m17n.org>
18362
18363 * character.c (Funibyte_string): New function.
18364 (syms_of_character): Defsubr it.
18365
183662008-02-01 Jason Rumney <jasonr@gnu.org>
18367
18368 * w32term.c [USE_FONT_BACKEND]:
18369 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18370 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18371 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18372 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18373 (x_free_frame_resources): Sync with xterm.c.
18374
183752008-02-01 Andreas Schwab <schwab@suse.de>
18376
18377 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18378 char-table size.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18383
183842008-02-01 Kenichi Handa <handa@m17n.org>
18385
18386 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18387 font_otf_gpos, add font_drive_otf.
18388
18389 * fontset.c (fontset_find_font): Pay attention to font size
18390 specified for a font.
18391 (reorder_font_vector): Check contents of font_def.
18392
18393 * font.c (struct otf_list): Delete it.
18394 (otf_list): Make it a lisp variable.
18395 (otf_open): Use lispy otf_list.
18396 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18397 (check_otf_features): New function.
18398 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18399 New functions.
18400 (font_drive_otf): New function merging font_otf_gsub and
18401 font_otf_gpos.
18402 (font_open_for_lface): New arg spec. Change argument order.
18403 (font_load_for_face): Adjust for the change of font_open_for_lface.
18404 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18405 Ffont_otf_gpos.
18406 (syms_of_font): Staticpro otf_list. Delete defsubr of
18407 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18408
18409 * xfaces.c (set_font_frame_param): Adjust for the change of
18410 font_open_for_lface.
18411
18412 * font.h (font_open_for_lface): Adjust prototype.
18413 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18414 member otf_drive.
18415 (font_otf_gsub, font_otf_gpos): Delete externs.
18416 (font_drive_otf): Extern it.
18417
184182008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * font.c (font_at): If the window W is not on a window system,
18421 return Qnil.
18422
18423 * coding.c (produce_chars, encode_coding): Don't call
18424 insert_from_gap if no characters to produce.
18425
184262008-02-01 Kenichi Handa <handa@m17n.org>
18427
18428 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18429 Fclear_face_cache.
18430
18431 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18432
184332008-02-01 Miles Bader <miles@gnu.org>
18434
18435 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18436 Parse "--disable-font-backend" option.
18437 (standard_args): Add "--disable-font-backend" option.
18438
184392008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * fontset.c (fontset_find_font): New function.
18442 (fontset_font): Use fontset_find_font.
18443 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18444 Register the specified font for all Latin characters.
18445 (new_fontset_from_font): Register the specified font for all Latin
18446 characters.
18447 (dump_fontset): For a realized fontset, include the base fontset
18448 name in the returned vector.
18449
184502008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * character.h (CHAR_STRING): Cast C to unsigned on calling
18453 char_string.
18454
18455 * character.c (char_string): Type of arg C changed to unsigned.
18456 Signal an error if C is an invalid character code.
18457
18458 * editfns.c (general_insert_function, Fchar_to_string):
18459 Use CHARACTERP, not INTEGERP.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18464 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18465
18466 * regex.c (analyse_first): Fix for multibyte characters in "case
18467 charset:" and "case categoryspec:".
18468
184692008-02-01 Andreas Schwab <schwab@suse.de>
18470
18471 * Makefile.in (LIBES): Move standard libraries to the end.
18472
184732008-02-01 Kenichi Handa <handa@m17n.org>
18474
18475 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18476 nonzero, don't shrink the buffer nextb.
18477
18478 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18479
18480 * coding.c (coding_alloc_by_making_gap): New arg offset.
18481 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18482 offset.
18483 (decode_coding_iso_2022): Update coding->safe_charsets.
18484 (decode_coding_gap): Temporarily set
18485 current_buffer->text->inhibit_shrinking to 1.
18486
184872008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18490 indexing into elements of s->cmp and s->char2b.
18491
184922008-02-01 Juanma Barranquero <lekktu@gmail.com>
18493
18494 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18499 target_multibyte instead of multibyte.
18500 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18501 (bcmp_translate): Change the argument name from multibyte to
18502 target_multibyte.
18503
185042008-02-01 Kenichi Handa <handa@m17n.org>
18505
18506 These changes are to compile a regexp into a pattern that can be
18507 used both for multibyte and unibyte targets.
18508
18509 * Makefile.in (search.o): Depend on charset.h.
18510
18511 * character.c (multibyte_char_to_unibyte_safe): New function.
18512
18513 * search.c: Include "charset.h".
18514 (compile_pattern_1): Delete argument multibyte. Don't set
18515 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18516 (compile_pattern): Don't compare cp->buf.target_multibyte.
18517 Compare cp->buf.charset_unibyte.
18518 (compile_pattern): Set cp->buf.target_multibyte.
18519
18520 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18521
18522 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18523
18524 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18525 multibyte. Change callers.
18526 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18527 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18528 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18529 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18530 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18531 (regex_compile): Make the compiled pattern usable both for
18532 multibyte and unibyte targets.
18533 (analyse_first): Make the fastmap usable both for multibyte and
18534 unibyte targets.
18535 (TRANSLATE_VIA_MULTIBYTE): Delete.
18536 (re_match_2_internal): Pay attention to the case that the
18537 multibyteness of bufp and target may be different.
18538
185392008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18542 empty box occupy at least one column width.
18543
185442008-02-01 Miles Bader <miles@gnu.org>
18545
18546 * Makefile.in: Remove redundant HAVE_XFT clause.
18547
185482008-02-01 Kenichi Handa <handa@m17n.org>
18549
18550 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18555 being nil.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18560
185612008-02-01 Kenichi Handa <handa@m17n.org>
18562
18563 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18564
185652008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * search.c (simple_search): Fix previous change.
18568
185692008-02-01 Kenichi Handa <handa@m17n.org>
18570
18571 * xftfont.c (ftfont_font_format): Extern declaration.
18572
18573 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18574
18575 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18576 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18577
18578 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18579 (ftfont_font_format): Fix previous change.
18580
18581 * font.h (Ffont_xlfd_name): EXFUN it.
18582
18583 * font.c (font_parse_xlfd): Fix the array size of `f'.
18584 (register_font_driver): Use EQ to compare driver->type.
18585
18586 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18587 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18588 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18589
185902008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18593 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18594
185952008-02-01 Kenichi Handa <handa@m17n.org>
18596
18597 * xfont.c (xfont_open): Set font->format.
18598
18599 * xftfont.c (xftfont_open): Set font->format.
18600
18601 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18602 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18603 (ftfont_open): Set font->format.
18604 (ftfont_font_format): New function.
18605
18606 * font.h (struct font): New member format.
18607
18608 * font.c (Qopentype): New variable.
18609 (syms_of_font): Defsym it.
18610 (Fquery_font): Change the format of the last element of the return
18611 value.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18616 last resort.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * coding.c (detect_coding_charset): Fix detection of multi-byte
18621 charset.
18622
186232008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18624
18625 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * xdisp.c (get_next_display_element): Set it->face_id for the
18630 first component of a composition.
18631 (x_produce_glyphs): Check if the font is changed or not for composition.
18632
186332008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * fontset.c (Qlatin): New variable.
18636 (syms_of_fontset): Define it as a lisp symbol.
18637 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18638
186392008-02-01 Kenichi Handa <handa@m17n.org>
18640
18641 * font.c (font_unparse_fcname): Pay attention to the case that
18642 some of font property is a null string.
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * term.c: Include "composite.h".
18647 (encode_terminal_code): Output all components of composition.
18648 Check the size of encode_terminal_src.
18649 (produce_glyphs): For composition, call produce_composite_glyph.
18650 (append_composite_glyph, produce_composite_glyph): New functions.
18651
18652 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18653 is not found, get font_info from the current ascii face.
18654
186552008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18658 buffer-file-name to Qnil before calling insert_from_buffer.
18659
18660 * font.c (font_unparse_fcname): Pay attention to the case that
18661 foundry is a null string.
18662
186632008-02-01 Kenichi Handa <handa@m17n.org>
18664
18665 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18666
18667 * font.c (Qunicode_sip): New variable.
18668 (syms_of_font): Declare it as a Lisp symbol.
18669
18670 * font.h (Qunicode_sip): Extern it.
18671
186722008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * composite.c (get_composition_id): Pay attention to TAB component.
18675
18676 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18677 TAB. Adjust for the change of s->char2b which always points to
18678 the first element of allocated memory.
18679
18680 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18681
18682 * xdisp.c (handle_composition_prop): Set it->c to the first
18683 non-TAB component.
18684 (fill_composite_glyph_string): Change argument.
18685 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18686 (x_produce_glyphs): Fix handling of left/right padding.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * coding.c (detect_coding_system): Fix for handling off
18691 inhibit_iso_escape_detection. Fix for the case that no coding
18692 system is defined for a specific coding category.
18693
186942008-02-01 Kenichi Handa <handa@m17n.org>
18695
18696 * font.c (font_matching_entity): Delete unused local var.
18697
18698 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18699 opening a font.
18700
18701 * fileio.c (Finsert_file_contents): On recovering a file, assume
18702 Unix-like eol.
18703 (choose_write_coding_system): On auto-saving a file, force
18704 Unix-like eol.
18705
18706 * coding.c (setup_coding_system): Fix setting of
18707 coding->common_flags based on eol_type.
18708 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18709 inherit from it.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * alloc.c (NSTATICS): Increas to 0x600.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18718 (ftfont_list): Don't check :name property.
18719 (ftfont_match): New function.
18720 (ftfont_pattern_entity): If the pattern doesn't contain
18721 FC_SPACING, don't assume FC_MONO.
18722
18723 * font.h (struct font_driver): New member `match'.
18724 (font_update_drivers): Adjust prototype.
18725
18726 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18727 property of FONT.
18728 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18729 them unconditionally.
18730 (font_matching_entity): New function.
18731 (font_open_by_name): Try font_matching_entity if exact match is
18732 not found.
18733 (font_update_drivers): Delete the arg FONT. Return a list of
18734 actually used backends. Don't free faces, font caches here.
18735 Don't store data in frame parameters. Don't call x_set_font.
18736 (Ffont_spec): Store :name property as is.
18737 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18738 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18739 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18740 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18741 Call font->driver->otf_gsub instead of font_otf_gsub.
18742
18743 * frame.c (x_set_font_backend): Do more works that were done in
18744 font_update_drivers before.
18745
18746 * xfont.c (xfont_match): New function.
18747 (xfont_driver): Set xfont_driver.match to xfont_match.
18748 (xfont_draw): Set font in GC if necessary.
18749
18750 * ftxfont.c (ftxfont_match): New function.
18751 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18752
18753 * xftfont.c (xftfont_match): New function.
18754 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18755
187562008-02-01 Kenichi Handa <handa@m17n.org>
18757
18758 * font.h (struct font): New member scalable.
18759 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18760 (font_otf_gsub): Adjust prototype.
18761
18762 * font.c (font_otf_capability): Fix handling of the default langsys.
18763 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18764 Check the contents of SPEC.
18765 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18766 (check_gstring): New function.
18767 (REPLACEMENT_CHARACTER): New macro.
18768 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18769 glyph codes of GSTRING.
18770 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18771 (font_prepare_composition): Set cmp->glyph_len.
18772 (font_open_entity): Set font->scalable.
18773 (Ffont_get): Handle :otf property.
18774 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18775 functions.
18776 (Fquery_font): Use font->font.full_name.
18777 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18778 Sfont_otf_alternates.
18779
18780 * ftfont.c (ftfont_open): Set font->font.full_name and
18781 font->font.name properly. Fix calculation of font->font.height
18782 and font->min_width.
18783
18784 * ftxfont.c (ftxfont_create_gcs): New function.
18785 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18786 (ftxfont_draw_backgrond): Fix filling region.
18787 (ftxfont_default_fid): New function.
18788 (ftxfont_open): Set xfont->fid to the return value of
18789 ftxfont_default_fid.
18790 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18791 (ftxfont_done_face): Free only GCs that are created by
18792 ftxfont_create_gcs.
18793 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18794
18795 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18796 Clip to src->width, etc (not src->clip_XXX).
18797
18798 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18799 FontBackend frame parameter.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * font.h (struct font_driver_list): New member `on'.
18804 (Fclear_font_cache): EXFUN it.
18805 (font_update_drivers): Extern it.
18806
18807 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18808 (font_list_entities): Check driver_list->on.
18809 (register_font_driver): Initalize `on' member to 0.
18810 (font_update_drivers): New function.
18811 (Fclear_font_cache): Check driver_list->on.
18812
18813 * frame.h (Qfont_backend): Extern it.
18814 (x_set_font_backend): Extern it.
18815
18816 * frame.c (Qfont_backend): New variable.
18817 (frame_parms): New element for font-backend.
18818 (x_set_font_backend): New function.
18819
18820 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18821 FontBackend frame parameter.
18822 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18823 x_set_font_backend.
18824
18825 * xfont.c (xfont_list): Don't try listing by :name property if the
18826 name is not for XLFD.
18827
188282008-02-01 Kenichi Handa <handa@m17n.org>
18829
18830 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18831 (LGLYPH_SET_TO): New macros.
18832 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18833 element of G is vector or not.
18834 (font_at): Extern it.
18835
18836 * font.c: Include window.h.
18837 (font_lispy_object): New function.
18838 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18839 end of valid glyph.
18840 (font_close_object): Fix getting (struct font *).
18841 (font_at): New function.
18842 (Ffont_get): If FONT is a font-object, get entity from it.
18843 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18844 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18845 range check.
18846 (Ffont_at): New function.
18847 (syms_of_font): Defsubr Sfont_at.
18848
18849 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18850 before the entry for Qcomposition.
18851 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18852 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18853 the font in gstring.
18854 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18855 LGLYPH_FORM (g) to detect the end of valid glyph.
18856 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18857 we are composing with gstring.
18858
18859 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18860 Check if adjustment is vector or not.
18861
18862 * Makefile.in (font.o): Make it depends on window.h.
18863
188642008-02-01 Kenichi Handa <handa@m17n.org>
18865
18866 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18867 adjustment is vector or not.
18868
188692008-02-01 Miles Bader <miles@gnu.org>
18870
18871 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18872
188732008-02-01 Kenichi Handa <handa@m17n.org>
18874
18875 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18876 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18877 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18878
18879 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18880 (DEVICE_DELTA): Fix typo.
18881 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18882 LGLYPH format.
18883
18884 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18885 the change of LGLYPH format.
18886
188872008-02-01 Kenichi Handa <handa@m17n.org>
18888
18889 * ftfont.c (ftfont_list): Fix typo.
18890 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18891
188922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18893
18894 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18895
18896 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18897 xftface_info is non-NULL.
18898
188992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18900
18901 * ftfont.c (ftfont_list): Move misplaced #endif.
18902
189032008-02-01 Kenichi Handa <handa@m17n.org>
18904
18905 * ftfont.c (ftfont_list): Pay attention to the case that
18906 FC_CAPABILITY is not defined.
18907
189082008-02-01 Kenichi Handa <handa@m17n.org>
18909
18910 * xftfont.c (xftfont_open): Set charset related members to -1.
18911
18912 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18913 QCname.
18914 (ftfont_open): Set charset related members to -1.
18915
18916 * fontset.c (Votf_script_alist): New variable.
18917 (syms_of_fontset): Initialize it.
18918 (fontset_font): Delete unused variable.
18919
18920 * fontset.h (Votf_script_alist): Extern it.
18921
18922 * font.c (font_find_for_lface): Optimize code.
18923
18924 * font.h (font_close_object, font_merge_old_spec): Extern them.
18925
189262008-02-01 Kenichi Handa <handa@m17n.org>
18927
18928 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18929 (syms_of_font): Initialize them.
18930 (font_pixel_size): Allow float value in dpi.
18931 (font_prop_validate_type): Delete.
18932 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18933 Change caller.
18934 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18935 (font_prop_validate_extra): Delete.
18936 (font_prop_validate_spacing): New function.
18937 (font_property_table): Add elements for all known properties.
18938 (get_font_prop_index): Rename from check_font_prop_name. New
18939 argument FROM. Change caller.
18940 (font_prop_validate): Validate all known properties.
18941 (font_put_extra): Delete argument force. Change caller.
18942 (font_expand_wildcards): Make it static. Fix the way of shrinking
18943 the possible range.
18944 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18945 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18946 Change caller.
18947 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18948 (font_parse_fcname): Delete argument merge. Fix parsing of point
18949 size. Don't validate properties values here. Change caller.
18950 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18951 (font_open_by_name): Delete unused variable.
18952 (Ffont_spec): Likewise. Validate property values.
18953 (Ffont_match_p): New function.
18954
18955 * font.h (QCscalable): Extern it.
18956 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18957
18958 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18959
18960 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18961 (xfont_list_pattern): New function.
18962 (xfont_list): Use xfont_list_pattern.
18963
189642008-02-01 Kenichi Handa <handa@m17n.org>
18965
18966 * font.h (Flist_fonts): EXFUN it.
18967
189682008-02-01 Jason Rumney <jasonr@gnu.org>
18969
18970 * w32term.c (w32_initialize): Add back smoothing_type and
18971 smoothing_enabled definitions.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18976 s->face->font on determining underline position.
18977
189782008-02-01 Kenichi Handa <handa@m17n.org>
18979
18980 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18981 (font_has_char): Accept font-object too.
18982 (font_find_for_lface): Try at first with a size specified in face.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18987 font_open_by_name.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * font.h (QCspacing, QCdpi): Extern them.
18992 (enum font_spacing): New enum.
18993 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18994
18995 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18996 (QCspacing, QCdpi): New variables.
18997 (syms_of_font): Initialize them.
18998 (font_pixel_size): New function.
18999 (font_put_extra): New function.
19000 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19001 in FONT_EXTRA.
19002 (font_parse_fcname): Handle enumerated values (e.g. bold).
19003 Fix handling font size. Add QCname property that contains only
19004 unknown properties.
19005 (font_score): Change argument. Change caller. Pay attention to
19006 FONT_PIXEL_SIZE_QUANTUM.
19007 (font_sort_entites, font_list_entities, font_find_for_lface)
19008 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19009 (Ffont_spec): Add QCname property that contains only unknown properties.
19010
19011 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19012 include weight in listing pattern, instead check weight of each
19013 listed font. Don't include scalable in pattern. Pay attention to
19014 FONT_PIXEL_SIZE_QUANTUM.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * font.c (font_parse_fcname): Fix parsing of point-size.
19019 (font_unparse_fcname): Produce symbolic names for style properties.
19020 (font_list_entities): Handle float size correctly.
19021 (font_open_by_name): Prefer `normal' property values if the name
19022 doesn't specify them.
19023
19024 * fontset.c (Finternal_char_font): Use font_get_name, not
19025 Ffont_xlfd_name.
19026
19027 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19028 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19029 pattern. Don't force scalable.
19030
19031 * xftfont.c (xftfont_open): For generating a name, start from
19032 96-byte buffer.
19033
190342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19035
19036 * frame.h (x_new_fontset2): Fix prototype.
19037
190382008-02-01 Kenichi Handa <handa@m17n.org>
19039
19040 * font.h (struct font_driver): Delete member parse_name.
19041 (font_match_p, font_get_spec, font_parse_fcname)
19042 (font_unparse_fcname): Extern them.
19043 (font_get_name): Adjust prototype.
19044
19045 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19046 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19047 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19048 unnecessary checks for weight, slant, and swidth.
19049 (font_parse_fcname): New function.
19050 (font_unparse_fcname): New function.
19051 (font_parse_name): New function.
19052 (font_match_p): New function.
19053 (font_get_name): Change return value to Lisp string.
19054 (font_get_spec): New function.
19055 (Qunspecified, Qignore_defface): Don't extern them.
19056 (font_find_for_lface): Assume that LFACE is fully specified.
19057 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19058 object, use it for FACE.
19059 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19060 driver->parse_name.
19061 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19062
19063 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19064 prototype.
19065
19066 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19067 argument F. Don't call Fnew_fontset. Instead, directly call
19068 make_fontset.
19069
19070 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19071
19072 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19073 of x_new_fontset2.
19074
19075 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19076 (Qsans__serif): New variables.
19077 (ftfont_generic_family_list): New variable.
19078 (syms_of_ftfont): Initialize the above variables.
19079 (ftfont_pattern_entity): Delete argument NAME.
19080 (ftfont_list_generic_family): New function.
19081 (ftfont_parse_name): Delete this function.
19082 (ftfont_list): Try generic family only when FcFontList found no font.
19083 (ftfont_list_family): Fix args to FcObjectSetBuild.
19084
19085 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19086 object in attrs[LFACE_FONT_INDEX].
19087 (set_lface_from_font_name): Cancel all changes for font-backend.
19088 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19089 function.
19090 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19091 font object in QCfont attribute.
19092 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19093 (realize_default_face) [USE_FONT_BACKEND]: Call
19094 set_lface_from_font_and_fontset.
19095
19096 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19097 "fixed", and signal error here if no suitable font was found.
19098
19099 * xfont.c (xfont_parse_name): Delete this function.
19100
19101 * xftfont.c (xftfont_open): Change coding style of error
19102 handling. Generate fontconfig's fontname pattern.
19103
19104 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19105 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19106
19107 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19108 Both args FONTSET and FONT_OBJECT must be existing ones.
19109
191102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19111
19112 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19117
19118 * font.h (struct font): Fix typo.
19119
19120 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19121 XLFD_XXX_INDEX.
19122 (enum xlfd_field_mask): New enum.
19123 (intern_font_field): Changed argument. Change caller. If digits
19124 are followed by non-digits, return a symbol.
19125 (font_expand_wildcards): New function.
19126 (font_parse_xlfd): Fix wildcard handling.
19127 (Ffont_spec): If :name is specified, reflect the info in the other
19128 properties.
19129
19130 * ftfont.c (ftfont_pattern_entity): Fix typo.
19131 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19132 locale.
19133
191342008-02-01 Kenichi Handa <handa@m17n.org>
19135
19136 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19137
19138 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19139 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19140 registry doesn't specify encoding part.
19141 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19142 (font_open_by_name): At first try parsing the name.
19143 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19144 as Lisp symbols.
19145
19146 * fontset.c (reorder_font_vector): Pay attention to the case that
19147 the 3rd element of font_def is nil.
19148 (fontset_font): For the default fontset, append one more fontset
19149 elements for a script-based font specification. Don't add script
19150 attribute on finding a font.
19151 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19152 font name.
19153 (fontset_ascii_font): If a font can't be opened, return nil.
19154
19155 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19156 (ftfont_pattern_entity): New function.
19157 (ftfont_get_cache): Assume that freetype_font_cache is already
19158 initialized.
19159 (ftfont_list): Handle the case that a file is specified in font
19160 name. Use ftfont_pattern_entity to generate entities.
19161 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19162 (syms_of_ftfont): Initialize freetype_font_cache.
19163
19164 * xftfont.c (xftfont_open): Make the font name fontconfig's
19165 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19166 (xftfont_close): Free font->font.name if not NULL.
19167
19168 * xfont.c (xfont_list): If script is specified for a font, return
19169 null_vector.
19170 (xfont_list_family): Declare argument type.
19171
19172 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19173 name, set LFACE_FONT (lface) to nil.
19174
19175 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19176 return Qnil.
19177
191782008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19181 (standard_args): Add "-enable-font-backend".
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19186 (struct xftdraw_list, xftdraw_list): Delete them.
19187 (register_xftdraw, check_xftdraw): Delete them.
19188 (xftfont_prepare_face): Don't call register_xftdraw.
19189 (xftfont_done_face): Don't call check_xftdraw.
19190 (xftfont_draw): Get background color only when with_background is
19191 nonzero.
19192
19193 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19194
191952008-02-01 Kenichi Handa <handa@m17n.org>
19196
19197 These changes are for the new font handling codes.
19198
19199 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19200 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19201 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19202 (FONTSRC, FONTOBJ): New variables.
19203 (obj): Add $(FONTOBJ).
19204 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19205 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19206 @LIBOTF_LIBS@.
19207 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19208 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19209
19210 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19211
19212 * character.h (Vscript_representative_chars): Extern it.
19213
19214 * character.c (Vscript_representative_chars): New variable.
19215 (syms_of_character): Declare it as a Lisp variable.
19216
19217 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19218 enable_font_backend is nonzero, accept the composition method
19219 COMPOSITION_WITH_GLYPH_STRING.
19220
19221 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19222 enumeration COMPOSITION_WITH_GLYPH_STRING.
19223
19224 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19225 members clip_x, clip_y, clip_width, and clip_height.
19226 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19227
19228 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19229 --enable-font-backend. Call syms_of_font.
19230
19231 * fns.c (assoc_no_quit): New function.
19232
19233 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19234 (face_for_font, new_fontset_from_font)
19235 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19236
19237 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19238 (fontset_font, fontset_ascii, face_for_char)
19239 (make_fontset_for_ascii_face, Ffont_info)
19240 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19241 is nonzero, use font-backend mechanism.
19242 (find_font_encoding): Make it non-static.
19243 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19244 New functions.
19245
19246 * frame.h (struct frame): New members resx and resy.
19247 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19248 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19249
19250 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19251 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19252
19253 * lisp.h (assoc_no_quit): Extern it.
19254
19255 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19256 Through out the file, use FONT_INFO_FROM_FACE instead of
19257 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19258 rif->per_char_metric.
19259 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19260 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19261 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19262 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19263 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19264 nonzero, use font-backend mechanism.
19265 (get_per_char_metric): New function.
19266
19267 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19268 (set_lface_from_font_name)
19269 (set_font_frame_param, free_realized_face)
19270 (prepare_face_for_display, clear_face_gcs)
19271 (Finternal_set_font_selection_order, realize_x_face)
19272 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19273 font-backend mechanism.
19274 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19275 (load_face_font) [USE_FONT_BACKEND]: Abort.
19276 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19277 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19278
19279 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19280 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19281 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19282 nonzero, register all available font drivers. Call
19283 x_default_font_parameter for deciding a font.
19284 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19285
19286 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19287 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19288 (x_set_glyph_string_clipping_exactly)
19289 (x_compute_glyph_string_overhangs)
19290 (x_draw_glyph_string_foreground)
19291 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19292 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19293 enable_font_backend is nonzero, use font-backend mechanism.
19294 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19295
192962008-02-01 Kenichi Handa <handa@m17n.org>
19297
19298 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19299 system_eol_type.
19300 (syms_of_coding): Initialize system_eol_type.
19301
19302 * process.c (Fset_process_coding_system): Inherit system's eol
19303 format if necessary.
19304
193052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19306
19307 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * coding.c (decode_eol): Pay attention to buffer relocation in
19312 del_range_2.
19313 (decode_coding): Call decode_eol before restoring undo_list.
19314
193152008-02-01 Kenichi Handa <handa@m17n.org>
19316
19317 * charset.c (Fdefine_charset_internal): Fix setting of
19318 emacs_mule_bytes.
19319
193202008-02-01 Kenichi Handa <handa@m17n.org>
19321
19322 * keyboard.c (read_char): Check if C is a character or not before
19323 looking up Vkeyboard_translate_table.
19324
193252008-02-01 Kenichi Handa <handa@m17n.org>
19326
19327 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19328 condition to terminate the loop.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * coding.c (produce_composition): Compare charbuf[i] instead of
19333 args[i] against 0.
19334 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19335
193362008-02-01 Kenichi Handa <handa@m17n.org>
19337
19338 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19339 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19340 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19341 detect_coding.
19342 (emacs_mule_char): Handle old style (Emacs 20) component character
19343 of a composition.
19344 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19345 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19346 composition rule.
19347 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19348
193492008-02-01 Kenichi Handa <handa@m17n.org>
19350
19351 * coding.c (encode_coding_ccl): Allocate destination dynamically
19352 when necessary.
19353
193542008-02-01 Kenichi Handa <handa@m17n.org>
19355
19356 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19357 the loop. When quitted, show a proper error message.
19358
193592008-02-01 Kenichi Handa <handa@m17n.org>
19360
19361 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19362 src->clip_head and src->clip_tail temporarily instead of src->hl.
19363
19364 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19365 character sequence.
19366 (Fccl_execute_on_string): Use ASET, not XSET.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19371
193722008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * coding.c (decode_coding): Fix the condition of terminating the
19375 decoding loop.
19376
193772008-02-01 Kenichi Handa <handa@m17n.org>
19378
19379 * data.c (Faset): On setting a character bigger than 255 in a
19380 unibyte string, signal an error instead of make the string multibyte.
19381
193822008-02-01 Kenichi Handa <handa@m17n.org>
19383
19384 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19385 made by a mapping table.
19386
193872008-02-01 Kenichi Handa <handa@m17n.org>
19388
19389 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19390 not.
19391 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19392 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19393
19394 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19395 s->face is NULL or not.
19396
193972008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19400 (x_draw_glyph_string): Fix drawing of right_overhang and
19401 left_overhang around/on cursor.
19402
19403 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * coding.c (Fdefine_coding_system_internal)
19412 (Fdefine_coding_system_alias): Avoid a duplicated element in
19413 Vcoding_system_alist.
19414
194152008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19418
19419 * coding.c (Qcoding_system_define_form): New variable.
19420 (syms_of_coding): Intern and staticpro it.
19421 (Fcoding_system_p): Check Qcoding_system_define_form.
19422 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19423
19424 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19425 Fcoding_system_p.
19426 (CHECK_CODING_SYSTEM): If ID is not available, call
19427 Fcheck_coding_system.
19428 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19429 Try also Fcheck_coding_system.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * coding.c (code_conversion_restore): GCPRO arg.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * character.c (lisp_string_width): Check multibyteness of STRING.
19438
194392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19440
19441 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19442 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19443 (decode_mac_font_name): Use decode_coding_c_string instead of
19444 decode_coding.
19445 (x_load_font): Initialize fontp->fontset to -1. Set
19446 fontp->encoding_type.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * search.c (search_buffer): Give up BM search on case-fold-search
19451 if one of a target character has a case-equivalence of different
19452 byte length even if that target charcter is an ASCII.
19453 (simple_search): Fix calculation of byte length of matched text.
19454 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * coding.c (decode_coding): Fix handling of invalid bytes.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19463 Unicode characters.
19464
194652008-02-01 Kenichi Handa <handa@m17n.org>
19466
19467 * coding.c (encode_coding_object): If a pre-write-conversion
19468 function makes a new buffer, kill it.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * coding.c (QCascii_compatible_p): New variable.
19473 (syms_of_coding): Initialize it.
19474 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19475 calling string_char.
19476 (record_conversion_result): Add `default:' case.
19477 (coding_charset_list): Delete unused variable `coding_type'.
19478 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19479 property in the plist of the coding system.
19480 (Fcoding_system_put): Check QCascii_compatible_p.
19481
194822008-02-01 Miles Bader <miles@gnu.org>
19483
19484 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19485 removed calculation of frame `f', as it's now used.
19486
194872008-02-01 Kenichi Handa <handa@m17n.org>
19488
19489 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19490 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19491 (UNIDATA): New variable.
19492 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19493 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19494 $(RUN_TEMACS) unconditionally.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19499 (admindir): New variable.
19500 ($(lispsource)international/charprop.el): New target.
19501
195022008-02-01 Miles Bader <miles@gnu.org>
19503
19504 * character.c (chars-in-region): Remove obsolete function.
19505 (syms_of_character): Remove its initialization.
19506
195072008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19508
19509 * w32select.c (validate_coding_system)
19510 (setup_windows_coding_system): New functions.
19511 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19512 setup_windows_coding_system.
19513 (setup_config, Fw32_get_clipboard_data): Use
19514 validate_coding_system.
19515 (Fx_selection_exists): Move call to setup_config to a place
19516 where signals are allowed.
19517
19518 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19519 (Fcheck_coding_system): Add declarations.
19520
195212008-02-01 Kenichi Handa <handa@m17n.org>
19522
19523 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19524
195252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19526
19527 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19528 string as the second argument for x_new_fontset.
19529
195302008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19533 (encode_coding_object): Use safe_call instead of call2.
19534
195352008-02-01 Kenichi Handa <handa@m17n.org>
19536
19537 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19538
19539 * Makefile.in (lisp): Include charprop.el.
19540
195412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19542
19543 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19544 Not sure if it's unnecessary.
19545
195462008-02-01 Steven Tamm <steventamm@mac.com>
19547
19548 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19549 some possibly unnecessary fontset checking code that crashed
19550 when creating a new frame.
19551
195522008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19555 lookup_face.
19556
19557 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19558
19559 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19564 (coding_charset_list): New function.
19565
19566 * coding.h (coding_charset_list): Extern it.
19567
195682008-02-01 Kenichi Handa <handa@m17n.org>
19569
19570 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19571 concatenation of family and registry.
19572
195732008-02-01 Kenichi Handa <handa@m17n.org>
19574
19575 * character.h (BYTE8_STRING): Fix typo.
19576
19577 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19578 string to multibyte (sync to HEAD).
19579
19580 * casefiddle.c (casify_region): Handle changes in byte-length
19581 using replace_range_2 (sync to HEAD).
19582
195832008-02-01 Andreas Schwab <schwab@suse.de>
19584
19585 * chartab.c (map_char_table): GCPRO table and arg.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19590 already at limit.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19595 instead of fast_c_string_match_ignore_case.
19596 (find_font_encoding): Change argument to Lisp_Object. Use
19597 fast_string_match_ignore_case instead of
19598 fast_c_string_match_ignore_case. Change caller.
19599
196002008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * xdisp.c (get_next_display_element): In unibyte case, decide to
19603 display in octal form by checking a character by
19604 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19605
19606 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19607
19608 * character.c (unibyte_has_multibyte_table): New variable.
19609
19610 * character.h (unibyte_has_multibyte_table): Extern it.
19611 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19612
196132008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * coding.c (encode_coding_iso_2022): Fix handling of charset
19616 annotation.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * coding.c (setup_coding_system): If coding_system is nil, use
19621 Qundecided.
19622 (Fterminal_coding_system): Return nil if terminal coding system is
19623 `undecided'.
19624 (syms_of_coding): Define coding-system `undecided' here. Setup
19625 terminal_coding as `undecided'.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * xdisp.c (message_dolog, set_message_1): Call
19630 unibyte_char_to_multibyte with arg type int.
19631
19632 * lread.c (read1): Fix reading of a char-table.
19633
19634 * print.c (print_object): Include sub char-table in circularities
19635 detection.
19636
196372008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19640 Append the found sequences in car of ARGS instead of prepending.
19641
196422008-02-01 Kenichi Handa <handa@m17n.org>
19643
19644 * fileio.c (report_file_error): Make a unibyte string from
19645 strerror (errorno).
19646 (Fsubstitute_in_file_name): Fix the arg to
19647 unibyte_char_to_multibyte. It is evaluated twice.
19648
196492008-02-01 Kenichi Handa <handa@m17n.org>
19650
19651 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19656 BOM is not found.
19657 (detect_coding, detect_coding_system): Optimization for ISO-2022
19658 when no 8-bit data is found.
19659
196602008-02-01 Jason Rumney <jasonr@gnu.org>
19661
19662 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19663
196642008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19667 CHARS.
19668
196692008-02-01 Steven Tamm <steventamm@mac.com>
19670
19671 * macterm.c (mac_encode_char): Add charset argument and update
19672 to use encoding_type.
19673 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19674 switch to pure fontset.
19675 (decode_mac_font_name): Temporarily remove decoding.
19676 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19677 (x_load_font): Temporarily remove encoding.
19678
196792008-02-01 Kenichi Handa <handa@m17n.org>
19680
19681 * xfaces.c (Fface_font): If frame is not on a window system,
19682 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19683 refer to face->font.
19684 (split_font_name_into_vector, build_font_name_from_vector)
19685 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19686 when HAVE_WINDOW_SYSTEM is defined.
19687
196882008-02-01 Kenichi Handa <handa@m17n.org>
19689
19690 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19691 (x_produce_glyphs): Fix setting of members of cmp in case
19692 cmp->glyph_len is zero.
19693
19694 * fontset.c (Fset_fontset_font): Fix docstring.
19695 (Ffontset_info): Make it backward compatible. New arg ALL.
19696
196972008-02-01 Kim F. Storm <storm@cua.dk>
19698
19699 * process.c (read_process_output): Grow decoding_buf when needed;
19700 this could cause a crash in allocate_string and compact_small_strings.
19701
197022008-02-01 Kenichi Handa <handa@m17n.org>
19703
19704 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19705
197062008-02-01 Kenichi Handa <handa@m17n.org>
19707
19708 * coding.c (setup_coding_system): Set coding->common_flags
19709 correctly for raw-text.
19710 (consume_chars): On encoding unibyte text by raw-text, don't check
19711 multibyte form.
19712 (encode_coding): On encoding by raw-text, never use translation tables.
19713
19714 * fileio.c (e_write): Short cut for the case of no encoding.
19715
197162008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * coding.c (detect_coding, detect_coding_system): Delete unused
19719 variables.
19720
197212008-02-01 Kenichi Handa <handa@m17n.org>
19722
19723 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19724 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19725
197262008-02-01 Kenichi Handa <handa@m17n.org>
19727
19728 * coding.c (Ffind_coding_systems_region_internal): Include
19729 raw-text and no-conversion in the result.
19730
197312008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19734 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19735 FONT_DEF.
19736 (font_def_arg, add_arg, from_arg, to_arg): New args.
19737 (set_fontset_font): Change argument.
19738 (Fset_fontset_font): Fix for the case that TARGET is a script
19739 name and charset name.
19740 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19741
197422008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * fontset.c (fontset_font): Rename from fontset_face. Change return
19745 value.
19746 (face_suitable_for_char_p, face_for_char): Adjust for the change
19747 of fontset_font.
19748 (make_fontset_for_ascii_face): Fix setting of the fontset element
19749 for ASCII.
19750 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19751 to get a font name.
19752 (Ffontset_info): Adjust for the change of fontset_font.
19753
19754 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19755
19756 * character.h (LEADING_CODE_LATIN_1_MIN)
19757 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19758
197592008-02-01 Kenichi Handa <handa@m17n.org>
19760
19761 * editfns.c (check_translation): New function.
19762 (Ftranslate_region_internal): Handle M:N mapping.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19767
197682008-02-01 Kenichi Handa <handa@m17n.org>
19769
19770 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19771 goto invalid_code.
19772 (decode_coding_iso_2022): Fix handling of invalid designation.
19773
19774 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19775 after calling code_conversion_save.
19776
197772008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19780
19781 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19782
19783 * fontset.c: Include "intervals.h".
19784 (fontset_face): Fix comparing of Lisp_Objects.
19785 (free_face_fontset, new_fontset_from_font_name): Fix
19786 Lisp_Object/int mixup.
19787
19788 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19789
19790 * coding.c: Add many prototypes for static functions.
19791 (get_translation_table): Allow max_lookup to be NULL.
19792 (decode_coding, Ffind_coding_systems_region_internal)
19793 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19794 get_translation_table with max_lookup NULL.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * coding.c (get_translation_table): Declare it as Lisp_Object.
19799 (LOOKUP_TRANSLATION_TABLE): New macro.
19800 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19801 instead of CHAR_TABLE_REF.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19806 annotation data format.
19807 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19808 Change arguments FROM and TO to single argument NCHARS. Change caller.
19809 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19810 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19811 (decode_coding_ccl, decode_coding_charset): Pay attention to
19812 coding->charbuf_used.
19813 (get_translation): New function.
19814 (produce_chars): New arguments translation_table and last_block.
19815 Translate characters here. Return number of carryover chars.
19816 Change caller.
19817 (produce_composition): New argument pos. Change caller.
19818 Adjust for the change of annotation data format.
19819 (produce_charset, produce_annotation): Likewise.
19820 (decode_coding, encode_coding): Don't call translate_chars.
19821 (consume_chars): New arg translation_table. Change caller.
19822 (translate_chars): Delete.
19823 (syms_of_coding): Make translation-table's number of extra slots 2.
19824
198252008-02-01 Kenichi Handa <handa@m17n.org>
19826
19827 * search.c (simple_search): Fix setting this_pos_byte in backward
19828 search.
19829
19830 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19831 byte sequence.
19832 (detect_coding_ccl): Fix setting of the variable valids.
19833
198342008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19837
19838 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19839
19840 * editfns.c (Ftranslate_region_internal): Rename from
19841 Ftranslate_region. Accept a char-table in TABLE.
19842 (syms_of_editfns): Defsubr Stranslate_region_internal.
19843
19844 * xfaces.c (set_lface_from_font_name): If a font is specified for
19845 a frame, generate a fontset from the font.
19846 (build_scalable_font_name): If the scalable font is requested for
19847 a specific size, don't change that size.
19848 (try_font_list): Try a scalable font also in the case that a
19849 pattern string is specified.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 * xfaces.c (Fface_font): New optional arg CHARACTER.
19854
198552008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * charset.h (CHARSET_OFFSET): New macro.
19858
198592008-02-01 Kenichi Handa <handa@m17n.org>
19860
19861 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19862
19863 * fontset.c (fontset_face): Handle the case that repertory is a
19864 char-table.
19865 (find_font_encoding): Return nil for unknown encoding.
19866 (Fset_fontset_font): Ignore a font of unknown encoding.
19867
198682008-02-01 Kenichi Handa <handa@m17n.org>
19869
19870 * keymap.c (describe_vector): Handle default value of a char table.
19871
19872 * fontset.c (fontset_face): Handle fallback fonts correctly.
19873 (Ffontset_info): Return infomation about fallback fonts.
19874
198752008-02-01 Kenichi Handa <handa@m17n.org>
19876
19877 * fontset.c (FONTSET_DEFAULT): New macro.
19878 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19879 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19880 the case that it is nil.
19881 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19882 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19883
19884 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19885 subset or superset.
19886
198872008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 * emacs.c (main): Call init_charset after syms_of_XXX.
19890
19891 * charset.c (Vcharset_map_directory): Delete.
19892 (Vcharset_map_path): New variable.
19893 (load_charset_map_from_file): Use Vcharset_map_path instead.
19894 (init_charset): Initialize Vcharset_map_path.
19895 (syms_of_charset): Delete declaration of "charset-map-directory",
19896 add declaration of "charset-map-path".
19897
198982008-02-01 Kenichi Handa <handa@m17n.org>
19899
19900 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19901 ASCII only string.
19902
19903 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19904
19905 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19906 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19907
199082008-02-01 Kenichi Handa <handa@m17n.org>
19909
19910 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19911
19912 * coding.c (QCmnemonic, QCdefalut_char)
19913 (QCdecode_translation_table, QCencode_translation_table)
19914 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19915 (get_translation_table): Return a list of translation tables if
19916 necessary.
19917 (decode_coding): Call get_translation_table with ENCODEP 0.
19918 (char_encodable_p): If translation_table is non-nil, always call
19919 translate_char.
19920 (Fdefine_coding_system_internal): Accept list of translation
19921 tables as :encode-translation-table and :decode-translation-table.
19922 (Fcoding_system_put): New function.
19923 (syms_of_coding): Declare new symbols. Defsubr
19924 Scoding_system_put.
19925 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19926 typically JISX0212.
19927
19928 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19929 when the charset is superset type.
19930
19931 * character.c (translate_char): Accept list of translation tables.
19932
199332008-02-01 Kenichi Handa <handa@m17n.org>
19934
19935 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19936 (CODING_ATTR_TRANS_TBL): New macro.
19937
19938 * coding.c (get_translation_table): New function.
19939 (translate_chars): Fix the bug of skipping annotation data.
19940 (decode_coding, encode_coding): Utilize get_translation_table.
19941 (char_encodable_p, Funencodable_char_position): Translate char if
19942 necessary.
19943 (Ffind_coding_systems_region_internal)
19944 (Fcheck_coding_systems_region): Setup translation table for encode
19945 in a coding system attribute vector in advance.
19946 (Fdefine_coding_system_internal): Allow a symbol as translation
19947 table. For shift-jis type coding system, allow 4th charset.
19948
199492008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19952
19953 * xdisp.c (get_next_display_element): Pass -1 as POS to
19954 FACE_FOR_CHAR if displaying a C-string.
19955
199562008-02-01 Kenichi Handa <handa@m17n.org>
19957
19958 * composite.c (get_composition_id): Handle xoff and yoff in a
19959 composition rule.
19960
19961 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19962 (struct composition): New member lbearing and rbearing.
19963
19964 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19965 (x_get_glyph_overhangs): Handle a composition glyph.
19966 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19967
19968 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19969 composition glyph.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * print.c: Include charset.h.
19974 (Vprint_charset_text_property): New variable.
19975 (Qdefault): Extern it.
19976 (PRINT_STRING_NON_CHARSET_FOUND)
19977 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19978 (print_check_string_result): New variable.
19979 (print_check_string_charset_prop): New function.
19980 (print_prune_charset_plist): New variable.
19981 (print_prune_string_charset): New function.
19982 (print_object): Call print_prune_string_charset if
19983 Vprint_charset_text_property is not t.
19984 (print_interval): Print nothing if interval->plist is nil.
19985 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19986 variable. Init and staticpro print_prune_charset_plist.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * fontset.c (new_fontset_from_font_name): Use the specified font
19991 for all characters in the new fontset.
19992
19993 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19994 OBJECT args.
19995
19996 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19997 OBJECT args for composition too.
19998
19999 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20000 OBJECT args.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20005
20006 * fontset.c (reorder_font_vector): Adjust for the change of
20007 FONT_DEF format.
20008 (fontset_face): New arg id. Change caller.
20009 (face_for_char): New args pos and object.
20010 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20011 (fs_query_fontset): Check NAME by Fassoc too.
20012 (Fset_fontset_font): Allow non-XLFD font name.
20013 (Ffontset_info): Adjust for the change of FONT_DEF format.
20014
20015 * fontset.h (face_for_char): Adjust prototype.
20016
20017 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20018 (append_space, extend_face_to_end_of_line)
20019 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20020 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20021
20022 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20023 POS and OBJECT args.
20024
20025 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20026 POS and OBJECT args.
20027
200282008-02-01 Jason Rumney <jasonr@gnu.org>
20029
20030 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20031 of GlobalAlloc'ed memory.
20032
200332008-02-01 Kenichi Handa <handa@m17n.org>
20034
20035 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20036
20037 * charset.h (charset_table_used): Delete extern.
20038
20039 * charset.c (charset_table_used): Make it static.
20040 (map_charset_chars): Fix args to c_function with.
20041
20042 * chartab.c (map_sub_char_table_for_charset): Fix args to
20043 c_function with.
20044
20045 * coding.h (enum coding_result_code): Delete
20046 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20047
20048 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20049 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20050 (Vlast_code_conversion_error): New variables.
20051 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20052 (ONE_MORE_BYTE): Record error if any instead of signaling an
20053 error. If non-ASCII multibyte char is found, return the negative
20054 value of the code. All callers changed to check it.
20055 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20056 (record_conversion_result): New function. Change all codes setting
20057 coding->result to call this function.
20058 (detect_coding_utf_8, decode_coding_utf_8)
20059 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20060 Don't use the local variable incomplete.
20061 (emacs_mule_char): Change the second arg to `const'.
20062 (decode_coding): Fix of flushing out unprocessed data.
20063 (make_conversion_work_buffer): Fix making of a work buffer.
20064 (decode_coding_object): Return coding->dst_object.
20065
20066 * fontset.c (set_fontset_font): Fix args.
20067
20068 * lisp.h (CHARACTERBITS): Define as 22.
20069
20070 * process.c (send_process): Be sure to set coding->src_multibyte.
20071
20072 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * xdisp.c (handle_auto_composed_prop): Give limit to
20077 Fnext_single_char_property_change.
20078
200792008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * composite.c (syms_of_composite): Don't make the composition hash
20082 table weak.
20083
20084 * fontset.c (Fset_fontset_font): Fix docstring.
20085
20086 * lisp.h (detect_coding_system): Adjust prototype.
20087
20088 * fileio.c (kill_workbuf_unwind): Delete this function.
20089 (Finsert_file_contents): Adjust the call of detect_coding_system.
20090 Get conversion_buffer by code_conversion_save. Use the macro
20091 CODING_MAY_REQUIRE_DECODING. After decoding, update
20092 coding_system.
20093
20094 * coding.h (make_conversion_work_buffer): Delete extern.
20095 (code_conversion_save): Extern it.
20096
20097 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20098 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20099 (decode_coding_utf_8): Don't do eol converion.
20100 (detect_coding_utf_16): Check coding->src_chars, not
20101 coding->src_bytes. Add heuristics for those that have no signature.
20102 (decode_coding_emacs_mule, decode_coding_iso_2022)
20103 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20104 Don't do eol converion.
20105 (adjust_coding_eol_type): Return a new coding system.
20106 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20107 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20108 each change.
20109 (decode_coding): Pay attention to undo_list. Do eol conversion for
20110 all types of coding-systems (if necessary).
20111 (Vcode_conversion_work_buf_list): Delete it.
20112 (Vcode_conversion_reused_workbuf): Rename from
20113 Vcode_conversion_reused_work_buf.
20114 (Vcode_conversion_workbuf_name): New variable.
20115 (reused_workbuf_in_use): New variable.
20116 (make_conversion_work_buffer): Delete the arg DEPTH.
20117 (code_conversion_restore): Change argument to cons.
20118 (code_conversion_save): Delete the argument BUFFER. Change callers.
20119 (detect_coding_system): New argument src_chars. Change callers.
20120 Fix for utf-16 detection.
20121 (init_coding_once): Don't use ISO_carriage_return.
20122 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20123 reused_workbuf_in_use.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * keymap.c (store_in_keymap): Pay attention to the case that idx
20128 is a cons specifying a character range.
20129
201302008-02-01 Kenichi Handa <handa@m17n.org>
20131
20132 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20133 HANDLED_RECOMPUTE_PROPS.
20134
20135 * coding.c (Fdefine_coding_system_internal): Fix checking of
20136 ascii compatibility.
20137
201382008-02-01 Kenichi Handa <handa@m17n.org>
20139
20140 * charset.c (find_charsets_in_text): Delete unused locale variable.
20141 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20142
20143 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20144 Resync charset_list to Vemacs_mule_charset_list.
20145
20146 * keymap.c (store_in_keymap): Pay attention to the case that idx
20147 is a cons specifying a character range.
20148
201492008-02-01 Kenichi Handa <handa@m17n.org>
20150
20151 * composite.c (update_compositions): Bind inhibit-read-only, etc
20152 to t before calling remove-list-of-text-properties.
20153
20154 * print.c (print_object): Always print ASCII chars as is.
20155
201562008-02-01 Kenichi Handa <handa@m17n.org>
20157
20158 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20159
20160 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20161 is a char table.
20162
201632008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20166
201672008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * xfaces.c (set_lface_from_font_name): Fix for the case that
20170 FONTNAME is not fontset name.
20171
201722008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * fns.c (base64_encode_1): Fix previous change.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * fontset.c (set_fontset_font): New function.
20179 (Fset_fontset_font): If a font is specified for a charset, use
20180 map_charset_chars to store the font spec in a fontset.
20181
201822008-02-01 Kenichi Handa <handa@m17n.org>
20183
20184 * fontset.c (fontset_face): Create a fallback fontset on demand.
20185 (make_fontset): Don't create a fallback fontset here.
20186 (free_face_fontset): Free a fallback fontset (if any) too.
20187 (n_auto_fontsets): Delete this variable.
20188 (auto_fontset_alist): New variable.
20189 (new_fontset_from_font_name): Check auto_fontset_alist.
20190 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20191 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20192 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20193 Defsubr Sfontset_list_all.
20194
201952008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20198
201992008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * editfns.c (Fgoto_char): Fix docstring.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * insdel.c (insert_from_gap): Adjust intervals correctly.
20210
202112008-02-01 Jason Rumney <jasonr@gnu.org>
20212
20213 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20214 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20215 (w32_initialize): Try to load it.
20216 (x_get_font_repertory): Use it if available.
20217 (w32_encode_char): Add shortcut for unicode output.
20218
20219 * w32fns.c (w32_load_system_font): Default charset to -1.
20220 (x_to_w32_charset): Match all fonts for unicode.
20221 (w32_to_x_charset): New parameter matching. Don't return partial
20222 or wildcard charsets.
20223 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20224 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20225 (w32_to_x_font): Match charset to real charset.
20226 (enum_font_cb2): Always list unicode versions.
20227
20228 * makefile.w32-in (temacs): Increase EMHEAP.
20229
202302008-02-01 Jason Rumney <jasonr@gnu.org>
20231
20232 * w32term.c (w32_encode_char): New charset parameter.
20233 font_info.encoding becomes encoding_type.
20234 (x_get_font_repertory): New function. Warning: stub only!
20235 (x_new_font): Return quickly if font already set.
20236 (x_new_fontset): fontsetname parameter is Lisp_Object.
20237 Use new fs_query_fontset. Try new_fontset_from_font_name.
20238 Use fontset_name for return value.
20239
20240 * w32term.h: Declare x_get_font_repertory.
20241
20242 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20243 place of find_charset_in_text. Use encode_coding_object in place
20244 of encode_coding.
20245 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20246 decode_coding.
20247
20248 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20249 of x_new_fontset.
20250 (w32_load_system_font): Initialize charset as unicode.
20251 font_info.encoding becomes encoding_type.
20252 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20253 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20254 (syms_of_w32fns): Set get_font_repertory_func.
20255
20256 * w32console.c: Include character.h. Use terminal_encode_buffer
20257 from term.c.
20258 (write_glyphs): Use new version of encode_terminal_code. Use
20259 encode_coding_object in place of encode_coding.
20260
20261 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20262 encoding becomes encoding_type.
20263
20264 * term.c (terminal_encode_buffer): Make externally visible.
20265
20266 * makefile.w32-in: Add character.h dependancies.
20267 (character.o, chartab.o): New targets.
20268
202692008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20272 CODING_ID_EOL_TYPE.
20273
202742008-02-01 Andreas Schwab <schwab@suse.de>
20275
20276 * coding.c (produce_chars): Revert last change.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * charset.h (charset_unicode): Extern it.
20281
20282 * charset.c (string_xstring_p): Check by (C >= 0x100).
20283 (find_charsets_in_text): Change format of the arc CHARSETS. New
20284 arg MULTIBYTE.
20285 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20286 change of find_charsets_in_text.
20287 (Fsplit_char): Fix doc. Never return unknown.
20288
20289 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20290
20291 * coding.c (Fdefine_coding_system_alias): Update
20292 Vcoding_system_list.
20293
20294 * fontset.c (load_font_get_repertory): Pay attention to the case
20295 that ENCODING of a font is specified by a char-table.
20296
20297 * xterm.c (x_get_font_repertory): Handle the case that the
20298 encoding of font is other than Unicode.
20299
203002008-02-01 Kenichi Handa <handa@m17n.org>
20301
20302 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20303 if a character is encodable by the terminal coding system. If
20304 not, produces proper number of `?'s. Update
20305 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20306 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20307
203082008-02-01 Kenichi Handa <handa@m17n.org>
20309
20310 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20311 variables.
20312 (encode_terminal_code): Change argument. Encode multiple
20313 characters at once. Store the result of encoding in
20314 terminal_encode_buffer.
20315 (write_glyphs, insert_glyphs): Adjust for the change of
20316 encode_terminal_code.
20317 (term_init): Initialize terminal_encode_buffer and
20318 terminal_encode_buf_size.
20319
20320 * coding.c (consume_chars): If coding->src_object is nil, don't
20321 check annotation.
20322
203232008-02-01 Kenichi Handa <handa@m17n.org>
20324
20325 * character.c (char_string): Use ASCII_CHAR_P instead of
20326 SINGLE_BYTE_CHAR_P.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * xdisp.c (handle_auto_composed_prop): Check if the last
20331 characters of auto-composed region is newly composed with the
20332 following characters.
20333 (handle_composition_prop): Fix checking of point being inside
20334 composition.
20335
203362008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * fns.c (concat): Don't change multibyteness of the result by
20339 concatenating an 8-bit character.
20340
20341 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20342 multibyteness of the result when newelt is an 8-bit character.
20343
203442008-02-01 Dave Love <fx@gnu.org>
20345
20346 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20347 EMACS_INT.
20348
20349 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20350
20351 * xfaces.c (face_numeric_value): Declare dim size_t.
20352 (Finternal_lisp_face_equal_p): Remove unused f.
20353
20354 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20355 (MATRIX_ROW): Remove unused vars.
20356 (draw_glyphs, x_insert_glyphs, fast_find_position)
20357 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20358 byte/char counts.
20359
20360 * regex.c (regex_compile): Remove unused var.
20361
20362 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20363
20364 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20365 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20366
20367 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20368
20369 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20370
20371 * fileio.c (Fwrite_region): Remove unused var.
20372
20373 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20374 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20375
20376 * composite.c (Fremove_list_of_text_properties): Declare.
20377
20378 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20379 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20380 (coding_inherit_eol_type): Remove unused attrs.
20381 (detect_coding): Cast arg of detect_eol.
20382
20383 * charset.c (syms_of_charset): Remove unused var p.
20384 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20385 byte/char counts.
20386
20387 * casetab.c (set_case_table): Remove unused var.
20388
20389 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20390 unused vars.
20391
203922008-02-01 Dave Love <fx@gnu.org>
20393
20394 * xterm.c (x_bitmap_mask): Declare.
20395
203962008-02-01 Dave Love <fx@gnu.org>
20397
20398 * xterm.c (x_term_init): Fix type error.
20399
20400 * lisp.h: Add Funibyte_char_to_multibyte.
20401
20402 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20403 (Fset_coding_system_priority): Doc fix.
20404
20405 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20406
20407 * indent.c (check_composition): Make start and end EMACS_INT.
20408
20409 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20410
20411 * xdisp.c (handle_composition_prop, check_point_in_composition):
20412 Make buffer positions EMACS_INT.
20413
20414 * composite.c (find_composition, run_composition_function)
20415 (update_compositions, Ffind_composition_internal): Make buffer
20416 positions EMACS_INT.
20417
20418 * composite.h (find_composition, update_compositions): Make
20419 position args EMACS_INT.
20420
20421 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20422
20423 * intervals.c (get_property_and_range):
20424 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20425
20426 * unexalpha.c: Don't include varargs.h.
20427
204282008-02-01 Dave Love <fx@gnu.org>
20429
20430 * coding.h (ENCODE_UTF_8): New.
20431
20432 * Makefile.in (gtkutil.o): Depend on coding.h.
20433
20434 * coding.c (Fset_coding_system_priority): Doc fix.
20435
204362008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20439 the case of auto saving.
20440
204412008-02-01 Andreas Schwab <schwab@suse.de>
20442
20443 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20444 `range' from GC.
20445
204462008-02-01 Kenichi Handa <handa@m17n.org>
20447
20448 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20449
204502008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 * fileio.c (choose_write_coding_system): Return a decided coding system.
20453 (Fwrite_region): Set Vlast_coding_system_used to the return value
20454 of choose_write_coding_system.
20455
204562008-02-01 Kenichi Handa <handa@m17n.org>
20457
20458 * charset.c (Fset_charset_priority): Pay attention to duplicated
20459 arguments.
20460
20461 * coding.c (QCcategory): New variable.
20462 (syms_of_coding): Defsym it. Set all elements of
20463 Vcoding_category_table and their symbol values.
20464 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20465 coding-category-XXX, and coding-category-list.
20466 (Fdefine_coding_system_internal): Add category in the plist.
20467
204682008-02-01 Kenichi Handa <handa@m17n.org>
20469
20470 * callproc.c (Fcall_process): Handle carryover correctly.
20471
20472 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20473 (raw_text_coding_system): Check NILP (coding_system).
20474 (coding_inherit_eol_type): Check NILP (coding_system) and
20475 NILP (parent).
20476 (consume_chars): Fix for the case of raw-text.
20477
20478 * process.c (read_process_output): Handle carryover correctly.
20479
204802008-02-01 Dave Love <fx@gnu.org>
20481
20482 * regex.c (re_search_2): Fix last change.
20483
204842008-02-01 Kenichi Handa <handa@m17n.org>
20485
20486 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20487 target_multibyte. Even in a unibyte case, return a converted
20488 multibyte char.
20489 (GET_CHAR_AFTER): New macro.
20490 (PATFETCH): Translate via multibyte char.
20491 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20492 (SETUP_MULTIBYTE_RANGE): New macro.
20493 (regex_compile): Setup compiled code so that its multibyteness
20494 matches that of a target. Fix the handling of "[X-YZ]" using
20495 SETUP_MULTIBYTE_RANGE.
20496 (analyse_first) <charset>: For filling fastmap for all multibyte
20497 characters, don't check by BASE_LEADING_CODE_P.
20498 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20499 the same as RE_MULTIBYTE_P (bufp) now.
20500 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20501 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20502 (TRANSLATE_VIA_MULTIBYTE): New macro.
20503 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20504 It is the same as RE_MULTIBYTE_P (bufp) now.
20505 <exactn>: Translate via multibyte.
20506 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20507 translate it.
20508 <charset, charset_not>: Fetch a character by
20509 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20510 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20511 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20512 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20513 by GET_CHAR_AFTER.
20514 (bcmp_translate): Likewise.
20515
20516 * search.c (compile_pattern): Check the member target_multibyte,
20517 not the member multibyte of buf.
20518
20519 * lread.c (read1): While reading a string, set force_singlebyte
20520 and force_multibyte correctly.
20521
20522 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20523 up of unibyte_to_multibyte_table.
20524
205252008-02-01 Kenichi Handa <handa@m17n.org>
20526
20527 * coding.c (setup_coding_system): If coding has
20528 post-read-conversion or pre-write-conversion, set
20529 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20530 respectively.
20531 (decode_coding_gap): Run post-read-conversion if any.
20532
20533 * fileio.c (Finsert_file_contents): Even if we read into a
20534 unibyte buffer, check if we must decode the result or not.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * coding.c (make_conversion_work_buffer): Change the work buffer
20539 name to the same one as that of Emacs 21.
20540
205412008-02-01 Kenichi Handa <handa@m17n.org>
20542
20543 * coding.h (make_conversion_work_buffer): Adjust prototype.
20544 (code_conversion_restore): Don't extern it.
20545
20546 * coding.c (detected_mask): Delete unused variable.
20547 (decode_coding_iso_2022): Pay attention to the byte sequence of
20548 CTEXT extended segment, and retain those bytes as is.
20549 (decode_coding_ccl): Delete unused variable `valids'.
20550 (setup_coding_system): Delete unused variable `category'.
20551 (consume_chars): Delete unused variable `category'. Make it work
20552 for non-multibyte case.
20553 (make_conversion_work_buffer): Change argument.
20554 (saved_coding): Delete unused variable.
20555 (code_conversion_restore): Don't check saved_coding->destination.
20556 (code_conversion_save): New function.
20557 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20558 instead of record_unwind_protect.
20559 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20560 (detect_coding_system): Delete unused variable `mask'.
20561 (Fdefine_coding_system_internal): Delete unused variable id.
20562
20563 * fileio.c (kill_workbuf_unwind): New function.
20564 (Finsert_file_contents): On replacing, call
20565 make_conversion_work_buffer with correct args, and call
20566 record_unwind_protect with the first arg kill_workbuf_unwind.
20567
20568 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20569
205702008-02-01 Kenichi Handa <handa@m17n.org>
20571
20572 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20573 (fontset_add): Fix for the case that TO is less than TO1.
20574 (Ffontset_info): Don't use fallback fontset on checking the
20575 default fontset.
20576 (dump_fontset): New function for debugging.
20577
20578 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20579 coding_type is Qcharset.
20580
205812008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20584 (map_char_table): Don't inherit the value from the parent on
20585 initializing VAL. Adjust for the above change.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * coding.c (Qsignature, Qendian): Delete these variables.
20590 (syms_of_coding): Don't initialize them.
20591 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20592 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20593 detect_info->found.
20594 (decode_coding_utf_16): Don't detect BOM here.
20595 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20596 is NOT utf_16_without_bom.
20597 (setup_coding_system): For a coding system of type utf-16, check
20598 if the attribute :endian is Qbig or not (not nil or not), and set
20599 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20600 (detect_coding): If coding type is utf-16 and BOM detection is
20601 required, detect it.
20602 (Fdefine_coding_system_internal): For a coding system of type
20603 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20604
206052008-02-01 Kenichi Handa <handa@m17n.org>
20606
20607 * coding.c (coding_set_source): Fix for the case that the current
20608 buffer is different from coding->src_object.
20609 (decode_coding_object): Don't use the conversion work buffer if
20610 DST_OBJECT is a buffer.
20611
206122008-02-01 Dave Love <fx@gnu.org>
20613
20614 * lread.c (read_emacs_mule_char) [len==2]: Index
20615 emacs_mule_charset correctly.
20616
206172008-02-01 Dave Love <fx@gnu.org>
20618
20619 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20620 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20621 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20622 treated specially.)
20623 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20624 (detected_mask): Remove Big5 bits.
20625
206262008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 The following changes are to make the font rescaling facility
20629 compatible with Emacs 21.
20630
20631 * xfaces.c (Vface_font_rescale_alist): Rename from
20632 Vface_resizing_fonts.
20633 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20634 (font_rescale_ratio): Rename from font_resizing_ratio.
20635 (split_font_name): Set font->rescale_ratio.
20636 (better_font_p): Pay attention to font->rescale_ratio.
20637 (build_scalable_font_name): Likewise. Change RESX, and RESY
20638 fields.
20639 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20640
206412008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20644 (Qutf_16_le): Remove these variables.
20645 (syms_of_coding): Don't DEFSYM them.
20646 (decode_coding_utf_16): Fix handling of BOM.
20647 (encode_coding_utf_16): Fix handling of BOM.
20648
206492008-02-01 Kenichi Handa <handa@m17n.org>
20650
20651 * fileio.c (Finsert_file_contents): On replacing, before decoding
20652 the file into the work buffer, set point of the work buffer to the end.
20653
206542008-02-01 Dave Love <fx@gnu.org>
20655
20656 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20657
206582008-02-01 Dave Love <fx@gnu.org>
20659
20660 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20661 and fix C types.
20662
206632008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * xdisp.c (SKIP_GLYPHS): New macro.
20666 (set_cursor_from_row): Pay attention to string display properties.
20667
20668 * category.c (copy_category_entry): Fix for the case that RANGE
20669 is an integer.
20670
20671 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20672
20673 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20674
206752008-02-01 Kenichi Handa <handa@m17n.org>
20676
20677 * charset.c (Fcharset_id_internal): New function.
20678 (syms_of_charset): Defsubr it.
20679
20680 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20681 with the last arg charset_list acquired from coding.
20682 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20683 the attribute coding_attr_ccl_valids.
20684
20685 * coding.h (enum define_coding_ccl_arg_index): Set the first
20686 member coding_arg_ccl_decoder to coding_arg_max.
20687
20688 * ccl.h (ccl_driver): Adjust prototype.
20689
20690 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20691 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20692 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20693 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20694 last arg Qnil.
20695
206962008-02-01 Kenichi Handa <handa@m17n.org>
20697
20698 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20699 call encode_char.
20700
20701 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20702
207032008-02-01 Dave Love <fx@gnu.org>
20704
20705 * composite.c (syms_of_composite): Make composition_hash_table weak.
20706
207072008-02-01 Kenichi Handa <handa@m17n.org>
20708
20709 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20710 (font_name_registry): Don't extern them.
20711 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20712
20713 * fontset.h (Qfontset): Don't extern it.
20714 (new_fontset_from_font_name): Extern it.
20715
20716 * fontset.c: Give 8 extra slots to fontset objects.
20717 (Qfontset_info): New variable.
20718 (syms_of_fontset): Defsym it.
20719 (FONTSET_FALLBACK): New macro.
20720 (fontset_face): Try also the default fontset.
20721 (make_fontset): Realize a fallback fontset from the default fontset.
20722 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20723 using split_font_name_into_vector and build_font_name_from_vector.
20724 (Fset_fontset_font): Access the elements of font_spec by enum
20725 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20726 name by using split_font_name_into_vector.
20727 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20728 generate a proper font name from the fontset name. Update
20729 Vfontset_alias_alist.
20730 (n_auto_fontsets): New variable.
20731 (new_fontset_from_font_name): New function.
20732 (Ffont_info): Store the information about fonts generated from the
20733 default fontset in the first extra slot of the returned char-table.
20734
20735 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20736 (font_name_registry): Delete function.
20737 (split_font_name_into_vector): New function.
20738 (build_font_name_from_vector): New function.
20739 (font_list): The argument REGISTRY is now a list of registry names.
20740 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20741 specifies an explicit font name, return the name as is. Make a
20742 list of registy names.
20743
20744 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20745 of x_new_fontset.
20746 (Fx_create_frame): Don't call x_new_fontset here. Just use
20747 x_list_fonts to check the existence of fonts.
20748
20749 * xterm.h (x_new_fontset): Adjust prototype.
20750
20751 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20752 string. Use new_fontset_from_font_name to create a fontset from a
20753 font name.
20754
207552008-02-01 Kenichi Handa <handa@m17n.org>
20756
20757 * syntax.c (Vfind_word_boundary_function_table): New name for
20758 Vnext_word_boundary_function_table.
20759 (find-word-boundary-function-table): New name for
20760 next-word-boundary-function-table.
20761
207622008-02-01 Dave Love <fx@gnu.org>
20763
20764 * Makefile.in: Fix some dependencies.
20765
20766 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20767 set it to nil before returning.
20768
20769 * composite.c (update_compositions): Fix type error.
20770
20771 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20772
207732008-02-01 Kenichi Handa <handa@m17n.org>
20774
20775 * xterm.c (x_new_font): Optimize for the case that the font is
20776 already set for the frame.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * chartab.c (char_table_ascii): Check if the char table contents
20781 is sub-char-table or not.
20782 (char_table_set, char_table_set_range): Fix argument to
20783 char_table_ascii.
20784
20785 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20786 (detect_coding_utf_8, detect_coding_utf_16)
20787 (detect_coding_emacs_mule, detect_coding_iso_2022)
20788 (detect_coding_sjis, detect_coding_big5)
20789 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20790 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20791 sequence is valid in this coding system. Change callers.
20792 (MAX_ANNOTATION_LENGTH): New macro.
20793 (ADD_ANNOTATION_DATA): New macro.
20794 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20795 ADD_ANNOTATION_DATA. Change the format of annotation data.
20796 (ADD_CHARSET_DATA): New macro.
20797 (emacs_mule_char): New argument ID. Change callers.
20798 (decode_coding_emacs_mule, decode_coding_iso_2022)
20799 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20800 Produce charset annotation data in coding->charbuf.
20801 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20802 to charset annotation data in coding->charbuf.
20803 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20804 coding->common_flags if the coding system is iso-2022 based and
20805 uses designation.
20806 (produce_composition): Adjust for the new annotation data format.
20807 (produce_charset): New function.
20808 (produce_annotation): Handle charset annotation.
20809 (handle_composition_annotation, handle_charset_annotation): New
20810 functions.
20811 (consume_chars): Handle charset annotation. Utilize the above two
20812 functions.
20813 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20814 buffer, get the deleted text as a string and set
20815 coding->src_object to that string.
20816 (detect_coding, detect_coding_system): Use the new struct
20817 coding_detection_info.
20818
20819 * coding.h (struct coding_detection_info): New structure.
20820 (struct coding_system): Adjust prototype of the member `detector'.
20821 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20826
208272008-02-01 Dave Love <fx@gnu.org>
20828
20829 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20830 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20831 to new local and nullify apropos_accumulate before returning.
20832 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20833
208342008-02-01 Kenichi Handa <handa@m17n.org>
20835
20836 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20837 correctly.
e3eea1fc 20838
aac0c6e3
MR
208392008-02-01 Dave Love <fx@gnu.org>
20840
20841 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20842
208432008-02-01 Kenichi Handa <handa@m17n.org>
20844
20845 The following changes are to make character composition happen
20846 automatically on displaying.
20847
20848 * Makefile.in (lisp, shortlisp): Add composite.elc.
20849
20850 * composite.h (Qauto_composed, Vauto_composition_function)
20851 (Qauto_composition_function): Extern them.
20852
20853 * composite.c (Vcomposition_function_table)
20854 (Qcomposition_function_table): Delete variables.
20855 (Qauto_composed, Vauto_composition_function)
20856 (Qauto_composition_function): New variables.
20857 (run_composition_function): Don't call
20858 compose-chars-after-function.
20859 (update_compositions): Clear `auto-composed' text property.
20860 (compose_chars_in_text): Delete this function.
20861 (syms_of_composite): Staticpro Qauto_composed and
20862 Qauto_composition_function. Declare Vauto_composition_function as
20863 a Lisp variable.
20864
20865 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20866
20867 * xdisp.c (it_props): Add an entry for Qauto_composed.
20868 (handle_auto_composed_prop): New function.
20869
20870 * xselect.c (selection_data_to_lisp_data): Don't call
20871 compose_chars_in_text.
20872
208732008-02-01 Dave Love <fx@gnu.org>
20874
20875 * keyboard.c (read_char): Modify checking around use of
20876 Vkeyboard_translate_table.
20877
20878 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20879 and fix C types.
20880
208812008-02-01 Kenichi Handa <handa@m17n.org>
20882
20883 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20884 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20885 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20886 the case that the last byte is '\r' correctly.
20887 (decode_coding): Flush out the unprocessed data correctly.
20888 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20889
208902008-02-01 Dave Love <fx@gnu.org>
20891
20892 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20893 Add XK_ISO... case.
20894 (xaw_scroll_callback): Revert last change.
20895
208962008-02-01 Kenichi Handa <handa@m17n.org>
20897
20898 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * xfaces.c (Vface_resizing_fonts): New variable.
20903 (struct font_name): New member `resizing_ratio'.
20904 (font_resizing_ratio): New function.
20905 (split_font_name): Set font->resizing_ratio.
20906 (better_font_p): Pay attention to font->resizing_ratio.
20907 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20908 RESX, and RESY fields.
20909 (try_alternative_families): Try scalable fonts if
20910 Vscalable_fonts_allowed is not Qt.
20911 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20912
209132008-02-01 Dave Love <fx@gnu.org>
20914
20915 * xterm.c (xaw_scroll_callback): Cast correctly.
20916
209172008-02-01 Dave Love <fx@gnu.org>
20918
20919 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20920 (lispy_kana_keys): Comment out.
20921 (make_lispy_event) [XK_kana_A]: Comment out.
20922
20923 * xterm.c (xaw_scroll_callback): Cast call_data.
20924 (XTread_socket): Deal with ASCII keysyms.
20925 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20926
209272008-02-01 Dave Love <fx@gnu.org>
20928
20929 * xterm.c (Vx_keysym_table): New.
20930 (syms_of_xterm): Initialize it.
20931 (XTread_socket): Use it.
20932 From head: Eliminate incorrect optimization that tried to avoid
20933 decoding the output of X*LookupString.
20934 (x_get_font_repertory): Delete charset declaration.
20935
209362008-02-01 Kenichi Handa <handa@m17n.org>
20937
20938 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20939 return 0.
20940 (Fdefine_coding_system_internal): Setup
20941 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20942
209432008-02-01 Dave Love <fx@gnu.org>
20944
20945 * coding.c (Fcheck_coding_system): Doc fix.
20946
20947 * editfns.c (Finsert_byte): Return a proper value.
20948
209492008-02-01 Kenichi Handa <handa@m17n.org>
20950
20951 * coding.c (decode_coding): Fix args to translate_chars. Pay
20952 attention to Vstandard_translation_table_for_decode.
20953 (encode_coding): Fix args to translate_chars. Pay attention to
20954 Vstandard_translation_table_for_encode.
20955
20956 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20957 SINGLE_BYTE_CHAR_P.
20958
20959 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20960 not by SINGLE_BYTE_CHAR_P.
20961
20962 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20963 SINGLE_BYTE_CHAR_P.
20964
20965 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20966 SINGLE_BYTE_CHAR_P.
20967
20968 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20969 by SINGLE_BYTE_CHAR_P.
20970
20971 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20972 SINGLE_BYTE_CHAR_P.
20973
209742008-02-01 Dave Love <fx@gnu.org>
20975
20976 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20977
209782008-02-01 Dave Love <fx@gnu.org>
20979
20980 * fns.c (Flanginfo): Fix typo.
20981
20982 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20983
209842008-02-01 Kenichi Handa <handa@m17n.org>
20985
20986 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20987 (detect_coding_emacs_mule, detect_coding_iso_2022)
20988 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20989 incomplete byte sequence. Don't update *mask when correctly detected.
20990 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20991 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20992 (detect_coding, detect_coding_system): Adjust for the changes above.
20993
209942008-02-01 Kenichi Handa <handa@m17n.org>
20995
20996 * character.c (char_string): Rename from
20997 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20998 (string_char): Rename from string_char.
20999
21000 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21001 if C is greater than MAX_3_BYTE_CHAR.
21002 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21003 string_char instead of string_char_with_unification.
21004
210052008-02-01 Dave Love <fx@gnu.org>
21006
21007 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21008
210092008-02-01 Kenichi Handa <handa@m17n.org>
21010
21011 * keymap.c (push_key_description): Pay attention to force_multibyte.
21012
21013 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21014
210152008-02-01 Dave Love <fx@gnu.org>
21016
21017 * charset.c (define_charset_internal): Rename `supprementary'.
21018
21019 * Makefile.in (lisp, shortlisp): Remove latin-N.
21020
210212008-02-01 Dave Love <fx@gnu.org>
21022
21023 * xfns.c (x_window, x_window): Use use_xim.
21024
21025 * xterm.c (use_xim): Initialize.
21026 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21027 (x_term_init): Maybe set use_xim.
21028
21029 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21030
210312008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * search.c (search_buffer): Fix case-fold-search of multibyte
21034 characters.
21035 (boyer_moore): Rename the last argument to char_high_bits.
21036
210372008-02-01 Kenichi Handa <handa@m17n.org>
21038
21039 * xdisp.c (display_string): Fix for the case of zero width glyph.
21040
21041 * xfns.c (x_set_font): Change the error message of the case that
21042 x_new_fontset returns Qt.
21043
21044 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21045 (Finternal_set_lisp_face_attribute): Use signal_error for the
21046 error of invalid fontset.
21047
21048 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21049 fontset, return Qt.
21050
210512008-02-01 Dave Love <fx@gnu.org>
21052
21053 * unexelf.c (unexec): Make .got handling not SGI-specific.
21054
21055 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21056
21057 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21058
21059 * keyboard.c (read_key_sequence): Fix type error.
21060
21061 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21062 type error.
21063
21064 * fontset.c (fontset_add): Return Lisp_Object.
21065
210662008-02-01 Dave Love <fx@gnu.org>
21067
21068 * charset.h (charset_ordered_list_tick): Declare extern.
21069
210702008-02-01 Kenichi Handa <handa@m17n.org>
21071
21072 The following changes (and some of 2008-02-01 changes of mine) are
21073 for handling syntax, category, and case conversion for unibyte
21074 characters by converting them to multibyte on the fly. With these
21075 changes, we don't have to setup syntax and case tables for unibyte
21076 characters in each language environment.
21077
21078 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21079 multibyte if necessary.
21080
21081 * bytecode.c (Fbyte_code): Likewise.
21082
21083 * character.h (LEADING_CODE_LATIN_1_MIN)
21084 (LEADING_CODE_LATIN_1_MAX): New macros.
21085 (unibyte_to_multibyte_table): Extern it.
21086 (unibyte_char_to_multibyte): New macro.
21087 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21088 (CHAR_LEADING_CODE): New macro.
21089 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21090
21091 * character.c (unibyte_to_multibyte_table): New variable.
21092 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21093 (multibyte_char_to_unibyte): If C is an eight-bit character,
21094 convert it to the corresponding byte value.
21095
21096 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21097 not 1, signals an error. Update the elements of
21098 unibyte_to_multibyte_table.
21099 (init_charset_once): Initialize unibyte_to_multibyte_table.
21100 (syms_of_charset): Define the charset `iso-8859-1'.
21101
21102 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21103 as is without converting it to unibyte. In a unibyte buffer,
21104 convert C to multibyte before checking the syntax.
21105
21106 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21107
21108 * minibuf.c (Fminibuffer_complete_word): Use the macro
21109 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21110
21111 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21112
21113 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21114 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21115 that is zero, convert an eight-bit char to multibyte.
21116 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21117 non-emacs case.
21118 (PATFETCH): Convert an eight-bit char to multibyte.
21119 (HANDLE_UNIBYTE_RANGE): New macro.
21120 (regex_compile): Setup the compiled pattern for multibyte chars
21121 even if the given regex string is unibyte. Use PATFETCH_RAW
21122 instead of PATFETCH in many places. To handle `charset'
21123 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21124 only for ASCII chars.
21125 (analyse_first) <exactn>: Simplify because the compiled pattern
21126 is multibyte.
21127 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21128 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21129 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21130 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21131 multibyte always 1.
21132 (re_search_2): In emacs, set the locale variable multibyte to 1,
21133 otherwise to 0. New local variable target_multibyte. Check it
21134 to decide the multibyteness of STR1 and STR2. If
21135 target_multibyte is zero, convert unibyte chars to multibyte
21136 before translating and checking fastmap.
21137 (TARGET_CHAR_AND_LENGTH): New macro.
21138 (re_match_2_internal): In emacs, set the locale variable multibyte
21139 to 1, otherwise to 0. New local variable target_multibyte. Check
21140 it to decide the multibyteness of STR1 and STR2. Use
21141 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21142 <charset, charset_not>: If multibyte is nonzero, check fastmap
21143 only for ASCII chars. Call bcmp_translate with
21144 target_multibyte, not with multibyte.
21145 <begline>: Declare the local variable C as `unsigned'.
21146 (bcmp_translate): Change the last arg name to target_multibyte.
21147
21148 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21149 the regexp pattern and the matching target. Set cp->buf.multibyte
21150 to the multibyteness of the regexp pattern. Set
21151 cp->but.target_multibyte to the multibyteness of the matching target.
21152 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21153 FETCH_STRING_CHAR_ADVANCE.
21154 (Freplace_match): Convert unibyte chars to multibyte.
21155
21156 * syntax.c (char_quoted, back_comment, scan_words)
21157 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21158 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21159 unibyte chars to multibyte.
21160 (skip_chars): Delete the arg syntaxp, and move the code for
21161 handling syntaxes to skip_syntaxes. Change callers.
21162 Fix the case that the multibyteness of STRING and the current
21163 buffer doesn't match.
21164 (skip_syntaxes): New function.
21165 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21166 SINGLE_BYTE_CHAR_P.
21167
211682008-02-01 Kenichi Handa <handa@m17n.org>
21169
21170 * xfaces.c (QCfontset): New variable.
21171 (LFACE_FONTSET): New macro.
21172 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21173 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21174 (Finternal_set_lisp_face_attribute)
21175 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21176 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21177 check also LFACE_FONTSET_INDEX.
21178 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21179 attrs[LFACE_FONT_INDEX].
21180 (syms_of_xfaces): Intern and staticpro QCfontset.
21181
21182 * dispextern.h (enum lface_attribute_index): New member
21183 LFACE_FONTSET_INDEX.
21184
21185 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21186
211872008-02-01 Kenichi Handa <handa@m17n.org>
21188
21189 * coding.c (coding_set_destination): Fix coding->destination for
21190 the case converting a region.
21191 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21192 (encode_coding_object): Fix coding->dst_pos and
21193 coding->dst_pos_byte for the case converting a region.
21194
21195 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21196
21197 * character.h (BYTE8_STRING): New macro.
21198
21199 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21200
212012008-02-01 Kenichi Handa <handa@m17n.org>
21202
21203 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21204 characters by octal form.
21205
21206 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21207
21208 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21209 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21210 _fetch_multibyte_char_len.
21211 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21212
21213 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21214
21215 * casefiddle.c (casify_object): Simplify. Handle the case that
21216 the case conversion change the byte length.
21217 (casify_region): Likewise.
21218
21219 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21220
21221 * character.c (_fetch_multibyte_char_len): Delete this variable.
21222 (syms_of_character): Setup Vprintable_chars.
21223
21224 * editfns.c (Fchar_equal): Fix for the unibyte case.
21225 (Finsert_byte): New function.
21226 (syms_of_editfns): Defsubr it.
21227
21228 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21229 of direct code 0x3ffff.
21230
21231 * search.c (Freplace_match): Fix for the unibyte case.
21232
212332008-02-01 Kenichi Handa <handa@m17n.org>
21234
21235 * lread.c (safe_to_load_p): Fix the logic.
21236
21237 * syntax.c (scan_words): Don't treat characters belonging to
21238 different scripts as constituting a word.
21239
21240 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21241
21242 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21243
21244 * emacs.c (main): In the case of --unibyte, instead of aborting on
21245 finding non-empty buffer, make it unibyte.
21246
212472008-02-01 Kenichi Handa <handa@m17n.org>
21248
21249 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21250 to create a fontset.
21251
212522008-02-01 Dave Love <fx@gnu.org>
21253
21254 * character.c (Funibyte_char_to_multibyte): Doc fix.
21255
21256 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21257
212582008-02-01 Kenichi Handa <handa@m17n.org>
21259
21260 * fontset.c (fontset_add): Make the type `int'.
21261 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21262
21263 * character.c (unibyte_char_to_multibyte)
21264 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21265 charset_unibyte, not charset_primary.
21266
21267 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21268
21269 * charset.c (charset_unibyte): Rename from charset_primary.
21270 (Funibyte_charset): Rename from Fprimary_charset.
21271 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21272 (syms_of_charset): Adjust for the above changes.
21273
21274 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21275 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21276 it->multibyte_p is zero.
21277
21278 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21279 Delete extern.
21280
212812008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * coding.c (Fdefine_coding_system_internal): Fix category setting
21284 for a coding system of type iso-2022.
21285
212862008-02-01 Kenichi Handa <handa@m17n.org>
21287
21288 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21289
212902008-02-01 Kenichi Handa <handa@m17n.org>
21291
21292 * syntax.c (Vnext_word_boundary_function_table): New variable.
21293 (next-word-boundary-function-table): Declare it as a Lisp variable
21294 in syms_of_syntax.
21295 (scan_words): Call functions in Vnext_word_boundary_function_table
21296 if any.
21297
21298 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21299
21300 * fontset.c (fs_load_font): If fontp->charset is not negative,
21301 return fontp without setting its members.
21302
213032008-02-01 Dave Love <fx@gnu.org>
21304
21305 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21306
21307 * m/sparc.h (HAVE_ALLOCA): Delete.
21308
21309 * s/irix6-5.h: Don't include strings.h.
21310 (bcopy, bzero, bcmp): Don't undef.
21311
21312 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21313
21314 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21315 (TIOCSIGSEND): Don't test IRIX6.
21316 (bcopy, bzero, bcmp): Define conditionally.
21317
213182008-02-01 Kenichi Handa <handa@m17n.org>
21319
21320 * buffer.c (Qas, Qmake, Qto): New variables.
21321 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21322 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21323
21324 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21325 we are inserting a process output into a multibyte buffer.
21326
21327 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21328 multibyte_char_to_unibyte.
21329
21330 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21331 by the primary charset, make it eight-bit char.
21332 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21333
21334 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21335 (charset_8_bit__control, charset_8_bit_graphic)
21336 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21337 (define_charset_internal): New function.
21338 (syms_of_charset): Call define_charset_internal for pre-defined
21339 charsets.
21340
21341 * charset.h (charset_8_bit): Extern it.
21342
21343 * coding.c (make_conversion_work_buffer): Adjust for the change
21344 of Fset_buffer_multibyte.
21345 (encode_coding_raw_text): Increment p0 in the loop.
21346
21347 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21348
21349 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21350 for the change of Fset_buffer_multibyte.
21351
21352 * fns.c (Fstring_to_multibyte): New function.
21353 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21354
213552008-02-01 Dave Love <fx@gnu.org>
21356
21357 * xfns.c (x_put_x_image): Declare args.
21358
21359 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21360 (try_font_list): Declare an arg.
21361
21362 * xdisp.c (message2_nolog, set_message): Declare an arg.
21363
21364 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21365
21366 * syntax.c (scan_sexps_forward): Declare an arg.
21367
21368 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21369 Declare an arg.
21370
21371 * lisp.h (Fnew_fontset): Declare.
21372
21373 * keymap.c (push_key_description): Call CHARACTERP correctly.
21374
21375 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21376 (face_for_char): Delete unused vars.
21377 (Fset_fontset_font): Doc fix. Delete unused vars.
21378
21379 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21380
21381 * composite.c (update_compositions): Declare arg.
21382
21383 * cm.c (calccost, cmgoto): Declare args.
21384
21385 * charset.c: Remove `emacs' conditional. Doc fixes.
21386 (map_char_table_for_charset): Declare.
21387
21388 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21389
21390 * ccl.c: Remove `emacs' conditional.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 The following changes are to allow specifying multiple font
21395 patterns for a character range (specified by script or charset).
21396
21397 * Makefile.in (abbrev.o): Depend on syntax.h.
21398 (xfaces.o): Depend on charset.h.
21399
21400 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21401 SINGLE_BYTE_CHAR_P.
21402
21403 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21404
21405 * character.h (Vchar_script_table): Extern it.
21406
21407 * character.c (Vscript_alist): Delete.
21408 (Vchar_script_table, Qchar_script_table): New variable.
21409 (syms_of_character): Declare Vchar_script_table as a lisp variable
21410 and initialize it.
21411
21412 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21413 have property char-table-extra-slots, make no extra slot.
21414
21415 * dispextern.h (struct face): Delete member `charset'.
21416 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21417 SINGLE_BYTE_CHAR_P.
21418 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21419 Add prototypes.
21420 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21421 (generate_ascii_font_name): Rename from generate_ascii_font.
21422
21423 * fontset.h (get_font_repertory_func): New prototype.
21424 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21425 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21426
21427 * fontset.c (Qprepend, Qappend): New variables.
21428 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21429 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21430 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21431 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21432 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21433 (load_font_get_repertory): New functions.
21434 (fontset_set): Delete.
21435 (fontset_face): New arg FACE. Return face ID, not face.
21436 Complete re-write to handle new fontset structure. Change caller.
21437 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21438 (face_for_char): Don't call lookup_face.
21439 (make_fontset_for_ascii_face): New arg FACE.
21440 (fs_load_font): New arg CHARSET_ID. Don't check
21441 Vfont_encoding_alist here.
21442 (find_font_encoding): New function.
21443 (list_fontsets): Use STRINGP, not ! NILP.
21444 (accumulate_script_ranges): New function.
21445 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21446 re-written to handle new fontset structure.
21447 (Ffontset_font): Return a copy of element.
21448 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21449 docstring of font-encoding-alist.
21450
21451 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21452 (Fset_fotset_font): Fix arguments to 5.
21453
21454 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21455
21456 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21457 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21458 (highlight_trailing_whitespace): Adjust for the change of
21459 lookup_named_face.
21460
21461 * xfaces.c: Include charset.h.
21462 (load_face_font): Delete argument C. Change caller.
21463 (generate_ascii_font_name): Rename from generate_ascii_font.
21464 (font_name_registry): New function.
21465 (cache_face): Store ascii faces before non-ascii faces in buckets.
21466 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21467 Lookup only ascii faces.
21468 (lookup_non_ascii_face): New function.
21469 (lookup_named_face): Delete argument C. Change caller.
21470 (lookup_derived_face): Delete argument C. Change caller.
21471 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21472 a string, just call font_list with it.
21473 (choose_face_font): Delete arguments FACE and C. New arg
21474 FONT_SPEC. Change caller.
21475 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21476 Change caller.
21477 (realize_non_ascii_face): New function.
21478 (realize_x_face): Call load_face_font here.
21479 (realize_tty_face): Delete argument C. Change caller.
21480 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21481 get a face ID.
21482 (dump_realized_face): Don't print charset of FACE.
21483
21484 * xfns.c (x_set_font): Always call x_new_fontset and
21485 store_frame_parameter.
21486 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21487 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21488
21489 * xterm.h (x_get_font_repertory): Extern it.
21490
21491 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21492 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21493 it->multibyte_p is zero.
21494 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21495 (x_new_fontset): If FONTSETNAME doesn't match any existing
21496 fontsets, create a new one.
21497 (x_get_font_repertory): New function.
21498
214992008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * coding.c (Ffind_coding_systems_region_internal): Detect an
21502 ASCII only string correctly.
21503
21504 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21505 version is 0.
21506
215072008-02-01 Kenichi Handa <handa@m17n.org>
21508
21509 * lread.c: Include "coding.h".
21510 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21511 (load_each_byte, unread_char): New variables.
21512 (readchar_backlog): Delete.
21513 (readchar): Return a character unless load_each_byte is nonzero.
21514 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21515 cons. If unread_char is not -1, simply return it.
21516 (unreadchar): Handle the case that readcharfun is
21517 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21518 (read_multibyte): Delete.
21519 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21520 (read_emacs_mule_char): New functions.
21521 (Fload): Even if the file doesn't have the extension ".elc", if
21522 safe_to_load_p returns a positive version number, assume that the
21523 file contains bytecompiled code. If the version is less than 22,
21524 load the file while decoding multibyte sequences by emacs-mule.
21525 (readevalloop): Don't use readchar_backlog.
21526 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21527 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21528 (read_escape): Delete the arg BYTEREP.
21529 (read1): Set load_each_byte to 1 temporarily while handling
21530 #@NUMBER. Don't call read_multibyte.
21531 (read_vector): Call Fread with a cons. If readcharfun is
21532 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21533 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21534 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21535 and Qload_force_doc_strings.
21536
215372008-02-01 Kenichi Handa <handa@m17n.org>
21538
21539 * xdisp.c (face_before_or_after_it_pos): Call
21540 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21541
215422008-02-01 Kenichi Handa <handa@m17n.org>
21543
21544 * character.h (TRAILING_CODE_P): New macro.
21545 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21546 (string_char_with_unification): Fix prototype.
21547 (Vscript_alist): Extern it.
21548
21549 * character.c (Vscript_alist): New variable.
21550 (string_char_with_unification, str_as_unibyte)
21551 (string_escape_byte8): Add `const' to local variables.
21552 (syms_of_character): Declare script-alist as a Lisp variable.
21553
21554 * charset.h (Vcharset_ordered_list): Extern it.
21555 (charset_ordered_list_tick): Extern it.
21556 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21557 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21558 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21559 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21560 (Funify_charset): Adjust for the change of Funify_charset.
21561
21562 * charset.c (charset_ordered_list_tick): New variable.
21563 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21564 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21565 deunify instead of unify a charset.
aac0c6e3
MR
21566 (string_xstring_p): Add `const' to local variables.
21567 (find_charsets_in_text): Add `const' to arguments and local variables.
21568 (encode_char): Adjust for the change of Funify_charset. Fix
21569 detecting of invalid code.
21570 (Fset_charset_priority): Increment charset_ordered_list_tick.
21571 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21572 and TO_CODE.
21573
21574 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21575 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21576 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21577 (decode_coding_ccl, consume_chars)
21578 (Ffind_coding_systems_region_internal)
21579 (Fcheck_coding_systems_region): Add `const' to local variables.
21580
21581 * print.c (print_object): Use octal form for printing the
21582 contents of a bool vector.
21583
215842008-02-01 Dave Love <fx@gnu.org>
21585
21586 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21587 <version == 20>: Refuse to load.
21588
215892008-02-01 Dave Love <fx@gnu.org>
21590
21591 * fns.c: Move coding.h.
21592 (Qcodeset, Qdays, Qmonths): New.
21593 (concat): Use CHARACTERP instead of INTEGERP.
21594 (Flocale_codeset): Delete.
21595 (Flanginfo): New function.
21596 (syms_of_fns): Change accordingly.
21597
21598 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21599
216002008-02-01 Dave Love <fx@gnu.org>
21601
21602 * casetab.c (init_casetab_once, init_casetab_once): Fix
21603 CHAR_TABLE_SET call.
21604
21605 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21606
21607 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21608
21609 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21610 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21611 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21612
21613 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21614
21615 * coding.c (ENCODE_DESIGNATION, decode_eol)
21616 (make_conversion_work_buffer, code_conversion_restore)
21617 (Fdefine_coding_system_internal): Convert Lisp types.
21618 (code_conversion_restore): Use EQ, not ==.
21619 (Fencode_coding_string): Fix code_convert_string call.
21620
21621 * coding.h (code_convert_region): Fix prototype.
21622
21623 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21624
21625 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21626 (Ffontset_info): Convert Lisp types.
21627
21628 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21629
21630 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21631
21632 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21633
21634 * chartab.c: Include "...h", not <...h> in some cases.
21635
21636 * callproc.c (Fcall_process): Remove unused variables.
21637
216382008-02-01 Dave Love <fx@gnu.org>
21639
21640 * coding.c (Fset_coding_system_priority): Allow null arg list.
21641
216422008-02-01 Dave Love <fx@gnu.org>
21643
21644 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21645 (Fself_insert_and_exit): Use CHARACTERP.
21646
21647 * callproc.c (Fcall_process): Remove unused vars.
21648
21649 * xterm.c (XTread_socket): Add extra dead keysyms.
21650
21651 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21652
21653 * dispextern.h: Remove prototypes for redraw_frame,
21654 redraw_garbaged_frames.
21655
21656 * cmds.c (Fself_insert_command): Use CHARACTERP.
21657
21658 * chartab.c (make_sub_char_table): Remove unused var.
21659 (Fset_char_table_default, Fmap_char_table): Doc fix.
21660
21661 * keymap.c (access_keymap): Remove generic char code.
21662 (push_key_description): Use CHARACTERP.
21663
216642008-02-01 Dave Love <fx@gnu.org>
21665
21666 * charset.c: Doc fixes.
21667 (Funify_charset): Extra checking.
21668
216692008-02-01 Dave Love <fx@gnu.org>
21670
21671 * lread.c: Remove some unused variables.
21672 (safe_to_load_p): If safe, return the magic number version byte.
21673 (Fload): Maybe use load-with-code-conversion.
21674
216752008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * category.c (Fmodify_category_entry): Don't modify the contents
21678 of category_set for characters out of the range. Avoid
21679 unnecessary modification.
21680
21681 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21682 Vchar_unify_table. The default value of the table is now nil.
21683
21684 * character.c (syms_of_character): Setup Vchar_width_table for
21685 eight-bit-control and raw-byte chars.
21686
21687 * charset.h (enum define_charset_arg_index): Delete
21688 charset_arg_parents and add charset_arg_subset and
21689 charset_arg_superset.
21690 (enum charset_attr_index): Delete charset_parents and add
21691 charset_subset and charset_superset.
21692 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21693 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21694 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21695 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21696 (CHARSET_SUPERSET): New macros.
21697 (charset_work): Extern it.
21698 (ENCODE_CHAR): Use charset_work.
21699 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21700 (map_charset_chars): Extern it.
21701
21702 * charset.c (load_charset_map): Set the default value of encoder
21703 and deunifier char-tables to nil.
21704 (map_charset_chars): Change argument. Change callers. Use
21705 map_char_table_for_charset instead of map_char_table.
21706 (Fmap_charset_chars): New optional args from_code and to_code.
21707 (Fdefine_charset_internal): Adjust for the change of
21708 `define-charset' (:parents -> :subset or :superset).
21709 (charset_work): New variable.
21710 (encode_char, syms_of_charset): Adjust for the change of
21711 Fdefine_charset_internal.
21712 (Ffind_charset_string): Setup the vector `charsets' correctly.
21713
21714 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21715 the previous change.
21716 (char_table_ref_and_range): Adjust for the above change.
21717 (map_sub_char_table_for_charset): New function.
21718 (map_char_table_for_charset): New function.
21719
21720 * keymap.c (describe_vector): Handle a char-table directly here.
21721 (describe_char_table): Delete.
21722
21723 * lisp.h (map_charset_chars): Delete.
21724
217252008-02-01 Dave Love <fx@gnu.org>
21726
21727 * fns.c (count_combining): Comment out (unused).
21728 (Flocale_codeset): New.
21729 (syms_of_fns): Defsubr it.
21730
21731 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21732 (size_t): Remove.
21733
217342008-02-01 Dave Love <fx@gnu.org>
21735
21736 * Makefile.in (chartab.o): Depend on charset.h.
21737
217382008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * character.c (syms_of_character): Set the default value of
21741 Vprintable_chars to Qnil.
21742
217432008-02-01 Dave Love <fx@gnu.org>
21744
21745 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21746
217472008-02-01 Kenichi Handa <handa@m17n.org>
21748
21749 * charset.c (load_charset_map): Handle the case that from < to
21750 correctly.
21751
21752 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21753 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21754 Pay attention to raw-8-bit chars.
21755
217562008-02-01 Kenichi Handa <handa@m17n.org>
21757
21758 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21759 It is not bytecompiled now.
21760
21761 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21762 (charset_jisx0208): New variables.
21763 (Fdefine_charset_internal): Setup them if appropriate.
21764 (init_charset_once): Initialize them to -1.
21765
21766 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21767 (charset_jisx0208): Extern them.
21768
21769 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21770 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21771 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21772 (setup_iso_safe_charsets): Fix arguments to Fassq.
21773 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21774 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21775 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21776 (encode_coding_iso_2022): Change the 1st arg to
21777 ENCODE_ISO_CHARACTER to a variable.
21778
217792008-02-01 Kenichi Handa <handa@m17n.org>
21780
21781 * charset.h (enum define_charset_arg_index): New enums
21782 charset_arg_min_code and charset_arg_max_code.
21783 (struct charset): New member char_index_offset.
21784
21785 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21786 Take charset->char_index_offset into account.
21787 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21788 args[charset_arg_max_code]. Setup charset.char_index_offset.
21789 (syms_of_charset): Fix args to Fdefine_charset_internal.
21790
217912008-02-01 Dave Love <fx@gnu.org>
21792
21793 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21794
217952008-02-01 Dave Love <fx@gnu.org>
21796
21797 * coding.c: Doc fixes.
21798 (Fcoding_system_aliases): Fix return value.
21799 (Qmac): Remove (duplicated) definition.
21800
218012008-02-01 Dave Love <fx@gnu.org>
21802
362654a6
JB
21803 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21804 New functions.
aac0c6e3
MR
21805
21806 * character.c (Fstring): Doc fix.
21807
21808 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21809
362654a6 21810 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21811 (font-encoding-alist): Doc fix.
21812
218132008-02-01 Dave Love <fx@gnu.org>
21814
21815 * term.c (costs_set): Declare static, non-initialized for pcc.
21816 (encode_terminal_code): Remove unused var.
21817
21818 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21819 for K&R.
21820
21821 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21822
21823 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21824 (suffixes): Move out of make_subsidiaries for K&R.
21825
21826 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21827
21828 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21829
218302008-02-01 Dave Love <fx@gnu.org>
21831
21832 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21833
21834 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21835
218362008-02-01 Yong Lu <lyongu@asia-infonet.com>
21837
21838 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21839
21840 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21841
218422008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21845 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21846
218472008-02-01 Kenichi Handa <handa@m17n.org>
21848
21849 * coding.c (decode_coding_charset): Adjust for the change of
21850 Fdefine_coding_system_internal.
21851 (Fdefine_coding_system_internal): For a coding system of
21852 `charset' type, store a list of charset IDs in
21853 `charset_attr_charset_valids' element of coding attributes.
21854
218552008-02-01 Kenichi Handa <handa@m17n.org>
21856
21857 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21858 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21859 caller. Handle 2-byte and 3-byte charsets correctly.
21860 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21861 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21862 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21863 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21864 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21865 sequence.
21866 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21867 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21868 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21869 and alt&rule composition.
21870 (decode_coding_iso_2022): Handle composition correctly.
21871 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21872
21873 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21874 re-defining a charset. If the charset has :emacs-mule-id, setup
21875 emacs_mule_bytes.
21876 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21877
218782008-02-01 Kenichi Handa <handa@m17n.org>
21879
21880 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21881 (encode_coding_big5, encode_coding_charset): If coding requires safe
21882 encoding, produce a character specified by
21883 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21884
218852008-02-01 Dave Love <fx@gnu.org>
21886
21887 * xterm.c (XSetIMValues): Declare.
21888
21889 * process.c: Conditionally include sys/wait.h, pty.h.
21890
21891 * print.c (print_object): Fix print format for 64-bit systems.
21892
21893 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21894
21895 * buffer.c (emacs_strerror): Declare.
21896
21897 * fontset.c (Fclear_face_cache): Declare.
21898 (accumulate_font_info): Comment-out (unused).
21899 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21900 variables.
21901
21902 * character.h (string_escape_byte8): Declare.
21903
21904 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21905 unused vars.
21906 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21907 (Fmap_charset_chars): Doc fix.
21908
21909 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21910 (Fset_coding_system_priority, Fset_coding_system_priority)
21911 (Fdefine_coding_system_internal): Doc fix.
21912
219132008-02-01 Dave Love <fx@gnu.org>
21914
21915 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21916
219172008-02-01 Kenichi Handa <handa@m17n.org>
21918
21919 * character.c (string_escape_byte8): Make multibyte string with
21920 correct size.
21921
21922 * charset.c (Fmake_char): Delete unnecessary code.
21923
219242008-02-01 Kenichi Handa <handa@m17n.org>
21925
21926 * xfns.c (x_encode_text): Allocate coding.destination here, and
21927 call encode_coding_object with dst_object Qnil.
21928
21929 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21930 multibyte form correctly.
21931
21932 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21933 against Vfont_encoding_alist.
21934
21935 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21936 handling of charset list.
21937 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21938 (decode_coding_object): Move point to coding->dst_pos before
21939 calling post-read-conversion function.
21940 (encode_coding_object): Give correct arguments to
21941 pre-write-conversion. Ignore the return value of
21942 pre-write-conversion function. Pay attention to the case that
21943 pre-write-conversion changes the current buffer. If dst_object is
21944 Qt, even if coding->src_bytes is zero, allocate at least one byte
21945 to coding->destination.
21946
21947 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21948
21949 * charset.c (Fmake_char): Make it more backward compatible.
21950 (Fmap_charset_chars): Fix docstring.
21951
219522008-02-01 Dave Love <fx@gnu.org>
21953
21954 * coding.c: Doc fixes.
21955 (Fdefine_coding_system_alias): Use names, not symbols, in
21956 coding-system-alist.
21957
219582008-02-01 Kenichi Handa <handa@m17n.org>
21959
21960 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21961 of calling free_realized_face.
21962
219632008-02-01 Yong Lu <lyongu@asia-infonet.com>
21964
21965 * charset.c (read_hex): Don't treat SPC as a comment starter.
21966 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21967 (Fdecode_char): Fix typo.
21968
219692008-02-01 Kenichi Handa <handa@m17n.org>
21970
21971 * charset.h (struct charset): New member `code_space_mask'.
21972
21973 * coding.c (coding_set_source): Delete the local variable beg_byte.
21974 (encode_coding_charset, Fdefine_coding_system_internal):
21975 Delete the local variable charset.
21976 (Fdefine_coding_system_internal): Setup
21977 attrs[coding_attr_charset_valids] correctly.
21978
21979 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21980 member to check if CODE is valid or not.
21981 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21982 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21983 is within the range of charset->min_code and carset->max_code.
21984
219852008-02-01 Dave Love <fx@gnu.org>
21986
21987 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21988
21989 * dispextern.h (generate_ascii_font): Fix return type.
21990
21991 * xfaces.c (generate_ascii_font): Fix arg declaration.
21992
21993 * coding.c (coding_inherit_eol_type)
21994 (Fset_terminal_coding_system_internal)
21995 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21996
219972008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22000 multiple charsets correctly.
22001
220022008-02-01 Kenichi Handa <handa@m17n.org>
22003
22004 * search.c (boyer_moore): Fix handling of multibyte character
22005 translation.
22006
22007 * xdisp.c (display_mode_element): When the variable `elt' is
22008 changed, update `this' and `lisp_string'.
22009
220102008-02-01 Kenichi Handa <handa@m17n.org>
22011
22012 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22013
22014 * callproc.c (Fcall_process): Be sure to give the current buffer
22015 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22016
22017 * charset.c (struct charset_map_entries): New struct.
22018 (load_charset_map): Rename from parse_charset_map. New args
22019 entries and n_entries. Change caller.
22020 (load_charset_map_from_file): Rename from load_charset_map.
22021 Change caller. New arg control_flag. Call load_charset_map at
22022 the tail.
22023 (load_charset_map_from_vector): New function.
22024 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22025 (encode_char): If the charset is compact, change a character index
22026 to a code point.
22027
22028 * coding.c (coding_alloc_by_making_gap): Check the case that the
22029 source and destination are the same correctly.
22030 (decode_coding_raw_text): Set coding->consumed_char and
22031 coding->consumed to 0.
22032 (produce_chars): If coding->chars_at_source is nonzero, update
22033 coding->consumed_char and coding->consumed before calling
22034 alloc_destination.
22035 (Fdefine_coding_system_alias): Register ALIAS in
22036 Vcoding_system_alist.
22037 (syms_of_coding): Define `no-conversion' coding system at the tail.
22038
22039 * fileio.c (Finsert_file_contents): Set coding_system instead of
22040 val. If the current buffer is multibyte, always call
22041 decode_coding_gap.
22042
22043 * xfaces.c (try_font_list): Give higher priority to fontset's
22044 family than face's family.
22045
220462008-02-01 Kenichi Handa <handa@m17n.org>
22047
22048 * callproc.c (Fcall_process): Be sure to give the current buffer
22049 to decode_coding_c_string.
22050
22051 * xfaces.c (try_font_list): Give a family specified in a fontset
22052 higher priority than a family specified in a face.
22053
220542008-02-01 Kenichi Handa <handa@m17n.org>
22055
22056 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22057 Fix arguments to insert_from_buffer.
22058
22059 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22060
220612008-02-01 Kenichi Handa <handa@m17n.org>
22062
22063 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22064 (decode_coding_gap): Set coding->dst_multibyte correctly.
22065
220662008-02-01 Kenichi Handa <handa@m17n.org>
22067
22068 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22069 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22070 (encode_coding_utf_16): Substitute coding->default_char for
22071 non-Unicode characters.
22072 (decode_coding): Don't call record_insert here.
22073 (setup_coding_system): Initialize `surrogate' of
22074 coding->spec.utf_16 to 0.
22075 (EMIT_ONE_BYTE): Fix for multibyte case.
22076
22077 * insdel.c (insert_from_gap): Call record_insert.
22078
220792008-02-01 Kenichi Handa <handa@m17n.org>
22080
22081 * casefiddle.c (casify_region): Fix multibyte case.
22082
22083 * character.c (c_string_width): Add return type `int'.
22084 (char_string_with_unification): Delete arg ADVANCED.
22085
22086 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22087 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22088 (CHAR_STRING_ADVANCE): Make it do-while statement.
22089
22090 * chartab.c (sub_char_table_set_range): Optimize for the case
22091 DEPTH == 3. Add workaround code for a GCC optimization bug.
22092
22093 * charset.c (parse_charset_map): Remove an unused variable.
22094
22095 * coding.c: Delete unused variables.
22096
22097 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22098 earlier. If inserted is zero and the coding system doesn't
22099 require flushing, don't call decode_coding_gap.
22100
22101 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22102
221032008-02-01 Kenichi Handa <handa@m17n.org>
22104
22105 The following changes are for using Unicode as an internal
22106 character model, and use UTF-8 format for buffer/string
22107 representation.
22108
22109 * .gdbinit (xchartable): Adjust for the change of char table structure.
22110 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22111
22112 * Makefile.in (obj): Add character.o and chartab.o.
22113 (lisp, shortlisp): Remove utf-8.elc.
22114 (*.o): For many files, change dependency on charset.h to
22115 character.h, and add dependency on character.h.
22116 (character.o, chartab.o): New targets.
22117
22118 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22119 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22120 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22121 of "charset.h".
22122
22123 * dired.c, filelock.c: Include "character.h".
22124
22125 * alloc.c: Include "character.h" instead of "charset.h".
22126 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22127 (syms_of_alloc): Remove defsubr for Smake_char_table.
22128
22129 * buffer.c: Include "character.h" instead of "charset.h", don't
22130 include "coding.h".
22131 (Fset_buffer_multibyte): Adjust for UTF-8.
22132
22133 * buffer.h: EXFUN Fbuffer_live_p.
22134
22135 * callproc.c: Include "character.h" instead of "charset.h".
22136 (Fcall_process): Big change for the new code-conversion APIs.
22137
22138 * casetab.c: Include "character.h" instead of "charset.h".
22139 (set_canon, set_identity, shuffle): Adjust for the new
22140 map_char_table spec.
22141 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22142 accessing the char table structure.
22143
22144 * chartab.c: New file that implements char table.
22145
22146 * category.c: Include "character.h".
22147 (copy_category_entry): New function.
22148 (copy_category_table): Call map_char_table and copy_category_entry.
22149 (Fmake_category_table): Initialize all top-level slots.
22150 (char_category_set): New function.
22151 (modify_lower_category_set): Delete.
22152 (Fmodify_category_entry): Call char_table_ref_and_range.
22153
22154 * category.h (CATEGORY_SET): Just call char_category_set.
22155
22156 * ccl.c: Include "character.h".
22157 (Qccl, Qcclp): New variables.
22158 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22159 it's less than 256.
22160 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22161 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22162 and DST type.
22163 (ccl_driver): Change types of argument, adjust code accordingly.
22164 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22165 ccl_driver.
22166 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22167
22168 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22169 New members src_multibyte, dst_multibyte, consumed, and produced.
22170 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22171 (CODING_SPEC_CCL_PROGRAM): New macro.
22172 (ccl_driver): Update prototype.
22173 (Qccl, Qcclp, Fccl_program_p): Extern them.
22174 (CHECK_CCL_PROGRAM): New macro.
22175
22176 * character.c, character.h, chartab.c: New files.
22177
22178 * charset.c: Mostly re-written. Move character and multibyte sequence
22179 handling codes to character.c.
22180
22181 * charset.h: Mostly re-written. Move character and multibyte sequence
22182 handling codes to character.h.
22183
22184 * coding.c, coding.h: Mostly re-written.
22185
22186 * composite.c: Include "character.h" instead of "charset.h".
22187 (CHAR_WIDTH): Move to character.h.
22188 (HASH_KEY, HASH_VALUE): Delete.
22189
22190 * composite.h (enum composition_method): Change order of enumeration
22191 symbols.
22192
22193 * data.c: Include "character.h" instead of "charset.h".
22194 (Faref): Call CHAR_TABLE_REF for a char table.
22195 (Faset): Call CHAR_TABLE_SET for a char table.
22196
22197 * dispextern.h (free_realized_face, check_face_attribytes)
22198 (generate_ascii_font): Extern them.
22199 (free_realized_multibyte_face): Delete extern.
22200
22201 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22202 table structure.
22203
22204 * editfns.c: Include "character.h" instead of "charset.h".
22205 (Fchar_to_string): Always call CHAR_STRING.
22206
22207 * emacs.c (main): Call init_charset_once, init_charset,
22208 syms_of_chartab, and syms_of_character.
22209
22210 * fileio.c: Include "character.h" instead of "charset.h".
22211 (Finsert_file_contents): Big change for the new code-conversion API.
22212 (choose_write_coding_system, Fwrite_region): Likewise.
22213 (build_annotations_2): Delete.
22214 (e_write): Big change for the new code-conversion API.
22215
22216 * fns.c: Include "character.h" instead of "charset.h".
22217 (copy_sub_char_table): Move to chartab.c.
22218 (Fcopy_sequence): Call copy_char_table for a char table.
22219 (concat): Delete codes calling count_multibyte.
22220 (string_char_to_byte, string_byte_to_char): Adjust for the new
22221 multibyte form.
22222 (internal_equal): Adjust for the change of char table structure.
22223 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22224 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22225 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22226 (char_table_translate, optimize_sub_char_table)
22227 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22228 chartab.c.
22229 (char_table_ref_and_index): Delete.
22230 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22231 (Fmd5): Call preferred_coding_system instead of accessing
22232 Vcoding_category_list. Adjust for the new code-conversion API.
22233 (syms_of_fns): Move defsubr for char table related functions to
22234 chartab.c.
22235
22236 * fontset.c: Mostly re-written.
22237
22238 * fontset.h (struct font_info): Change type of the member encoding_type.
22239 (enum FONT_SPEC_INDEX): New enum.
22240 (fontset_font_pattern, fs_load_font): Update prototype.
22241 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22242
22243 * indent.c: Include "character.h" instead of "charset.h".
22244 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22245
22246 * insdel.c: Include "character.h" instead of "charset.h".
22247 (copy_text): Don't refer to Vnonascii_translation_table.
22248 (insert_from_gap): New function.
22249
22250 * keyboard.c: Include "character.h" instead of "charset.h".
22251 (command_loop_1): Never call direct_output_forward_char before
22252 a non-ASCII character.
22253 (read_char): If Vkeyboard_translate_table is a char table, always
22254 translate a character.
22255
22256 * keymap.c: Include "character.h".
22257 (store_in_keymap): Handle the case that IDX is a cons.
22258 (Fdefine_key): Handle the case that KEY is a cons and the car part
22259 is also a cons (range).
22260 (push_key_description): Adjust for the new character code.
22261 (describe_vector): Call describe_char_table for a char table.
22262 (describe_char_table): New function.
22263
22264 * keymap.h (describe_char_table): Extern it.
22265
22266 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22267 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22268 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22269 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22270 Delete.
22271 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22272 structure.
22273 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22274 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22275 (CHARTAB_SIZE_BITS_3): New macros.
22276 (chartab_size): Extern it.
22277 (struct Lisp_Char_Table): Re-design.
22278 (struct Lisp_Sub_Char_Table): New structure.
22279 (HASH_KEY, HASH_VALUE): Move from fns.c.
22280 (CHARACTERBITS): Define as 22.
22281 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22282 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22283 (GC_SUB_CHAR_TABLE_P): New macro.
22284 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22285 (code_convert_string_norecord): Deleted extern.
22286 (init_character_once, syms_of_character, init_charset)
22287 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22288
22289 * lread.c: Include "character.h".
22290 (read_multibyte): New arg NBYTES.
22291 (read_escape): Change the meaning of returned *BYTEREP.
22292 (to_multibyte): Delete.
22293 (read1): Adjust the handling of char table and string.
22294
22295 * print.c: Include "character.h" instead of "charset.h".
22296 (print_string): Convert 8-bit raw bytes to octal form by
22297 string_escape_byte8.
22298 (print_object): Adjust for the new multibyte form. Print 8-bit
22299 raw bytes always in octal form. Handle sub char table correctly.
22300
22301 * process.c: Include "character.h" instead of "charset.h".
22302 (read_process_output, send_process): Adjust for the new
22303 code-conversion API.
22304
22305 * puresize.h (BASE_PURESIZE): Increase.
22306
22307 * regex.c: Include "character.h" instead of "charset.h".
22308 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22309 (regex_compile): Accept a range whose starting and ending
22310 character have different leading bytes.
22311 (analyse_first): Adjust for the above change.
22312
22313 * search.c: Include "character.h" instead of "charset.h".
22314 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22315 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22316
22317 * syntax.c: Include "character.h" instead of "charset.h".
22318 (syntax_parent_lookup): Delete.
22319 (Fmodify_syntax_entry): Accept a cons as CHAR.
22320 (skip_chars): Adjust for the new multibyte form.
22321 (init_syntax_once): Call char_table_set_range instead of directly
22322 accessing the structure of a char table.
22323
22324 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22325 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22326 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22327 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22328
22329 * term.c: Include "buffer.h" and "character.h".
22330 (encode_terminal_code, write_glyphs): Adjust for the new
22331 code-conversion API.
22332 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22333
22334 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22335
22336 * xdisp.c: Include "character.h".
22337 (get_next_display_element): Adjust for the new multibyte form.
22338 (disp_char_vector): Adjust for the new char table structure.
22339 (decode_mode_spec_coding): Adjust for the new structure of
22340 coding system.
22341 (decode_mode_spec): Adjust for the new code-conversion API.
22342
22343 * xfaces.c: Include "character.h" instead of "charset.h".
22344 (load_face_font): Adjust for the change of choose_face_font and
22345 FS_LOAD_FONT.
22346 (generate_ascii_font): New function.
22347 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22348 (set_font_frame_param): Adjust for the change of choose_face_font.
22349 (free_realized_face): Make it public.
22350 (free_realized_faces_for_fontset): Rename from
22351 free_realized_multibyte_face. Free also faces realized for ASCII.
22352 (choose_face_font): Change arguments. Adjust for the change of
22353 fontset_font_pattern and FS_LOAD_FONT.
22354
22355 * xfns.c: Include "character.h".
22356 (x_encode_text): Adjust for the new code-conversion API.
22357
22358 * xselect.c: Don't include "charset.h".
22359 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22360
22361 * xterm.c: Include "character.h".
22362 (x_encode_char): New argument CHARSET. Change caller.
22363 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22364 Call ENCODE_CHAR instead of SPLIT_CHAR.
22365 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22366 CHAR_WIDTH instead of CHARSET_WIDTH.
22367 (XTread_socket): Adjust for the new code-conversion API.
22368 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22369 (x_load_font): Adjust for the change of struct font.
22370
223712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22372
22373 * xfaces.c (face_at_buffer_position): Remove unused vars.
22374
223752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22376
22377 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22378 Fix overflow checking.
22379
223802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22381
22382 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22383 Cancel previous change.
22384
223852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22386
22387 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22388 ccl->eight_bit_control. Fix check for buffer overflow.
22389 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22390 (ccl_driver): Initialize extra_bytes to 0.
22391
223922008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22393
22394 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22395 return it ORed with ctrl_modifier.
22396
223972008-01-29 Miles Bader <miles@gnu.org>
22398
22399 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22400
224012008-01-28 Jason Rumney <jasonr@gnu.org>
22402
22403 * w32.c (stat): Don't double check for networked drive.
22404
224052008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22406
22407 * window.c (run_window_configuration_change_hook): New function.
22408 Code extracted from set_window_buffer. Set the selected frame.
22409 (set_window_buffer): Use it.
22410 * window.h (run_window_configuration_change_hook): Declare.
22411 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22412
22413 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22414
224152008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22416
22417 * Makefile.in: Remove references to unused macros.
22418
224192008-01-26 Eli Zaretskii <eliz@gnu.org>
22420
22421 * w32.c (g_b_init_get_sid_sub_authority)
22422 (g_b_init_get_sid_sub_authority_count): New static variables.
22423 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22424 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22425 (init_user_info): Use them to retrieve uid and gid.
22426 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22427 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22428 st_uid and st_gid of the file.
22429
224302008-01-26 Jason Rumney <jasonr@gnu.org>
22431
22432 * w32.c (logon_network_drive): New function.
22433 (stat): Use it.
22434
224352008-01-26 Chong Yidong <cyd@stupidchicken.com>
22436
22437 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22438 invisible text covered with an ellipsis.
22439
224402008-01-25 Richard Stallman <rms@gnu.org>
22441
22442 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22443 jump back to beginning. Move some other initializations after that.
22444 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22445 New variables.
22446 (syms_of_xdisp): Init them.
22447
22448 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22449
22450 * buffer.c (reset_buffer_local_variables):
22451 Implement `permanent-local-hook'.
22452 (Qpermanent_local_hook): New variable.
22453 (syms_of_buffer): Init and staticpro it.
22454
224552008-01-25 Michael Albinus <michael.albinus@gmx.de>
22456
22457 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22458
224592008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22460
22461 * fns.c (Fclrhash): Return TABLE.
22462
224632008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22464
22465 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22466 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22467 is set even without positional changes.
22468 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22469
22470 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22471
224722008-01-23 Jason Rumney <jasonr@gnu.org>
22473
22474 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22475
22476 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22477 the unicode range available in MULE by locale-coding-system.
22478 Improve dbcs lead byte detection. Set event timestamp and modifiers
22479 earlier.
22480
224812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22482
22483 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22484 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22485 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22486 when used on child processes.
22487
224882008-01-21 Michael Albinus <michael.albinus@gmx.de>
22489
22490 * dbusbind.c (Fdbus_method_return_internal): Rename from
22491 Fdbus_method_return.
22492 (Fdbus_unregister_object): Move to dbus.el.
22493 (Fdbus_call_method, Fdbus_method_return_internal)
22494 (Fdbus_send_signal): Improve debug messages.
22495
224962008-01-20 Martin Rudalics <rudalics@gmx.at>
22497
22498 * undo.c (undo_inhibit_record_point): New variable.
22499 (syms_of_undo): Initialize it.
22500 (record_point): Don't record point when undo_inhibit_record_point
22501 is set.
22502
225032008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22504
22505 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22506
22507 * xdisp.c (Qauto_hscroll_mode): New var.
22508 (syms_of_xdisp): Initialize it.
22509 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22510 window's buffer.
22511 (hscroll_windows): Don't check automatic_hscrolling_p here.
22512
22513 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22514 vscroll if we're setting window-buffer to the value it already has.
22515
225162008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22517
22518 * m/intel386.h: Remove references to XENIX.
22519
225202008-01-17 Andreas Schwab <schwab@suse.de>
22521
22522 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22523 instead of HAVE_X86_64_LIB64_DIR.
22524 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22525
225262008-01-17 Glenn Morris <rgm@gnu.org>
22527
22528 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22529 to HAVE_X86_64_LIB64_DIR.
22530
225312008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22532
22533 * s/irix3-3.h:
22534 * s/irix4-0.h:
22535 * s/386-ix.h:
22536 * s/domain.h:
22537 * s/hpux9-x11r4.h:
22538 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22539
22540 * sysdep.c: Remove code containing references to symbols defined
22541 by unsupported systems.
22542
225432008-01-16 Glenn Morris <rgm@gnu.org>
22544
22545 * coding.c (select-safe-coding-system-function): Doc fix.
22546
225472008-01-15 Glenn Morris <rgm@gnu.org>
22548
22549 * config.in: Revert 2008-01-13 change: this is a generated file.
22550
225512008-01-13 Tom Tromey <tromey@redhat.com>
22552
22553 * lisp.h: Fix typo.
22554
225552008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22556
22557 * m/sequent-ptx.h:
22558 * m/sequent.h:
22559 * s/ptx.h:
22560 * s/ptx4-2.h:
22561 * s/ptx4.h: Remove files for systems no longer supported.
22562
22563 * callproc.c (Fcall_process): Fix previous change.
22564
225652008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22566
22567 * unexsunos4.c: Remove file, system not supported anymore.
22568
22569 * m/mips.h:
22570 * m/intel386.h:
22571 * callproc.c:
22572 * config.in:
22573 * ecrt0.c:
22574 * emacs.c:
22575 * fileio.c:
22576 * frame.c:
22577 * getpagesize.h:
22578 * keyboard.c:
22579 * lread.c:
22580 * process.c:
22581 * puresize.h:
22582 * sysdep.c:
22583 * systty.h:
22584 * syswait.h:
22585 * unexec.c:
22586 * xdisp.c:
22587 * alloc.c: Remove code containing references to symbols defined by
22588 unsupported systems.
22589
225902008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22591
22592 * coding.c (detect_coding_mask): Fix previous change.
22593
225942008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22595
22596 * coding.c (detect_coding_iso2022): New arg
22597 latin_extra_code_state. Allow Latin extra codes only
22598 when *latin_extra_code_state is nonzero.
22599 (detect_coding_mask): If there is a NULL byte, detect the encoding
22600 as UTF-16 or binary. If Latin extra codes exist, detect the
22601 encoding as ISO-2022 only when there's no other proper encoding is
22602 found.
22603
226042008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22605
22606 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22607 #ifdef MAC_OS.
22608
226092008-01-08 Richard Stallman <rms@gnu.org>
22610
22611 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22612
226132008-01-06 Nick Roberts <nickrob@snap.net.nz>
22614
22615 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22616 menu bar in parentheses.
22617
226182008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22619
22620 * m/7300.h:
22621 * m/acorn.h:
22622 * m/alliant-2800.h:
22623 * m/alliant.h:
22624 * m/alliant1.h:
22625 * m/alliant4.h:
22626 * m/altos.h:
22627 * m/amdahl.h:
22628 * m/apollo.h:
22629 * m/att3b.h:
22630 * m/aviion-intel.h:
22631 * m/aviion.h:
22632 * m/celerity.h:
22633 * m/clipper.h:
22634 * m/cnvrgnt.h:
22635 * m/convex.h:
22636 * m/cydra5.h:
22637 * m/delta88k.h:
22638 * m/dpx2.h:
22639 * m/dual.h:
22640 * m/elxsi.h:
22641 * m/f301.h:
22642 * m/gould-np1.h:
22643 * m/gould.h:
22644 * m/i860.h:
22645 * m/ibmps2-aix.h:
22646 * m/ibmrt-aix.h:
22647 * m/ibmrt.h:
22648 * m/irist.h:
22649 * m/is386.h:
22650 * m/isi-ov.h:
22651 * m/mega68.h:
22652 * m/mg1.h:
22653 * m/news-r6.h:
22654 * m/news-risc.h:
22655 * m/news.h:
22656 * m/nh3000.h:
22657 * m/nh4000.h:
22658 * m/ns16000.h:
22659 * m/ns32000.h:
22660 * m/nu.h:
22661 * m/orion.h:
22662 * m/orion105.h:
22663 * m/paragon.h:
22664 * m/pfa50.h:
22665 * m/plexus.h:
22666 * m/pyramid.h:
22667 * m/pyrmips.h:
22668 * m/sh3el.h:
22669 * m/sps7.h:
22670 * m/sr2k.h:
22671 * m/stride.h:
22672 * m/sun1.h:
22673 * m/sun2.h:
22674 * m/sun3-68881.h:
22675 * m/sun3-fpa.h:
22676 * m/sun3-soft.h:
22677 * m/sun3.h:
22678 * m/sun386.h:
22679 * m/symmetry.h:
22680 * m/tad68k.h:
22681 * m/tahoe.h:
22682 * m/targon31.h:
22683 * m/tek4300.h:
22684 * m/tekxd88.h:
22685 * m/tower32.h:
22686 * m/tower32v3.h:
22687 * m/ustation.h:
22688 * m/wicat.h:
22689 * m/xps100.h:
22690 * s/cxux.h:
22691 * s/cxux7.h:
22692 * s/dgux.h:
22693 * s/dgux4.h:
22694 * s/dgux5-4-3.h:
22695 * s/dgux5-4r2.h:
22696 * s/esix.h:
22697 * s/esix5r4.h:
22698 * s/hiuxmpp.h:
22699 * s/hiuxwe2.h:
22700 * s/iris3-5.h:
22701 * s/iris3-6.h:
22702 * s/isc2-2.h:
22703 * s/isc3-0.h:
22704 * s/isc4-0.h:
22705 * s/isc4-1.h:
22706 * s/newsos5.h:
22707 * s/newsos6.h:
22708 * s/osf1.h:
22709 * s/osf5-0.h:
22710 * s/riscix1-1.h:
22711 * s/riscix12.h:
22712 * s/sco4.h:
22713 * s/sco5.h:
22714 * s/sunos4-0.h:
22715 * s/sunos4-1.h:
22716 * s/sunos413.h:
22717 * s/sunos4shr.h:
22718 * s/umax.h:
22719 * s/unipl5-2.h:
22720 * s/xenix.h:
22721 * cxux-crt0.s:
22722 * unexapollo.c:
22723 * unexconvex.c:
22724 * unexenix.c:
22725 * unexsni.c: Remove files for systems no longer supported.
22726
22727 * m/intel386.h: Remove references to unsupported systems.
22728
22729 * w32.c (get_emacs_configuration): Remove reference to i860.
22730
22731 * sysdep.c: Remove dead code.
22732
227332008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22734
22735 * s/rtu.h:
22736 * m/masscomp.h: Remove files. Platform is obsolete.
22737
227382008-01-04 Michael Albinus <michael.albinus@gmx.de>
22739
22740 * dbusbind.c (Fdbus_method_return): New function.
22741 (xd_read_message): Add the serial number to the event.
22742 (Fdbus_register_method): Activate the function.
22743
227442008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22745
22746 * keyboard.c (read_key_sequence): Fix typo.
22747
227482008-01-03 Michael Albinus <michael.albinus@gmx.de>
22749
22750 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22751 (xd_signature, xd_append_arg): Handle element type detection for
22752 empty arrays.
22753 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22754 SDATA () calls; this must be solved more general.
22755 (Fdbus_register_signal): Use SBYTES instead of strlen.
22756
227572008-01-03 Magnus Henoch <magnus@zemdatav>
22758
22759 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22760 unsigned int for byte values (necessary for big-endian platform).
22761 (Fdbus_call_method): Handle the case of no returned arguments.
22762
227632007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22764
22765 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22766
227672007-12-31 Magnus Henoch <mange@freemail.hu>
22768
22769 * dbusbind.c (xd_signature): Signature of variant is just "v".
22770
227712007-12-30 Michael Albinus <michael.albinus@gmx.de>
22772
22773 * dbusbind.c: Fix several errors and compiler warnings.
22774 Reported by Tom Tromey <tromey@redhat.com>.
22775 (XD_ERROR, XD_DEBUG_MESSAGE)
22776 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22777 (xd_append_arg): Part for basic D-Bus types rewritten.
22778 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22779 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22780 appropriate.
22781 (xd_read_message): Return Qnil. Don't signal an error; it is not
22782 useful during event reading.
22783 (Fdbus_register_signal): Signal an error if the check for
22784 FUNCTIONP fails.
22785 (Fdbus_register_method): New function. The implementation is not
22786 complete, the call of the function signals an error therefore.
22787 (Fdbus_unregister_object): New function, renamed from
22788 Fdbus_unregister_signal. The initial check signals an error, if
22789 the object is not well formed.
22790
227912007-12-30 Richard Stallman <rms@gnu.org>
22792
22793 * textprop.c (get_char_property_and_overlay):
22794 Signal error if POSITION is out of range in a buffer.
22795
227962007-12-29 Martin Rudalics <rudalics@gmx.at>
22797
22798 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22799 because the original parameters are in pure storage now.
22800
228012007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22802
22803 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22804
228052007-12-22 Eli Zaretskii <eliz@gnu.org>
22806
22807 * callint.c (syms_of_callint) <command-history>: Add reference to
22808 history-length in the doc string.
22809
228102007-12-17 Jason Rumney <jasonr@gnu.org>
22811
22812 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22813 before passing as wParam.
22814
228152007-12-22 Michael Albinus <michael.albinus@gmx.de>
22816
22817 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22818 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22819 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22820 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22821 as number.
22822 (Fdbus_call_method): Fix docstring.
22823
228242007-12-21 Michael Albinus <michael.albinus@gmx.de>
22825
22826 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22827 New macros.
22828 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22829 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22830 Simplify.
22831 (xd_signature): New function.
22832 (xd_append_arg): Compute also signatures. Major rewrite.
22833 (xd_retrieve_arg): Make debug messages friendly.
22834 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22835 Check for signatures of arguments.
22836
228372007-12-19 Michael Albinus <michael.albinus@gmx.de>
22838
22839 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22840 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22841 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22842 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22843 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22844 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22845 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22846 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22847 (xd_retrieve_value): Remove. Functionality included in ...
22848 (xd_append_arg): New function.
22849 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22850
228512007-12-16 Michael Albinus <michael.albinus@gmx.de>
22852
22853 * dbusbind.c (top): Include <stdio.h>.
22854 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22855 dbus_message_new_method_call and dbus_message_new_signal.
22856 (Fdbus_register_signal): Rename unique_name to uname.
22857 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22858 non-existing unique name. Fix typos in matching rule. Return an
22859 object which is useful in Fdbus_unregister_signal.
22860 (Fdbus_unregister_signal): Reimplementation, in order to remove
22861 only the corresponding entry.
22862 (Vdbus_registered_functions_table): Change the order of entries.
22863 Apply these changes in xd_read_message and Fdbus_register_signal.
22864
228652007-12-16 Andreas Schwab <schwab@suse.de>
22866
22867 * fileio.c (Finsert_file_contents): Fix overflow check to not
22868 depend on undefined integer overflow.
22869
228702007-12-14 Jason Rumney <jasonr@gnu.org>
22871
22872 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22873 for characters above 127.
22874
228752007-12-13 Jason Rumney <jasonr@gnu.org>
22876
22877 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22878 before dereferencing array.
22879 (lookup_vk_code): Remove zero comparison.
22880
228812007-12-14 Michael Albinus <michael.albinus@gmx.de>
22882
22883 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22884 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22885 Use `unsigned int' instead of `uint'.
22886 (xd_read_message, Fdbus_register_signal): Split expressions into
22887 multiple lines before operators "&&" and "||", according to the
22888 GNU Coding Standards.
22889
228902007-12-14 Eli Zaretskii <eliz@gnu.org>
22891
22892 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22893
228942007-12-12 Juri Linkov <juri@jurta.org>
22895
22896 * buffer.c (Frename_buffer): In interactive spec replace
22897 `read-buffer' with `read-string' that uses `buffer-name-history'
22898 as history, and the current buffer's name as default.
22899
229002007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22901
22902 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22903 manipulating the backtrace manually.
22904 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22905 (struct backtrace, backtrace_list): Remove.
22906 (command_loop_1): Remove dead var `no_direct'.
22907
22908 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22909 preserve non-built-in buffer-local variables.
22910 (Fkill_all_local_variables): Don't re-create&re-set permanent
22911 buffer-local variables.
22912
229132007-12-09 Juri Linkov <juri@jurta.org>
22914
22915 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22916 Lisp code that uses `read-buffer' with current buffer as default.
22917
229182007-12-08 Michael Albinus <michael.albinus@gmx.de>
22919
22920 * dbusbind.c (xd_read_message): Generate an event for every
22921 registered handler. There might be several handlers registered
22922 for the same signal.
22923 (Fdbus_register_signal): Don't overwrite a registration for the
22924 same signal. Add a new registration if handlers are different.
22925 (Vdbus_registered_functions_table): Rework doc string.
22926
229272007-12-07 Michael Albinus <michael.albinus@gmx.de>
22928
22929 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22930 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22931 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22932 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22933 Unify argument lists.
22934 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22935 arguments and hash table keys. Use unique name for service.
22936 (Fdbus_unregister_signal): Remove checks.
22937 (Vdbus_registered_functions_table): Fix doc string.
22938
229392007-12-05 Magnus Henoch <mange@freemail.hu>
22940
22941 * process.c (make_process): Initialize pty_flag to 0.
22942
229432007-12-05 Jason Rumney <jasonr@gnu.org>
22944
22945 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22946 specified XBMs.
22947
229482007-12-05 Richard Stallman <rms@gnu.org>
22949
22950 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22951
229522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22953
22954 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22955 New variable.
22956 (mac_try_close_socket) [MAC_OSX]: New function.
22957 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22958 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22959
22960 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22961 Use mac_try_close_socket.
22962
229632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22964
22965 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22966 reloc_base.
22967 (copy_dysymtab): Compute relocation base here.
22968 (rebase_reloc_address) [__ppc64__]: New function.
22969 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22970 changed.
22971
229722007-12-05 Jason Rumney <jasonr@gnu.org>
22973
22974 * w32proc.c (sys_spawnve): Quote args with wildcards.
22975
229762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22977
22978 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22979 __objc_* sections.
22980 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22981
229822007-12-05 Michael Albinus <michael.albinus@gmx.de>
22983
22984 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22985 Move check for Vdbus_registered_functions_table to
22986 xd_read_queued_messages.
22987 (xd_read_queued_messages): Protect xd_read_message calls by
22988 internal_condition_case_1.
22989
229902007-12-04 Michael Albinus <michael.albinus@gmx.de>
22991
22992 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22993 Qdbus_system_bus and Qdbus_session_bus, respectively.
22994 (Vdbus_intern_symbols): Remove.
22995 (Vdbus_registered_functions_table): New hash table.
22996 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22997 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22998 Rewrite in order to manage registered functions by hash table
22999 Vdbus_registered_functions_table.
23000
230012007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23002
23003 * xterm.c: Update URL to Window Manager Specification in comment.
23004
230052007-12-02 Michael Albinus <michael.albinus@gmx.de>
23006
23007 * config.in (HAVE_DBUS): Add.
23008
23009 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23010 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23011 (obj): Add $(DBUS_OBJ).
23012 (LIBES): Add $(DBUS_LIBS).
23013 (dbusbind.o): New target.
23014
23015 * dbusbind.c: New file.
23016
23017 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23018
23019 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23020 (Qdbus_event): New Lisp symbol.
23021 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23022 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23023 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23024
23025 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23026
230272007-12-01 Richard Stallman <rms@gnu.org>
23028
23029 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23030
230312007-11-30 Jason Rumney <jasonr@gnu.org>
23032
23033 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23034 (w32con_reset_terminal_modes): Clear screen buffer.
23035 (w32_face_attributes): Don't use color indexes that are out of range.
23036 Only reverse the default colors.
23037
23038 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23039 WINDOWSNT.
23040
23041 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23042
230432007-11-29 Jason Rumney <jasonr@gnu.org>
23044
23045 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23046 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23047 if the terminal colors are initialized.
23048 (unspecified_fg, unspecified_bg): Remove unused declarations.
23049
230502007-11-29 Andreas Schwab <schwab@suse.de>
23051
23052 * keyboard.c (apply_modifiers): Fix typo.
23053
230542007-11-29 Richard Stallman <rms@gnu.org>
23055
23056 * keymap.c (Fcurrent_local_map): Doc fix.
23057
230582007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23059
23060 * s/gnu-kfreebsd.h: New file.
23061
230622007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23063
23064 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23065 Don't cast redundantly.
23066
23067 * keyboard.c (KEY_TO_CHAR): New macro.
23068 (parse_modifiers, apply_modifiers): Accept integer arguments.
23069 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23070 for chars and symbol keys.
23071 After doing such remapping, apply function-key-map again.
23072
230732007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23074
23075 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23076 compiled anymore.
23077
230782007-11-26 Andreas Schwab <schwab@suse.de>
23079
23080 * process.c (list_processes_1): Fix indentation level of the
23081 command column.
23082
230832007-11-23 Andreas Schwab <schwab@suse.de>
23084
23085 * editfns.c (Fformat): Handle %c specially since it requires the
23086 argument to be of type int.
23087
230882007-11-23 Markus Triska <markus.triska@gmx.at>
23089
23090 * emacs.c (main): Call init_editfns before init_process, since
23091 init_process sets Vprocess_connection_type depending on OS release.
23092
230932007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23094
23095 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23096 (find_symbol_value): Use do_symval_forwarding.
23097
23098 * data.c (set_internal): Set the value in the `cons-cell' (for
23099 Buffer_Local_values) not only for frame-local variables.
23100
231012007-11-22 Andreas Schwab <schwab@suse.de>
23102
23103 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23104 values to sprintf.
23105 * keymap.c (Fsingle_key_description): Likewise.
23106 * print.c (print_object): Likewise.
23107
231082007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23109
23110 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23111 file for image is nil.
23112
231132007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23114
23115 * term.c: Include stdarg.h.
23116 (fatal): Implement using varargs.
23117 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23118
231192007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23120
23121 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23122 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23123 Update call to buffer_slot_type_mismatch.
23124 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23125 (buffer_slot_type_mismatch): Update.
23126 * buffer.c (buffer_local_types): Remove.
23127 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23128 (defvar_per_buffer): Set the type in the buffer_objfwd.
23129
231302007-11-21 Jason Rumney <jasonr@gnu.org>
23131
23132 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23133 CreateFileMapping returns NULL on failure.
23134
231352007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23136
23137 * search.c (Fset_match_data): Remove the `evaporate' feature.
23138 (unwind_set_match_data): Don't use the `evaporate' feature.
23139
231402007-11-21 Jason Rumney <jasonr@gnu.org>
23141
23142 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23143
23144 * w32console.c (w32con_write_glyphs): Remove unused variables.
23145
231462007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23147
23148 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23149
23150 * s/darwin.h (MULTI_KBOARD): Remove.
23151
23152 * macfns.c (x_create_tip_frame, Fx_create_frame)
23153 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23154
231552007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23156
23157 * buffer.c (Fbuffer_local_value): Remove redundant test.
23158 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23159 than in `current-buffer' to match the comment.
23160 Do the swap using swap_in_global_binding.
23161
23162 * data.c (store_symval_forwarding, set_internal):
23163 * eval.c (specbind): Remove dead code.
23164
23165 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23166 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23167 Since we do not want to see internal Lisp_*fwd objects here.
23168
231692007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23170
23171 * sysdep.c (init_system_name): Use getaddrinfo if available.
23172
23173 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23174 (x_scroll_bar_note_movement): start, end, with, height in struct
23175 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23176
231772007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23178
23179 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23180
231812007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23182
23183 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23184 This undoes Richard's change of 14-Oct-2002.
23185
23186 * alloc.c (allocate_other_vector):
23187 * lisp.h (allocate_other_vector): Remove.
23188
23189 * window.c (struct save_window_data): Move non-lisp data to the end
23190 and make it `int' rather than Lisp_Object.
23191 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23192 Done wrap/unwrap integer values.
23193 (Fset_window_configuration, compare_window_configurations):
23194 Update use of fields to their new types.
23195
23196 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23197 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23198 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23199 (SET_SCROLL_BAR_X_WINDOW): Remove.
23200 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23201 Access the new x_window field directly.
23202 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23203 Don't wrap/unwrap integers into Lisp_Objects.
23204 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23205 (x_scroll_bar_report_motion):
23206 Don't wrap/unwrap integers into Lisp_Objects.
23207 (x_term_init): Use SDATA.
23208 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23209 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23210 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23211 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23212 * xfns.c (x_set_background_color):
23213 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23214 Access the new x_window field directly.
23215
23216 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23217 (allocate_pseudovector): Make non-static.
23218
23219 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23220 (allocate_pseudovector): Declare.
23221 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23222
232232007-11-15 Andreas Schwab <schwab@suse.de>
23224
23225 * editfns.c (Fformat): Correctly format EMACS_INT values.
23226 Also take precision into account when formatting an integer.
23227
23228 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23229
232302007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23231
23232 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23233 (syms_of_keyboard): Defsubr it.
23234
23235 * data.c (swap_in_global_binding): Fix longstanding bug where
23236 store_symval_forwarding was not called with the right second argument,
23237 thus causing objfwd-ing from being dropped.
23238
232392007-11-14 Juanma Barranquero <lekktu@gmail.com>
23240
23241 * macfns.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_visual_class, Fx_display_save_under):
23246 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23247 (Fx_display_pixel_height, Fx_display_planes)
23248 (Fx_display_color_cells, Fx_server_max_request_size)
23249 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23250 (Fx_display_mm_height, Fx_display_mm_width)
23251 (Fx_display_backing_store, Fx_display_visual_class)
23252 (Fw32_select_font, Fx_display_save_under):
23253 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23254 (Fx_display_pixel_height, Fx_display_planes)
23255 (Fx_display_color_cells, Fx_server_max_request_size)
23256 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23257 (Fx_display_save_under): Fix typos in docstrings.
23258
232592007-11-14 Juanma Barranquero <lekktu@gmail.com>
23260
23261 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23262 corresponding to deleted entries; they are an implementation detail.
23263 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23264 Remove variables.
23265 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23266 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23267 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23268 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23269 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23270 (Fw32_define_rgb_color, Fw32_load_color_file)
23271 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23272 Fix typos in docstrings.
23273 (Fx_server_version): Reflow docstring.
23274 (Fw32_shell_execute): Doc fixes.
23275
232762007-11-13 Juanma Barranquero <lekktu@gmail.com>
23277
23278 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23279 if w32_parse_hot_key returned nil.
23280
232812007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23282
23283 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23284
232852007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23286
aac0c6e3
MR
23287 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23288
23289 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23290
23291 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23292 Remove W32_SCROLL_BAR_CLICK_EVENT.
23293
23294 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23295 Add MULTIMEDIA_KEY_EVENT.
23296
23297 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23298 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23299 (make_lispy_event) [WINDOWSNT]: Use it to translate
23300 MULTIMEDIA_KEY_EVENT.
23301
23302 * w32term.h (WM_APPCOMMAND): Define if not already.
23303 (GET_APPCOMMAND_LPARAM): Likewise.
23304
23305 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23306 WM_APPCOMMAND.
23307
23308 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23309 (syms_of_w32fns): Export and initialize it.
23310 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23311
233122007-11-09 Chong Yidong <cyd@stupidchicken.com>
23313
23314 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23315 twice.
23316
23317 * xdisp.c (handle_face_prop): Fix last change.
23318
233192007-11-09 Richard Stallman <rms@gnu.org>
23320
23321 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23322 not just for after-strings and before-strings.
23323 Call face_for_overlay_string and pass the overlay to it.
23324 (handle_display_prop): Determine whether property came from an overlay.
23325 Pass OVERLAY arg to handle_single_display_spec.
23326 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23327 (load_overlay_strings): Fill in it->string_overlays.
23328 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23329
23330 * xfaces.c (face_for_overlay_string): Function renamed from
23331 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23332
23333 * dispextern.h (struct it): New elt string_overlays.
23334 New elt from_overlay, also in stack.
23335 Rearrange a few elements.
23336 (face_for_overlay_string): Decl renamed from
23337 face_at_buffer_position_no_overlays, and add argument.
23338
233392007-11-09 Richard Stallman <rms@gnu.org>
23340
23341 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23342 to get the base face for an overlay string.
23343
23344 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23345
23346 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23347
23348 * xdisp.c (handle_stop): Move some code out of loop.
23349
233502007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23351
23352 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23353 Fix conversion from Lisp object to ATSUFontID.
23354
233552007-11-09 Jason Rumney <jasonr@gnu.org>
23356
23357 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23358
233592007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23360
23361 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23362 Don't assume regions are aligned to page boundary.
23363 (print_load_command_name): Add LC_UUID if defined.
23364
233652007-11-09 Richard Stallman <rms@gnu.org>
23366
23367 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23368
233692007-11-07 Jason Rumney <jasonr@gnu.org>
23370
23371 * s/windows95.h: Remove.
23372
233732007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23374
23375 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23376 abort with a message on unhandled store_type values.
23377
233782007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23379
23380 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23381 Remove HAVE_X11R5 and HAVE_X11R4.
23382
233832007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23384
23385 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23386
233872007-11-01 Johan Bockgård <bojohan@gnu.org>
23388
23389 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23390 Don't set s->stippled_p here, since it has already been set by
23391 x_set_glyph_string_gc from x_draw_glyph_string.
23392
233932007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23394
23395 * sunfns.c: Remove file.
23396
23397 * m/sun386.h:
23398 * m/sun2.h:
23399 * m/sparc.h: Remove Sun windows code.
23400
234012007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23402
23403 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23404 (init_keyboard): Set current_kboard's window-system to nil.
23405 (tty_read_avail_input): Typo.
23406 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23407
234082007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23409
23410 * s/usg5-4.h:
23411 * s/usg5-3.h:
23412 * s/ptx.h:
23413 * m/is386.h:
23414 * m/ibmps2-aix.h:
23415 * Makefile.in: Remove all mentions of X10.
23416
23417 * dispnew.c (syms_of_display): Don't mention version 10.
23418
234192007-10-28 Juanma Barranquero <lekktu@gmail.com>
23420
23421 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23422 ($(BLD)/abbrev.$(O)): Remove.
23423
234242007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23425
23426 Rewrite abbrev.c in Elisp.
23427 * image.c (Qcount): Don't declare as extern.
23428 (syms_of_image): Initialize and staticpro `Qcount'.
23429 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23430 * emacs.c (main): Don't call syms_of_abbrev.
23431 * Makefile.in (obj): Remove abbrev.o.
23432 (abbrev.o): Remove.
23433 * abbrev.c: Remove.
23434
234352007-10-26 Martin Rudalics <rudalics@gmx.at>
23436
23437 * window.c (window_min_size_2): Don't count header-line.
23438
234392007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23440
23441 * frame.h (struct frame): Move all bit fields after the first bit
23442 field to take advantage of the available space. Group all the
23443 chars together to reduce wasted space due to padding.
23444
234452007-10-26 Juanma Barranquero <lekktu@gmail.com>
23446
23447 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23448
23449 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23450 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23451 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23452 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23453 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23454 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23455 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23456 (last_marked, mark_object_loop_halt): Make static.
23457
23458 * frame.c (syms_of_frame) <delete-frame-functions>:
23459 Fix typo in docstring.
23460
234612007-10-25 Juanma Barranquero <lekktu@gmail.com>
23462
23463 * w32.c (init_environment): Fix tiny memory leak.
23464 (w32_get_resource): Remove unused variable `ok'.
23465
234662007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23467
23468 Make `window-system' into a keyboard-local variable (rather than
23469 frame-local as done originally by multi-tty).
23470
23471 * keyboard.h (struct kboard): Add Vwindow_system.
23472 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23473 (mark_kboards): Mark Vwindow_system.
23474
23475 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23476 (init_display): Don't set the obsolete `window-system' frame-param.
23477
23478 * xterm.c (x_term_init):
23479 * w32term.c (w32_create_terminal):
23480 * term.c (init_tty): Set Vwindow_system.
23481 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23482 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23483
23484 * xfns.c (Fx_create_frame, x_create_tip_frame):
23485 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23486 * macfns.c (Fx_create_frame):
23487 Don't set the obsolete `window-system' frame-param.
23488
23489 * frame.h (Qwindow_system): Remove.
23490 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23491 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23492
234932007-10-24 Richard Stallman <rms@gnu.org>
23494
23495 * frame.c (x_figure_window_size): For fullscreen case,
23496 set USPosition | PPosition without clobbering rest of window_prompting.
23497
23498 * keyboard.c (Fcurrent_idle_time): Doc fix.
23499
23500 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23501
235022007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23503
23504 * process.c (unwind_request_sigio): Only define if __ultrix__.
23505
23506 * callproc.c (child_setup): Remove spurious *.
23507
23508 * lisp.h (Fget_text_property): Declare.
23509 (have_menus_p): Declare it here rather than in sys-dep header files.
23510 * macterm.h (have_menus_p):
23511 * msdos.h (have_menus_p):
23512 * xterm.h (have_menus_p): Remove.
23513
23514 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23515 (Fmake_variable_frame_local): Just check the variable's const-ness
23516 rather than checking nil or t.
23517
235182007-10-22 Jason Rumney <jasonr@gnu.org>
23519
23520 * w32fns.c: Include math.h.
23521 (w32_abort): Declaration moved to nt/config.nt.
23522
23523 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23524 (abort): Redefinition moved to nt/config.nt.
23525
23526 * m/windowsnt.h: Remove.
23527
235282007-10-22 Juanma Barranquero <lekktu@gmail.com>
23529
23530 * emacs.c (Fdump_emacs): Fix typo in message.
23531 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23532 <installation-directory>: Reflow docstring.
23533
235342007-10-22 Juri Linkov <juri@jurta.org>
23535
23536 * minibuf.c: Allow minibuffer default to be a list of default values.
23537 With empty input use the first element of this list as returned default.
23538 (string_to_object)
23539 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23540 (read_minibuf): If defalt is cons, set histstring to its car.
23541 (Fread_string): If default_value is cons, set val to its car.
23542 (Fread_buffer): If def is cons, use its car.
23543 (Fcompleting_read): If defalt is cons, set val to its car.
23544
235452007-10-21 Michael Albinus <michael.albinus@gmx.de>
23546
23547 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23548
235492007-10-20 Juanma Barranquero <lekktu@gmail.com>
23550
23551 * doc.c (Fdocumentation): Check for advice in all cases.
23552
235532007-10-19 Chong Yidong <cyd@stupidchicken.com>
23554
23555 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23556
235572007-10-19 Richard Stallman <rms@gnu.org>
23558
23559 * doc.c (Fdocumentation): Check for and handle an advised function.
23560
235612007-10-19 Juanma Barranquero <lekktu@gmail.com>
23562
23563 * process.c (Fset_process_filter): Doc fix.
23564
235652007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23566
23567 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23568 which caused key-translation-map to applied repeatedly (thus breaking
23569 double-mode).
23570
235712007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23572
23573 * xselect.c (x_own_selection, x_handle_selection_clear)
23574 (x_clear_frame_selections):
23575 * w32menu.c (list_of_panes, list_of_items):
23576 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23577 * textprop.c (validate_plist, interval_has_all_properties)
23578 (interval_has_some_properties, interval_has_some_properties_list)
23579 (add_properties, text_property_list):
23580 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23581 * minibuf.c (Fassoc_string):
23582 * macselect.c (x_own_selection, x_clear_frame_selections)
23583 (Fx_disown_selection_internal):
23584 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23585 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23586
235872007-10-17 Chong Yidong <cyd@stupidchicken.com>
23588
23589 * process.c: Link to libs for calling res_init() if available.
23590 (Fmake_network_process): Call res_init() before getaddrinfo or
23591 gethostbyname, if possible.
23592
235932007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23594
23595 * lread.c (read1): Set pvectype for char_tables.
23596
23597 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23598 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23599 Add type checks.
23600 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23601
23602 * alloc.c (free_misc): Use XMISCTYPE.
23603 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23604
236052007-10-17 Glenn Morris <rgm@gnu.org>
23606
23607 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23608 (syms_of_minibuf): Add Qcompletion_ignore_case.
23609 * dired.c (Qcompletion_ignore_case): Change to external.
23610 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23611 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23612 (Fread_file_name): Use it rather than intern'ing.
23613
23614 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23615 (Fread_coding_system): Ignore case of user input.
23616
236172007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23618
23619 * xdisp.c (handle_display_prop): Ignore display specs after
23620 replacing one when string text is being replaced.
23621 (handle_single_display_spec): Pretend as if characters with display
23622 property haven't been consumed only when buffer text is being replaced.
23623
236242007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23625
23626 * xfns.c (Fx_create_frame, Fx_display_list):
23627 * window.c (window_fixed_size_p, enlarge_window)
23628 (shrink_window_lowest_first):
23629 * macterm.c (init_font_name_table):
23630 * macfns.c (Fx_create_frame, Fx_display_list):
23631 * lread.c (close_load_descs):
23632 * keyboard.c (read_char_x_menu_prompt):
23633 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23634 * coding.c (code_convert_region_unwind): Test the type of an object
23635 rather than just !NILP before extracting data from it.
23636
23637 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23638
23639 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23640 (XMISCANY): New macro.
23641 (XMISCTYPE): Use it.
23642 (struct Lisp_Misc_Any): New type.
23643 (union Lisp_Misc): Use it.
23644 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23645 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23646 (find_symbol_value, set_internal, default_value, Fset_default)
23647 (Fmake_variable_buffer_local, Fmake_local_variable)
23648 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23649 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23650 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23651 * alloc.c (allocate_buffer): Set the size and tag.
23652 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23653 Use XMISCANY.
23654 (die): Follow the GNU convention for error messages.
23655 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23656 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23657 tag any more.
23658 (set_buffer_internal_1):
23659 * frame.c (store_frame_param):
23660 * eval.c (specbind):
23661 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23662
23663 * doc.c (Fsnarf_documentation): Simplify.
23664
236652007-10-14 Juanma Barranquero <lekktu@gmail.com>
23666
23667 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23668 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23669
236702007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23671
23672 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23673
236742007-10-14 Juanma Barranquero <lekktu@gmail.com>
23675
23676 * eval.c (do_autoload): Don't save autoloads.
23677
23678 * data.c (Ffset): Save autoload of the function being set.
23679
236802007-10-07 John Paul Wallington <jpw@pobox.com>
23681
23682 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23683 parameter before setting up faces.
23684
236852007-10-13 Eli Zaretskii <eliz@gnu.org>
23686
23687 * ccl.c (Fregister_code_conversion_map):
23688 * keyboard.c (append_tool_bar_item): Reformat last change.
23689
23690 * lisp.h (eabs): Rename from `abs'. All callers changed.
23691
236922007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23693
23694 * buffer.c (add_overlay_mod_hooklist):
23695 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23696 * fontset.c (make_fontset):
23697 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23698 (append_tool_bar_item):
23699 * macmenu.c (grow_menu_items):
23700 * w32menu.c (grow_menu_items):
23701 * xmenu.c (grow_menu_items): Use larger_vector.
23702
237032007-10-13 Eli Zaretskii <eliz@gnu.org>
23704
23705 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23706 selected frame'' on MSDOS).
23707
237082007-10-12 Martin Rudalics <rudalics@gmx.at>
23709
23710 * frame.c (Qexplicit_name): New variable.
23711 (x_report_frame_params): Report it in parameter alist.
23712 (syms_of_frame): Intern and staticpro it.
23713
237142007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23715
23716 * macfns.c (x_create_tip_frame): Set terminal for frame.
23717
237182007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23719
23720 * frame.c (Qenvironment): Remove.
23721 (syms_of_frame) <Qenvironment>: Don't initialize.
23722 (Fdelete_frame): Don't treat the `environment' param specially.
23723 * frame.h (Qenvironment): Don't declare.
23724 * callproc.c (set_initial_environment): Don't set unused frame param.
23725
23726 * frame.c (Fframe_with_environment): Remove.
23727 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23728
23729 * lisp.h (Fframe_with_environment): Don't declare.
23730
237312007-10-10 Juanma Barranquero <lekktu@gmail.com>
23732
23733 * indent.c (indent_tabs_mode, last_known_column)
23734 (last_known_column_modified): Make static.
23735 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23736
237372007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23738
23739 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23740
237412007-10-09 Jason Rumney <jasonr@gnu.org>
23742
23743 * w32term.c (x_set_window_size): Disable code that attempts to tell
23744 Lisp code about a size change before it actually happens.
23745
237462007-10-09 Richard Stallman <rms@gnu.org>
23747
23748 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23749 return HANDLED_RETURN.
23750
237512007-10-08 Martin Rudalics <rudalics@gmx.at>
23752
23753 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23754 when there's an unread command event.
23755
23756 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23757 window autoselection act appropriately when leaving selected frame.
23758 (syms_of_frame): Initialize focus_follows_mouse.
23759 * frame.h (focus_follows_mouse): Extern it.
23760 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23761 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23762 * msdos.c (dos_rawgetc): Likewise.
23763 * w32term.c (w32_read_socket): Likewise.
23764 * xterm.c (handle_one_xevent): Likewise.
23765 * xdisp.c (syms_of_xdisp): In doc-string of
23766 mouse-autoselect-window mention focus-follows-mouse.
23767
237682007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23769
23770 * macterm.c (mac_load_query_font): Fix missing return value.
23771 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23772 Add BLOCK_INPUT.
23773
237742007-10-08 Richard Stallman <rms@gnu.org>
23775
23776 * xdisp.c (get_window_cursor_type): Implement documented behavior
23777 for cursor-in-non-selected-windows = t.
23778
237792007-10-08 Jason Rumney <jasonr@gnu.org>
23780
23781 * w32.c (w32_get_resource): Always close registry keys.
23782
237832007-10-08 Jason Rumney <jasonr@gnu.org>
23784
23785 * makefile.w32-in (LIBS): Add COMCTL32.
23786
23787 * w32fns.c (globals_of_w32fns): Init common controls.
23788
237892007-10-08 Richard Stallman <rms@gnu.org>
23790
23791 * image.c (our_memory_buffer): Rename from omfib_buffer.
23792
237932007-10-08 Richard Stallman <rms@gnu.org>
23794
23795 * buffer.c (Foverlays_at): Doc fix.
23796
237972007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23798
23799 * fns.c (Fplist_put): Preserve uneven tail data.
23800
238012007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23802
23803 * termhooks.h (enum event_kind): Remove trailing comma.
23804
23805 * frame.h (enum): Remove trailing comma.
23806
238072007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23808
23809 * w32proc.c (delete_child): Don't terminate threads of zombies.
23810
238112007-10-08 Martin Rudalics <rudalics@gmx.at>
23812
23813 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23814
23815 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23816 last-repeatable-command.
23817 (init_kboard): Initialize Vlast_repeatable_command.
23818 (command_loop_1): Set it to real_this_command unless that was
23819 bound to an input event.
23820 (mark_kboards): Mark it.
23821
238222007-10-08 Richard Stallman <rms@gnu.org>
23823
23824 * eval.c (condition-case): Doc fix.
23825
238262007-10-08 Masatake YAMATO <jet@gyve.org>
23827
23828 * xfaces.c (tty_supports_face_attributes_p): Fix code
23829 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23830 was copied and not edited.
23831
238322007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23833
23834 Add new `input-decode-map' keymap and use it for terminal
23835 escape sequences.
23836 * keyboard.h (struct kboard): Add Vinput_decode_map.
23837 Remove Vlocal_key_translation_map.
23838 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23839 (init_kboard): Init input-decode-map.
23840 Replace local-key-translation-map back with key-translation-map.
23841 (syms_of_keyboard): Declare input-decode-map.
23842 Remove local-key-translation-map. Update docstrings.
23843 (mark_kboards): Mark Vinput_decode_map.
23844 Don't mark Vlocal_key_translation_map.
23845 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23846 Replace local-key-translation-map back with key-translation-map.
23847 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23848 Bind in input-decode-map rather than function-key-map.
23849
23850 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23851 This was made redundant by the previous introduction of XSETPVECTYPE.
23852
238532007-10-09 Richard Stallman <rms@gnu.org>
23854
23855 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23856
238572007-09-29 Richard Stallman <rms@gnu.org>
23858
23859 * eval.c (internal_condition_case_2, internal_condition_case_1)
23860 (internal_condition_case): Reenable abort if x_catching_errors ()
23861 to see if that really happens and why.
23862
238632007-10-06 Andreas Schwab <schwab@suse.de>
23864
23865 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23866
238672007-10-04 Juanma Barranquero <lekktu@gmail.com>
23868
23869 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23870
238712007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23872
23873 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23874
238752007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23876
23877 * window.h (struct window):
23878 * window.c (struct save_window_data, struct saved_window):
23879 * termhooks.h (struct terminal):
23880 * process.h (struct Lisp_Process):
23881 * frame.h (struct frame):
23882 * buffer.h (struct buffer):
23883 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23884 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23885 The size field of (pseudo)vectors is now unsigned.
23886 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23887
23888 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23889 Turn `count' into an integer.
23890
23891 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23892 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23893 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23894 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23895 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23896
23897 * alloc.c (allocate_pseudovector): New fun.
23898 (ALLOCATE_PSEUDOVECTOR): New macro.
23899 (allocate_window, allocate_terminal, allocate_frame)
23900 (allocate_process): Use it.
23901 (mark_vectorlike): New function.
23902 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23903 (mark_terminals): Use it.
23904 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23905 (Fmake_byte_code): Use XSETPVECTYPE.
23906
23907 * frame.c (Fframe_parameters): Minor simplification.
23908
23909 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23910
23911 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23912
23913 * buffer.c (Fget_buffer_create, init_buffer_once):
23914 * lread.c (defsubr):
23915 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23916
23917 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23918 defined differently in the m/*.h files.
23919 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23920 (XSETPVECTYPE): New macro.
23921 (XSETPSEUDOVECTOR): Use it.
23922
23923 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23924 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23925
23926 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23927 * lread.c (defvar_per_buffer):
23928 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23929
23930 * window.c (candidate_window_p): Only consider as visible frames that
23931 are on the same terminal.
23932
23933 * m/ibms390x.h (MARKBIT): Remove unused macro.
23934
239352007-10-01 Juanma Barranquero <lekktu@gmail.com>
23936
23937 * lread.c (Fload): Fix typo in docstring.
23938
239392007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23940
23941 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23942 of a non-zero value can't yield zero.
23943
239442007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23945
23946 * term.c (term_clear_mouse_face, term_mouse_highlight)
23947 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23948
23949 * print.c (safe_debug_print): Use XHASH.
23950
23951 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23952 Lisp elements such as tags.
23953 (XHASH): New macro.
23954 (EQ): Use it.
23955 (SREF, SSET, STRING_COPYIN): Use SDATA.
23956 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23957
23958 * alloc.c (mark_terminal): Remove left-over declaration.
23959 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23960 (allocate_vectorlike): Remove type argument. Adjust callers.
23961 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23962 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23963
23964 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23965 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23966 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23967 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23968 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23969 Use them.
23970
23971 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23972 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23973 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23974
239752007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23976
23977 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23978 loaded by default.
23979
239802007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23981
23982 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23983 on this tty.
23984 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23985
23986 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23987 Update all users.
23988 (handle_one_term_event): Use Gpm_DrawPointer.
23989 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23990 Signal errors instead of returning nil. Always return nil.
23991 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23992 Make it a noop if gpm-mouse was not activated.
23993 (syms_of_term): Update names.
23994
239952007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23996
23997 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23998 (init_sys_modes): Check that gpm_tty is the current tty.
23999
24000 * alloc.c (allocate_terminal): Set the vector size to only count the
24001 lisp fields. Initialize those to nil.
24002 (mark_object): Don't treat terminals specially.
24003 (mark_terminal): Remove.
24004 (mark_terminals): Use mark_object instead.
24005
24006 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24007 the GC to the beginning.
24008
24009 * indent.h:
24010 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24011
24012 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24013
240142007-09-25 Jason Rumney <jasonr@gnu.org>
24015
24016 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24017
24018 * w32console.c (create_w32cons_output): Remove.
24019
24020 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24021
24022 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24023 (reset_sys_modes): Use reset_terminal_modes_hook.
24024
240252007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24026
24027 * eval.c (do_autoload): Don't output any message.
24028
240292007-09-24 Juri Linkov <juri@jurta.org>
24030
24031 * emacs.c (standard_args): Change priority of "--no-splash"
24032 from 40 to 3. Add "--no-desktop" with the same priority.
24033
240342007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24035
24036 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24037 and optimize the case where they are all 1.
24038
240392007-09-23 Johannes Weiner <hannes@saeurebad.de>
24040
24041 * lisp.h (abs): Define if not defined.
24042 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24043 Don't define `abs', since it's defined in lisp.h.
24044
240452007-09-22 Eli Zaretskii <eliz@gnu.org>
24046
24047 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24048 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24049 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24050 (init_tty): Use DEV_TTY instead of "/dev/tty".
24051 [WINDOWSNT]: No need to protect from NAME arg being null.
24052
240532007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24054
24055 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24056 up the tty state.
24057
240582007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24059
24060 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24061 (gpm_tty): Change its type.
24062 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24063 (gpm_tty): Change its type and initialize it.
24064 (Fterm_open_connection): Check the frame is indeed a tty.
24065 Use the new gpm_tty.
24066 (Fterm_close_connection): Use the new gpm_tty.
24067 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24068 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24069
240702007-09-21 Juanma Barranquero <lekktu@gmail.com>
24071
24072 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24073 underline_color, to draw strike-through.
24074
240752007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24076
24077 * lisp.h (allocate_terminal): Declare.
24078
24079 * window.c (candidate_window_p): Consider frames that are being placed
24080 by the user as somewhere between visible and iconified.
24081 (window_loop): Prefer windows on the current frame.
24082 (Fselect_window): Move the use of select-frame to the beginning so we
24083 can just delegate all the work (it'll call us back anyway).
24084
24085 * frame.c (Qdisplay_environment_variable):
24086 * frame.h (Qdisplay_environment_variable): Delete.
24087
24088 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24089 of the first arg, since that value may be a union.
24090
24091 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24092 parameter rather than Qdisplay_environment_variable. If all else
24093 fails, look for DISPLAY in initial-environment.
24094
240952007-09-21 Glenn Morris <rgm@gnu.org>
24096
24097 * Makefile.in (emacstool): Remove target.
24098 (lisp, shortlisp): Remove termdev.elc.
24099
241002007-09-21 Markus Triska <markus.triska@gmx.at>
24101
24102 * xterm.c (x_delete_display): Compile session management conditionally.
24103
241042007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24105
24106 * callproc.c (getenv_internal_1): New function.
24107 (getenv_internal): Use it.
24108 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24109
24110 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24111 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24112 (Fset_terminal_parameter): Work with dead terminals as well.
24113 (Fmodify_terminal_parameters): Remove.
24114
24115 * terminal.c (get_terminal): Handle terminals.
24116 Make sure the terminal returned is live.
24117 (create_terminal): Use allocate_terminal.
24118 (mark_terminals): Move to alloc.c.
24119 (delete_terminal): Use terminal->name as liveness status.
24120 NULL out fields after freeing their contents.
24121 Don't deallocate the object.
24122 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24123 rather than an int.
24124 (Fterminal_live_p): Accept non-integer arguments.
24125 (Fterminal_list): Return terminal objects rather than an ints.
24126
24127 * alloc.c (enum mem_type): New member for `terminal' objects.
24128 (allocate_terminal): New function.
24129 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24130 Handle terminals.
24131 (mark_terminal): New fun.
24132 (mark_terminals): Move from terminal.c.
24133
24134 * term.c (get_tty_terminal): Don't treat output_initial specially.
24135 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24136 (delete_tty): Use terminal->name as liveness status.
24137
24138 * termhooks.h (struct terminal): Make it into a pseudovector.
24139 Remove `deleted' replaced by checking `name's nullness.
24140
24141 * print.c (print_object): Handle terminals.
24142
24143 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24144 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24145
24146 * frame.c (make_terminal_frame):
24147 * keyboard.c (tty_read_avail_input):
24148 * w32term.c (x_delete_terminal):
24149 * xfns.c (Fx_create_frame, x_create_tip_frame):
24150 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24151
241522007-09-20 Glenn Morris <rgm@gnu.org>
24153
24154 * process.c (Fmake_network_process): Doc fix.
24155
241562007-09-19 Jason Rumney <jasonr@gnu.org>
24157
24158 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24159
241602007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24161
24162 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24163 Fix a C warning regarding variable constness.
24164
24165 * xterm.c (handle_one_xevent): Fix a C warning.
24166
241672007-09-18 Jason Rumney <jasonr@gnu.org>
24168
24169 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24170
241712007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24172
24173 * gtkutil.c (gdpy_def): New variable.
24174 (xg_initialize): Initialize gdpy_def.
24175 (xg_display_close): If no other display exists, set gdpy_def to a
24176 new connection.
24177
241782007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24179
24180 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24181 when we have no file name for the icon.
24182 (xg_tool_bar_expose_callback): Remove.
24183 (xg_create_tool_bar): Don't connect expose signal to
24184 xg_tool_bar_expose_callback.
24185 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24186
241872007-09-16 Andreas Schwab <schwab@suse.de>
24188
24189 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24190 values instead of zapping them.
24191
241922007-09-14 Glenn Morris <rgm@gnu.org>
24193
24194 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24195 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24196 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24197 scope and rename to omfib_buffer for clarity.
24198 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24199
242002007-09-14 Kenichi Handa <handa@m17n.org>
24201
24202 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24203
242042007-09-13 Jason Rumney <jasonr@gnu.org>
24205
24206 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24207
24208 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24209
24210 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24211 (mac_term_init): Call here instead, passing rif.
24212
242132007-09-13 Glenn Morris <rgm@gnu.org>
24214
24215 * s/hpux.h: No longer define `static' as nothing.
24216
242172007-09-13 Johan Bockgård <bojohan@gnu.org>
24218
24219 * callint.c (Fcall_interactively): Remove unused var `fun'.
24220
242212007-09-12 Romain Francoise <romain@orebokech.com>
24222
24223 * window.c (prefer_window_split_horizontally, display_buffer):
24224 Revert 2007-09-08 change.
24225
242262007-09-12 Glenn Morris <rgm@gnu.org>
24227
24228 * alloca.c: Remove file.
24229 * Makefile.in (alloca): Do not undef.
24230 (allocaobj, alloca.o): Remove.
24231 (otherobj): Remove allocaobj.
24232 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24233 * regex.c (C_ALLOCA): Remove all references and code that was only
24234 used when this was defined.
24235 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24236 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24237 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24238
24239 * Makefile.in (SOURCES, unlock, relock): Delete.
24240
24241 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24242 (menu_grab_callback): All uses changed.
24243
24244 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24245 (x_reply_selection_request): All uses changed.
24246
242472007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24248
24249 * lread.c (load_warn_old_style_backquotes): Change message to look
24250 better when it appears in the middle of byte-compiler messages.
24251
242522007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24253
24254 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24255
24256 * xterm.c (x_create_terminal): Add comment.
24257
24258 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24259
242602007-09-10 Richard Stallman <rms@gnu.org>
24261
24262 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24263
242642007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24265
24266 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24267 (DEFUN): Document `intspec', use it instead of `prompt'.
24268
24269 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24270
24271 * data.c (Finteractive_form): If the interactive specification starts
24272 with a `(', use it as a Lisp form.
24273
24274 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24275 name and file modes.
24276
24277 * callint.c (Fcall_interactively): Comment fixes.
24278
242792007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24280
24281 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24282 and compiled functions.
24283
242842007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24285
24286 * window.c (prefer_window_split_horizontally): New variable.
24287 (display_buffer): Consider splitting window horizontally depending
24288 on prefer_window_split_horizontally.
24289
242902007-09-08 Eli Zaretskii <eliz@gnu.org>
24291
24292 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24293
242942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24295
24296 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24297
24298 * frame.c (x_set_frame_parameters): Check number is positive before
24299 using XFASTINT.
24300
24301 * window.c (freeze_window_start): Don't presume selected_window holds
24302 a window object.
24303 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24304
243052007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24306
24307 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24308
243092007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24310
24311 * window.c (Vsplit_window_preferred_function): New var.
24312 (Fdisplay_buffer): Use it.
24313 (syms_of_window): Export, and initialize it.
24314
243152007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24316
24317 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24318
243192007-09-06 Glenn Morris <rgm@gnu.org>
24320
24321 * gtkutil.c (menu_grab_callback) <cnt>:
24322 * xselect.c (x_reply_selection_request) <cnt>: Move static
24323 variable to file scope.
24324
243252007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24326
24327 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24328 consistent values of selected_frame and selected_window.
24329
243302007-09-04 Jason Rumney <jasonr@gnu.org>
24331
24332 * w32console.c (initialize_w32_display): Zero unused hooks.
24333
243342007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24335
24336 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24337 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24338
243392007-09-04 Jason Rumney <jasonr@gnu.org>
24340
24341 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24342 in w32console.c. Set up input. Remove XXX comments that have been
24343 confirmed as correct.
24344
24345 * s/ms-w32.h (MULTI_KBOARD): Define.
24346
24347 * w32console.c (one_and_only_w32cons): Remove.
24348 (initialize_w32_display): Take terminal argument.
24349
24350 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24351 initialize_w32_display.
24352 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24353
24354 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24355
24356 * keyboard.c (discard_mouse_events): Discard it.
24357 (make_lispy_event): Translate it to a lisp event.
24358 (lispy_wheel_names): Add wheel-left and right events.
24359 (syms_of_keyboard): Enlarge wheel_syms.
24360
24361 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24362 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24363
24364 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24365
24366 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24367 from WM_MOUSEHWHEEL.
24368 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24369
24370 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24371 terminal.
24372
24373 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24374 keyboard for the terminal.
24375
243762007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24377
24378 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24379 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24380 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24381 and resume-tty-function to resume-tty-hook.
24382 (Fsuspend_tty, Fresume_tty): Use new names.
24383
243842007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24385
24386 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24387 if it starts with "n:".
24388
243892007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24390
24391 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24392
243932007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24394
24395 * frame.h:
24396 * frame.c (Qterm_environment_variable): Remove.
24397 (syms_of_frame): Don't init and staticpro it.
24398
24399 * callproc.c (getenv_internal): Remove special case for $TERM.
24400
24401 * callproc.c (Vinitial_environment): New variable.
24402 (set_initial_environment): Initialize it.
24403 (syms_of_callproc): Declare it.
24404 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24405 TERM under which a process runs is never related to the TERM in which
24406 Emacs is running.
24407
244082007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24409
24410 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24411 * s/darwin.h: ... do it here.
24412
244132007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24414
24415 * lisp.h (set_initial_environment): Rename from set_global_environment.
24416
24417 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24418 removed by mistake on the multi-tty branch.
24419
24420 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24421 (Fmodify_frame_parameters): Return a value.
24422
24423 * image.c (png_load): Comment-out var only used in commented-out code.
24424
24425 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24426 before passing it to mark_object.
24427
24428 * xfaces.c (internal_resolve_face_name): Return a value.
24429 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24430
24431 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24432 (x_icon): Comment-out var only used in commented-out code.
24433
244342007-08-29 Romain Francoise <romain@orebokech.com>
24435
24436 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24437 QUIT hasn't been provided.
24438
244392007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24440
24441 * callproc.c (child_setup, getenv_internal): Use the
24442 display-environment-variable and term-environment-variable frame params.
24443 (set_initial_environment): Initialise Vprocess_environment.
24444
24445 * config.in: Disable multi-keyboard support on a mac.
24446
24447 * frame.c (Qterm_environment_variable)
24448 (Qdisplay_environment_variable): New variables.
24449 (syms_of_frame): Intern and staticpro them.
24450 (Fmake_terminal_frame): Disable output method test.
24451
24452 * frame.h: Declare them here.
24453
24454 * macfns.c (x_set_mouse_color): Get rif from the frame.
24455 (x_set_tool_bar_lines): Don't use updating_frame.
24456 (mac_window): Add 2 new parameters for consistency with other systems.
24457 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24458 frame parameters following what is done in X11 and w32. Don't use
24459 FRAME_MAC_DISPLAY_INFO.
24460 (Fx_open_connection, start_hourglass): Remove window-system check.
24461 (x_create_tip_frame): Get the keyboard from the terminal.
24462
24463 * macmenu.c: Reorder includes.
24464 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24465
24466 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24467 terminal parameter.
24468 (x_clear_frame): Add a frame parameter.
24469 (note_mouse_movement): Get rif from the frame.
24470 (mac_term_init): Initialize the terminal.
24471 (mac_initialize): Make static and move terminal initialization ...
24472 (mac_create_terminal): ... to this new function.
24473
24474 * macterm.h (struct mac_display_info): Add terminal.
24475 (mac_initialize): Delete declaration.
24476
24477 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24478
24479 * sysdep.c: Comment out text after #endif.
24480
24481 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24482 is defined. Better initialize ttys in windows. Use terminal
24483 specific mouse_position_hook.
24484
24485 * termhooks.h (union display_info): Add mac_display_info.
24486
24487 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24488 Set the default minibuffer frame, window_system and the rest of the
24489 frame parameters following what is done in X11.
24490
24491 * w32term.c (w32_initialize): Make static.
24492
24493 * xselect.c (x_handle_selection_clear): Only access
24494 terminal->kboard when MULTI_KBOARD is defined.
24495
24496 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24497 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24498
244992007-08-29 Jason Rumney <jasonr@gnu.org>
24500
24501 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24502 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24503
24504 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24505 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24506
24507 * keyboard.c (restore_kboard_configuration): Only define when
24508 MULTI_KBOARD defined.
24509
24510 * makefile.w32-in: Update dependancies from Makefile.in.
24511 (OBJ1): Add terminal.$(O)
24512
24513 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24514 Don't define function body.
24515 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24516
24517 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24518
24519 * w32.c (request_sigio, unrequest_sigio): Remove.
24520
24521 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24522 (w32con_clear_frame, w32con_clear_end_of_line)
24523 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24524 (w32con_delete_glyphs, w32con_set_terminal_window)
24525 (scroll_line, w32_sys_ring_bell): Add frame arg.
24526 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24527 Add terminal arg.
24528 (PICK_FRAME): Remove.
24529 (w32con_write_glyphs): Use frame specific terminal coding.
24530 (one_and_only_w32cons): New global variable.
24531 (initialize_w32_display): Use it for storing hooks.
24532 (create_w32cons_output): New function.
24533
24534 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24535 arg a frame.
24536
24537 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24538 Set window_system.
24539 (x_set_tool_bar_lines): Don't use updating_frame.
24540 (Fx_create_frame): Set terminal and ref count.
24541 (Fx_open_connection): Remove window-system check.
24542
24543 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24544
24545 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24546 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24547 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24548 Add frame arg.
24549 (x_delete_terminal, w32_create_terminal): New functions.
24550 (w32_term_init): Create a terminal.
24551 (w32_initialize): Move terminal specific initialization to
24552 w32_create_terminal.
24553
24554 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24555 (w32_clear_rect, w32_clear_area): Use background from frame.
24556 (w32_display_info): Add terminal.
24557 (w32_sys_ring_bell, x_delete_display): Declare here.
24558
24559 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24560
24561 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24562
245632007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24564
24565 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24566 Fix get_named_tty calls for the controlling tty.
24567
245682007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24569
194d44e7 24570 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24571
245722007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24573
24574 * term.c (tty_insert_glyphs): Add missing first parameter.
24575
245762007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24577
24578 * buffer.c (Fbuffer_list, Fbury_buffer):
24579 Take frame->buried_buffer_list into account.
24580
24581 * cm.c (current_tty): New variable, for cmputc().
24582 (cmputc): Use it.
24583 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24584 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24585 (cmgoto): Add tty parameter. Pass it on to calccost().
24586 Use emacs_tputs() instead of tputs().
24587
24588 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24589 tputs().
24590 (current_tty): New variable, for cmputc().
24591 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24592
24593 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24594 (internal_condition_case, internal_condition_case_1)
24595 (internal_condition_case_2): Don't abort when x_catching_errors.
24596
24597 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24598 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24599 prevent crashes caused by bogus longjmps in read_char.
24600
24601 * keymap.h (Fset_keymap_parent): Add EXFUN.
24602
24603 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24604 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24605 Remove redundant definition.
24606
24607 * macfns.c (x_set_mouse_color, x_make_gc):
24608 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24609
24610 * w32term.c (x_free_frame_resources):
24611 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24612 (w32_initialize): Use the accessor macros for terminal characteristics.
24613
24614 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24615 Use the accessor macros for terminal characteristics.
24616 * msdos.c (internal_terminal_init): Use the accessor macros for
24617 terminal characteristics.
24618 (ScreenVisualBell, internal_terminal_init):
24619 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24620
24621 * termopts.h (no_redraw_on_reenter): Declare.
24622
24623 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24624 (mark_terminals, mark_ttys): Declare.
24625 (Fgarbage_collect): Call them.
24626 (mark_object): Mark buried_buffer_list.
24627
24628 * prefix-args.c: Include stdlib.h for exit.
24629
24630 * syssignal.h: Add comment.
24631
24632 * indent.c: Include stdio.h.
24633
24634 * window.h (Vinitial_window_system): Declare.
24635 (Vwindow_system): Delete declaration.
24636
24637 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24638
24639 * image.c (lookup_image): Don't initialize `c' until the xasserts
24640 have been run.
24641
24642 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24643 FRAME_FOREGROUND_PIXEL.
24644
24645 * print.c (print_preprocess): Don't lose print_depth levels while
24646 iterating.
24647
24648 * widget.c (update_from_various_frame_slots):
24649 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24650
24651 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24652 frames.
24653 (window_internal_height): Remove bogus make_number call.
24654 (init_window_once): Call make_terminal_frame with two zero parameters.
24655
24656 * fileio.c (Fread_file_name): Update comment.
24657
24658 * callint.c (Fcall_interactively):
24659 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24660 Make sure it is correctly unwound.
24661
24662 * xsmfns.c (x_session_close): New function.
24663
24664 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24665 Delete declarations.
24666
24667 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24668 (x_output): Remove background_pixel and foreground_pixel fields.
24669 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24670 (x_delete_device, x_session_close): Declare.
24671
24672 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24673 (read_filtered_event): Call `read_char' with a local
24674 `wrong_kboard_jmpbuf'.
24675
24676 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24677 Don't call single_kboard_state. Use FRAME_RIF.
24678
24679 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24680 systems.
24681
24682 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24683 (Fframe_with_environment, Fset_input_meta_mode)
24684 (Fset_quit_char): EXFUN.
24685 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24686 (init_sys_modes, reset_sys_modes): Update prototypes.
24687 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24688
24689 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24690 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24691 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24692 Delete declarations.
24693 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24694 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24695 New declarations.
24696
24697 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24698 already does that during init_display(). Call syms_of_keymap
24699 before syms_of_keyboard. Call `syms_of_terminal'.
24700 Call set_initial_environment, not set_process_environment.
24701 (shut_down_emacs): Call reset_all_sys_modes() instead of
24702 reset_sys_modes().
24703
24704 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24705 (internal_resolve_face_name, resolve_face_name_error): New functions.
24706 (resolve_face_name): Protect against loops and errors thrown by Fget.
24707 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24708 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24709
24710 * scroll.c: Replace CURTTY() with local variables throughout the
24711 file (where applicable).
24712 (calculate_scrolling, calculate_direct_scrolling)
24713 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24714 characteristics.
24715
24716 * keymap.c (Vfunction_key_map): Remove.
24717 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24718 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24719 (Vkey_translation_map): Remove.
24720 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24721 (Fdescribe_buffer_bindings)
24722 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24723 Update for terminal-local key-translation-map.
24724
24725 * Makefile.in (callproc.o): Update dependencies.
24726 (lisp, shortlisp): Add termdev.elc.
24727 (obj): Add terminal.o.
24728 (terminal.o): Add dependencies.
24729 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24730 (data.o, fns.o): Add termhooks.h dependency.
24731 (SOME_MACHINE_LISP): Add dnd.elc.
24732 (minibuf.o): Fix typo.
24733 Update dependencies.
24734
24735 * data.c (do_symval_forwarding, store_symval_forwarding)
24736 (find_symbol_value): Use the selected frame's keyboard, not
24737 current_kboard.
24738
24739 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24740 Vwindow_system.
24741
24742 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24743 Fmenu_bar_open.
24744 (syms_of_xmenu): Update defsubr.
24745 (mouse_position_for_popup, Fx_popup_menu)
24746 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24747 (set_frame_menubar, free_frame_menubar)
b97439ce 24748 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24749 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24750 an X frame.
24751
24752 * xselect.c (x_own_selection): Abort if not an X frame.
24753 (some_frame_on_display): Check if it is an X frame.
24754 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24755
24756 * coding.c: Include frame.h and termhooks.h.
24757 (terminal_coding, keyboard_coding): Delete.
24758 (Fset_terminal_coding_system_internal)
24759 (Fset_keyboard_coding_system_internal)
24760 (Fkeyboard_coding_system)
24761 (Fterminal_coding_system): Add a terminal parameter.
24762 Get terminal_coding from the terminal.
24763 (init_coding_once): Don't call setup_coding_system here.
24764
24765 * dispextern.h (set_scroll_region, turn_off_insert)
24766 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24767 (tty_clear_end_of_line, tty_setup_colors)
24768 (delete_tty, updating_frame)
24769 (produce_special_glyphs, produce_glyphs, write_glyphs)
24770 (insert_glyphs): Remove.
24771 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24772 (tty_turn_off_highlight, get_tty_size): Add declaration.
24773 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24774
24775 * frame.h (enum output_method): Add output_initial.
24776 (struct x_output): Delete.
24777 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24778 Access foreground_pixel and background_pixel directly from the frame.
24779 (tty_display): Delete.
24780 (struct frame): Add buried_buffer_list, foreground_pixel,
24781 background_pixel and terminal. Delete kboard.
24782 (union output_data): Add tty.
24783 (FRAME_KBOARD): Get the kboard from the terminal.
24784 (FRAME_INITIAL_P): New macro.
24785 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24786 (Qterm_environment_variable, Qdisplay_environment_variable)
24787 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24788 New declarations.
24789
24790 * termchar.h (tty_output, tty_display_info): New structures.
24791 (tty_list): Declare.
24792 (FRAME_TTY, CURTTY): New macros.
24793 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24794 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24795 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24796 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24797
24798 * callproc.c: Include frame.h and termhooks.h, for terminal
24799 parameters.
24800 (add_env): New function.
24801 (child_setup): Use it.
24802 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24803 (getenv_internal): Fix get_terminal_param call.
24804 (Fgetenv_internal, egetenv): Update doc.
24805 (syms_of_callproc): Initialize Vprocess_environment to nil.
24806 Register and initialize them. Remove obsolete defvars. Update doc
24807 strings.
24808 (child_setup): Handle Vlocal_environment_variables.
24809 (getenv_internal): Add terminal parameter.
24810 Handle Vlocal_environment_variables.
24811 (Fgetenv_internal): Add terminal parameter.
24812 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24813 environment in a frame (not terminal) parameter. Update doc strings.
24814 (set_initial_environment): Rename from set_global_environment.
24815 Store Emacs environment in initial frame parameter.
24816
24817 * xdisp.c (redisplay_internal): Update references to
24818 `previous_terminal_frame'.
24819 (display_mode_line, Fformat_mode_line): Replace calls to
24820 `push_frame_kboard' with `push_kboard'.
24821 (get_glyph_string_clip_rects): Add extra parentheses and
24822 braces to prevent compiler warnings.
24823 (calc_pixel_width_or_height): Add xassert to check that the
24824 frame is alive. Don't call `lookup_image' on a termcap frame.
24825 (message2_nolog, message3_nolog, redisplay_internal)
24826 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24827 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24828 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24829 (Fx_display_pixel_width, Fx_display_pixel_height)
24830 (Fx_display_planes, Fx_display_color_cells)
24831 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24832 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24833 (Fx_display_backing_store, Fx_display_visual_class)
24834 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24835 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24836
24837 * xfns.c (x_set_foreground_color x_set_background_color)
24838 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24839 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24840 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24841 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24842 terminal that is being deleted.
24843 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24844 frame parameter, and make sure it overrides any user-supplied setting.
24845 (Fx_close_connection, Fx_synchronize): Unify argument names with
24846 the rest of the DEFUNs.
24847
24848 * dispnew.c (Fsend_string_to_terminal): Update call to
24849 `get_tty_terminal'.
24850 (Fredraw_frame, Fsend_string_to_terminal)
24851 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24852 FRAME_TERMCAP_P and FRAME_TTY.
24853 (window_change_signal): Don't believe width/height values that are
24854 impossibly small.
24855 (Vinitial_window_system): Rename from Vwindow_system.
24856 (termscript, Wcm, rif): Delete.
24857
24858 * termhooks.h (struct terminal): New struct containing the
24859 previously global text display hooks and new members NAME,
24860 DELETED and PARAM_ALIST.
24861 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24862 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24863 (FRAME_RIF): New macros.
24864 (get_terminal_param, get_device): New declarations.
24865 (termscript): Delete declaration.
24866
24867 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24868 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24869 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24870 FRAME_FOREGROUND_PIXEL.
24871 (x_fully_uncatch_errors): Disable definition.
24872 (x_scroll_bar_expose): Fix reference to foreground pixel.
24873 (XTread_socket): Disable loop on all X displays.
24874 (x_delete_terminal): Don't set terminal->deleted and let
24875 delete_terminal delete the frames on the terminal.
24876 (x_delete_display): Doc update to reflect changes in
24877 delete_terminal.
24878 (x_display_info) <terminal>: Move member earlier in the struct.
24879 (deleting_tty): Remove old variable.
24880 (Fsuspend_tty): Call clear_tty_hooks.
24881 (Fresume_tty, init_tty): Call set_tty_hooks.
24882 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24883 errors on X frames.
24884 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24885 (handle_one_xevent): Initialize `f' to NULL.
24886 (x_delete_terminal, x_create_terminal): New functions.
24887 (XTset_terminal_modes, XTreset_terminal_modes)
24888 (XTread_socket, x_connection_closed, x_term_init)
24889 (x_term_init, x_delete_display): Add terminal parameter.
24890 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24891 X connections.
24892
24893 * frame.c: Include termchar.h.
24894 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24895 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24896 (Qdisplay_environment_variable): New vars.
24897 (Fframep): Deal with output_initial.
24898 (Fframe-live-p): Doc fix.
24899 (Fwindow-system): New function.
24900 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24901 (make_terminal_frame): Don't create frames on a terminal that is
24902 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24903 (store_frame_param): Check for found_for_frame before calling XFRAME.
24904 (Fmake_terminal_frame): Handle NULL tty names correctly.
24905 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24906 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24907 frames to refer to a deleted frame in their 'environment parameter.
24908 (Fframe_with_environment): New function.
24909 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24910 (get_future_frame_param): New function.
24911 (Fmake_terminal_frame): Use it.
24912 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24913
24914 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24915 * sysdep.c (reset_sys_modes): Update for renames.
24916
24917 * keyboard.c (tty_read_avail_input): New function.
24918 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24919 (syms_of_keyboard): Defsubr them.
24920 (Fset_input_meta_mode, Fset_quit_char): New functions.
24921 (Fset_input_mode): Split to above functions.
24922 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24923 parameter. Use it in call to `read_char'.
24924 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24925 Set wrong_kboard_jmpbuf correctly in recursive calls.
24926 Use current_kboard to access Vkeyboard_translate_table.
24927 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24928 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24929 Update longjmp invocations. Remember the original current_kboard,
24930 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24931 changes it. Comment out unnecessary calls to
24932 `record_single_kboard_state' and `any_kboard_state'.
24933 Update recursive calls.
24934 (wrong_kboard_jmpbuf): Remove global variable.
24935 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24936 Handle deleted interrupted_kboards correctly; that is a legal
24937 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24938 and read_char calls. Abort if interrupted_kboard died in read_char.
24939 (any_kboard_state, single_kboard_state)
24940 (push_frame_kboard): Remove function.
24941 (pop_kboard): Switch out of single_kboard mode if the kboard has
24942 been deleted. Remove unused variable. Help debugging by not
24943 changing current_kboard unnecessarily. Set current_kboard to the
24944 kboard of the selected frame when the stored kboard object has
24945 been deleted before pop_kboard.
24946 (temporarily_switch_to_single_kboard): Change first parameter to a
24947 frame pointer. Throw an error when caller wants to change kboards
24948 while in single_kboard mode. Don't push_kboard if we weren't in
24949 single kboard state. Don't pop_kboard if we popped into any
24950 kboard state.
24951 (restore_kboard_configuration): Abort if pop_kboard changed the
24952 kboard in single_kboard mode. Call pop_kboard only after setting
24953 up single_kboard mode.
24954 (Frecursive_edit): Switch to single_kboard mode only in nested
24955 command loops.
24956 (cmd_error, command_loop, command_loop_1, timer_check):
24957 Comment out unnecessary call to `any_kboard_state' and
24958 `record_single_kboard_state'.
24959 (delete_kboard): Exit single_kboard mode if we have just deleted
24960 that kboard. Use FRAME_KBOARD.
24961 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24962 `fatal_error_signal'.
24963 (record_single_kboard_state): Don't push_kboard if we weren't in
24964 single kboard state. Don't pop_kboard if we popped into any
24965 kboard state.
24966 (push_frame_kboard): Rename to push_kboard.
24967 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24968 (read_avail_input): Read input from all terminals.
24969 (mark_kboards): Also mark Vkeyboard_translate_table.
24970 (kbd_buffer_store_event_hold): Simplify condition.
24971 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24972 (Vkeyboard_translate_table): Move to struct kboard.
24973 (init_kboard): Initialize Vkeyboard_translate_table.
24974 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24975 Vkeyboard_translate_table. Update doc strings. Update docs of
24976 local-function-key-map and function-key-map.
24977
24978 * terminal.c: New file.
24979
24980 * term.c: Include errno.h.
24981 (Vring_bell_function, device_list, initial_device)
24982 (next_device_id, ring_bell, update_begin, update_end)
24983 (set_terminal_window, cursor_to, raw_cursor_to)
24984 (clear_to_end, clear_frame, clear_end_of_line)
24985 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24986 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24987 (syms_of_term): Move their initialization to terminal.c.
24988 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24989 (Ftty_display_color_cells)
24990 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24991 (clear_tty_hooks, set_tty_hooks)
24992 (init_tty, maybe_fatal): New functions.
24993 (Ftty_type): Return nil if terminal is not on a tty instead of
24994 throwing an error. Doc update.
24995 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24996 Doc update. Initialize new subrs and variables.
24997 (delete_tty): Use terminal->deleted.
24998 (tty_set_terminal_modes): Rename from set_terminal_modes.
24999 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25000 (set_scroll_region): Rename to `tty_set_scroll_region'.
25001 (turn_on_insert): Rename to `tty_turn_on_insert'.
25002 (turn_off_insert): Rename to `tty_turn_off_insert'.
25003 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25004 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25005 (toggle_highligh): Rename to `tty_toggle_highlight'.
25006 (background_highlight): Rename to `tty_background_highlight'.
25007 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25008 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25009 (tty_set_scroll_region, tty_background_highlight)
25010 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25011 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25012 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25013 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25014 Add static modifier.
25015 (tty_reset_terminal_modes, tty_set_terminal_window)
25016 (tty_set_scroll_region, tty_background_highlight)
25017 (tty_highlight_if_desired, tty_cursor_to)
25018 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25019 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25020 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25021 renames.
25022
250232007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25024
25025 * keyboard.c: Qrtl is new.
25026 (parse_tool_bar_item): Handle :rtl keyword.
25027 (syms_of_keyboard): Intern :rtl keyword.
25028
25029 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25030
25031 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25032 so no Lisp code is executed.
25033 (file_for_image, find_rtl_image): New functions.
25034 (xg_get_image_for_pixmap): Use file_for_image.
25035 (update_frame_tool_bar): If direction is RTL, use RTL image if
25036 defined. Use Gtk stock images if defined.
25037
250382007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25039
25040 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25041 for nonexistent or zero-width glyph in composition glyph.
25042
250432007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25044
25045 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25046
25047 * xdisp.c (Finvisible_p): New function.
25048 (syms_of_xdisp): defsubr it.
25049
250502007-08-24 Juanma Barranquero <lekktu@gmail.com>
25051
25052 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25053 Doc fixes.
25054
250552007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25056
25057 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25058
250592007-08-24 Martin Rudalics <rudalics@gmx.at>
25060
25061 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25062 whether decoding has modified buffer contents.
25063
250642007-08-24 Jason Rumney <jasonr@gnu.org>
25065
25066 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25067 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25068 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25069 (init_svg_functions) [HAVE_NTGUI]: New function.
25070 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25071 (svg_load_image): Use them.
25072 (svg_load_image) [HAVE_NTGUI]: Implement background.
25073
250742007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25075
25076 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25077 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25078 (LIBX): Remove @RSVG_LIBS@.
25079 (LIBES): Add $(RSVG_LIBS).
25080
25081 * image.c (svg_load_image): Blend with specified background if exists.
25082 Use IMAGE_BACKGROUND. Add Mac OS Support.
25083
25084 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25085 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25086 Remove macros.
25087 [MAC_OSX] (socket_callback): Do nothing.
25088 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25089 ReceiveNextEvent.
25090 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25091 socket_callback.
25092 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25093
250942007-08-22 Glenn Morris <rgm@gnu.org>
25095
25096 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25097
250982007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25099
25100 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25101
25102 * image.c: Add support for SVG images. Some additional comments
25103 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25104 (svg_image_p): New function to test for SVG image.
25105 (svg_load): New function to load SVG image.
25106 (svg_load_image): New function, helper for svg_load.
25107 (Qsvg): New Lisp_object.
25108 (svg_keyword_index): New enum.
25109 (svg_format): New static `image_keyword' struct.
25110 (svg_type): New static `image_type' struct.
25111 (librsvg/rsvg.h): Include it.
25112
251132007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25114
25115 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25116
251172007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25118
25119 * lread.c (Qold_style_backquotes): New var.
25120 (syms_of_lread): Init and staticpro it.
25121 (load_warn_old_style_backquotes): New fun.
25122 (Fload): Use them to warn about old style backquotes.
25123 (end_of_file_error, Fload): Remove unused vars.
25124
25125 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25126
25127 * lread.c (Vold_style_backquotes): New var.
25128 (syms_of_lread): Init and export it to Elisp.
25129 (read1): Set it when we find an old-style (back)quote.
25130
251312007-08-22 Jason Rumney <jasonr@gnu.org>
25132
25133 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25134
251352007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25136
25137 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25138
251392007-08-19 Richard Stallman <rms@gnu.org>
25140
25141 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25142
251432007-08-19 Andreas Schwab <schwab@suse.de>
25144
25145 * alloc.c (pure): Round PURESIZE up.
25146
251472007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25148
25149 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25150 active frame.
25151
251522007-08-16 Richard Stallman <rms@gnu.org>
25153
25154 * eval.c (Fcommandp): Add parens to clarify.
25155
25156 * minibuf.c (Fall_completions): Use enum for type of table.
25157
25158 * emacs.c (USAGE2): Improve text.
25159
251602007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25161
25162 * term.c (tty_default_color_capabilities): Declare static
25163 variables in file scope, to avoid HPUX compiler problem.
25164
251652007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25166
25167 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25168 to gtk_toolbar_insert.
25169
251702007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25171
25172 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25173
25174 * insdel.c (reset_var_on_error): New fun.
25175 (signal_before_change, signal_after_change):
25176 Use it to reset (after|before)-change-functions to nil in case of error.
25177 Bind inhibit-modification-hooks to t.
25178 Don't bind (after|before)-change-functions to nil while they run.
25179
251802007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25181
25182 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25183 filling pixmap with stippled background.
25184
251852007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25186
25187 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25188 Don't use invisible frame as parent window for repositioning.
25189
251902007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25191
25192 * print.c (new_backquote_output): Rename from old_backquote_output.
25193 (print): Inverse its logic (according to its name) so as to match the
25194 behavior of new_backquote_flag in lread.c.
25195
251962007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25197
25198 * gmalloc.c (posix_memalign): New function.
25199
25200 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25201 ActivateControl/DeactivateControl here.
25202 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25203 frame-notice-user-settings is non-nil.
25204 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25205 for kEventParamFMFontStyle.
25206 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25207 mac_pass_command_to_system and mac_pass_control_to_system here.
25208 (XTread_socket): Call ActivateControl/DeactivateControl here.
25209 (XTread_socket) [TARGET_API_MAC_CARBON]:
25210 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25211 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25212 for window repositioning.
25213
252142007-08-08 Glenn Morris <rgm@gnu.org>
25215
25216 * Replace `iff' in doc-strings and comments.
25217
252182007-08-07 Chong Yidong <cyd@stupidchicken.com>
25219
25220 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25221
252222007-08-07 Martin Rudalics <rudalics@gmx.at>
25223
25224 * fileio.c (Finsert_file_contents): Run format-decode and
25225 after_insert_file_functions on entire buffer when REPLACE is
25226 non-nil and inhibit modification_hooks and point_motion_hooks.
25227 For consistency, run after_insert_file_functions iff something
25228 got inserted. Move signal_after_change and update_compositions
25229 after code running after_insert_file_functions. Make sure that
25230 undo_list doesn't record intermediate steps of the decoding process.
25231
252322007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25233
25234 * emacs.c (main)
25235 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25236 Call malloc_enable_thread on interactive startup.
25237
25238 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25239 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25240 [USE_PTHREAD]: Conditionalize with it.
25241 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25242 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25243 New functions.
25244
252452007-08-06 Chong Yidong <cyd@stupidchicken.com>
25246
25247 * xdisp.c (redisplay_window): When restoring original buffer
25248 position, make sure it is still valid.
25249
25250 * image.c (png_load): Ignore png-supplied background color.
25251
252522007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25253
25254 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25255 Use kCFAbsoluteTimeIntervalSince1970.
25256
25257 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25258 New variable.
25259 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25260 event loop should be quit.
25261 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25262 Quit dialog event loop if quit_dialog_event_loop is set.
25263
25264 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25265 (Selection): New typedef. Use instead of ScrapRef.
25266 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25267 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25268 (mac_clear_selection): Rename from clear_scrap.
25269 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25270 scrap_has_target_type. All uses changed.
25271 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25272 (mac_selection_has_target_p): New functions.
25273 (mac_put_selection_value): Rename from put_scrap_string.
25274 (mac_get_selection_value): Rename from get_scrap_string.
25275 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25276 (put_scrap_private_timestamp, scrap_has_target_type)
25277 (get_scrap_private_timestamp): Remove functions.
25278 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25279 (x_own_selection, x_get_local_selection):
25280 Use mac_valid_selection_value_p.
25281 (x_own_selection): Don't use put_scrap_private_timestamp.
25282 Record OWNERSHIP-INFO into Vselection_alist instead.
25283 (x_get_local_selection): Don't check type if request is local.
25284 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25285 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25286
252872007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25288
25289 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25290 add comment explaining why.
25291
252922007-08-03 Richard Stallman <rms@gnu.org>
25293
25294 * fileio.c (Fvisited_file_modtime): Use make_time.
25295
252962007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25297
25298 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25299 build.
25300
253012007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25302
25303 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25304
253052007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25306
25307 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25308
253092007-07-30 Richard Stallman <rms@gnu.org>
25310
25311 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25312
253132007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25314
25315 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25316
253172007-07-28 Nick Roberts <nickrob@snap.net.nz>
25318
25319 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25320 remote default-directory.
25321
25322 * buffer.c (mode-line-format): Update doc string.
25323
253242007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25325
25326 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25327 scroll bar gap.
25328 (x_scroll_bar_create): Set bar->fringe_extended_p.
25329 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25330 on frame edge. Check fringe background extension. Don't clear
25331 extended fringe background area.
25332
25333 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25334 (w32_fill_area): Enclose multiple statements with do ... while (0).
25335
25336 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25337 Extend fringe background to scroll bar gap.
25338 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25339 Set bar->fringe_extended_p.
25340 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25341 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25342 background extension. Don't clear extended fringe background area.
25343
25344 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25345 New member fringe_extended_p.
25346
253472007-07-25 Glenn Morris <rgm@gnu.org>
25348
25349 * Relicense all FSF files to GPLv3 or later.
25350
25351 * COPYING: Switch to GPLv3.
25352
253532007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25354
25355 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25356
25357 * data.c (Finteractive_form): Check for the presence of an
25358 `interactive-form' symbol property more thoroughly.
25359
25360 * data.c (Finteractive_form): Use an `interactive-form' property if
25361 present, analogous to the function-documentation property.
25362
253632007-07-24 Jason Rumney <jasonr@gnu.org>
25364
25365 * w32fns.c (x_real_positions): Get real position from OS instead of
25366 calculating it.
25367
253682007-07-23 Jason Rumney <jasonr@gnu.org>
25369
25370 * filelock.c (current_lock_owner): Allow for @ sign in username.
25371
253722007-07-22 Nick Roberts <nickrob@snap.net.nz>
25373
25374 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25375 remote default-directory.
25376
25377 * buffer.c (mode-line-format): Describe above case in doc string.
25378
253792007-07-20 Eli Zaretskii <eliz@gnu.org>
25380
25381 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25382 Define if not defined.
25383
253842007-07-18 Jason Rumney <jasonr@gnu.org>
25385
25386 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25387
253882007-07-18 Richard Stallman <rms@gnu.org>
25389
25390 * data.c (Fsetq_default): Doc fix.
25391
25392 * eval.c (Fsetq): Doc fix.
25393
253942007-07-18 Juanma Barranquero <lekktu@gmail.com>
25395
25396 * coding.c (Ffind_operation_coding_system):
25397 * eval.c (For, Fand): Doc fixes.
25398 Reported by Johan Bockgård.
25399
254002007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25401
25402 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25403
25404 * xterm.h: Declare x_ewmh_activate_frame.
25405
25406 * xterm.c (x_ewmh_activate_frame): New function.
25407 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25408
254092007-07-17 Martin Rudalics <rudalics@gmx.at>
25410
25411 * window.c (Fdisplay_buffer): If largest or LRU window is the
25412 only window, split it even if it is not eligible for splitting.
25413 This restores the original behavior broken by the 2007-07-15
25414 change.
25415
254162007-07-17 Glenn Morris <rgm@gnu.org>
25417
25418 * abbrev.c (abbrev_check_chars): New function.
25419 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25420 Call abbrev_check_chars to check abbrev characters are word
25421 constituents. Doc fix.
25422
254232007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25424
25425 * process.c (Fstart_process, Fmake_network_process)
25426 (read_process_output): Fix up last changes.
25427
254282007-07-16 Eli Zaretskii <eliz@gnu.org>
25429
25430 * makefile.w32-in (clean): Don't delete *~.
25431
254322007-07-16 Andreas Schwab <schwab@suse.de>
25433
25434 * window.c (Fdisplay_buffer): Use NILP.
25435 (Fset_window_scroll_bars): Likewise.
25436
254372007-07-15 Martin Rudalics <rudalics@gmx.at>
25438
25439 * window.c (window_min_size_2): New function.
25440 (window_min_size_1, size_window, Fdisplay_buffer)
25441 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25442 windows without mode- or header-lines when window-min-height is
25443 too small.
25444 (size_window): Reset nodelete_p after testing it, following an
25445 earlier note by Kim F. Storm.
25446 (display_buffer): Do not set split_height_threshold to twice the
25447 value of window_min_height to avoid changing the value of a
25448 customizable variable. Rather explicitly check whether the
25449 height of the window that shall be splitted is at least as large
25450 as split_height_threshold.
25451 (Fwindow_full_width_p): New defun.
25452 (syms_of_window): Defsubr it.
25453
25454 * window.h: Add EXFUN for Fwindow_full_width_p.
25455
254562007-07-14 Jason Rumney <jasonr@gnu.org>
25457
25458 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25459
254602007-07-14 Richard Stallman <rms@gnu.org>
25461
25462 * eval.c (maybe_call_debugger): New function.
25463 (find_handler_clause): Use maybe_call_debugger.
25464 Call it when the handler says `debug'.
25465 Eliminate DEBUGGER_VALUE_PTR.
25466 (Fsignal): Eliminate debugger_value.
25467 (Qdebug): New variable.
25468 (syms_of_eval): Initialize it.
25469
254702007-07-14 Juanma Barranquero <lekktu@gmail.com>
25471
25472 * eval.c (Fprogn):
25473 * keyboard.c (Ftrack_mouse):
25474 * print.c (Fwith_output_to_temp_buffer):
25475 * window.c (Fsave_window_excursion): Doc fix.
25476
254772007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25478
25479 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25480
254812007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25482
25483 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25484 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25485 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25486 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25487 Remove unused encoding_carryover.
25488 * process.c: Adjust all functions accordingly.
25489
254902007-07-12 Richard Stallman <rms@gnu.org>
25491
25492 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25493
254942007-07-11 Jason Rumney <jasonr@gnu.org>
25495
25496 * makefile.w32-in (LIBS): Include OLE32.
25497
25498 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25499 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25500
255012007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25502
25503 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25504 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25505 from a Lisp_Object into a bare pointer.
25506 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25507 Adjust the code correspondingly.
25508
25509 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25510
25511 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25512 (term_show_mouse_face): Remove unused var `j'.
25513 (handle_one_term_event): Remove unused vars `i' and `j'.
25514 Don't cast return value of ttyname since it's not necessary.
25515
255162007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25517
25518 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25519 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25520
25521 * fns.c (map_char_table): Use an array of int for `indices' rather than
25522 an array of Lisp_Objects (which are only ever integers anyway).
25523 (Fmap_char_table): Update caller.
25524 * lisp.h: Update prototype.
25525 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25526 * fontset.c (Ffontset_info):
25527 * casetab.c (set_case_table): Update callers.
25528
25529 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25530
25531 * keymap.c (struct accessible_keymaps_data)
25532 (struct where_is_internal_data): New structures.
25533 (accessible_keymaps_1, where_is_internal_1): Use them to change
25534 interface to adhere to the one used by map_keymap.
25535 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25536 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25537
25538 * keymap.h (map_keymap_function_t): More informative prototype.
25539
255402007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25541
25542 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25543 (looking_at_1): Don't change search_regs and last_thing_searched
25544 if `inhibit-changing-match-data' is non-nil.
25545 (string_match_1, search_buffer, set_search_regs): Likewise.
25546 (syms_of_search): Add Lisp level definition for
25547 `inhibit-changing-match-data' and set it to nil.
25548 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25549 start and end of the match, instead of using values in search_regs.
25550
255512007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25552
25553 * minibuf.c (Fcompleting_read): New value `confirm-only'
25554 for `require-match'.
25555
255562007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25557
25558 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25559 part of the 2007-06-27 change to syms_of_fileio.
25560
255612007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25562
25563 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25564 Check WINDOWP before using XWINDOW. Consolidate return statements.
25565
255662007-06-27 Richard Stallman <rms@gnu.org>
25567
25568 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25569
255702007-06-27 Juanma Barranquero <lekktu@gmail.com>
25571
25572 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25573
255742007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25575
25576 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25577 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25578 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25579 (_free_internal, memalign): Use them.
25580 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25581 Initialize to PTHREAD_MUTEX_INITIALIZER.
25582 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25583 (morecore_nolock): Rename from morecore. All uses changed.
25584 Use only nolock versions of internal allocation functions.
25585 (_malloc_internal_nolock, _realloc_internal_nolock)
25586 (_free_internal_nolock): New functions created from
25587 _malloc_internal, _realloc_internal, and _free_internal.
25588 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25589 Copy hook value to automatic variable before its use.
25590 (memalign): Copy hook value to automatic variable before its use.
25591
255922007-06-26 Kenichi Handa <handa@m17n.org>
25593
25594 * coding.c (Ffind_operation_coding_system): Docstring improved.
25595 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25596
255972007-06-25 David Kastrup <dak@gnu.org>
25598
25599 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25600 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25601 cater for additional parameter.
25602
25603 * keymap.h: Adjust number of parameters to `current-active-maps'.
25604
25605 * doc.c (Fsubstitute_command_keys): Adjust call of
25606 `current-active-maps'.
25607
256082007-06-25 David Kastrup <dak@gnu.org>
25609
25610 * callint.c (Fcall_interactively): Make the parsing of interactive
25611 specs somewhat more readable.
25612
256132007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25614
25615 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25616 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25617 if extended background has already been filled.
25618
256192007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25620
25621 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25622 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25623
25624 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25625 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25626 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25627 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25628 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25629 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25630 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25631 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25632 Run timers during dialog popup.
25633 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25634
256352007-06-21 Jason Rumney <jasonr@gnu.org>
25636
25637 * image.c (convert_mono_to_color_image): Swap fore and background.
25638
256392007-06-20 Jason Rumney <jasonr@gnu.org>
25640
25641 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25642 (w32_free_bdf_font): Unmap memory not handle.
25643
256442007-06-20 Sam Steingold <sds@gnu.org>
25645
25646 * gmalloc.c (__morecore): Fix the declaration to comply with the
25647 definition.
25648
256492007-06-20 Juanma Barranquero <lekktu@gmail.com>
25650
25651 * w32term.c (w32_delete_display): Remove leftover declaration.
25652 (w32_define_cursor, w32_initialize): Make static.
25653
25654 * w32.c (_wsa_errlist): Fix typo in error message.
25655 (init_environment): Ignore any environment variable from the
25656 registry having a null value.
25657
256582007-06-20 Glenn Morris <rgm@gnu.org>
25659
25660 * Makefile.in (LIBGIF): Default to -lgif.
25661
256622007-06-17 Jason Rumney <jasonr@gnu.org>
25663
25664 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25665 unicode strings.
25666
256672007-06-16 Juanma Barranquero <lekktu@gmail.com>
25668
25669 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25670 Fix typo in docstring.
25671
256722007-06-16 Eli Zaretskii <eliz@gnu.org>
25673
25674 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25675 and their keybindings.
25676
256772007-06-15 Chong Yidong <cyd@stupidchicken.com>
25678
25679 * composite.c (update_compositions): Fix last fix.
25680
256812007-06-14 Jason Rumney <jasonr@gnu.org>
25682
25683 * w32.c (get_process_times_fn): New function pointer.
25684 (globals_of_w32): Intialize it if present in kernel32.dll.
25685 (w32_get_internal_run_time): New function.
25686
25687 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25688
256892007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25690
25691 * composite.c (update_compositions): Check the validness of
25692 compositions.
25693
256942007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25695
25696 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25697 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25698
25699 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25700 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25701
25702 * macgui.h (USE_MAC_TOOLBAR): New define.
25703
25704 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25705 Return immediately unless popup is activated.
25706
25707 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25708 background to scroll bar gap.
25709 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25710 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25711 scroll bars on frame edge. Check fringe background extension.
25712 Don't clear extended fringe background area.
25713 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25714 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25715 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25716 [USE_MAC_TOOLBAR]: New macros.
25717 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25718 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25719 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25720 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25721 [USE_MAC_TOOLBAR]: New functions.
25722 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25723 manually if previous repositioning has failed.
25724 (mac_handle_keyboard_event): Use precomputed event kind.
25725 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25726 as tool bar item click. Handle mouse movement over tool bar items.
25727
25728 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25729 toolbar_win_gravity.
25730 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25731 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25732 Add externs.
25733
25734 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25735 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25736
257372007-06-14 Chong Yidong <cyd@stupidchicken.com>
25738
25739 * image.c (search_image_cache): Remove unused variable.
25740
257412007-06-13 Chong Yidong <cyd@stupidchicken.com>
25742
25743 * xfns.c, xmenu.c: Link to xaw3d if available.
25744
257452007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25746
25747 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25748 frame_foreground and frame_background.
25749
25750 * image.c (lookup_image): Save frame foreground and background colors.
25751 (search_image_cache): Check if saved and current frame colors match.
25752
257532007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25754
25755 * regex.c (regex_compile): Remove the `regnum' counter.
25756 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25757
257582007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25759
25760 * term.c: Include intervals.h to declare Fget_text_property.
25761
257622007-06-10 Jason Rumney <jasonr@gnu.org>
25763
25764 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25765
257662007-06-08 Juanma Barranquero <lekktu@gmail.com>
25767
25768 * callint.c (Fcall_interactively):
25769 * editfns.c (Fdelete_and_extract_region):
25770 * fileio.c (Fread_file_name):
25771 * fns.c (Fmapconcat):
25772 * keyboard.c (cmd_error_internal):
25773 * keymap.c (Fkey_description):
25774 * lread.c (openp):
25775 * minibuf.c (read_minibuf):
25776 * search.c (wordify):
25777 * sunfns.c (sel_read):
25778 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25779 * xfns.c (x_default_scroll_bar_color_parameter):
25780 * xmenu.c (menu_help_callback):
25781 * xselect.c (Fx_get_atom_name):
25782 * xterm.c (x_term_init): Use empty_unibyte_string.
25783
257842007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25785
25786 * alloc.c (init_strings): Initialize canonical empty strings.
25787 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25788 canonical empty string when the requested size is 0.
25789
25790 * emacs.c (empty_unibyte_string): Rename from empty_string.
25791 (empty_multibyte_string): New canonical empty string.
25792 (syms_of_emacs): Don't initialize empty_string.
25793
25794 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25795 string, if appropriate.
25796 (empty_unibyte_string, empty_multibyte_string): New externs.
25797 (empty_string): Remove extern.
25798
25799 * lread.c (syms_of_lread): Use empty_unibyte_string.
25800
258012007-06-07 Jason Rumney <jasonr@gnu.org>
25802
25803 * s/ms-w32.h: Don't define HAVE_TZNAME.
25804
25805 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25806
258072007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25808
25809 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25810
25811 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25812 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25813
25814 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25815 Don't call next handler.
25816 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25817 Remove argument. Install handler to application.
25818 (set_frame_menubar): Don't change deep_p.
25819 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25820 FRAME_OUTER_TO_INNER_DIFF_Y.
25821 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25822 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25823 [HAVE_DIALOGS]: New macros.
25824 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25825 Use them.
25826 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25827
25828 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25829 init_service_handler. All callers changed. Return OSStatus value.
25830
25831 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25832 All callers changed so as not to call SetPortWindowPort.
25833 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25834 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25835 mac_draw_string_common.
25836 (mac_draw_image_string_qd): Likewise.
25837 (mac_draw_string_common): Use them. Add INLINE.
25838 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25839 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25840 GetGlobalMouse.
25841 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25842 and FRAME_OUTER_TO_INNER_DIFF_Y.
25843 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25844 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25845 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25846 repositioning window to mac_handle_window_event.
25847 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25848 saving window location to mac_handle_window_event
25849 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25850 (install_menu_target_item_handler): Remove argument in extern.
25851 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25852 Also accept command events.
25853 (do_keystroke): New function created from XTread_socket.
25854 (init_command_handler): Remove functions.
25855 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25856 and save window location by kEventWindowShowing and kEventWindowHiding
25857 handlers here. Don't call next handler for window state change and
25858 focus events.
25859 (mac_handle_application_event, mac_handle_keyboard_event)
25860 [TARGET_API_MAC_CARBON]: New functions.
25861 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25862 kEventWindowShowing and kEventWindowHiding events. Move installation
25863 of mouse, font, text input and menu target item handlers to
25864 install_application_handler.
25865 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25866 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25867 New function.
25868 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25869 Register it.
25870 (XTread_socket) [TARGET_API_MAC_CARBON]:
25871 Consolidate SendEventToEventTarget calls.
25872 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25873 Move application activation handler to mac_handle_application_event.
25874 Move keyboard handler to mac_handle_keyboard_event.
25875 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25876 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25877 init_command_handler. Call install_application_handler.
25878
25879 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25880 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25881
258822007-06-07 Glenn Morris <rgm@gnu.org>
25883
25884 * emacs.c (main): Use `emacs-copyright' in --version output.
25885
258862007-06-06 Chong Yidong <cyd@stupidchicken.com>
25887
25888 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25889
258902007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25891
25892 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25893
25894 * macgui.h: Replace WindowPtr with WindowRef.
25895
25896 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25897 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25898 Replace ControlHandle with ControlRef.
25899 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25900
25901 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25902 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25903 Replace ControlHandle with ControlRef.
25904 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25905 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25906
25907 * macterm.h (struct scroll_bar): Rename member control_handle_low
25908 and control_handle_high to control_ref_low and control_ref_high.
25909 All uses changed.
25910 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25911 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25912 respectively. All uses changed.
25913 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25914 (install_window_handler, remove_window_handler): Replace WindowPtr
25915 with WindowRef in externs.
25916
259172007-06-05 Juanma Barranquero <lekktu@gmail.com>
25918
25919 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25920
259212007-06-03 Nick Roberts <nickrob@snap.net.nz>
25922
25923 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25924
25925 * frame.c (Fmouse_position, Fmouse_pixel_position):
25926 Condition on HAVE_GPM too.
25927
25928 * term.c (term_mouse_highlight): Remove unused variables.
25929 (Fterm_open_connection): Set gpm_zerobased to 1.
25930 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25931 Use zero based co-ordinates.
25932 (handle_one_term_event): Report a drag as mouse movement too.
25933
25934 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25935
259362007-06-03 Chong Yidong <cyd@stupidchicken.com>
25937
25938 * image.c (search_image_cache): New function. Require background
25939 color match if background color is unspecified in the image spec.
25940 (uncache_image, lookup_image): Use it.
25941
259422007-06-01 Juanma Barranquero <lekktu@gmail.com>
25943
25944 * window.c (Fshrink_window): Reflow docstring.
25945
259462007-06-02 Chong Yidong <cyd@stupidchicken.com>
25947
25948 * Version 22.1 released.
25949
259502007-06-01 Richard Stallman <rms@gnu.org>
25951
25952 * xfns.c (x_encode_text): Add GCPRO.
25953
259542007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25955
25956 * xfns.c (x_set_name_internal): Save encoded name before
25957 x_encode_text in case string data is relocated.
25958
259592007-05-31 Richard Stallman <rms@gnu.org>
25960
25961 * buffer.c (syms_of_buffer): Doc fix.
25962
259632007-05-30 Nick Roberts <nickrob@snap.net.nz>
25964
25965 * sysdep.c (init_sys_modes): Add rather than replace with
25966 O_NONBLOCK.
25967
25968 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25969 term_mouse_moveto.
25970
25971 * termhooks.h (term_mouse_moveto): New extern.
25972
25973 * term.c (mouse_face_window): Rename...
25974 (Qmouse_face_window): ...to this.
25975 (term_show_mouse_face, term_clear_mouse_face)
25976 (term_mouse_highlight): Use Qmouse_face_window.
25977 (term_mouse_moveto): New function.
25978 (term_mouse_position): Make it work.
25979 (syms_of_term): Uncomment assignment to mouse_position_hook.
25980 Staticpro Qmouse_face_window.
25981
259822007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25983
25984 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25985 around current_column call.
25986
259872007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25988
25989 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25990 * xdisp.c (next_element_from_buffer):
25991 * window.c (delete_window):
25992 * term.c (term_mouse_highlight):
25993 * msdos.c (getdefdir):
25994 * macterm.c (mac_create_bitmap_from_bitmap_data)
25995 (init_font_name_table):
25996 * fns.c (Fsxhash):
25997 * data.c (Fmake_local_variable):
25998 * ccl.c (ccl_driver): Likewise.
25999
260002007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26001
26002 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26003 Call mac_wakeup_from_rne on window size change.
26004
260052007-05-25 Chong Yidong <cyd@stupidchicken.com>
26006
26007 * image.c (uncache_image): Fix typo.
26008
260092007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26010
26011 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26012
260132007-05-22 Richard Stallman <rms@gnu.org>
26014
26015 * xterm.c (x_connection_closed): Remove NO_RETURN.
26016
260172007-05-22 Martin Rudalics <rudalics@gmx.at>
26018
26019 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26020
260212007-05-21 Chong Yidong <cyd@stupidchicken.com>
26022
26023 * image.c (uncache_image): New function.
26024 (Fimage_refresh): New function.
26025
260262007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26027
26028 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26029
260302007-05-20 Nick Roberts <nickrob@snap.net.nz>
26031
26032 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26033 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26034
260352007-05-20 Nick Roberts <nickrob@snap.net.nz>
26036
26037 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26038 conditional on [HAVE_GPM_H].
26039
260402007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26041
26042 * syntax.c (skip_chars): Update syntax-table only after we checked that
26043 the new location is valid.
26044
260452007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26046
26047 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26048 mac_get_window_bounds.
26049
260502007-05-20 Nick Roberts <nickrob@snap.net.nz>
26051
26052 * Makefile.in (LIBGPM): Allow it to be set from configure.
26053 If set then link Emacs with it.
26054
26055 * config.in: Regenerate.
26056
26057 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26058 New externs.
26059
26060 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26061 Include gpm.h.
26062 (handle_one_term_event, term_gpm): New externs.
26063
26064 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26065 and allow it to be interrupted by SIGIO.
26066
26067 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26068 (wait_reading_process_output): Wait on gpm_fd too.
26069 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26070 (add_gpm_wait_descriptor_called_flag): New variable.
26071 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26072
26073 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26074 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26075 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26076 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26077 (make_lispy_event): Add case GPM_CLICK_EVENT.
26078 (read_avail_input): Handle mouse input.
26079
26080 * term.c (write_glyphs_with_face): New function.
26081 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26082 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26083 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26084 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26085 (last_mouse_x, last_mouse_y): New variables.
26086 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26087 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26088 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26089 (Fterm_close_connection): New functions.
26090 (term_init): Initialise mouse_face_window.
26091
260922007-05-19 Chong Yidong <cyd@stupidchicken.com>
26093
26094 * xdisp.c (redisplay_window): If first window line is a
26095 continuation line, recompute the new window start instead of
26096 recentering.
26097
260982007-05-18 Glenn Morris <rgm@gnu.org>
26099
26100 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26101 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26102
261032007-05-17 Glenn Morris <rgm@gnu.org>
26104
26105 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26106
261072007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26108
26109 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26110 dead key repeat and up events.
26111
261122007-05-14 Chong Yidong <cyd@stupidchicken.com>
26113
26114 * image.c (pbm_load): Check image size for monochrome pbm.
26115
261162007-05-13 Chong Yidong <cyd@stupidchicken.com>
26117
26118 * xterm.c (XTread_socket): Revert last change.
26119
261202007-05-12 Chong Yidong <cyd@stupidchicken.com>
26121
26122 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26123
26124 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26125
261262007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26127
26128 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26129 mixup (YAILOM).
26130
261312007-05-07 Andreas Schwab <schwab@suse.de>
26132
26133 * keymap.c (Flookup_key): Fix typo in last change.
26134
261352007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26136
26137 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26138 mapping for unibyte strings.
26139
261402007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26141
26142 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26143 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26144
261452007-04-29 Richard Stallman <rms@gnu.org>
26146
26147 * insdel.c (replace_range): For undo, record insertion first.
26148
261492007-04-29 Andreas Schwab <schwab@suse.de>
26150
26151 * lisp.h (VECSIZE): Use OFFSETOF.
26152
261532007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26154
26155 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26156 disabled lines.
26157
261582007-04-28 Richard Stallman <rms@gnu.org>
26159
26160 * lread.c (read_escape): In a string, \s is always space.
26161
261622007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26163
26164 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26165
26166 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26167 submenu for menu bar items.
26168
26169See ChangeLog.10 for earlier changes.
26170
26171;; Local Variables:
26172;; coding: utf-8
26173;; add-log-time-zone-rule: t
aac0c6e3
MR
26174;; End:
26175
e3eb1dae 26176 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26177
26178 This file is part of GNU Emacs.
26179
26180 GNU Emacs is free software: you can redistribute it and/or modify
26181 it under the terms of the GNU General Public License as published by
26182 the Free Software Foundation, either version 3 of the License, or
26183 (at your option) any later version.
26184
26185 GNU Emacs is distributed in the hope that it will be useful,
26186 but WITHOUT ANY WARRANTY; without even the implied warranty of
26187 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26188 GNU General Public License for more details.
26189
26190 You should have received a copy of the GNU General Public License
26191 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26192
26193;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40