* src/sysdep.c: Move include term.h last of includes (Bug#6812).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8646d999
J
12010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2
3 * sysdep.c: Move include term.h last of includes (Bug#6812).
4
cb4545ad
EZ
52010-08-06 Eli Zaretskii <eliz@gnu.org>
6
7 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
8
9 * msdos.c (IT_display_cursor): Log cursor position on termscript.
10
11 * .gdbinit (pgx): Display the avoid_cursor_p flag.
12
da7e2be6
JB
132010-08-06 Juanma Barranquero <lekktu@gmail.com>
14
15 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
16
3d608a86
J
172010-08-06 Jan Djärv <jan.h.d@swipnet.se>
18
7908fb60
J
19 * xterm.h (x_get_focus_frame): Declare.
20
21 * keyboard.h (poll_for_input_1): Unconditionally declare.
22
4094bf36
J
23 * nsterm.h (x_set_menu_bar_lines): Declare.
24
25 * window.c: Don't include menu.h, it depends on lots of other .h-files.
26
3d608a86
J
27 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
28
29 * window.c: Include menu.h.
30
31 * unexmacosx.c (print_region_list, print_regions)
32 (build_region_list, find_emacs_zone_regions)
33 (unexec_regions_merge, read_load_commands, dump_it)
34 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
35
36 * term.c: Check HAVE_SYS_IOCTL_H.
37
686b968e 38 * sysdep.c: Check HAVE_TERM_H.
3d608a86 39
686b968e 40 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
41
42 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
43 (ns_ring_bell, ns_defined_color, hide_hourglass)
44 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
45 Convert to ANSI C prototypes.
46 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
47 before code.
48
49 * nsterm.h : Include sysselect.h.
50 (x_sync, x_get_focus_frame, x_set_mouse_position)
51 (x_set_mouse_pixel_position, x_make_frame_visible)
52 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
53 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
54 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
55 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 56 Declare.
3d608a86
J
57
58 * nsmenu.m (popup_activated, name_is_separator)
59 (syms_of_nsmenu): Convert to ANSI C prototypes.
60 (runMenuAt): Prototypes and move declarations before code.
61
62 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
63
64 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
65 prototypes.
66
67 * nsfns.m (have_menus_p, ns_display_info_for_name)
68 (x_set_cursor_type, ns_appkit_version_str)
69 (ns_appkit_version_int, ns_do_applescript)
70 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
71 (syms_of_nsfns): Convert to ANSI C prototypes.
72
73 * menu.h (x_set_menu_bar_line): Declare.
74 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
75
76 * lisp.h (fmod_float): Declare.
77
78 * image.c (xpm_scan, xpm_make_color_table_v)
79 (xpm_put_color_table_v, xpm_get_color_table_v)
80 (xpm_make_color_table_h, xpm_put_color_table_h)
81 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
82 (xpm_load): Convert to ANSI C prototypes.
83
84 * emacs.c: Include nsterm.h if HAVE_NS.
85
86 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
87
fce70521
DN
882010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
89
90 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
91 subprocesses, only MSDOS does not define HAVE_SOCKETS.
92 (socket_options): Use const char* for name.
93
a11889ab
JB
942010-08-06 Juanma Barranquero <lekktu@gmail.com>
95
96 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
97
98 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
99 Don't declare xmalloc_widget_value and digest_single_submenu.
100
101 * w32font.c (Qlatin): Remove declaration.
102
103 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
104
c95b508f 105 * dired.c (compile_pattern): Restore declaration.
a11889ab 106
6254cdda
DN
1072010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
108
04bab72c
DN
109 Remove extern declarations in .c files, .h files have them.
110 * data.c:
111 * dired.c:
112 * editfns.c:
113 * filelock.c:
114 * fns.c:
115 * font.c:
116 * fontset.c:
117 * frame.c:
118 * fringe.c:
119 * ftfont.c:
120 * gtkutil.c:
121 * indent.c:
122 * keyboard.c:
123 * keymap.c:
124 * lread.c:
125 * menu.c:
126 * print.c:
127 * search.c:
128 * sound.c:
129 * window.c:
130 * xdisp.c:
131 * xfaces.c:
132 * xfns.c:
133 * xfont.c:
134 * xftfont.c:
135 * xmenu.c:
136 * xterm.c: Remove declarations.
137
dff94ed5
DN
138 Cleanup syssignal.h.
139 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
140 (main_thread): Move down to remove #ifdef.
141 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
142 Remove conditional definition following unconditional ones.
143
99f3388e
DN
144 * lisp.h: Remove HAVE_SHM code, unused.
145 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
146 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
147 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
148 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
149 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
150 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
151 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
152 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
153 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
154 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
155 (Qwindow_scroll_functions, Vafter_load_alist)
156 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
157 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
158 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
159 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
160 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
161 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
162 (initial_argv, last_nonmenu_event, load_in_progress)
163 (noninteractive_need_newline, scroll_margin): Add declarations.
164
165 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
166 declarations, menu.h has them.
167 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
168 (Vinput_method_function, Qinput_method_function)
169 (Qevent_symbol_element_mask, last_event_timestamp):
170 * dispextern.h (Voverflow_newline_into_fringe):
171 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
172 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
173 (syms_of_w32font, syms_of_nsfont):
174 * fontset.h (find_font_encoding, Qlatin):
175 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
176 (Vtool_bar_mode, set_frame_menubar):
177 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
178 * xterm.h (Qx_gtk_map_stock):
179 * keymap.h (meta_prefix_char): Add declarations.
180
9f5dd6f2
DN
181 * term.c: Remove dead code.
182
6254cdda
DN
183 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
184 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
185 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
186 which is what was there before BSD_PGRPS was removed.
187
29cf3e20
EZ
1882010-08-05 Eli Zaretskii <eliz@gnu.org>
189
190 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
191
192 * unexcoff.c: Renamed from unexec.c.
193
aaa0a19a
SM
1942010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
195
196 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
197
8d1d9587
JB
1982010-08-03 Johan Bockgård <bojohan@gnu.org>
199
200 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 201 (Bug#6744)
8d1d9587 202
9a747ba6
JD
2032010-08-02 Jan Djärv <jan.h.d@swipnet.se>
204
4d464ae4
JD
205 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
206 to TRUE if depth of screen is < 16.
207
ac01763e
JD
208 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
209 USE_GTK_TOOLTIP.
e0d62a9b
JB
210 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
211 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 212 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
213 USE_GTK_TOOLTIP.
214 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
215
216 * xterm.h (USE_GTK_TOOLTIP): New define.
217 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
218
9a747ba6
JD
219 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
220 to Control-D (Bug#6771).
221
7b0815ba
JB
2222010-08-02 Juanma Barranquero <lekktu@gmail.com>
223
224 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
225 Wording by Drew Adams <drew.adams@oracle.com>.
226
aa1859f5
J
2272010-08-01 Jan Djärv <jan.h.d@swipnet.se>
228
229 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
230 ttip_lbl.
231
232 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
233 calling gtk_widget_queue_draw.
234 (x_free_frame_resources): Call xg_free_frame_widgets.
235
236 * xfns.c (x_gtk_use_system_tooltips): New variable.
237 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
238 new gtkutil tooltip functions to show the tooltip.
239 (Fx_hide_tip): Call xg_hide_tooltip.
240 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
241
242 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
243 (xg_show_tooltip, xg_hide_tooltip): Declare.
244
245 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
246 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
247 New functions.
aa1859f5
J
248 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
249 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
250 Remove code that is commented out.
251
76417ef4
SM
2522010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
253
254 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
255
16041401
CY
2562010-07-31 Chong Yidong <cyd@stupidchicken.com>
257
258 * xselect.c (x_own_selection): Use list4.
259
2c09a58f
DN
2602010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
261
262 * buffer.c (Qwindow): Do not define, already defined in data.c.
263 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
264
59df9fdd 2652010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 266
59df9fdd
JB
267 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
268 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
269 * config.in: Undef HAVE_DIRENT_H.
1c97e857 270 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 271 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 272
1b231651
DN
2732010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
274
275 Rename s/usg5-4.h -> s/usg5-4-common.h.
276 * s/usg5-4.h: Rename file to ...
277 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
278 * s/unixware.h:
279 * s/sol2-6.h:
280 * s/irix6-5.h: Update includes accordingly.
281
bfeabdc3
JD
2822010-07-29 Jan Djärv <jan.h.d@swipnet.se>
283
2ebf1083
J
284 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
285
bfeabdc3 286 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
287 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
288 Remove toolbar_height.
289 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
290 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
291 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
292 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
293
294 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
295
296 * xfns.c (x_set_tool_bar_position): New function.
297 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
298 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 299 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
300
301 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
302 and FRAME_TOOLBAR_LEFT_WIDTH.
303
304 * gtkutil.h (xg_change_toolbar_position): Declare.
305
306 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
307 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
308 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
309 (xg_create_frame_widgets): Create a hobox for placing widgets
310 vertically. Use gtk_box_pack_start.
311 (xg_height_or_width_changed): Renamed from xg_height_changed.
312 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
313 (xg_update_frame_menubar, free_frame_menubar): Change to
314 xg_height_or_width_changed.
315 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
316 size correctly. Remove hardcoded 4, instead use handlebox size -
317 toolbar size.
318 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 319 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
320 (xg_pack_tool_bar): POS is a new parameter.
321 Set orientation of tool bar based on pos.
322 Only make handlebox_widget if NULL.
323 Check if tool bar goes to vbox or hbox depending on pos.
324 (xg_update_tool_bar_sizes): New function.
686b968e 325 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
326 height, call xg_update_tool_bar_sizes instead.
327 (free_frame_tool_bar): Remove from hbox or vbox depending on
328 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
329 (xg_change_toolbar_position): New function.
330
331 * frame.h (struct frame): Add tool_bar_position.
332 (Qbottom): Declare.
333
334 * frame.c (Qtool_bar_position): New variable.
335 (make_frame): Set tool_bar_position to Qtop.
336 (frame_parms): Add tool-bar-position.
337 (x_report_frame_params): Store tool_bar_position.
338 (x_set_fringe_width): Reset wm size hint after fringe changes.
339
26469a38
DN
3402010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
341
342 Make lisp_time_argument declaration work on all systems.
343 * lisp.h (lisp_time_argument): Move declaration ...
344 * systime.h (lisp_time_argument): ... here
345 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
346
8848b728
JD
3472010-07-29 Jan Djärv <jan.h.d@swipnet.se>
348
349 * vm-limit.c (POINTER): Add typedef for it.
350 (start_of_data): Change return type from POINTER to char *.
351
352 * frame.h (Qtty_color_mode): Move declaration out of ifdef
353 HAVE_WINDOW_SYSTEM.
354
76fd1ee9
DN
3552010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
356
0441987e
DN
357 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
358 Remove reference to __osf__, unused.
359
56a000c7
DN
360 * mem-limits.h: Remove duplicated includes.
361 (NULL): Remove definition, unused.
362 (POINTER): Remove definition.
363 (start_of_data): Use char* in prototype, as the function
364 definition does.
365
e6cba650
DN
366 Remove extern declarations from .c files, and them to .h files.
367 * keyboard.h (Qhelp_echo, waiting_for_input)
368 (input_available_clear_time, ignore_mouse_drag_p)
369 (Vdouble_click_time, real_this_command, Vthis_original_command):
370 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
371 (Voverriding_local_map_menu_flag):
372 * lisp.h (Qinteractive_form, use_file_dialog)
373 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
374 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
375 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
376 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
377 (Qfunction, debug_on_next_call, Qfield)
378 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
379 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
380 (Qfile_directory_p, Qinsert_file_contents)
381 (Qcompletion_ignore_case, Qcompletion_ignore_case)
382 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
383 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
384 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
385 (Qminibuffer_prompt)
386 (Vtemporary_file_directory,char_ins_del_vector, Qface):
387 * xterm.h (gray_bitmap_width, gray_bitmap_height)
388 (gray_bitmap_bits, xic_create_fontsetname):
389 * coding.h (Vtranslation_table_for_input): Add extern declarations.
390
391 * xsmfns.c (Vuser_login_name):
392 * xrdb.c (Vdouble_click_time):
393 * xfaces.c (xic_create_fontsetname):
394 * w32select.c (waiting_for_input):
395 * print.c (minibuffer_auto_raise):
396 * msdos.c (Qhelp_echo):
397 * macros.c (real_this_command):
398 * keymap.c (Voverriding_local_map):
399 * xterm.c (poll_for_input_1, gray_bitmap_width)
400 (gray_bitmap_height, gray_bitmap_bits;
401 * xmenu.c ( Voverriding_local_map)
402 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
403 (use_file_dialog, Xt_app_con):
404 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
405 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
406 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
407 (Qtool_bar_lines, ignore_mouse_drag_p):
408 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
409 (Qrear_nonsticky, nconc2):
410 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
411 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
412 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
413 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
414 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
415 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
416 (gc_in_progress):
417 * doc.c (Voverriding_local_map, Qremap):
418 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
419 (Vcompletion_regexp_list):
420 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
421 (Qcompletion_ignore_case):
422 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
423 (Vhistory_length, Vthis_original_command, real_this_command)
424 (Qface, Qminibuffer_prompt, history_delete_duplicates):
425 * image.c (Qrisky_local_variable):
426 * fontset.c (QCname):
427 * fns.c (minibuffer_auto_raise, QCname):
428 * dispnew.c (char_ins_del_cost):
429 * composite.c (font_fill_lglyph_metrics):
430 * cmds.c (Qface, Vtranslation_table_for_input):
431 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
432 * ccl.c (charset_unicode):
433 * callproc.c (Vtemporary_file_directory):
434 * buffer.c (emacs_strerror): Remove extern declarations.
435
436 * data.c (Qwindow): Make non-static, used from other files too.
437 * frame.c (validate_x_resource_name): Remove shadow definition for i.
438
76fd1ee9
DN
439 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
440 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
441 * s/usg5-4.h (COFF):
442 * s/template.h:
443 * s/msdos.h (COFF, NO_REMAP):
444 * s/ms-w32.h (NO_REMAP):
445 * s/hpux10-20.h (NO_REMAP):
446 * m/sparc.h (SEGMENT_MASK):
447 * m/m68k.h (NO_REMAP):
448 * m/intel386.h (SEGMENT_MASK):
449 * m/arm.h (NO_REMAP):
450 * m/alpha.h (COFF):
451 * m/template.h: Remove references to unused defines.
452
8a52f00a
JD
4532010-07-28 Jan Djärv <jan.h.d@swipnet.se>
454
455 * xsettings.c (Ftool_bar_get_system_style): Also check for
456 Qtext_image_horiz.
457
458 * xdisp.c (Qtext_image_horiz): Define.
459 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 460 to documentation of tool-bar-style.
8a52f00a
JD
461
462 * lisp.h (Qtext_image_horiz): Declare.
463
464 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
465 style text_image_horiz.
466
89dc303e
DN
4672010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
468
60799703
DN
469 * emacs.c (Fkill_emacs): Remove return statement.
470
37254dc1
DN
471 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
472 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
473 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
474 local extern declarations.
475
71c7345a
DN
476 * xmenu.c: Do not included lwlib.h, not needed.
477
6ba577cb
DN
478 * m/iris4d.h (XUINT, XSET): Remove, not needed.
479
fdb183d6
DN
480 * process.c: Move definitions earlier to minimize #ifdefs.
481
482 * xterm.h (x_get_customization_string, x_load_resources)
483 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
484 (x_check_errors, x_property_data_to_lisp, defined_color)
485 (xic_set_xfontset, x_defined_color): Use const.
486
487 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
488 (x_text_icon, x_check_errors, x_connection_closed): Use const.
489
490 * xselect.c (selection_data_to_lisp_data)
491 (x_property_data_to_lisp):
492 * xrdb.c (x_get_string_resource, file_p)
493 (x_get_customization_string, magic_file_p, search_magic_path)
494 (get_system_app, get_user_app, x_load_resources, x_get_resource)
495 (x_get_string_resource): Use const.
496
497 * xfns.c: Include xlwmenu.h when USE_LUCID.
498 (x_defined_color, xic_set_xfontset): Use const.
499 (Fx_hide_tip): Remove local extern declaration.
500
501 * xfaces.c (Qmouse_face): Remove declaration.
502 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 503 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
504
505 * xdisp.c (do_mouse_tracking): Remove declaration.
506 (add_to_log): Use const.
507
508 * minibuf.c (Qmouse_face): Remove declaration.
509
510 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
511
512 * keyboard.h (do_mouse_tracking): Add declaration.
513
514 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
515 (QCdata, QCtype, Qcenter): Remove declarations.
516
517 * frame.c (x_get_resource_string, x_get_string_resource)
518 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
519 (x_default_parameter): Use const.
520
521 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
522 (QCheight, QCsize, QCname): Remove declarations.
523
524 * emacs.c (main): Remove local extern declaration.
525
526 * editfns.c (region_limit, syms_of_editfns): Remove local extern
527 declarations.
528
529 * dispnew.c: Remove duplicate #include <unistd.h>.
530 (update_window, update_frame_1, init_display): Remove local extern
531 declarations.
532
533 * dispextern.h (add_to_log): Remove declaration.
534 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
535 (x_frame_get_and_record_arg, x_default_parameter): Add const.
536
537 * dired.c (scmp): Add const.
538 (directory_files_internal): Remove local extern declaration.
539
540 * data.c (Finteractive_form): Use const.
541
542 * composite.c (syms_of_composite): Remove local extern declarations.
543
544 * charset.c (add_to_log): Remove declaration.
545
546 * character.c (strwidth, parse_str_to_multibyte): Add const.
547
548 * character.h (strwidth, parse_str_to_multibyte): Likewise.
549
550 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
551
89dc303e 552 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
553 (Lisp_Subr): Make doc and intspec constant.
554 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
555 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
556 (QCheight, QCsize, QCname, QCwidth, QCforeground)
557 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
558 (display_arg): Add declarations.
89dc303e 559
0ed082fe 5602010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
561
562 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
563
0ed082fe
JB
564 * window.c (Fwindow_height): Doc fix (bug#6518).
565
5662010-07-27 Juanma Barranquero <lekktu@gmail.com>
567
568 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
569
ccaf0336
DN
5702010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
571
977105dc
DN
572 * keyboard.c (Ftop_level, Fexit_recursive_edit)
573 (Fabort_recursive_edit): Remove return statements in NO_RETURN
574 functions.
575
f5ada890
DN
576 * frame.h (Qtty_color_mode): Add declaration.
577
ccaf0336
DN
578 * lisp.h (Ftop_level, Fexit_recursive_edit)
579 (Fabort_recursive_edit): Mark as NO_RETURN.
580
dfe3c90f
KH
5812010-07-26 Kenichi Handa <handa@m17n.org>
582
583 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 584 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 585
7d383292
JB
5862010-07-26 Juanma Barranquero <lekktu@gmail.com>
587
588 * lread.c (unreadpure, mapatoms_1): Make static.
589
da31e629
JB
5902010-07-25 Juanma Barranquero <lekktu@gmail.com>
591
592 * terminfo.c (tparam): Fix prototype of tparm.
593
7bfa6d77
AS
5942010-07-25 Andreas Schwab <schwab@linux-m68k.org>
595
dcc19aac
AS
596 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
597 find start of text segment.
598 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
599 is defined.
600
7bfa6d77
AS
601 * callproc.c (set_initial_environment): Avoid unbalanced braces.
602
63f9a672
KB
6032010-07-25 Ken Brown <kbrown@cornell.edu>
604
605 * vm-limit.c (check_memory_limits): Fix previous change;
606 accidentally reverted an earlier change.
607
24933075
KB
6082010-07-25 Ken Brown <kbrown@cornell.edu>
609
610 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
611 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
612
361358ea
JB
6132010-07-25 Juanma Barranquero <lekktu@gmail.com>
614
615 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
616 * dired.c (opendir, readdir): Fix prototypes.
617 * editfns.c (w32_get_internal_run_time): Fix prototypes.
618 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
619 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
620 (telldir): Remove declaration.
621 * ralloc.c (real_morecore, __morecore): Fix prototypes.
622 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
623 * syssignal.h (strsignal): Fix prototype.
624 * term.c (tparam): Fix prototype.
625 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
626 (term_get_fkeys): Set inside "#ifndef DOS_NT".
627 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
628 and __morecore.
629 * w32gui.h (XParseGeometry): Fix prototype.
630 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
631 * w32term.c (my_set_focus): Declare inside #if 0.
632 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
633 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
634 (drain_message_queue, get_next_msg, post_msg, parse_button)
635 (ClipboardSequence_Proc): Fix prototypes.
636 (wait_for_sync): Remove declaration.
637
630b9592
JB
6382010-07-24 Juanma Barranquero <lekktu@gmail.com>
639
640 * w32fns.c (w32_to_x_color): Remove, unused.
641
6a0d6611
AS
6422010-07-24 Andreas Schwab <schwab@linux-m68k.org>
643
644 * lisp.h: Remove leftover P_.
645
4e8608ff
DN
6462010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
647
648 * ecrt0.c, unexalpha.c: Remove files, unused.
649
c8197983
AS
6502010-07-24 Andreas Schwab <schwab@linux-m68k.org>
651
652 * cmds.c (internal_self_insert): Make static.
653 * lisp.h (internal_self_insert): Remove declaration.
654
97b372d7
JB
6552010-07-23 Juanma Barranquero <lekktu@gmail.com>
656
33ac0414
JB
657 * alloc.c (free_float):
658 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
659 * frame.c (delete_frame_handler):
660 * ralloc.c (reorder_bloc):
661 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
662 Remove unused static functions.
663
94da8397
JB
664 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
665 it is called only from NS code.
666
2e6c8532
JB
667 * w32term.c (my_set_focus): #ifdef away; it is called only from
668 "#ifdef 0" code.
669
97b372d7
JB
670 * w32fns.c (x_edge_detection):
671 * xfaces.c (may_use_scalable_font_p):
672 Remove obsolete static declarations.
673
7c3320d8
JB
6742010-07-20 Juanma Barranquero <lekktu@gmail.com>
675
676 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
677 (emacs_blocked_realloc, uninterrupt_malloc):
678 * fringe.c (w32_reset_fringes):
679 * image.c (convert_mono_to_color_image, lookup_rgb_color)
680 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
681 * sound.c (be2hs, do_play_sound):
682 * vm-limit.c (get_lim_data, ret_lim_data):
683 * w32term.c (x_free_frame_resources):
684 * xfaces.c (x_create_gc, x_free_gc):
685 Convert definitions to standard C.
686
d5273788
SM
6872010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
688
689 * eval.c (Feval, Ffuncall): Use the new names.
690
691 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
692 (DEFUN): Add braces around the union initialisation and use ## to
693 specify the right union alternative and avoid a cast.
694
8d16a259
JB
6952010-07-18 Juanma Barranquero <lekktu@gmail.com>
696
697 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
698
3b8eff32
CY
6992010-07-17 Chong Yidong <cyd@stupidchicken.com>
700
701 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
702
499322ce
J
7032010-07-17 Jan Djärv <jan.h.d@swipnet.se>
704
705 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
706 is related to the menu bar (Bug#6499).
a628ad9d 707 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 708
f6003da5 7092010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
710
711 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
712
713 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
714
715 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
716 i.e. don't put back ButtonRelease (Bug#6608).
717
718 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
719 instead of Window. Call xg_event_is_for_menubar when
720 USE_GTK (Bug#6499).
721
722 * gtkutil.h (xg_event_is_for_menubar): Declare.
723
724 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
725
f6003da5 7262010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
727
728 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
729 when it's the same as the old foreground. (Bug#6609)
730
23243f29
J
7312010-07-16 Jan Djärv <jan.h.d@swipnet.se>
732
733 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
734 widget is non-null (Bug#6645).
735
2b23d2a6
AS
7362010-07-15 Andreas Schwab <schwab@linux-m68k.org>
737
01b564ff
AS
738 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
739 Convert old-style definition.
740
2b23d2a6
AS
741 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
742 timestamp argument.
743
c4affd2c
EZ
7442010-07-15 Eli Zaretskii <eliz@gnu.org>
745
746 * fringe.c (update_window_fringes): Restore mistakenly reverted
747 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
748
cf28cebc
J
7492010-07-14 Jan Djärv <jan.h.d@swipnet.se>
750
751 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
752 (SET_SAVED_KEY_EVENT): Remove (not used).
753 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
754 remove size parameter.
755 (handle_one_xevent): Check popup_activated () for menu for Xt also.
756 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
757 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
758 ButtonRelease.
6b2c4bd9
J
759 (x_set_window_size_1): scroll_bar_actual_width is always
760 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
761
762 * xdisp.c (pending_menu_activation): Remove extern declaration.
763 (prepare_menu_bars): Remove setting of pending_menu_activation.
764
765 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
766 (x_activate_menubar): Set popup_activated_flag for Xt also.
767 Remove setting of pending_menu_activation.
cf28cebc
J
768 (set_frame_menubar): Remove check of pending_menu_activation.
769 Declare menubar_size before code. Correct spelling in comment.
770
f6c1c771
KH
7712010-07-14 Kenichi Handa <handa@m17n.org>
772
773 * font.c (font_open_entity): Cancel previous change.
774 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
775
20477505
EZ
7762010-07-13 Eli Zaretskii <eliz@gnu.org>
777
77defa9a
EZ
778 Remove subprocesses #ifdefs.
779 * process.c <inhibit_sentinels>: Move to the common part.
780 (Fwaiting_for_user_input_p): Move to the common part; return nil
781 if async subprocesses aren't supported.
782 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
783 MS-DOS. Remove "#ifdef subprocesses".
784 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
785 (gettimeofday): Remove "#ifdef subprocesses".
786 (wait_without_blocking): Remove function.
787 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
788 Remove "#ifdef subprocesses".
789 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
790 compiled on MS-DOS.
791 * callproc.c (Fcall_process) [!MSDOS]: Don't call
792 wait_for_termination on MS-DOS.
793 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
794 initialization of inhibit_sentinels.
795 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
796 subprocesses" conditional.
797 * callproc.c (Fcall_process) [!subprocesses]: Don't call
798 wait_for_termination, since `buffer' cannot be an integer when
799 async subprocesses are not supported
800 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
801 for ifdefing away the call to Fprocess_status.
802
20477505
EZ
803 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
804 away the entire body of the function.
805
b3ffc17c
DN
8062010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
807
01faa934
DN
808 Remove subprocesses #ifdefs from term.c.
809 * process.c (add_keyboard_wait_descriptor)
810 (delete_keyboard_wait_descriptor): Move to common section, do
811 nothing when subprocesses is not defined.
a628ad9d
JB
812 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
813 Remove subprocesses #ifdefs.
01faa934 814
b3ffc17c
DN
815 Convert maybe_fatal to standard C.
816 * lisp.h (verror): Declare.
817 * eval.c (verror): New function containing the code from ...
818 (error): ... this. Call verror.
819 * term.c (vfatal): New function containing the code from ...
820 (fatal): ... this. Call vfatal.
821 (maybe_fatal): Convert to standard C, use variable number of
822 arguments. Declare as non-return.
823 (init_tty): Fix maybe_fatal call.
824
0521f580
DN
8252010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
826
827 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
828 (_scroll_bar_note_movement): Convert definitions to standard C.
829 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
830 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
831
ebd15611
DN
8322010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
833
834 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
835 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
836 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
837 (xaw_jump_callback, xaw_scroll_callback)
838 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
839 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
840 definitions to standard C.
841 * xmenu.c (menubar_id_to_frame, popup_get_selection)
842 (popup_activate_callback, popup_deactivate_callback)
843 (menu_highlight_callback, menubar_selection_callback)
844 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
845 (free_frame_menubar, popup_selection_callback, as)
846 (create_and_show_popup_menu, dialog_selection_callback)
847 (create_and_show_dialog):
848 * xfns.c (hack_wm_protocols, x_window):
849 * xfaces.c (x_update_menu_appearance):
850 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
851 (char_to_pixel_size, round_size_to_char, get_wm_shell)
852 (set_frame_size, update_wm_hints, setup_frame_gcs)
853 (update_various_frame_slots, update_from_various_frame_slots)
854 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
855 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
856 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
857
de06a2dd
AS
8582010-07-12 Andreas Schwab <schwab@linux-m68k.org>
859
a628ad9d 860 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 861
fc549af9
EZ
8622010-07-12 Eli Zaretskii <eliz@gnu.org>
863
864 * process.c (setup_process_coding_systems): Move to the part
865 shared by non-subprocesses systems, and make its body empty when
866 subprocesses is not defined.
867 (close_process_descs): Move to the part shared by non-subprocesses
868 systems.
1408902e
EZ
869 (wait_reading_process_output) [!subprocesses]: Convert arg list to
870 ANSI C.
fc549af9 871
d5a3eaaf
AS
8722010-07-12 Andreas Schwab <schwab@linux-m68k.org>
873
874 * editfns.c (transpose_markers): Convert old-style definition.
875 * emacs.c (abort, shut_down_emacs, fixup_locale)
876 (synchronize_system_time_locale)
877 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
878 * floatfns.c (extract_float, matherr, init_floatfns)
879 (syms_of_floatfns): Likewise.
880 * fns.c (make_hash_table): Likewise.
881 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
882 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
883 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
884 (ftfont_variation_glyphs): Likewise.
885 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
886 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
887 * lread.c (read_filtered_event): Likewise.
888 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
889 * process.c (wait_reading_process_output): Likewise.
890 * scroll.c (do_line_insertion_deletion_costs): Likewise.
891 * search.c (search_buffer, boyer_moore): Likewise.
892 * syntax.c (scan_sexps_forward): Likewise.
893 * xdisp.c (try_scrolling): Likewise.
894 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
895 (face_at_string_position): Likewise.
896 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
897 * xselect.c (x_get_window_property, receive_incremental_selection)
898 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
899 Likewise.
900 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
901
6f704c76
DN
9022010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
903
ded80a25
DN
904 * callproc.c (child_setup): Remove subprocesses conditional.
905 Remove code dealing with SET_EMACS_PRIORITY, unused.
906
49d937f4 907 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
908 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
909
910 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
911 (__do_global_dtors, __main): Use void in definition.
912 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
913 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
914 the only users from ...
915 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
916 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
917 (HAVE_VOLATILE): Remove, unused.
918
6f704c76
DN
919 Convert more function definitions to standard C.
920 * xdisp.c (window_box_edges, handle_single_display_spec)
921 (display_string): Convert definition to standard C.
922 * scroll.c (do_direct_scrolling, scrolling_1):
923 * dispnew.c (allocate_matrices_for_frame_redisplay)
924 (mirrored_line_dance):
925 * coding.c (code_convert_string):
926 * charset.c (map_charset_chars):
927 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
928 (Fregister_ccl_program, Fregister_code_conversion_map):
929 * keyboard.c (kbd_buffer_nr_stored): Likewise.
930 (head_table): Make static and const.
931
e6cfa7c3
AS
9322010-07-12 Andreas Schwab <schwab@linux-m68k.org>
933
934 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
935 (PROFILING_LDFLAGS): Set from substitution.
936 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
937 CFLAGS last.
938
892dd565
KH
9392010-07-12 Kenichi Handa <handa@m17n.org>
940
6f2cdcd1
KH
941 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
942 (shortlisp): Likewise.
943
892dd565
KH
944 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
945
946 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
947 of FONT_ENTITY_INDEX.
948 (Ffont_get): If KEY is :otf and the font-object doesn't have the
949 property, get the property value dynamically.
950 (Ffont_put): Accept font-entity and font-object too.
951 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
952 return value changed.
953 (syms_of_font): Adjusted for the above change.
954
ae96d47a
AS
9552010-07-11 Andreas Schwab <schwab@linux-m68k.org>
956
c8fc18ee
AS
957 * blockinput.h: Remove obsolete comment.
958
89887d67
AS
959 * lisp.h: Include <stddef.h>.
960 (OFFSETOF): Don't define.
961 (VECSIZE): Use offsetof instead of OFFSETOF.
962 (PSEUDOVECSIZE): Likewise.
963 * process.c (conv_sockaddr_to_lisp): Likewise.
964 * alloc.c: Don't include <stddef.h>.
965 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
966
ae96d47a
AS
967 * process.c: Remove obsolete comment.
968
635c0aa1
CY
9692010-07-11 Chong Yidong <cyd@stupidchicken.com>
970
971 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
972
a64df650
AS
9732010-07-11 Andreas Schwab <schwab@linux-m68k.org>
974
8966b757
AS
975 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
976 index, rindex.
977 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
978 * editfns.c (Fuser_full_name, Fformat): Likewise.
979 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
980 * fileio.c (Ffile_symlink_p): Likewise.
981 * filelock.c (current_lock_owner): Likewise.
982 * font.c (font_parse_name, font_parse_family_registry): Likewise.
983 * fontset.c (fontset_pattern_regexp): Likewise.
984 * lread.c (read1): Likewise.
985 * sysdep.c (init_system_name): Likewise.
986 * xfns.c (select_visual): Likewise.
987 * s/hpux10-20.h (index, rindex): Don't define.
988 * s/ms-w32.h (index): Likewise.
989 * s/usg5-4.h: Likewise.
990
cf237e27
AS
991 * callproc.c (relocate_fd): Use F_DUPFD if defined.
992
a8fe7202
AS
993 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
994 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
995 (egetenv): Likewise.
996 * doprnt.c (doprnt): Likewise.
997 * editfns.c (set_time_zone_rule, format2): Likewise.
998 * emacs.c (decode_env_path): Likewise.
999 * eval.c (signal_error, error): Likewise.
1000 * insdel.c (replace_range_2): Likewise.
1001 * keyboard.c (cmd_error_internal): Likewise.
1002 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1003 * print.c (write_string, write_string_1, print_error_message):
1004 Likewise.
1005 * vm-limit.c (warn_function, memory_warnings): Likewise.
1006 * xdisp.c (message1, message1_nolog, message_with_string)
1007 (vmessage, message, message_nolog): Likewise.
1008 * emacs.c: Remove duplicate declaration.
1009 * keyboard.h: Likewise.
1010 * lisp.h: Update prototypes.
1011
bb8e180f
AS
1012 * eval.c: Fix indentation problem.
1013
83380e65
AS
1014 * keyboard.c: Include "process.h"
1015
a64df650
AS
1016 * eval.c: Remove obsolete noinline declaration.
1017 * fns.c: Likewise.
1018
6a8033e1
KR
10192010-07-11 Ken Raeburn <raeburn@raeburn.org>
1020
1021 * doprnt.c (doprnt): Take a va_list argument instead of count and
1022 pointer.
1023 * eval.c (error): Change to a standard-C variadic function.
1024 * xdisp.c (vmessage): Renamed from message, made static, and
1025 changed to take a va_list argument.
1026 (message): New variadic wrapper.
1027 (message_nolog): Now a variadic function, calling vmessage.
1028 * lisp.h: Include stdarg.h for va_list.
1029 (doprnt, error, message, message_nolog): Decls updated.
1030
462aa963
EZ
10312010-07-11 Eli Zaretskii <eliz@gnu.org>
1032
1033 * process.c (syms_of_process) <delete-exited-processes>: Define
1034 even if !subprocesses.
1035 (delete_exited_processes): Ditto.
1036
1037 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1038 (delete_exited_processes): Don't define.
1039
48104462
CY
10402010-07-10 Chong Yidong <cyd@stupidchicken.com>
1041
1042 * frame.c (make_frame): Initialize menu_bar_lines and
1043 tool_bar_lines members.
1044 (make_initial_frame, make_terminal_frame): Initialize
1045 menu_bar_lines using value of menu-bar-mode.
1046
1047 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1048
f388c88a
EZ
10492010-07-10 Eli Zaretskii <eliz@gnu.org>
1050
1051 * process.c: Reshuffle #include's. Condition some of the global
1052 and static variables on `subprocesses'.
1053 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1054 Leave only one implementation.
1055 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1056 (kill_buffer_processes, Flist_system_processes)
1057 (Fprocess_attributes, init_process, syms_of_process): Unify the
1058 implementations for with subprocesses and without them.
1059
723f5a07
J
10602010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1061
1062 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1063 correct size for Motif.
1064 (free_frame_menubar): Call x_set_window_size to update frame size.
1065
1066 * xfns.c (x_window): Set borderWidth to 0 for pane and
1067 EmacsFrame. Frame size calculation is wrong otherwise.
1068
2536a4b7
MA
10692010-07-09 Michael Albinus <michael.albinus@gmx.de>
1070
1071 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1072 allows to suppress errors when polling in Emacs' main loop.
1073 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1074 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1075 (Fdbus_method_error_internal, Fdbus_send_signal)
1076 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1077 (Fdbus_register_method): Use it. (Bug#6579)
1078
5842a27b
DN
10792010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1080
1081 * alloc.c: Convert DEFUNs to standard C.
1082 * buffer.c:
1083 * bytecode.c:
1084 * callint.c:
1085 * callproc.c:
1086 * casefiddle.c:
1087 * casetab.c:
1088 * category.c:
1089 * character.c:
1090 * charset.c:
1091 * chartab.c:
1092 * cmds.c:
1093 * coding.c:
1094 * composite.c:
1095 * data.c:
1096 * dbusbind.c:
1097 * dired.c:
1098 * dispnew.c:
1099 * doc.c:
1100 * dosfns.c:
1101 * editfns.c:
1102 * emacs.c:
1103 * eval.c:
1104 * fileio.c:
1105 * filelock.c:
1106 * floatfns.c:
1107 * fns.c:
1108 * font.c:
1109 * fontset.c:
1110 * frame.c:
1111 * fringe.c:
1112 * image.c:
1113 * indent.c:
1114 * insdel.c:
1115 * keyboard.c:
1116 * keymap.c:
1117 * lread.c:
1118 * macros.c:
1119 * marker.c:
1120 * menu.c:
1121 * minibuf.c:
1122 * msdos.c:
1123 * nsfns.m:
1124 * nsmenu.m:
1125 * nsselect.m:
1126 * print.c:
1127 * process.c:
1128 * search.c:
1129 * sound.c:
1130 * syntax.c:
1131 * term.c:
1132 * terminal.c:
1133 * textprop.c:
1134 * undo.c:
1135 * w16select.c:
1136 * w32console.c:
1137 * w32fns.c:
1138 * w32font.c:
1139 * w32menu.c:
1140 * w32proc.c:
1141 * w32select.c:
1142 * window.c:
1143 * xdisp.c:
1144 * xfaces.c:
1145 * xfns.c:
1146 * xmenu.c:
1147 * xselect.c:
1148 * xsettings.c:
1149 * xsmfns.c: Likewise.
1150
d568829b
EZ
11512010-07-08 Eli Zaretskii <eliz@gnu.org>
1152
1153 * process.c (kbd_is_on_hold, hold_keyboard_input)
1154 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1155
52214050
J
11562010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1157
1158 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1159 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1160 unless USE_LUCID.
1161
313d9eb2
DN
11622010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1163
a628ad9d
JB
1164 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1165 declaration.
d8825aa3 1166
295d0d8f
DN
1167 Clean up include guards.
1168 * tparam.c: Remove include guards for config.h, string.h and code
1169 that assumes #ifndef emacs.
1170 * termcap.c:
1171 * unexalpha.c:
1172 * sysdep.c:
1173 * filemode.c:
1174 * filelock.c:
1175 * bidi.c: Likewise.
1176
49d9e6b0
DN
1177 Remove prefix-args.c
1178 * prefix-args.c: Remove file.
1179 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1180 * Makefile.in (temacs${EXEEXT}): Remove references to
1181 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1182 (mostlyclean): Remove reference to prefix-args.
1183 (prefix-args): Remove.
1184
313d9eb2
DN
1185 Simplify cstart_of_data, start_of_code and related code.
1186 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1187 (start_of_data): Merge into start_of_data function.
1188 * sysdep.c (start_of_text): Remove. Move simplified versions of
1189 it in the only users: unexaix.c and unexec.c.
1190 (read_input_waiting): Remove local declaration of quit_char.
1191 (start, etext): Remove declarations.
1192 (start_of_data): Merge with the version in mem-limits.h and move
1193 to vm-limits.c.
1194 * vm-limit.c (start_of_data): Merged and simplified version of the
1195 code formerly in mem-limits.h and sysdep.c.
1196 * unexec.c (start): New declaration, moved from sysdep.c.
1197 (start_of_text): Simplified version of the code formerly in sysdep.c.
1198 * unexaix.c (start_of_text): Simplified version of the code
1199 formerly in sysdep.c.
1200 * m/alpha.h (HAVE_TEXT_START): Remove.
1201 (TEXT_START): Move ...
1202 * unexalpha.c (TEXT_START): ... here.
1203 * s/hpux10-20.h (TEXT_START): Remove.
1204 * s/darwin.h (TEXT_START):
1205 * m/mips.h (TEXT_START):
1206 * m/macppc.h (HAVE_TEXT_START):
1207 * m/m68k.h (TEXT_START):
1208 * m/iris4d.h (TEXT_START):
1209 * m/intel386.h (TEXT_START):
1210 * m/ibmrs6000.h (TEXT_START):
1211 * m/ia64.h (HAVE_TEXT_START):
1212 * s/msdos.h (TEXT_START): Likewise.
1213
72af86bd
AS
12142010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1215
1216 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1217 (overrun_check_free, xstrdup, allocate_string)
1218 (allocate_string_data, compact_small_strings, Fmake_string)
1219 (make_unibyte_string, make_multibyte_string)
1220 (make_string_from_bytes, make_specified_string, make_float)
1221 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1222 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1223 memcpy, memmove, memset, memcmp.
1224 * atimer.c (start_atimer, set_alarm): Likewise.
1225 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1226 (mmap_realloc, init_buffer_once): Likewise.
1227 * callint.c (Fcall_interactively): Likewise.
1228 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1229 (getenv_internal_1): Likewise.
1230 * casefiddle.c (casify_object): Likewise.
1231 * ccl.c (ccl_driver): Likewise.
1232 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1233 * charset.c (load_charset_map_from_file)
1234 (load_charset_map_from_file, load_charset_map_from_vector)
1235 (Fdefine_charset_internal): Likewise.
1236 * cm.c (Wcm_clear): Likewise.
1237 * coding.c (decode_eol, decode_coding_object)
1238 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1239 * data.c (Faset): Likewise.
1240 * dired.c (directory_files_internal, file_name_completion_stat):
1241 Likewise.
1242 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1243 (clear_glyph_row, copy_row_except_pointers)
1244 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1245 (save_current_matrix, restore_current_matrix)
1246 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1247 (mirror_line_dance, scrolling_window): Likewise.
1248 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1249 Likewise.
1250 * doprnt.c (doprnt): Likewise.
1251 * editfns.c (Fuser_full_name, make_buffer_string_both)
1252 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1253 * emacs.c (sort_args): Likewise.
1254 * eval.c (Fapply, Ffuncall): Likewise.
1255 * fileio.c (Ffile_name_directory, make_temp_name)
1256 (Fexpand_file_name, search_embedded_absfilename)
1257 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1258 (auto_save_error): Likewise.
1259 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1260 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1261 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1262 (Fmake_hash_table): Likewise.
1263 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1264 * ftfont.c (ftfont_text_extents): Likewise.
1265 * getloadavg.c (getloadavg): Likewise.
1266 * image.c (define_image_type, make_image, make_image_cache)
1267 (x_create_x_image_and_pixmap, xbm_image_p)
1268 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1269 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1270 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1271 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1272 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1273 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1274 Likewise.
1275 * indent.c (scan_for_column, compute_motion): Likewise.
1276 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1277 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1278 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1279 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1280 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1281 (store_user_signal_events, menu_bar_items, tool_bar_items)
1282 (process_tool_bar_item, append_tool_bar_item)
1283 (read_char_minibuf_menu_prompt, read_key_sequence)
1284 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1285 Likewise.
1286 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1287 Likewise.
1288 * lisp.h (STRING_COPYIN): Likewise.
1289 * lread.c (Fload, read1, oblookup): Likewise.
1290 * msdos.c (Frecent_doskeys): Likewise.
1291 * nsfns.m (Fx_create_frame): Likewise.
1292 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1293 Likewise.
1294 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1295 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1296 Likewise.
1297 * nsmenu.m (ns_update_menubar): Likewise.
1298 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1299 * print.c (print_unwind, printchar, strout, print_string)
1300 (print_error_message): Likewise.
1301 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1302 (Fmake_network_process, Fnetwork_interface_list)
1303 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1304 (init_process): Likewise.
1305 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1306 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1307 Likewise.
1308 * scroll.c (do_scrolling, do_direct_scrolling)
1309 (scrolling_max_lines_saved): Likewise.
1310 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1311 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1312 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1313 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1314 (emacs_set_tty): Likewise.
1315 * term.c (encode_terminal_code, calculate_costs)
1316 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1317 Likewise.
1318 * termcap.c (tgetst1, gobble_line): Likewise.
1319 * termhooks.h (EVENT_INIT): Likewise.
1320 * tparam.c (tparam1): Likewise.
1321 * unexalpha.c (unexec): Likewise.
1322 * unexec.c (write_segment): Likewise.
1323 * unexmacosx.c (unexec_write_zero): Likewise.
1324 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1325 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1326 * w32font.c (w32font_list_family, w32font_text_extents)
1327 (w32font_list_internal, w32font_match_internal)
1328 (w32font_open_internal, compute_metrics, Fx_select_font):
1329 Likewise.
1330 * w32menu.c (set_frame_menubar, add_menu_item)
1331 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1332 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1333 * w32uniscribe.c (uniscribe_list_family): Likewise.
1334 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1335 * window.c (make_window, replace_window, set_window_buffer)
1336 (Fsplit_window): Likewise.
1337 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1338 (add_to_log, message3, x_consider_frame_title)
1339 (append_space_for_newline, extend_face_to_end_of_line)
1340 (decode_mode_spec_coding, init_glyph_string): Likewise.
1341 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1342 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1343 (face_attr_equal_p, make_realized_face, make_face_cache)
1344 (free_realized_faces, lookup_named_face, smaller_face)
1345 (face_with_height, lookup_derived_face)
1346 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1347 (Finternal_set_font_selection_order, realize_default_face)
1348 (compute_char_face, face_at_buffer_position)
1349 (face_for_overlay_string, face_at_string_position, merge_faces):
1350 Likewise.
1351 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1352 (Fx_window_property, x_create_tip_frame)
1353 (Fx_backspace_delete_keys_p): Likewise.
1354 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1355 (xfont_text_extents): Likewise.
1356 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1357 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1358 * xselect.c (x_queue_event, x_get_window_property)
1359 (receive_incremental_selection): Likewise.
1360 * xsmfns.c (x_session_check_input): Likewise.
1361 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1362 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1363 Likewise.
1364 * character.h (BCOPY_SHORT): Removed.
1365 * config.in: Regenerate.
1366 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1367 * emacs.c (main) [PROFILING]: Don't declare
1368 dump_opcode_frequencies.
1369 * lisp.h (safe_bcopy): Remove declaration.
1370 (memset) [!HAVE_MEMSET]: Declare.
1371 (memcpy) [!HAVE_MEMCPY]: Likewise.
1372 (memmove) [!HAVE_MEMMOVE]: Likewise.
1373 (memcmp) [!HAVE_MEMCMP]: Likewise.
1374 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1375 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1376 Don't define.
1377 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1378 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1379 (BCOPY_DOWNWARD_SAFE): Don't define.
1380 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1381 (memcpy) [!HAVE_MEMCPY]: Define.
1382 (memmove) [!HAVE_MEMMOVE]: Define.
1383 (memcmp) [!HAVE_MEMCMP]: Define.
1384
cb768704
J
13852010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1386
1387 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1388 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1389 New functions.
cb768704
J
1390 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1391 select on empty input mask.
1392 (init_process): Initialize kbd_is_on_hold to 0.
1393
1394 * process.h (hold_keyboard_input, unhold_keyboard_input)
1395 (kbd_on_hold_p): Declare.
1396
1397 * keyboard.c (input_available_signal): Declare.
1398 (kbd_buffer_nr_stored): New function.
1399 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1400 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1401 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1402 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1403 (tty_read_avail_input): If input is on hold, return.
1404 Don't read more that free slots in kbd_buffer (Bug#6571).
1405
3a8ce822
EZ
14062010-07-07 Eli Zaretskii <eliz@gnu.org>
1407
1408 * msdos.h:
1409 * msdos.c:
1410 * dosfns.c:
1411 * w16select.c: Convert function definitions to ANSI C.
1412
a628ad9d
JB
1413 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1414 Remove unused prototypes.
3a8ce822 1415
cf84bb53
JB
14162010-07-07 Juanma Barranquero <lekktu@gmail.com>
1417
1418 * coding.c, sysdep.c: Convert some more functions to standard C.
1419
1a4990fb
JB
14202010-07-07 Juanma Barranquero <lekktu@gmail.com>
1421
1422 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1423 (encode_coding_object): Use SPECPDL_INDEX.
1424 (syms_of_coding): Use DOS_NT.
1425
c0f2f16b
DN
14262010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1427
48fb6855
DN
1428 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1429
c0f2f16b
DN
1430 Make the function member of Lisp_Subr use standard C prototypes.
1431 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1432 (DECL_ALIGN): Add a cast for the function.
1433 * eval.c (Feval, Ffuncall): Use the proper type for each type
1434 function call.
1435
67aecef9
CY
14362010-07-06 Chong Yidong <cyd@stupidchicken.com>
1437
1438 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1439 fringe face id, so face-remapping-alist works (Bug#6091).
1440
b56ceb92
JB
14412010-07-06 Juanma Barranquero <lekktu@gmail.com>
1442
1443 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1444 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1445 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1446
7af07b96
AS
14472010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1448
1449 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1450 * lisp.h: Declare x_get_keysym_name.
1451 * keyboard.c (modify_event_symbol): Don't declare
1452 x_get_keysym_name here.
1453
69e24e34
DN
14542010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1455
1456 * ecrt0.c: Revert conversion to standard C.
1457
d3da34e0 14582010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1459
1460 * vm-limit.c (memory_warnings):
1461 * keyboard.c (modify_event_symbol):
1462 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1463 (round2, emacs_rint):
1464 * process.c (send_process, old_sigpipe): Convert function
1465 definitions and declarations to standard C.
1466
14672010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1468
1469 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1470 * xdisp.c: Convert function definitions to standard C.
1471
1472 * cm.c (cmputc): Arg C is now int, not char.
1473 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1474
00be444c
J
14752010-07-05 James Cloos <cloos@jhcloos.com>
1476
1477 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1478
1479 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1480 _NET_WM_ICON_NAME atoms.
1481
1482 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1483 and _NET_WM_ICON_NAME properties, too, matching what is
1484 done in the Gtk+ case.
1485
e4c8d29a
J
14862010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1487
ff919460
J
1488 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1489
e4c8d29a
J
1490 * xsmfns.c (SSDATA): New macro.
1491 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1492 passed to strlen/strcpy/strcat.
1493 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1494 7:th arg to XChangeProperty to (unsigned char *)
1495
1496 * xsettings.c (something_changedCB, parse_settings)
1497 (apply_xft_settings): Reformat prototype.
1498 (something_changedCB, init_gconf): Remove unused variable i.
1499 (read_settings): Remove unused variable long_len.
1500
1501 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1502 (xg_get_image_for_pixmap, create_dialog)
1503 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1504 (menuitem_highlight_callback, make_menu_item)
1505 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1506 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1507 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1508 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1509 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1510 (xg_tool_bar_item_expose_callback): Reformat prototype.
1511 (xg_update_menubar): GList *group => GSList *group.
1512 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1513 before use.
1514 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1515 to GTK_IMAGE (wimage).
1516
dd4c5104
DN
15172010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1518
898b4c5c
DN
1519 * atimer.c: Use "" instead of <> for local includes for
1520 consistency with the rest of the code.
1521
dd4c5104
DN
1522 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1523 * xrdb.c (get_system_name):
1524 * window.c (shrink_windows):
1525 * syntax.c (forw_comment):
1526 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1527 (ins_del_costs):
1528 * mem-limits.h (start_of_data):
1529 * lread.c (readevalloop):
1530 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1531 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1532 * frame.c (x_get_focus_frame):
1533 * floatfns.c (fmod_float):
1534 * fileio.c (choose_write_coding_system):
1535 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1536 (malloc_initialize_hook, sort_args, synchronize_locale):
1537 * doprnt.c (doprnt):
1538 * dired.c (compile_pattern):
1539 * data.c (fmod_float):
1540 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1541 (map_char_table_for_charset):
1542 * charset.c (define_charset_internal):
1543 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1544 to standard C.
1545
9a39b306 15462010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1547 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1548
1549 * lread.c (read1): Fix up last change to not mess up `c'.
1550
e6cb2cbb
JB
15512010-07-04 Juanma Barranquero <lekktu@gmail.com>
1552
1553 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1554
438105ed
JB
15552010-07-04 Juanma Barranquero <lekktu@gmail.com>
1556
1557 Fix prototypes.
1558
e5447b22 1559 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1560 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1561 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1562 arg, as required by internal_condition_case_1.
dcc7404b 1563 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1564 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1565 (analyse_first): Fix "const const".
e5447b22 1566 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1567 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1568 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1569
971de7fb
DN
15702010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1571
1572 * alloc.c: Convert function definitions to standard C.
1573 * atimer.c:
1574 * bidi.c:
1575 * bytecode.c:
1576 * callint.c:
1577 * callproc.c:
1578 * casefiddle.c:
1579 * casetab.c:
1580 * category.c:
1581 * ccl.c:
1582 * character.c:
1583 * charset.c:
1584 * chartab.c:
1585 * cmds.c:
1586 * coding.c:
1587 * composite.c:
1588 * data.c:
1589 * dbusbind.c:
1590 * dired.c:
1591 * dispnew.c:
1592 * doc.c:
1593 * doprnt.c:
1594 * ecrt0.c:
1595 * editfns.c:
1596 * fileio.c:
1597 * filelock.c:
1598 * filemode.c:
1599 * fns.c:
1600 * font.c:
1601 * fontset.c:
1602 * frame.c:
1603 * fringe.c:
1604 * ftfont.c:
1605 * ftxfont.c:
1606 * gtkutil.c:
1607 * indent.c:
1608 * insdel.c:
1609 * intervals.c:
1610 * keymap.c:
1611 * lread.c:
1612 * macros.c:
1613 * marker.c:
1614 * md5.c:
1615 * menu.c:
1616 * minibuf.c:
1617 * prefix-args.c:
1618 * print.c:
1619 * ralloc.c:
1620 * regex.c:
1621 * region-cache.c:
1622 * scroll.c:
1623 * search.c:
1624 * sound.c:
1625 * strftime.c:
1626 * syntax.c:
1627 * sysdep.c:
1628 * termcap.c:
1629 * terminal.c:
1630 * terminfo.c:
1631 * textprop.c:
1632 * tparam.c:
1633 * undo.c:
1634 * unexelf.c:
1635 * window.c:
1636 * xfaces.c:
1637 * xfns.c:
1638 * xfont.c:
1639 * xftfont.c:
1640 * xgselect.c:
1641 * xmenu.c:
1642 * xrdb.c:
1643 * xselect.c:
1644 * xsettings.c:
1645 * xsmfns.c:
1646 * xterm.c: Likewise.
1647
ae492bec
EZ
16482010-07-03 Eli Zaretskii <eliz@gnu.org>
1649
76ea4cc9
EZ
1650 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1651 frames other than the initial one. Fix reversal of colors when
1652 `reverse' is specified in the frame parameters. Call
1653 update_face_from_frame_parameter instead of
1654 internal-set-lisp-face-attribute. Initialize screen colors from
1655 initial_screen_colors[] when f->default_face_done_p is zero,
1656 instead of depending on being called with default-frame-alist as
1657 the alist argument.
1658
1659 * xfaces.c (update_face_from_frame_parameter): Move out of
1660 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1661 with HAVE_WINDOW_SYSTEM.
1662
1e6255ae
EZ
1663 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1664 to menu-bar-mode, if not set in the frame parameters or in
1665 default-frame-alist.
1666
ae492bec
EZ
1667 * w32console.c (sys_tputs): Adjust argument list to prototype in
1668 term.c.
1669
3a35a84c
JB
16702010-07-03 Juanma Barranquero <lekktu@gmail.com>
1671
1672 * lisp.h (memory_warnings): Fix prototype.
1673
1674 * cm.h (evalcost): Fix prototype.
1675
1676 * cm.c (evalcost): Fix arg type.
1677
c532d349
DN
16782010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1679
1680 * term.c (term_clear_mouse_face, Fidentity):
1681 * syssignal.h (signal_handler_t):
1682 * lisp.h (memory_warnings):
1683 * coding.h (preferred_coding_system):
1684 * cm.h (evalcost):
1685 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1686
c0b36d46
EZ
16872010-07-02 Eli Zaretskii <eliz@gnu.org>
1688
1689 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1690 from prototypes.
1691
1692 * msdos.h (load_pixmap): Don't define away.
1693
383e0970
J
16942010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1695
f57e2426
J
1696 * lisp.h:
1697 * atimer.h: Remove define for P_.
1698
1699 * alloc.c: Remove __P and P_ from .c and .m files.
1700 * atimer.c:
1701 * buffer.c:
1702 * callint.c:
1703 * category.c:
1704 * charset.c:
1705 * chartab.c:
1706 * cm.c:
1707 * coding.c:
1708 * composite.c:
1709 * data.c:
1710 * dired.c:
1711 * dispnew.c:
1712 * doc.c:
1713 * editfns.c:
1714 * emacs.c:
1715 * eval.c:
1716 * fileio.c:
1717 * filelock.c:
1718 * fns.c:
1719 * font.c:
1720 * fontset.c:
1721 * frame.c:
1722 * ftfont.c:
1723 * ftxfont.c:
1724 * gmalloc.c:
1725 * gtkutil.c:
1726 * image.c:
1727 * indent.c:
1728 * intervals.c:
1729 * keyboard.c:
1730 * keymap.c:
1731 * lread.c:
1732 * marker.c:
1733 * menu.c:
1734 * minibuf.c:
1735 * print.c:
1736 * process.c:
1737 * scroll.c:
1738 * search.c:
1739 * sound.c:
1740 * strftime.c:
1741 * syntax.c:
1742 * sysdep.c:
1743 * term.c:
1744 * terminal.c:
1745 * textprop.c:
1746 * unexalpha.c:
1747 * w32console.c:
1748 * w32fns.c:
1749 * w32font.c:
1750 * w32menu.c:
1751 * w32term.c:
1752 * w32uniscribe.c:
1753 * window.c:
1754 * xdisp.c:
1755 * xfaces.c:
1756 * xfns.c:
1757 * xfont.c:
1758 * xftfont.c:
1759 * xmenu.c:
1760 * xselect.c:
1761 * xterm.c: Likewise.
1762
383e0970 1763 Remove P_ and __P macros.
f57e2426
J
1764 * atimer.h: Remove P_ and __P macros.
1765 * buffer.h:
383e0970
J
1766 * category.h:
1767 * ccl.h:
1768 * character.h:
1769 * charset.h:
1770 * cm.h:
1771 * coding.h:
1772 * composite.h:
1773 * dispextern.h:
1774 * disptab.h:
9e892c8d 1775 * dosfns.h:
383e0970
J
1776 * font.h:
1777 * fontset.h:
1778 * frame.h:
1779 * gtkutil.h:
1780 * indent.h:
1781 * intervals.h:
1782 * keyboard.h:
1783 * keymap.h:
1784 * lisp.h:
1785 * macros.h:
1786 * md5.h:
1787 * menu.h:
1788 * msdos.h:
1789 * nsterm.h:
1790 * puresize.h:
1791 * region-cache.h:
1792 * syntax.h:
1793 * syssignal.h:
1794 * systime.h:
1795 * termhooks.h:
9e892c8d 1796 * w32font.h:
383e0970
J
1797 * w32term.h:
1798 * widget.h:
1799 * window.h:
1800 * xgselect.h:
1801 * xsettings.h:
1802 * xterm.h: Likewise.
1803
98601119
DN
18042010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1805
d9170db5
DN
1806 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1807
98601119
DN
1808 Cleanup old code.
1809 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1810 * syssignal.h: Remove code for Lynx, not supported anymore.
1811 * vm-limit.c: Remove unused code the depends on emacs not being
1812 defined and NO_LIM_DATA being defined.
1813 * mem-limits.h: Remove dead code.
1814
1f984e12
J
18152010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1816
c49d071a
J
1817 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1818
9d5405ec
J
1819 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1820 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1821
7a18115b
J
1822 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1823 parameters, they are already absolute.
1824
a628ad9d
JB
1825 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1826 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1827
a628ad9d 1828 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1829
a628ad9d
JB
1830 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1831 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1832
a628ad9d
JB
1833 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1834 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1835
c1ef4455
CY
18362010-06-30 Chong Yidong <cyd@stupidchicken.com>
1837
1838 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1839 check default-frame-alist.
1840
ce8f5a9a
AS
18412010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1842
1843 * process.c (create_process): Avoid using invalid file descriptors.
1844
1845 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1846
bf935339
J
18472010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1848
1849 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1850 Improve documentation. Return font regardless of use_system_font.
1851 (syms_of_xsettings): Improve documentation for font-use-system-font.
1852
7c33a057
CY
18532010-07-10 Chong Yidong <cyd@stupidchicken.com>
1854
2ec1b5ee
CY
1855 * xfaces.c (realize_face): Garbage the frame if a face is removed
1856 (Bug#6593).
1857
18582010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1859
1860 * keyboard.c: Remove duplicate <setjmp.h>.
1861 (read_key_sequence): Remove volatile qualifiers.
1862
18632010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1864
1865 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1866 (struct glyph_row): New members left_fringe_offset and
1867 right_fringe_offset.
1868
1869 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1870 specially.
1871 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1872 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1873
1874 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1875 Take account of bitmap offset.
2ec1b5ee
CY
1876 (draw_window_fringes): Take account of window vscroll.
1877 (update_window_fringes): Likewise. Extend top-aligned top indicator
1878 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1879 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1880 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1881
18822010-07-04 Juanma Barranquero <lekktu@gmail.com>
1883
1884 * w32fns.c (Qtooltip): Declare.
1885 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1886
18872010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1888
1889 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1890 grab on just Press (Bug#6499).
1891
18922010-07-02 Chong Yidong <cyd@stupidchicken.com>
1893
1894 * frame.c (Qtooltip): New var.
1895 (delete_frame): Use it. Fix faulty if statement. Don't update
1896 mode line for tooltip frames. Suggested by Martin Rudalics.
1897
1898 * xfns.c (x_create_tip_frame):
1899 * w32fns.c (x_create_tip_frame): Use it.
1900
19012010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1902
1903 * xftfont.c (xftfont_open): Check font width one by one also when
1904 spacing is dual.
1905
1906 * ftfont.c (ftfont_open): Ditto.
1907
6259c2ec
GM
19082010-06-30 Glenn Morris <rgm@gnu.org>
1909
a46007e9
GM
1910 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1911
6259c2ec
GM
1912 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1913
1914 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1915 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1916 * s/darwin.h (SYSTEM_MALLOC):
1917 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1918
5d1d3d04
J
19192010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1920
1921 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1922 (ns_get_screen): Don't assign integer to f.
1923 (Fx_display_color_cells): Declarations before statements.
1924
e547b051
J
19252010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1926
5fc8e5bc
J
1927 * xfns.c (x_default_font_parameter): Remove got_from_system
1928 (Bug#6526).
1929
e547b051
J
1930 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1931 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1932 defines based on what configure finds.
1933
1934 * xterm.c (XTflash): Use gtk_widget_get_window.
1935 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1936 gtk_adjustment_get_page_size.
1937 (handle_one_xevent): Use gtk_widget_get_mapped.
1938 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1939 messages.
1940
1941 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1942
1943 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1944 HAVE_GTK_FILE_SELECTION_NEW.
1945
1946 * gtkutil.c (xg_display_open, xg_display_close): Remove
1947 HAVE_GTK_MULTIDISPLAY, it is always defined.
1948 (xg_display_open): Return type is void.
1949 (gtk_widget_set_has_window)
1950 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1951 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1952 (gtk_adjustment_set_page_increment)
1953 (gtk_adjustment_get_step_increment): #define these if not found
1954 by configure.
1955 (remove_submenu): New define based on Gtk+ version.
1956 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1957 gtk_widget_get_window.
1958 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1959 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1960 (create_dialog): Use gtk_dialog_get_action_area and
1961 gtk_dialog_get_content_area.
1962 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1963 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1964 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1965 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1966 g_object_ref and g_object_unref.
1967 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1968 gtk_widget_get_sensitive.
1969 (xg_update_submenu): Use remove_submenu.
1970 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1971 properties instead to get old x and y position.
1972 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1973 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1974 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1975 (xg_get_tool_bar_widgets): New function.
1976 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1977 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1978 (toolbar_set_orientation): New #define based on if configure
1979 finds gtk_orientable_set_orientation.
1980 (xg_create_tool_bar): Call toolbar_set_orientation.
1981 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1982 instead of gtk_box_pack_start_defaults.
1983
b9229673
CY
19842010-06-28 Chong Yidong <cyd@stupidchicken.com>
1985
1986 * cmds.c (Fdelete_backward_char): Move into Lisp.
1987
bbc803b0
DN
19882010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1989
1990 * s/freebsd.h (BSD4_2): Remove redundant definition.
1991 bsd-common.h defines it already.
1992
6431f2e6
CY
19932010-06-27 Chong Yidong <cyd@stupidchicken.com>
1994
1995 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1996 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1997 tool-bar-mode, which are now set using these X resources at
1998 startup, to determine the defaults (Bug#2249).
1999
2000 * w32fns.c (Fx_create_frame):
2001 * nsfns.m (Fx_create_frame): Likewise.
2002
2003 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2004
8c079ebb
JB
20052010-06-24 Juanma Barranquero <lekktu@gmail.com>
2006
2007 * gtkutil.c (xg_update_scrollbar_pos):
2008 Avoid C99 mid-block variable declaration.
2009
e9b7ab96
JD
20102010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2011
bc869eca
JD
2012 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2013
2b7e356a 2014 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2015
2016 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2017 if height is less than scroll bar min size.
2018 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2019
e9b7ab96
JD
2020 * xfns.c (x_default_font_parameter): Try to open font from system
2021 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2022
a628ad9d 20232010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2024
2025 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2026
70c4cfbb
EZ
20272010-06-20 Eli Zaretskii <eliz@gnu.org>
2028
2029 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2030 most-positive-fixnum, be extra accurate when scrolling window
2031 start, to avoid missing the cursor line.
2032
ad5a12b5
EZ
20332010-06-19 Eli Zaretskii <eliz@gnu.org>
2034
2035 * xdisp.c (try_scrolling): Compute the limit for searching point
2036 in forward scroll from scroll_max, instead of an arbitrary limit
2037 of 10 screen lines. See
2038 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2039 and
2040 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2041 for details.
2042
2a64315a 20432010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2044
2045 * editfns.c (Fbyte_to_string): Pacify compiler.
2046
288cf4e9
SM
20472010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2048
2049 * lread.c (read1): Phase out old-style backquotes a bit more.
2050
6e6e5760
EZ
20512010-06-12 Eli Zaretskii <eliz@gnu.org>
2052
cbc4fd20
EZ
2053 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2054 bidimirror.h.
2055
2056 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2057
317fbf33
EZ
2058 * bidi.c (bidi_initialize): Remove explicit initialization of
2059 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2060 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2061 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2062
2063 * biditype.h: New file.
2064
cbc4fd20
EZ
2065 * bidimirror.h: New file.
2066
6e6e5760
EZ
2067 * window.c (syms_of_window): Doc fix (bug#6409).
2068
4176cba2
RF
20692010-06-12 Romain Francoise <romain@orebokech.com>
2070
2071 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2072 ediff-hook.
2073
cb4bfcb5
GM
20742010-06-10 Glenn Morris <rgm@gnu.org>
2075
64c60c2f
GM
2076 * editfns.c (Fbyte_to_string): Pacify compiler.
2077
cb4bfcb5
GM
2078 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2079
2ec1b5ee
CY
20802010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2081
2082 * alloc.c (Fmake_byte_code): Don't access undefined argument
2083 (Bug#6517).
2084
20852010-06-25 Chong Yidong <cyd@stupidchicken.com>
2086
2087 * xdisp.c (next_element_from_image): Ensure that after-strings are
2088 read the next time we hit handle_stop (Bug#1336).
2089
20902010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2091
2092 * lread.c (read1): Signal error if #s is not followed by paren.
2093
20942010-06-19 Chong Yidong <cyd@stupidchicken.com>
2095
2096 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2097
2098 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2099
21002010-06-15 Glenn Morris <rgm@gnu.org>
2101
2102 * editfns.c (Fbyte_to_string): Pacify compiler.
2103
e454a4a3
SM
21042010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2105
2106 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2107 Check `object's type before accessing its guts.
2108
c1b1acc2
DN
21092010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2110
2111 * s/usg5-4.h: Fix previous change.
2112 Suggested by Lawrence Mitchell <wence@gmx.li>
2113
657d4c0b
AS
21142010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2115
2116 * minibuf.c (Fall_completions): Add more checks.
2117
9b27fd9f
JB
21182010-06-08 Juanma Barranquero <lekktu@gmail.com>
2119
2120 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2121
a99ebb40
DN
21222010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2123
d7c5d87d
DN
2124 * lread.c (X_OK): Remove, unused.
2125
0263a941
DN
2126 * dispnew.c: Remove obsolete comment.
2127
a99ebb40
DN
2128 Remove INCLUDED_FCNTL.
2129 * xterm.c (INCLUDED_FCNTL):
2130 * callproc.c (INCLUDED_FCNTL):
2131 * alloc.c (INCLUDED_FCNTL):
2132 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2133 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2134
13b5221f
MR
21352010-06-07 Martin Rudalics <rudalics@gmx.at>
2136
2137 * window.c (Fselect_window): Move `record_buffer' up to the
2138 beginning of this function, so the buffer gets recorded
2139 even if the selected window does not change.
2140 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2141
5220357f
JB
21422010-06-07 Juanma Barranquero <lekktu@gmail.com>
2143
2144 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2145 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2146
3085237c
DN
21472010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2148
2149 Remove BSTRING related code, all platforms define it.
2150 * s/usg5-4.h (BSTRING): Remove definition.
2151 * s/template.h (BSTRING):
2152 * s/msdos.h (BSTRING):
2153 * s/ms-w32.h (BSTRING):
2154 * s/hpux10-20.h (BSTRING):
2155 * s/gnu-linux.h (BSTRING):
2156 * s/darwin.h (BSTRING):
2157 * s/cygwin.h (BSTRING):
2158 * s/bsd-common.h (BSTRING):
2159 * s/aix4-2.h (BSTRING): Likewise.
2160 * sysdep.c: Remove code depending on BSTRING not being defined.
2161
409f2919
JB
21622010-06-05 Juanma Barranquero <lekktu@gmail.com>
2163
2164 Remove obsolete macro BASE_LEADING_CODE_P.
2165 * character.h (BASE_LEADING_CODE_P): Remove.
2166 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2167 * buffer.c (Fset_buffer_multibyte):
2168 * indent.c (scan_for_column, compute_motion):
2169 * insdel.c (count_combining_before, count_combining_after):
2170 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2171
087fc47a
JB
21722010-06-04 Juanma Barranquero <lekktu@gmail.com>
2173
2174 Turn `directory-sep-char' into a noop.
2175
2176 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2177 (DIRECTORY_SEP): Define unconditionally.
2178
2179 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2180
2181 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2182 call dostounix_filename directly.
2183
2184 * fileio.c (CORRECT_DIR_SEPS): Remove.
2185 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2186 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2187 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2188 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2189
2190 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2191 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2192
0eb7675e
AS
21932010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2194
a628ad9d
JB
2195 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2196 (Bug#6346)
0eb7675e 2197
78edd3b7
JB
21982010-06-03 Juanma Barranquero <lekktu@gmail.com>
2199
2200 * ccl.c (Fccl_program_p): Fix typo in docstring.
2201
eb697db5
DN
22022010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2203
2204 Move UNEXEC definition to autoconf.
2205 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2206 * s/sol2-10.h (UNEXEC):
2207 * s/irix6-5.h (UNEXEC):
2208 * s/hpux10-20.h (UNEXEC):
2209 * s/gnu-linux.h (UNEXEC):
2210 * s/darwin.h (UNEXEC):
2211 * s/cygwin.h (UNEXEC):
2212 * s/bsd-common.h (UNEXEC):
2213 * s/aix4-2.h (UNEXEC):
2214 * m/alpha.h (UNEXEC): Likewise.
2215 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2216
aa3830c4
JB
22172010-06-03 Juanma Barranquero <lekktu@gmail.com>
2218
2219 Remove obsolete pre-unicode2 macros.
2220 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2221 * composite.c (composition_reseat_it):
2222 * data.c (Faset):
2223 * fns.c (Ffillarray):
2224 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2225 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2226
d234d13e
JL
22272010-06-03 Juri Linkov <juri@jurta.org>
2228
2229 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2230 (Fswitch_to_buffer): Remove unused variable `err'.
2231
0d4bcf4d
GM
22322010-06-03 Glenn Morris <rgm@gnu.org>
2233
e23dc1e2
GM
2234 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2235
05b09564
GM
2236 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2237 now that AH_BOTTOM does it.
2238
824e2978
GM
2239 * m/hp800.h (HAVE_ALLOCA):
2240 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2241
0d4bcf4d
GM
2242 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2243 Remove NOT_C_CODE tests, it is always true now.
2244
c55d2abf
DN
22452010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2246
08a494a3
DN
2247 Fix config.h includes.
2248 * xsettings.c:
2249 * xgselect.c:
2250 * nsterm.m:
2251 * nsselect.m:
2252 * nsimage.m:
2253 * nsfont.m:
2254 * nsfns.m:
2255 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2256 other files do.
2257
75934b1d
DN
2258 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2259
9f32a766
DN
2260 * s/sol2-6.h: Remove obsolete comments.
2261
c55d2abf
DN
2262 Remove unnecessary alloca.h includes.
2263 * keymap.c: Do not include alloca.h, config.h does that.
2264 * sysdep.c: Likewise. Do not define fwrite, not used.
2265
06ac62b4
SM
22662010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2267
2268 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2269 the HAVE_TERMIO where it belongs (bug#6149).
2270
1ab8293c
SM
22712010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2272
2273 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2274 of bug#6305).
2275
6dcfd253
EZ
22762010-05-30 Eli Zaretskii <eliz@gnu.org>
2277
2278 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2279 state is always cached (bug#6306).
2280
6d26bbb2
EZ
22812010-05-29 Eli Zaretskii <eliz@gnu.org>
2282
06fa4a23
EZ
2283 Fix cursor motion in bidi-reordered continued lines.
2284 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2285 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2286 over continuation lines in bidi-reordered buffers. Return
2287 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2288 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2289
f5783df3
MA
22902010-05-28 Michael Albinus <michael.albinus@gmx.de>
2291
2292 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2293
7d56b2dd
KH
22942010-05-28 Kenichi Handa <handa@m17n.org>
2295
2296 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2297 Don't sheck SPEC if it is nil.
2298 (font_list_entities): Call font_delete_unmatched if
b925d231 2299 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2300
e58d4ff7
GM
23012010-05-28 Glenn Morris <rgm@gnu.org>
2302
2303 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2304
f1a5d776
CY
23052010-05-27 Chong Yidong <cyd@stupidchicken.com>
2306
2307 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2308 whether to trash.
2309 (internal_delete_file, Frename_file): Callers changed.
2310 (delete_by_moving_to_trash): Doc fix.
2311 (Fdelete_directory_internal): Don't move to trash.
2312
2313 * callproc.c (delete_temp_file):
2314 * buffer.c (Fkill_buffer): Callers changed.
2315
2316 * lisp.h: Update prototype.
2317
f44a59e6
CY
23182010-05-27 Chong Yidong <cyd@stupidchicken.com>
2319
2320 * xdisp.c (redisplay_window): After redisplay, check if point is
2321 still valid before setting it (Bug#6177).
2322
81ac4f35
GM
23232010-05-27 Glenn Morris <rgm@gnu.org>
2324
2325 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2326 Convert comments to Makefile format.
2327
2328 * Makefile.in (bootstrap-clean): No more Makefile.c.
2329
ccd89fb3
GM
23302010-05-26 Glenn Morris <rgm@gnu.org>
2331
90278cb6
GM
2332 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2333 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2334
ccd89fb3
GM
2335 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2336 Remove.
2337 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2338
b7050583
KH
23392010-05-26 Kenichi Handa <handa@m17n.org>
2340
2341 * composite.c (composition_compute_stop_pos): Fix condition for
2342 backward scanning.
2343
e5458003
GM
23442010-05-25 Glenn Morris <rgm@gnu.org>
2345
c345fe90
GM
2346 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2347 Move before TEMACS_LDFLAGS.
2348 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2349 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2350
2e0689ab
GM
2351 * Makefile.in (NOT_C_CODE): No longer define.
2352 (config.h): No longer include.
2353
8009a5e8
GM
2354 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2355 variables it may reference.
2356
e5458003
GM
2357 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2358 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2359
10f72a37
KH
23602010-05-25 Kenichi Handa <handa@m17n.org>
2361
2362 * dispextern.h (struct composition_it): New members rule_idx and
2363 charpos.
2364
2365 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2366 that the character positions of IT point the last character of the
2367 current grapheme cluster.
2368 (next_element_from_composition): Don't change character positions
2369 of IT.
2370 (append_composite_glyph): Set glyph->charpos to
2371 it->cmp_it.charpos.
2372
2373 * composite.c (autocmp_chars): Change the first argument to RULE,
2374 and try composition with RULE only.
2375 (composition_compute_stop_pos): Record the index number of the
2376 composition rule in CMP_IT->rule_idx.
2377 (composition_reseat_it): Call autocmp_chars repeatedly until the
2378 correct rule of the composition is found.
2379 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2380 is at the last character of the current grapheme cluster when
2381 CMP_IT->reversed_p is nonzero.
2382
171eda53 23832010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2384
171eda53
SM
2385 * editfns.c (Fbyte_to_string): New function.
2386
66a9f7f4
SM
23872010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2388
2389 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2390 Suggested by Masatake YAMATO <yamato@redhat.com>.
2391
d8c315d1
EZ
23922010-05-23 Eli Zaretskii <eliz@gnu.org>
2393
171eda53 2394 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2395
f5b416d2 23962010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2397
2398 * s/netbsd.h: If terminfo is found, use it in preference to
2399 termcap. (Bug#6190) [Backport from trunk]
2400
0416466c
EZ
24012010-05-19 Eli Zaretskii <eliz@gnu.org>
2402
11117830 2403 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2404
2405 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2406 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2407 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2408 and maxpos members instead of start.pos and end.pos, respectively.
2409
2410 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2411 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2412 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2413 (try_window_reusing_current_matrix, try_window_id):
2414 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2415 (init_from_display_pos, init_iterator): Use EMACS_INT for
2416 character and byte positions.
66a9f7f4 2417 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2418 arguments for minimum and maximum buffer positions seen by
2419 display_line for this row. Don't use iterator to find the
2420 position following the maximum one; instead, increment the
11117830
EZ
2421 position found by display_line directly. Fix logic; eol_pos
2422 should be tested before the rest. Handle the case of characters
2423 delivered from display vector (bug#6036). Fix tests related to
2424 it->method. Handle the truncated_on_right_p rows.
2425 (RECORD_MAX_MIN_POS): New macro.
2426 (display_line): Use it to record the minimum and maximum buffer
2427 positions for glyphs in the row being assembled. Record the
2428 position of the newline that terminates the line. If word wrap is
2429 in effect, restore minimum and maximum positions seen up to the
2430 wrap point, when iterator returns to it.
2431 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2432 row and cursor not already at point. Restore original pre-bidi
2433 code for unidirectional buffers.
d36fe237
EZ
2434
2435 * dispnew.c (increment_row_positions, check_matrix_invariants):
2436 Increment and check row->start.pos and row->end.pos, in addition
2437 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2438
11117830
EZ
2439 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2440 Display truncated_on_left_p and truncated_on_right_p flags.
2441 Formatting fixes.
2442 (pmtxrows): Display the ordinal number of each row. Don't display
2443 rows beyond the last one.
2444
2445 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2446 it is not copied by bidi_copy_it.
2447
6e83d800
EZ
24482010-05-22 Eli Zaretskii <eliz@gnu.org>
2449
2450 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2451 (Bug#6237)
2452
110683ad
CY
24532010-05-22 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * image.c (Fimage_flush): Rename from image-refresh.
2456
98fe5161
CY
24572010-05-21 Chong Yidong <cyd@stupidchicken.com>
2458
2459 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2460 just one window.
2461
2462 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2463 (clear_image_cache): If the number of cached images is unusually
2464 large, decrease the cache eviction delay (Bug#6230).
2465
e8752c66
GM
24662010-05-21 Glenn Morris <rgm@gnu.org>
2467
66dbf213
GM
2468 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2469 Move these rules to ns.mk.
2470 * ns.mk: New file.
2471
04384b2d
GM
2472 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2473
e8752c66
GM
2474 * Makefile.in (CANNOT_DUMP): New, set by configure.
2475 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2476
2e2bbddb
JL
24772010-05-20 Juri Linkov <juri@jurta.org>
2478
2479 * fileio.c (Fdelete_file): Change interative spec to use
2480 `read-file-name' like in `find-file-read-args' where the default
2481 value is `default-directory' instead of `buffer-file-name'.
2482 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2483
31c4aaf6
KR
24842010-05-20 Kevin Ryde <user42@zip.com.au>
2485
2486 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2487 (Voverriding_terminal_local_map, Vsystem_key_alist)
2488 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2489
9d5cf9b6
GM
24902010-05-20 Glenn Morris <rgm@gnu.org>
2491
2492 * Makefile.in (DEPDIR): New constant.
2493 (DEPFLAGS): Set with configure, not cpp.
2494 (MKDEPDIR): New, set by configure.
2495 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2496 (clean): Use $DEPDIR.
2497 (deps_frag): Include from configure.
2498 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2499 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2500
ead6f8f5
EZ
2501 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2502 reallocation of the cache. (Bug#6210)
2503
7f34aec3
GM
25042010-05-19 Glenn Morris <rgm@gnu.org>
2505
d494e8f2
GM
2506 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2507
c1d0dcfd
GM
2508 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2509 (GNULIB_VAR): Remove.
2510 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2511
2512 * m/ibms390x.h (LINKER):
2513 * m/macppc.h (LINKER) [GNU_LINUX]:
2514 * s/aix4-2.h (ORDINARY_LINK):
2515 * s/cygwin.h (LINKER):
2516 * s/darwin.h (ORDINARY_LINK):
2517 * s/gnu.h (ORDINARY_LINK):
2518 * s/netbsd.h (LINKER):
2519 * s/usg5-4.h (ORDINARY_LINK):
2520 Move to configure.
2521
7f34aec3
GM
2522 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2523
754790b6
CY
25242010-05-18 Chong Yidong <cyd@stupidchicken.com>
2525
2526 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2527 prevent stack overflow if number of arguments is too large
2528 (Bug#6214).
2529
161e44d1
JB
25302010-05-18 Juanma Barranquero <lekktu@gmail.com>
2531
2532 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2533
be4ff9da
GM
25342010-05-18 Glenn Morris <rgm@gnu.org>
2535
9539dc5d
GM
2536 * s/gnu-linux.h: Combine two conditionals.
2537
2538 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2539 $(POST_ALLOC_OBJ).
2540
40dc6bf4
GM
2541 * Makefile.in (RALLOC_OBJ): New, set by configure.
2542 (rallocobj): Replace with the previous variable.
2543 (otherobj): Use $RALLOC_OBJ.
2544
2545 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2546 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2547
be4ff9da
GM
2548 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2549 (gmallocobj, vmlimitobj): Replace with previous two variables.
2550 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2551
16455a85
GM
25522010-05-17 Glenn Morris <rgm@gnu.org>
2553
2554 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2555 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2556
5fdb7468
GM
25572010-05-16 Glenn Morris <rgm@gnu.org>
2558
7ca1f3f9
GM
2559 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2560
7541dad5
GM
2561 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2562
da53fab9
GM
2563 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2564 trailing "/".
2565
b02a6645
GM
2566 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2567 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2568
8877ca0f
GM
2569 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2570 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2571 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2572 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2573 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2574
5fdb7468
GM
2575 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2576 Remove ${STARTFLAGS}, nothing ever sets it.
2577
95adb4b1
DN
25782010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2579
2580 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2581
676b6304
GM
25822010-05-16 Glenn Morris <rgm@gnu.org>
2583
9beab9ce
GM
2584 * Makefile.in (LIBX_BASE): Always define.
2585
8a95f0e7
GM
2586 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2587
676b6304
GM
2588 * Makefile.in (LIBXT): Always define.
2589
6e546d18
GM
25902010-05-15 Glenn Morris <rgm@gnu.org>
2591
4235ca47 2592 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2593
6e546d18
GM
2594 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2595 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2596
8c5ff6dd
KR
25972010-05-15 Ken Raeburn <raeburn@raeburn.org>
2598
560bb7ae 2599 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2600 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2601
8b4eb796
KR
2602 * emacs.c (main): Initialize initial-environment and
2603 process-environment before generating from env, not after.
2604
8c5ff6dd
KR
2605 Handle --version reasonably in CANNOT_DUMP configuration.
2606 * emacs.c (emacs_version, emacs_copyright): New string variables.
2607 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2608 (syms_of_emacs): Defvar them, and initialize them from the C
2609 string variables.
2610 (main): If initialization hasn't been done, print initial version
2611 info from the C strings, instead of starting an interactive session.
2612
dbd3f723
EZ
26132010-05-15 Eli Zaretskii <eliz@gnu.org>
2614
d20e1419
EZ
2615 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2616 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2617 (bidi_paragraph_init): Remove redundant assertion that we are at
2618 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2619
2620 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2621 (syms_of_xdisp): Defsubr it.
2622
d36fe237
EZ
2623 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2624
dbd3f723
EZ
2625 * Makefile.in: Fix MSDOS-related comments.
2626
02be533b
GM
26272010-05-15 Glenn Morris <rgm@gnu.org>
2628
1a82cca9
GM
2629 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2630 (really-lwlib, really-oldXMenu): Always define.
2631 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2632
3df7b338
GM
2633 * Makefile.in: Simplify cpp conditional.
2634
2b5f541b
GM
2635 * Makefile.in (${ns_appdir}): Simplify using umask.
2636
02be533b
GM
2637 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2638
4e2db1fe
SM
26392010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2640
2641 * eval.c (specbind): Remove left-over duplicate test.
2642 Disallow let-binding frame-local vars. Add comment.
2643
4b292a22
EZ
26442010-05-14 Eli Zaretskii <eliz@gnu.org>
2645
2fe72643 2646 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2647 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2648 (bidi_init_it): Call it.
2649 (bidi_cache_iterator_state): Enlarge the cache if needed.
2650
4e2db1fe 2651 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2652 bidi_get_next_char_visually. All callers changed.
2653
82ebc97b
KH
26542010-05-14 Kenichi Handa <handa@m17n.org>
2655
2656 * dispextern.h (struct composition_it): New member reversed_p.
2657
2658 * composite.c (composition_compute_stop_pos): Search backward if
2659 ENDPOS < CHARPOS.
2660 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2661 Set CMP_IT->reversed_p.
b4b6e17e 2662 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2663
4e2db1fe
SM
2664 * xdisp.c (set_iterator_to_next):
2665 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2666 scanning backward. Call composition_compute_stop_pos if scan
2667 direction is changed.
2668 (next_element_from_buffer): Call composition_compute_stop_pos with
2669 negative ENDPOS if we are scanning backward.
2670 (next_element_from_composition): Pay attention to
2671 IT->cmp_it.reversed_p.
2672
0e5d7800
KH
26732010-05-14 Kenichi Handa <handa@m17n.org>
2674
560bb7ae 2675 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2676
cb027b32
GM
26772010-05-14 Glenn Morris <rgm@gnu.org>
2678
177b0288
GM
2679 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2680
fbc00890
GM
2681 * Makefile.in (mktime, X11, register): Move undefs to configure.
2682
f14d1dfd
GM
2683 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2684 (MSDOS_X_OBJ): New variable.
2685 (MSDOS_SUPPORT_REAL): New constant.
2686 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2687 (obj): Use MSDOS_X_OBJ.
2688 (lisp): Use MSDOS_SUPPORT as a variable.
2689
11842bd8
GM
2690 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2691 (GPM_MOUSE_SUPPORT): Now it's a constant.
2692 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2693 not cpp.
2694
489d31a4 2695 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2696 (ns_appresdir): Remove, unused.
e20f1f07 2697
489d31a4
GM
2698 * Makefile.in (SHELL): Move outside cpp section.
2699
cb027b32
GM
2700 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2701
5a903aa9
GM
27022010-05-13 Glenn Morris <rgm@gnu.org>
2703
3369c79f
GM
2704 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2705 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2706
d5e982a6
GM
2707 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2708 HAVE_WINDOW_SYSTEM must be too.
2709
6192e163
GM
2710 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2711 (lisp): Remove WINNT_SUPPORT.
2712
472c5d6b
GM
2713 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2714 Let configure set these variables (to empty) in this case as well.
2715
0116466b
GM
2716 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2717 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2718
5a903aa9
GM
2719 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2720 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2721 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2722 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2723 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2724 the values output by configure.
5a903aa9
GM
2725 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2726
1a0d7c06
GM
27272010-05-12 Glenn Morris <rgm@gnu.org>
2728
b5457f14
GM
2729 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2730 (LINKER_WAS_SPECIFIED): Remove.
2731
1a0d7c06
GM
2732 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2733 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2734 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2735 * s/cygwin.h (LIB_GCC):
2736 * s/freebsd.h (LIB_GCC):
2737 * s/gnu-linux.h (LIB_GCC):
2738 * s/msdos.h (LIB_GCC):
2739 * s/netbsd.h (LIB_GCC):
2740 Move to configure.
2741
3ffd4615 27422010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2743
2744 * ftfont.c: Fix incorrect parentheses of #if condition for
2745 definining M17N_FLT_USE_NEW_FEATURE.
2746
acddf8ae
GM
27472010-05-11 Glenn Morris <rgm@gnu.org>
2748
2749 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2750 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2751
ae5e04fa
EZ
27522010-05-10 Eli Zaretskii <eliz@gnu.org>
2753
2754 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2755 unibyte buffers. See
2756 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2757
7490175b
GM
27582010-05-10 Glenn Morris <rgm@gnu.org>
2759
97efb629
GM
2760 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2761 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2762 (LIBES): Use LIBS_SYSTEM as a variable.
2763 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2764 * s/aix4-2.h (LIBS_SYSTEM):
2765 * s/freebsd.h (LIBS_SYSTEM):
2766 * s/hpux10-20.h (LIBS_SYSTEM):
2767 * s/sol2-6.h (LIBS_SYSTEM):
2768 * s/unixware.h (LIBS_SYSTEM):
2769 Move to configure.
2770
7490175b
GM
2771 * s/aix4-2.h (MAIL_USE_LOCKF):
2772 * s/bsd-common.h (MAIL_USE_FLOCK):
2773 * s/darwin.h (MAIL_USE_FLOCK):
2774 * s/gnu-linux.h (MAIL_USE_FLOCK):
2775 * s/irix6-5.h (MAIL_USE_FLOCK):
2776 * s/template.h (MAIL_USE_FLOCK):
2777 Move to configure.
2778
0235128c 27792010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2780
2781 * Version 23.2 released.
2782
0235128c 27832010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2784
2785 * composite.c (autocmp_chars): Save point as marker before calling
2786 auto-composition-function (Bug#5984).
2787
2788 * lisp.h (restore_point_unwind): Add prototype.
2789
2790 * fileio.c (restore_point_unwind): Remove static attribute.
2791
0235128c 27922010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2793
2794 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2795 new feature of libotf and m17n-flt.
0235128c
SM
2796 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2797 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2798 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2799 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2800 that OUT is NULL. Use OTF_drive_gsub_with_log and
2801 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2802 OTF_drive_gpos.
2803 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2804 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2805 Setup mflt_enable_new_feature and mflt_try_otf.
2806
4721152c
J
28072010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2808
2809 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2810
2811 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2812 box and toolbar (Bug #6139).
2813 (xg_create_tool_bar): Remove comment (Bug #6139).
2814 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2815 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2816
ee0a16cf
JB
28172010-05-08 Juanma Barranquero <lekktu@gmail.com>
2818
2819 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2820 Update dependencies.
2821
96d79611
EZ
28222010-05-08 Eli Zaretskii <eliz@gnu.org>
2823
2824 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2825 R2L lines.
2826
40c17879
GM
28272010-05-08 Glenn Morris <rgm@gnu.org>
2828
7b42b29f
GM
2829 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2830
40c17879
GM
2831 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2832 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2833 (termcapobj): Replace with TERMCAP_OBJ.
2834 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2835 (LIBES): Use LIBS_TERMCAP as a variable.
2836
2837 * s/freebsd.h (osreldate.h): No longer include, since this file
2838 does not use __FreeBSD_version any more.
2839
2840 * s/aix4-2.h (TERMINFO):
2841 * s/cygwin.h (TERMINFO):
2842 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2843 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2844 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2845 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2846 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2847 * s/irix6-5.h (TERMINFO):
2848 * s/netbsd.h (LIBS_TERMCAP):
2849 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2850 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2851 * s/usg5-4.h (TERMINFO):
2852 Move to configure.
2853
94b612ad
SM
28542010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2855
2856 * eval.c (unbind_to): Don't unbind a local binding into the global
2857 binding when the local binding disappeared. Inversely, don't unbind
2858 a global binding into a newly created local binding.
2859 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2860 can specify the frame to use, when applicable. Adjust callers.
2861
15e12598 28622010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2863 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2864
2865 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2866
f724825e
EZ
28672010-05-07 Eli Zaretskii <eliz@gnu.org>
2868
5cba3209
EZ
2869 * w32fns.c: Include w32.h.
2870 (Fw32_shell_execute): Decode the error message before passing it
2871 to `error'. (Bug#6126)
2872
d16bdfc3
EZ
2873 * msdos.c (dos_set_window_size):
2874 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2875 instead of `XSYMBOL (foo)->value'.
2876
59d93e87
EZ
28772010-05-07 Eli Zaretskii <eliz@gnu.org>
2878
9fdec8bc
EZ
2879 Fix the MS-DOS build, broken by autoconfiscation.
2880
2881 * Makefile.in: Don't use Make-style comments past the "start of
2882 cpp stuff" line.
2883 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2884
2885 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2886 edited directly by msdos/sed1v2.inp).
f724825e 2887
2f86b22b
GM
28882010-05-07 Glenn Morris <rgm@gnu.org>
2889
2890 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2891 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2892 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2893 move out of cpp section.
2894 * s/freebsd.h (LD_SWITCH_SYSTEM):
2895 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2896 * s/netbsd.h (LD_SWITCH_SYSTEM):
2897 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2898
49ebbd65
DN
28992010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2900
2901 Define LIB_STANDARD and START_FILES using autoconf.
2902 * s/usg5-4.h (LIB_STANDARD):
2903 * s/netbsd.h (START_FILES):
2904 * s/irix6-5.h (LIB_STANDARD):
2905 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2906 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2907 * s/freebsd.h (START_FILES):
2908 * s/darwin.h (START_FILES):
2909 * s/cygwin.h (START_FILES):
2910 * s/aix4-2.h (LIB_STANDARD):
2911 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2912 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2913 autoconf, not cpp.
2914
d43c06d6
DN
29152010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2916
28823648
DN
2917 Remove NEED_BSDTTY and NEED_UNISTD_H.
2918 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2919 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2920 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2921 <sys/ptyio.h> and <unistd.h>.
2922
aca00430
DN
2923 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2924
d43c06d6
DN
2925 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2926 * s/gnu.h (START_FILES): Remove empty definition.
2927
3e56b11d
JD
29282010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2929
2930 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2931
e3cf0cde
GM
29322010-05-06 Glenn Morris <rgm@gnu.org>
2933
2934 * Makefile.in (CPP, LN_S): Remove unused variables.
2935
774b9a60
SM
29362010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2937
2938 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2939
4ab92842
LM
29402010-05-05 Lawrence Mitchell <wence@gmx.li>
2941
2942 * m/sparc.h: Fix typo in earlier change.
2943
178f2507
SM
29442010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2945
2946 Misc tweaks.
2947 * eval.c (Fdefvaralias): Remove unintended nested if.
2948 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2949
80f00217 29502010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2951
2952 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2953
ef03a4e6
DN
29542010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2955
58eb6cf0
DN
2956 Remove BSD_PGRPS.
2957 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2958 * s/gnu-linux.h (BSD_PGRPS): Remove.
2959 * term.c (dissociate_if_controlling_tty):
2960 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2961 (init_sys_modes, reset_sys_modes):
2962 * emacs.c (main):
2963 * callproc.c (Fcall_process, child_setup): Remove code depending
2964 on BSD_PGRPS.
2965
ef03a4e6
DN
2966 Remove POSIX_SIGNALS.
2967 * s/usg5-4.h (POSIX_SIGNALS):
2968 * s/netbsd.h (POSIX_SIGNALS):
2969 * s/msdos.h (POSIX_SIGNALS):
2970 * s/ms-w32.h (POSIX_SIGNALS):
2971 * s/hpux11.h (POSIX_SIGNALS):
2972 * s/gnu.h (POSIX_SIGNALS):
2973 * s/gnu-linux.h (POSIX_SIGNALS):
2974 * s/freebsd.h (POSIX_SIGNALS):
2975 * s/darwin.h (POSIX_SIGNALS):
2976 * s/cygwin.h (POSIX_SIGNALS):
2977 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2978 * s/unixware.h:
2979 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2980 * process.c (create_process):
2981 * syssignal.h:
2982 * sysdep.c (wait_for_termination, init_signals):
2983 * process.c (create_process):
2984 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2985 remove all code that assumes the contrary.
2986
49628785
GM
29872010-05-04 Glenn Morris <rgm@gnu.org>
2988
27a2cdfc
GM
2989 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2990 variable.
2991 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2992 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2993 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2994 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2995 LD_SWITCH_SYSTEM_tmp.
2996 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2997 New variables, set by configure.
2998
eb21eab5
GM
2999 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3000 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3001 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3002 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3003 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3004
49628785
GM
3005 * s/aix4-2.h (C_SWITCH_SYSTEM):
3006 * m/alpha.h (C_SWITCH_MACHINE):
3007 Move to configure.in.
3008 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3009 New variables, set by configure.
3010 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3011 $c_switch_machine and $c_switch_system.
3012
7dff330b
DN
30132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3014
3015 * s/hpux10-20.h (LIB_STANDARD): New definition.
3016 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3017 on it, not used anymore.
3018
53967e09
CY
30192010-05-03 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * eval.c (internal_condition_case_n): Rename from
3022 internal_condition_case_2.
3023 (internal_condition_case_2): New function.
3024
3025 * xdisp.c (safe_call): Use internal_condition_case_n.
3026
3027 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3028 (internal_delete_file, Frename_file): Callers changed.
3029
3030 * buffer.c (Fkill_buffer):
3031 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3032
3033 * lisp.h: Update prototypes.
3034
3dee6fdb
GM
30352010-05-03 Glenn Morris <rgm@gnu.org>
3036
3037 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3038 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3039 (LIBXT): Set with configure, not cpp.
3040 (LIBX): Remove.
3041 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3042
a101e0fb
DN
30432010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3044
3045 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3046 The FreeBSD is not needed, the default works, Solaris version is
3047 not needed, and the remaining case is not supported by configure.
3048
f63d0028
JD
30492010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3050
3051 * xsmfns.c (CHDIR_OPT): New define.
3052 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3053 restarting emacs.
3054
3055 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3056 shut_down_emacs.
3057
3058 * emacs.c (USAGE1): Mention --chdir.
3059 (main): Handle --chdir.
3060 (standard_args): Add --chdir.
3061 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3062 #5552).
3063
e4814a9f
DN
30642010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3065
cd03c74a
DN
3066 Remove LD_SWITCH_MACHINE.
3067 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3068 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3069
c3a398a1
DN
3070 Clean up IRIX code.
3071 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3072 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3073
87e7285c
DN
3074 Clean up AIX code.
3075 * m/ibmrs6000.inp: Remove file, unused.
3076 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3077 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3078 definition ...
3079 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3080
80f00217
JB
3081 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3082 unused.
e4814a9f 3083
59ca28de
EZ
30842010-05-01 Eli Zaretskii <eliz@gnu.org>
3085
197daef4
EZ
3086 Emulate POSIX_SIGNALS on MS-Windows.
3087
3088 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3089 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3090
3091 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3092 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3093 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3094
80f00217
JB
3095 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3096 New stubs.
197daef4 3097
af7c7572
EZ
3098 Miscellaneous fixes of bidi display.
3099
59ca28de
EZ
3100 * xdisp.c (find_row_end): New function, refactored from display_line.
3101 (display_line): Use it.
017ea819
EZ
3102 (extend_face_to_end_of_line): In almost-filled rows, extend only
3103 if the row is R2L and not continued.
166e930d 3104 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3105 Preserve overlay and string info in row->end.
166e930d
EZ
3106 (insert_left_trunc_glyphs): Support addition of left truncation
3107 glyphs to R2L rows.
b47e0dcf 3108 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3109 glyph between adjacent windows. Fix a crash when a display string
3110 is continued to the next line. Don't return zero if cursor was
3111 found by `cursor' property of a display string.
b47e0dcf
EZ
3112 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3113 test for that explicitly.
59ca28de 3114
7acac9f4
GM
31152010-05-01 Glenn Morris <rgm@gnu.org>
3116
3117 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3118 for clarity.
3119 (OTHER_OBJ): Remove.
3120 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3121 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3122
45841e65
KK
31232010-05-01 Karel Klíč <kklic@redhat.com>
3124
3125 * fileio.c (Ffile_selinux_context): Context functions may return null.
3126
afc61943
DN
31272010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3128
80f00217 3129 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3130
5a1bb006
GM
31312010-04-30 Glenn Morris <rgm@gnu.org>
3132
3133 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3134 (OTHER_OBJ): Define as a separate variable, for clarity.
3135
210af043
J
31362010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3137
3138 * xsettings.c: include limits.h and update file comment.
3139
0a7df391
GM
31402010-04-30 Glenn Morris <rgm@gnu.org>
3141
d5096f16
GM
3142 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3143 Set with configure, not cpp.
3144 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3145
7eb1ac33
GM
3146 * Makefile.in (mallocobj): Remove.
3147 (otherobj): Simplify using @OTHER_OBJ@.
3148
517d086b
GM
3149 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3150 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3151 Don't bother making nsgui.h dependency platform-specific.
3152
0a7df391
GM
3153 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3154
d6d23852
SM
31552010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3156
d2630aef
SM
3157 * process.c (read_process_output, exec_sentinel): Don't burp if the
3158 sentinel/filter kills the current buffer (bug#6060).
3159
f9dddf52 3160 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3161 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3162 Remove unused var `args'.
3163 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3164 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3165 * doc.c (store_function_docstring): Use XSETCAR.
3166
f1e3642a
GM
31672010-04-28 Glenn Morris <rgm@gnu.org>
3168
faf535f8
GM
3169 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3170 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3171
c40f9449
GM
3172 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3173
658f86ca
GM
3174 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3175 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3176
bc0b5f61
GM
3177 * Makefile.in (FONT_OBJ): New, set by configure.
3178 (FONT_DRIVERS): Use $FONT_OBJ.
3179
294c50a0
GM
3180 * Makefile.in (LIBXMU): Set with configure, not cpp.
3181 * s/aix4-2.h (LIBXMU):
3182 * s/hpux10-20.h (LIBXMU):
3183 Remove definition, now set in configure.
3184
e6ec4e99
GM
3185 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3186
f1e3642a
GM
3187 * m/amdx86-64.h [i386]: Move this test to configure.in.
3188
c6ea2936
GM
31892010-04-27 Glenn Morris <rgm@gnu.org>
3190
8fdac2c3
GM
3191 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3192 * s/unixware.h (NEED_LIBW): Remove definition.
3193
986fb647
GM
3194 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3195 (TOOLKIT_LIBW): New, set by configure.
3196 (@X_TOOLKIT_TYPE@): No longer define it.
3197
c6ea2936
GM
3198 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3199 (MOTIF_LIBW): Set with configure, not cpp.
3200 * s/aix4-2.h (LIB_MOTIF):
3201 * s/gnu-linux.h (LIB_MOTIF):
3202 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3203
aaa36002
DN
32042010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3205
3206 Reduce CPP usage.
3207 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3208 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3209 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3210 definitions and undefs. Inline definitions in the only user.
3211 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3212
b678dd8b
GM
32132010-04-27 Glenn Morris <rgm@gnu.org>
3214
76cda504
GM
3215 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3216 since the defaults (set by the system file) are fine in most cases.
3217 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3218 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3219 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3220 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3221 Remove definitions, since they are set correctly in s/gnu-linux.h.
3222 * s/freebsd.h (START_FILES, LIB_STANDARD):
3223 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3224 * s/hpux10-20.h (START_FILES):
3225 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3226 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3227
b678dd8b
GM
3228 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3229 (MOTIF_LIBW): Use $LIBXP.
3230 (otherobj): Use $WIDGET_OBJ.
3231
9452ded1
DN
32322010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3233
7e10844c
DN
3234 * Makefile.in (LIBS_MACHINE): Remove, unused.
3235
9452ded1
DN
3236 Use autoconf instead of cpp for LIB_MATH.
3237 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3238 * s/cygwin.h (LIB_MATH): Likewise.
3239 * Makefile.in (LIB_MATH): Do not define with cpp.
3240 (LIBES): Use autoconf for LIB_MATH.
3241
fcebfc6a
KH
32422010-04-26 Kenichi Handa <handa@m17n.org>
3243
3244 * composite.c (Ffind_composition_internal): Fix the return value
3245 for an automatic composition.
3246
39e2ad1b
DN
32472010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3248
3249 Remove all NO_ARG_ARRAY uses.
3250 * fns.c (concat2, concat3, nconc2):
3251 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3252 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3253 * m/xtensa.h (NO_ARG_ARRAY):
3254 * m/template.h (NO_ARG_ARRAY):
3255 * m/sparc.h (NO_ARG_ARRAY):
3256 * m/sh3.h (NO_ARG_ARRAY):
3257 * m/mips.h (NO_ARG_ARRAY):
3258 * m/macppc.h (NO_ARG_ARRAY):
3259 * m/iris4d.h (NO_ARG_ARRAY):
3260 * m/intel386.h (NO_ARG_ARRAY):
3261 * m/ibms390x.h (NO_ARG_ARRAY):
3262 * m/ibms390.h (NO_ARG_ARRAY):
3263 * m/ibmrs6000.h (NO_ARG_ARRAY):
3264 * m/ia64.h (NO_ARG_ARRAY):
3265 * m/hp800.h (NO_ARG_ARRAY):
3266 * m/arm.h (NO_ARG_ARRAY):
3267 * m/amdx86-64.h (NO_ARG_ARRAY):
3268 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3269
adf4f59c
EZ
32702010-04-25 Eli Zaretskii <eliz@gnu.org>
3271
6bdf5d65
EZ
3272 * xdisp.c (display_line): Don't assume 2nd call to
3273 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3274 (iterate_out_of_display_property): New function, body from pop_it.
3275 (pop_it): Use it.
adf4f59c 3276
dfbbda83
GM
32772010-04-24 Glenn Morris <rgm@gnu.org>
3278
3279 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3280 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3281 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3282 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3283
2d4018aa
EZ
32842010-04-24 Eli Zaretskii <eliz@gnu.org>
3285
a49884a6
EZ
3286 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3287 use `get_next_display_element' and `set_iterator_to_next' to
3288 advance to the next character, when looking for the character that
3289 begins the next row.
3290
76db6fcc 3291 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3292 definition of "struct Lisp_Symbol".
3293
70eab5c1
GM
32942010-04-24 Glenn Morris <rgm@gnu.org>
3295
3296 * Makefile.in (CRT_DIR): New variable, set by configure.
3297 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3298 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3299
1ad4cc3d
DN
33002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3301
e769f484
DN
3302 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3303
4196ff33
DN
3304 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3305
879b0ee4
DN
3306 Remove redundant flags.
3307 * s/freebsd.h (C_SWITCH_SYSTEM):
3308 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3309 * s/netbsd.h (C_SWITCH_SYSTEM):
3310 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3311 of these.
3312
03cbbcb8
DN
3313 Simplify m/intel386.h.
3314 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3315 user: ecrt0.c.
3316 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3317 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3318 the only user: s/unixware.h.
3319 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3320 from m/intel386.h.
3321 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3322 moved here from m/intel386.h.
3323
1ad4cc3d
DN
3324 * m/mips.h: Remove #if 0 code.
3325
8785b888
EZ
33262010-04-23 Eli Zaretskii <eliz@gnu.org>
3327
728588cc
EZ
3328 Fix display of composed characters from L2R scripts in bidi buffers.
3329 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3330 After advancing IT past the composition, resync the bidi iterator
3331 with IT's position. (Bug#5977)
3332
a63f80b4
DN
33332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3334
3335 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3336 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3337
ff5dec5c
SM
33382010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3339
3340 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3341
8785b888
EZ
33422010-04-23 Eli Zaretskii <eliz@gnu.org>
3343
58ccf243 3344 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3345 * xdisp.c (pop_it): When the stack is popped after displaying
3346 from a string, bidi-iterate to exit from the text portion covered
3347 by the `display' property or overlay. (Bug#5988, bug#5920)
3348
feeb1604
DN
33492010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3350
8e324eb6
DN
3351 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3352 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3353
809fcaba
DN
3354 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3355 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3356
ed710380
DN
3357 Simplify STARTFILES definition.
3358 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3359 relying on Makefile.in to define it.
3360 * s/cygwin.h (START_FILES): Likewise.
3361 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3362
feeb1604
DN
3363 Clean up Solaris code.
3364 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3365 (LIB_MOTIF): Remove, configure takes care of this.
3366 (NOT_USING_MOTIF): Remove, unused.
3367 * xrdb.c: Remove #if 0-ed #include.
3368 (SYSV): Remove conditional for old SysV.
3369 * sysdep.c (closedir): Remove conditional code for Solaris,
3370 Solaris has closedir.
3371
a0d0b563
JD
33722010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3373
3374 * xsettings.c (read_and_apply_settings): Check if current_font is
3375 NULL before strcmp (Bug#6001).
3376
56bae7c7
DN
33772010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3378
3379 Clean up HP-UX files.
3380 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3381 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3382 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3383 * s/hpux10-20.h: ... to the only user, here.
3384
372b7a95
EZ
33852010-04-21 Eli Zaretskii <eliz@gnu.org>
3386
3387 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3388 use buffer-local values of paragraph-start and paragraph-separate.
3389 <paragraph_start_re, paragraph_separate_re>: Rename from
3390 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3391 (Bug#5992)
3392
f904c0f9
JD
33932010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3394
3395 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3396 current_tool_bar_style are new.
3397 (store_config_changed_event): Rename from store_font_changed_event.
3398 (XSETTINGS_TOOL_BAR_STYLE): New define.
3399 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3400 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3401 HAVE_XFT.
3402 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3403 store_config_changed_event.
f904c0f9
JD
3404 (parse_settings): Rename from parse_xft_settings. Read
3405 non-xft xsettings outside #ifdef HAVE_XFT.
3406 (read_settings): Renamed from read_xft_settings.
3407 (apply_xft_settings): Take current settings as parameter. Do not
3408 call read_(xft)_settings.
3409 (read_and_apply_settings): New function.
3410 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3411 read_and_apply_settings if there are settings to be read.
3412 (init_xsettings): Renamed from init_xfd_settings.
3413 Call read_and_apply_settings unconditionally.
3414 (xsettings_initialize): Call init_xsettings.
3415 (Ftool_bar_get_system_style): New function.
3416 (syms_of_xsettings): Define Qmonospace_font_name and
3417 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3418 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3419 dynamic-setting.
31a01b90 3420 Move misplaced HAVE_GCONF
f904c0f9
JD
3421
3422 * xsettings.h (Ftool_bar_get_system_style): Declare.
3423
3424 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3425 Qtext, Qboth, Qboth_horiz are new.
3426 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3427 Vtool_bar_style, tool_bar_max_label_size.
3428
3429 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3430
3431 * keyboard.c: QClabel is new.
3432 (parse_tool_bar_item): Take out QClabel from tool bar items.
3433 Try to construct a label if ther is no QClabel.
3434 (syms_of_keyboard): Intern :label as QClabel.
3435
3436 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3437 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3438 New.
3439
3440 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3441 dynamic-setting.el.
3442
3443 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3444 (xg_make_tool_item, xg_show_toolbar_item): New function.
3445 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3446 Call xg_make_tool_item to make a tool bar item.
3447 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3448
3449 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3450 into account for toolbars.
3451
c632dfda
JD
34522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3453
3454 * data.c (make_blv): Declarations before code (Bug#5993).
3455
10efe302
GM
34562010-04-21 Glenn Morris <rgm@gnu.org>
3457
3458 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3459 Define using autoconf, not cpp.
3460 (LIBXSM): New variable, set by autoconf.
3461 (LIBXT): Use $LIBXSM.
3462
4285ac5a
DN
34632010-04-21 Dan Nicolaescu <local_user@dannlt>
3464
3ec759e7
DN
3465 Remove NOMULTIPLEJOBS, unused.
3466 * s/template.h (NOMULTIPLEJOBS):
3467 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3468
4285ac5a
DN
3469 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3470 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3471 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3472 detects -znocombreloc and passes it to the linker
3473 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3474
2807228d
GM
34752010-04-21 Glenn Morris <rgm@gnu.org>
3476
3477 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3478
574c05e2
KK
34792010-04-21 Karel Klíč <kklic@redhat.com>
3480
3481 * Makefile.in (LIBSELINUX_LIBS): New.
3482 (LIBES): Add $LIBSELINUX_LIBS.
3483 * eval.c, lisp.h (call7): New function.
3484 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3485 (Ffile_selinux_context, Fset_file_selinux_context):
3486 New functions.
3487 (Fcopy_file): New parameter preserve-selinux-context.
3488 (Frename_file): Preserve selinux context when renaming by copy-file.
3489
91eac4bb 34902010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3491 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3492
50426a04
JB
3493 Don't depend on cm.c or termcap.c on Windows, use stubs.
3494 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3495 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3496 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3497 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3498 (sys_tputs, sys_tgetstr): New stubs.
3499 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3500 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3501
938efb77
JB
35022010-04-20 Juanma Barranquero <lekktu@gmail.com>
3503
3504 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3505
b4bf28b7
SM
35062010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3507
8b1e1112
SM
3508 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3509 Just signal a warning rather than an error when inside a let.
3510 (Fmake_variable_frame_local): Add the same test.
3511
933ac235
SM
3512 * font.c (syms_of_font): Make the style table vars read-only.
3513
b4bf28b7
SM
3514 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3515 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3516
3517 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3518
93d68d0c
EZ
35192010-04-20 Eli Zaretskii <eliz@gnu.org>
3520
3521 Fix R2L paragraph display on TTY.
3522
3523 * xdisp.c (unproduce_glyphs): New function.
3524 (display_line): Use it when produced glyphs are discarded from R2L
3525 glyph rows.
3526 (append_composite_glyph): In R2L rows, prepend the glyph rather
3527 than appending it.
3528
3529 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3530 rather than append it. Set up the resolved_level and bidi_type
3531 attributes of the appended glyph.
283ccc18
EZ
3532 (produce_special_glyphs): Mirror the backslash continuation
3533 character in R2L lines.
93d68d0c 3534
283ccc18 3535 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3536
283ccc18
EZ
3537 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3538 append_stretch_glyph.
3539 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3540 off-by-one error in computing x at end of text in the row.
3541 (append_stretch_glyph): In reversed row, prepend the glyph rather
3542 than append it. Set resolved_level and bidi_type of the glyph.
3543 (extend_face_to_end_of_line): If the row is reversed, prepend a
3544 stretch glyph whose width is such that the rightmost glyph will be
3545 drawn at the right margin of the window. Fix off-by-one error on
3546 TTY frames in testing whether a line needs face extension. Fix
3547 face extension at ZV. If this is the last glyph row, use
3548 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3549 region face.
3550 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3551 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3552 row->continuation_lines_width.
283ccc18
EZ
3553 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3554 are at ZV. Fixes a crash when reseated to ZV by
3555 try_window_reusing_current_matrix.
45903529
EZ
3556 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3557 which happens with R2L glyph rows. Fixes a crash when inserting a
3558 character at end of an R2L line.
283ccc18
EZ
3559 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3560 treat them as having zero-width characters. Improve comments.
3561 Don't reverse pos_before and pos_after for reversed glyph rows.
3562 Set cursor.x to negative value when the cursor might be on the
3563 left fringe.
3564 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3565 left fringe, not the right one.
f951a506
EZ
3566 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3567 (erase_phys_cursor): For reversed cursor_row, support cursor on
3568 the left fringe.
3569
283ccc18
EZ
3570 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3571 of continuation indicators on the fringes.
3572 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3573 left fringe.
3574
f951a506
EZ
3575 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3576 draw cursor on the left fringe.
3577
3578 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3579 cursor on the left fringe.
3580
f951a506
EZ
3581 * dispnew.c (update_text_area): Handle reversed desired rows when
3582 the cursor is on the left fringe.
3583 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3584 below, not by 0, for when the cursor is on the left fringe.
3585
3bb49aaf
JD
35862010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3587
3588 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3589 widget is a scrollbar.
3590
c0be27fd
KH
35912010-04-20 Kenichi Handa <handa@m17n.org>
3592
3593 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3594 only when the arg CHARSET_LIST is nil.
3595
ce5b453a
SM
35962010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3597
3598 Make variable forwarding explicit rather the using special values.
3599 Basically, this makes the structure of buffer-local values and object
3600 forwarding explicit in the type of Lisp_Symbols rather than use
3601 special Lisp_Objects for that. This tends to lead to slightly more
3602 verbose code, but is more C-like, simpler, and makes it easier to make
3603 sure we handled all cases, among other things by letting the compiler
3604 help us check it.
3605 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3606 Removing forwarding objects.
3607 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3608 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3609 explicit rather than hiding them inside Lisp_Object "values".
3610 (XFWDTYPE): New macro.
3611 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3612 (XBUFFER_LOCAL_VALUE): Remove.
3613 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3614 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3615 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3616 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3617 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3618 Remove the Lisp_Misc_* header.
3619 (struct Lisp_Buffer_Local_Value): Redefine.
3620 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3621 (struct Lisp_Misc_Any): Add filler to get the right size.
3622 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3623 Lisp_Intfwd.
3624 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3625 (DEFVAR_KBOARD): Allocate a forwarding object.
3626 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3627 (let_shadows_global_binding_p): New function.
3628 (union Lisp_Val_Fwd): New type.
3629 (make_blv): New function.
3630 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3631 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3632 (swap_in_symval_forwarding, find_symbol_value, Fset)
3633 (let_shadows_buffer_binding_p, set_internal, default_value)
3634 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3635 (Fkill_local_variable, Fmake_variable_frame_local)
3636 (Flocal_variable_p, Flocal_variable_if_set_p)
3637 (Fvariable_binding_locus):
3638 * xdisp.c (select_frame_for_redisplay):
3639 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3640 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3641 * frame.c (store_frame_param):
3642 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3643 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3644 value structure.
3645 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3646 (clone_per_buffer_values): Only adjust markers into the current buffer.
3647 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3648 (Fbuffer_local_value, set_buffer_internal_1)
3649 (swap_out_buffer_local_variables):
3650 Adapt to the new symbol value structure.
3651 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3652 (defvar_per_buffer): Take a new arg for the fwd object.
3653 (buffer_lisp_local_variables): Return a proper alist (different fix
3654 for bug#4138).
3655 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3656 (Fgarbage_collect): Don't handle buffer_defaults specially.
3657 (mark_object): Handle new symbol value structure rather than the old
3658 special Lisp_Misc_* objects.
3659 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3660 * term.c (set_tty_color_mode):
3661 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3662 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3663 a buffer_local_flags.
3664 * print.c (print_object): Get rid of impossible forwarding objects.
3665
fd3998ff
EZ
36662010-04-19 Eli Zaretskii <eliz@gnu.org>
3667
3668 * bidi.c (bidi_get_type, bidi_get_category)
3669 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3670 (bidi_type_of_next_char, bidi_level_of_next_char):
3671 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3672
e42cd1a7
JB
36732010-04-19 Juanma Barranquero <lekktu@gmail.com>
3674
3675 * dired.c (Ffile_attributes): Fix typo in docstring.
3676
6e104790 36772010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3678
3679 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3680 NSInteger (Bug#5811).
3681
6e104790 36822010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3683
3684 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3685 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3686
6e104790 36872010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3688
3689 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3690
6e104790
SM
36912010-04-19 Chong Yidong <cyd@stupidchicken.com>
3692
3693 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3694 terminal frames (Bug#5837).
3695
37dcfea0
EZ
36962010-04-19 Eli Zaretskii <eliz@gnu.org>
3697
d1da276f
EZ
3698 * .gdbinit (xsubchartable): New command.
3699
37dcfea0
EZ
37002010-04-19 Eli Zaretskii <eliz@gnu.org>
3701
3702 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3703 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3704 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3705 and
3706 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3707
e9515805
SM
37082010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * alloc.c (Fpurecopy): Hash-cons if requested.
3711 (syms_of_alloc): Update purify-flag docstring.
3712
22aa44a8
JD
37132010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3714
3715 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3716 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3717
ebb5722e
EZ
37182010-04-17 Eli Zaretskii <eliz@gnu.org>
3719
3720 Fix a crash when an NSM character is inserted at BEGV.
3721
3722 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3723 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3724 NEUTRAL_B or UNKNOWN_BT.
3725
0f4442ef
EZ
37262010-04-16 Eli Zaretskii <eliz@gnu.org>
3727
3728 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3729 other rows with cursor unless they are different from this row and
3730 this row is part of a continued line. (Bug#5943)
3731
7d4e45f8
DN
37322010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3733
3734 * s/freebsd.h: Restore osreldate.h include.
3735 Suggested by Naohiro Aota.
3736
5ba5ec85
J
37372010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3738
3739 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3740
20af301d
CY
37412010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3742
3743 * s/cygwin.h: Avoid linking against static libgcc.
3744
a4b000fb
JL
37452010-04-15 Juri Linkov <juri@jurta.org>
3746
3747 * window.c: Add Qscroll_command.
3748 Remove Vscroll_preserve_screen_position_commands.
3749 (window_scroll_pixel_based, window_scroll_line_based): Check the
3750 `scroll-command' property on the last command instead of searching
3751 the last command in Vscroll_preserve_screen_position_commands.
3752 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3753 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3754 (scroll-preserve-screen-position): Doc fix.
3755 (Vscroll_preserve_screen_position_commands): Remove variable.
3756
bc319ba4
DN
37572010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3758
6bb24457
DN
3759 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3760
19d4c244
DN
37612010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3762
3763 Reduce cpp use in Makefile.in.
3764 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3765 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3766 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3767 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3768 (CRT0_COMPILE): Remove, inline it in the only user.
3769
32129746
JL
37702010-04-14 Juri Linkov <juri@jurta.org>
3771
3772 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3773 `scroll-up-command' and `M-v' from `scroll-down' to
3774 `scroll-down-command'.
3775
9013a7f8
JL
37762010-04-14 Juri Linkov <juri@jurta.org>
3777
3778 * window.c (Vscroll_preserve_screen_position_commands): New variable
3779 with the default value as the list of Qscroll_down and Qscroll_up.
3780 (window_scroll_pixel_based, window_scroll_line_based): Search the
3781 last command in the list Vscroll_preserve_screen_position_commands
3782 instead of comparing with Qscroll_up and Qscroll_down.
3783
4bef8d26
JD
37842010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3785
92848133
JD
3786 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3787 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3788 does that.
3789
4bef8d26
JD
3790 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3791 to zero.
3792
58b963f7
SM
37932010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3794
84164a0d
SM
3795 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3796
2b0a91e7
SM
3797 Try to solve the problem of spurious EOF chars in long lines of text
3798 sent to interactive subprocesses.
3799 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3800 (system_process_attributes): Remove unused var `ttotal'.
3801 * process.c (send_process): Don't bother breaking long line with EOF
3802 chars when talking to ttys any more.
3803 (wait_reading_process_output): Output a warning when called in such
3804 a way that it could block without being interruptible.
3805
58b963f7
SM
3806 Try to detect file modification within the same second.
3807 * buffer.h (struct buffer): New field modtime_size.
3808 * buffer.c (reset_buffer): Initialize it.
3809 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3810 (Fverify_visited_file_modtime): Check it.
3811 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3812 (Fset_visited_file_modtime): Set (or clear) it.
3813
01f5787b
SM
38142010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3815
3816 * process.c (status_notify): Remove unused var `ro'.
3817
83725342
JD
38182010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3819
3820 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3821 more than one visual (Bug#5938).
3822
b9465836
DN
38232010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3824
50426a04
JB
3825 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3826 Undefine.
b9465836 3827
8d9c8ece
DN
38282010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3829
b1f52161
DN
3830 Remove C_SWITCH_SYSTEM_TEMACS.
3831 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3832 (malloc, realloc, free): Use emacs, not temacs for conditional
3833 definition.
3834
3835 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3836 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3837
8d9c8ece
DN
3838 Use autoconf, not cpp for some variables.
3839 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3840 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3841 (ALL_CFLAGS): Use them as make variables.
3842 (really-lwlib, really-oldXMenu): Do not pass them.
3843
1ecb2d3f
JD
38442010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3845
3846 * xmenu.c (apply_systemfont_to_dialog): New.
3847 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3848
3a4fa2f2
SM
38492010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3850
97e53006
SM
3851 * process.c (exec_sentinel): Preserve current-buffer.
3852
3a4fa2f2
SM
3853 * process.c (read_process_output): Move the save-current-buffer to
3854 apply to both the filter and the non-filter branches.
3855
88df7221
DN
38562010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3857
3858 * s/msdos.h (UNEXEC): New definition.
3859
5634ff85
YM
38602010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3861
6eff5c3d
YM
3862 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3863 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3864
3865 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3866 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3867 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3868 TRY_WINDOW_CHECK_MARGINS.
3869
3870 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3871 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3872 width only when it is for padding.
5634ff85 3873
b13aef54
J
38742010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3875
3876 * xfns.c (Fx_show_tip): Call try_window in a loop until
3877 fonts_changed_p is zero (Bug#2423).
3878
21d28484
EZ
38792010-04-08 Eli Zaretskii <eliz@gnu.org>
3880
3881 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3882 the end of TEXT_AREA. (Bug#5856)
3883
0269ef77
JD
38842010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3885
3886 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3887 HAVE_GCONF.
3888
5930fe97
EZ
38892010-04-08 Eli Zaretskii <eliz@gnu.org>
3890
3891 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3892 prev.orig_type, for resolving type of NSM. (Bug#5858)
3893
99852628
JD
38942010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3895
3896 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3897 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3898 in current_font.
3899 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3900 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3901 New functions.
3902 (syms_of_xsettings): Initialize current_font.
3903 defsubr Sfont_get_system_normal_font.
99852628 3904
686b968e
JB
3905 * xsettings.h (Ffont_get_system_normal_font)
3906 (xsettings_get_system_normal_font): Declare.
99852628
JD
3907
3908 * xfns.c (extern xlwmenu_default_font): Remove.
3909 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3910 to xlwmenu.c.
3911
3912 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3913 menu items in UTF-8.
3914
3915 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3916 (apply_systemfont_to_menu): New function.
3917 (set_frame_menubar, create_and_show_popup_menu): Call
3918 apply_systemfont_to_menu.
3919
7fc874c4
J
39202010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3921
3922 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3923 FRAME_LINE_TO_PIXEL_Y.
3924
3925 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3926 pixelwidth/height.
3927
863bf481
DN
39282010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3929
5e5a3b92
DN
3930 Simplify code for HP machines.
3931 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3932 for GNU_LINUX, not needed.
3933 (UNEXEC, NEED_BSDTTY): Move definitions...
3934 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3935
863bf481
DN
3936 * m/iris4d.h (UNEXEC): Move definition ...
3937 * s/irix6-5.h (UNEXEC): ... here.
3938
3e6bec3b
JD
39392010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3940
3941 * xfns.c (set_machine_and_pid_properties): New function.
3942 (Fx_create_frame): Call set_machine_and_pid_properties.
3943
2912322b
SM
39442010-04-03 Eli Zaretskii <eliz@gnu.org>
3945
1502b819
EZ
3946 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3947 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3948 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3949
2912322b
SM
3950 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3951 in this function. (Bug#5703)
3952
39532010-04-03 Chong Yidong <cyd@stupidchicken.com>
3954
3955 * nsterm.h: Fix last change.
3956
c435b432
DN
39572010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3958
a568f507
DN
3959 * m/intel386.h (NO_REMAP): Move definition ...
3960 * s/msdos.h (NO_REMAP): ... here.
3961
4cd9f6c2
DN
3962 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3963
c435b432
DN
3964 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3965 used on those platforms.
3966
42a2c622
DN
39672010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3968
3969 Remove extern errno declarations.
3970 * xterm.c:
3971 * xrdb.c:
3972 * w32term.c:
3973 * unexec.c:
3974 * unexaix.c:
3975 * sysdep.c:
3976 * process.c:
3977 * lread.c:
3978 * keyboard.c:
3979 * floatfns.c:
3980 * filelock.c:
3981 * fileio.c:
3982 * emacs.c (main):
3983 * ecrt0.c:
3984 * dispnew.c:
3985 * callproc.c:
3986 * buffer.c: Remove errno extern declarations.
3987 * s/netbsd.h (NEED_ERRNO): Remove.
3988
8224f93d
DN
39892010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3990
3991 Remove all uses of LIBX11_SYSTEM.
3992 * Makefile.in (LIBX11_SYSTEM): Remove.
3993 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3994 instead.
3995
814062c7
EZ
39962010-04-01 Eli Zaretskii <eliz@gnu.org>
3997
ed68db4d
EZ
3998 Remove support for DJGPP v1.x (bug#5813).
3999
4000 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4001 * s/msdos.h:
4002 * unexec.c (make_hdr, copy_text_and_data):
4003 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4004 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4005 (IT_set_terminal_modes, __write, _rename, gethostname)
4006 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4007 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4008 the value of __DJGPP__.
ed68db4d
EZ
4009 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4010 compatibility code.
8224f93d
DN
4011 * lread.c:
4012 * gmalloc.c (memalign):
4013 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4014 * emacs.c (main):
4015 * dosfns.c (init_dosfns):
ed68db4d
EZ
4016 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4017
52f4d8d5
EZ
40182010-04-01 Eli Zaretskii <eliz@gnu.org>
4019
814062c7
EZ
4020 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4021 string with `cursor' property comes from an `after-string'
4022 overlay. (Bug#5816)
4023
0dc2e11d
GM
40242010-04-01 Glenn Morris <rgm@gnu.org>
4025
4026 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4027 Define as Makefile variables.
4028 (LIBX): Use above variables rather than directly using autoconf.
4029
1d29df59
DN
40302010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4031
4032 Clean up BSD_SYSTEM use.
4033 * xterm.c:
4034 * process.c:
4035 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4036 for including <sys/ioctl.h>.
4037 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4038 code is only used for MSDOS.
4039
1546c559
JL
40402010-03-31 Juri Linkov <juri@jurta.org>
4041
4042 * image.c: Add `Qextension_data'.
4043 (syms_of_image): Initialize and staticpro `Qextension_data'.
4044 (Fimage_metadata): Rename from `Fimage_extension_data'.
4045 (gif_load): Put GIF extension data to the property
4046 `Qextension_data'.
4047
6521c534
CY
40482010-03-31 Chong Yidong <cyd@stupidchicken.com>
4049
4050 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4051 * nsterm.h: Fix prototype.
4052
52c30783
EZ
40532010-03-31 Eli Zaretskii <eliz@gnu.org>
4054
4055 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4056 trailing whitespace in right-to-left rows.
4057
855a0da7
SM
40582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4059
4060 Get rid of the direct_output optimizations.
4061 * keyboard.c (nonundocount): Remove extern declaration.
4062 (command_loop_1): Remove brittle optimisation for cheap and
4063 common operations.
4064 * xdisp.c (redisplay_internal): Don't bother checking
4065 redisplay_performed_directly_p any more.
4066 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4067 any more.
4068 * dispnew.c (redisplay_performed_directly_p)
4069 (direct_output_for_insert, direct_output_forward_char):
4070 * dispextern.h (redisplay_performed_directly_p)
4071 (direct_output_for_insert, direct_output_forward_char): Remove.
4072 * cmds.c (nonundocount): Make it static.
4073
85738751 40742010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4075
4076 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4077
85738751 40782010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4079
4080 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4081 invisible (Bug#5766).
4082
85738751 40832010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4084
855a0da7
SM
4085 * xdisp.c (x_consider_frame_title, update_window_cursor):
4086 Remove HAVE_NS conditionals.
194d44e7 4087 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4088
4089 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4090 filename for the title.
4091 (ns_set_doc_edited): Do nothing if the selected window is a
4092 minibuffer window.
4093
4094 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4095 ns_set_doc_edited.
4096
4097 * nsterm.m: Remove unneeded prototype.
4098
85738751 40992010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4100
4101 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4102 in the DOC file. (Bug#5336)
4103
85738751 41042010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4105
4106 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4107
75d1428c
SM
41082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 * window.c (keys_of_window): Remove redundant/overridden bindings.
4111
82043cfb
EZ
41122010-03-30 Eli Zaretskii <eliz@gnu.org>
4113
4114 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4115 Restore original behavior when the iterator is not bidi_p.
4116
b5dd0ae7
DN
41172010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4118
4119 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4120
bd924a5d
EZ
41212010-03-30 Eli Zaretskii <eliz@gnu.org>
4122
4123 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4124 are outside the range of cached character positions.
4125
3580374b
JB
41262010-03-30 Juanma Barranquero <lekktu@gmail.com>
4127
4128 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4129
a7b02820
EZ
41302010-03-30 Eli Zaretskii <eliz@gnu.org>
4131
4132 Initial support for bidirectional editing.
4133
4134 * Makefile.in (obj): Include bidi.o.
4135 (bidi.o): New target.
4136
4137 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4138 ($(BLD)/bidi.$(O)): New target.
4139
4140 * bidi.c: New file.
4141
4142 * buffer.h (struct buffer): New members bidi_display_reordering
4143 and bidi_paragraph_direction.
4144
4145 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4146 and bidi_paragraph_direction.
4147 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4148 and bidi-paragraph-direction.
4149 (Fbuffer_swap_text): Swap the values of
4150 bidi_display_reordering and bidi_paragraph_direction.
4151
4152 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4153 (bidi_type_t, bidi_dir_t): New types.
4154 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4155 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4156 prev_stop, base_level_stop, and eol_pos.
4157 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4158 (IT_STACK_SIZE): Enlarge to 5.
4159 (struct glyph_row): New member reversed_p.
4160 <string_buffer_position>: Update prototype.
4161 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4162 glyph_row if bidi_it.paragraph_dir == R2L.
4163 (struct glyph): New members resolved_level and bidi_type.
4164
4165 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4166 processing or buffer's direction is right-to-left.
4167 (prepare_desired_row): Preserve the reversed_p flag.
4168 (row_equal_p): Compare the reversed_p attributes as well.
4169
4170 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4171 bidi_init_it and set it->paragraph_embedding from the current
4172 buffer's value of bidi_paragraph_direction.
4173 (reseat_1): Initialize bidi_it.first_elt.
4174 (set_iterator_to_next, next_element_from_buffer): Use the value of
4175 paragraph_embedding to determine the paragraph direction.
4176 (set_iterator_to_next): Under bidi reordering, call
4177 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4178 new_paragraph flag is set in the bidi iterator.
4179 (next_element_from_buffer): If bidi_it.first_elt is set,
4180 initialize paragraph direction and find the first character to
4181 display in the visual order. If reseated to a middle of a line,
4182 prime the bidi iterator starting at the line's beginning. Handle
4183 the situation where we overstepped stop_charpos due to
4184 non-linearity of the bidi iteration. Likewise for when we back up
4185 beyond the previous stop_charpos. When moving across stop_charpos,
4186 record it in prev_stop.
4187 (display_line): Set row->end and it->start for the next row to the
4188 next character in logical order. Always extend reversed_p rows to
4189 the end of line, even if they end at ZV. Copy the reversed_p flag
4190 to the next glyph row. Keep calling set_cursor_from_row for
4191 bidi-reordered rows even if we already have a possible candidate
4192 for cursor position. Set row_end after all the row's glyphs have
4193 been produced, by looping over the glyphs. Record the position
4194 after EOL in it->eol_pos, and use it to set end_pos of the last
4195 row produced for a continued line.
4196 <Qright_to_left, Qleft_to_right>: New variables.
4197 (syms_of_xdisp): Initialize and staticpro them.
4198 (string_buffer_position_lim): New function.
4199 (string_buffer_position): Most of code moved to
4200 string_buffer_position_lim. Last argument and return value are
4201 now EMACS_INT; all callers changed.
4202 (set_cursor_from_row): Rewritten to support bidirectional text and
4203 reversed glyph rows.
4204 (text_outside_line_unchanged_p, try_window_id): Disable
4205 optimizations if we are reordering bidirectional text and the
4206 paragraph direction can be affected by the change.
4207 (append_glyph, append_composite_glyph)
4208 (produce_image_glyph, append_stretch_glyph): Set the
4209 resolved_level and bidi_type members of each glyph.
4210 (append_glyph): If the glyph row is reversed, prepend the glyph
4211 rather than appending it.
4212 (handle_stop_backwards): New function.
4213 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4214 (reseat): call handle_stop_backwards to recompute prev_stop and
4215 base_level_stop for the new position.
4216 (handle_invisible_prop): Under bidi iteration, skip invisible text
4217 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4218 paragraph direction. Update IT->prev_stop after skipping
4219 invisible text.
4220 (move_it_in_display_line_to): New variables prev_method
4221 and prev_pos. Compare for strict equality in
4222 BUFFER_POS_REACHED_P.
4223 (try_cursor_movement): Examine all the candidate rows that occlude
4224 point, to return the best match. If rows are bidi-reordered
4225 and point moved backwards, back up to the row that is not a
4226 continuation line, and start looking for a suitable row from
4227 there.
4228
4229 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4230 rather than appending, if the glyph_row's reversed_p flag is set.
4231 Set the resolved_level and bidi_type members of each glyph.
4232
4233 * .gdbinit (pbiditype): New command.
4234 (pgx): Use it to display bidi level and type of the glyph.
4235 (pitx): Display some bidi information about the iterator.
4236 (prowlims, pmtxrows): New commands.
4237
32a8894e
DN
42382010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4239
4240 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4241 * s/usg5-4.h (LIBS_DEBUG):
4242 * s/irix6-5.h (C_DEBUG_SWITCH):
4243 * s/gnu-linux.h (LIBS_DEBUG):
4244 * s/darwin.h (LIBS_DEBUG):
4245 * s/bsd-common.h (LIBS_DEBUG):
4246 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4247 * m/iris4d.h (LIBS_DEBUG):
4248 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4249
4250 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4251 (LIBS_DEBUG): Remove definition.
4252
649dbf36
CY
42532010-03-27 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4256 Windows.
4257
cad4261f
YM
42582010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4259
4260 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4261 `connect' (Bug#5723).
4262
cd591dbc
HE
42632010-03-25 Helmut Eller <eller.helmut@gmail.com>
4264
4265 * process.c (Fmake_network_process): Call `select' for interrupted
4266 `connect' rather than creating new socket (Bug#5173).
4267
e867cb5d 42682010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4269
4270 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4271
4272 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4273
4274 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4275
e867cb5d 42762010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4277
4278 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4279 XLoadQueryFont.
4280
e867cb5d 42812010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4282
4283 * coding.c (decode_coding_ccl): Fix previous change for the
4284 multibyte case.
fb608df3
KH
4285 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4286 case that the output buffer is fullfilled.
4287 (encode_coding): Setup ccl program here.
fbdc1721 4288
5845f0ed
DN
42892010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4290
814fb708
DN
4291 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4292
5845f0ed
DN
4293 Simplify LIBS_MACHINE definitions.
4294 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4295 * m/iris4d.h (LIBS_MACHINE): Likewise.
4296 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4297 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4298 * s/netbsd.h: Remove commented out code.
5845f0ed 4299
b7064064
DN
43002010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4301
df7734b2
DN
4302 Remove dead code dealing with POSIX_SIGNALS.
4303 * atimer.c (set_alarm): Remove dead code, all USG systems define
4304 POSIX_SIGNALS.
4305 * data.c (arith_error): Likewise.
4306 * keyboard.c (input_available_signal, handle_user_signal)
4307 (interrupt_signal): Likewise.
4308 * process.c (sigchld_handler): Likewise.
4309 (create_process): Remove if 0 code. Remove HPUX conditional when
4310 !defined (POSIX_SIGNALS), it cannot be true.
4311 * syssignal.h: Remove USG5_4 and USG conditionals when
4312 !POSIX_SIGNALS, they cannot be true.
4313
b7064064
DN
4314 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4315 NO_SOCK_SIGIO, not used anymore.
4316
55da5ee3
DN
43172010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4318
0be96e3a
DN
4319 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4320 support vax on BSDs.
4321
55da5ee3
DN
4322 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4323 * s/aix4-2.h (ORDINARY_LINK): ... here.
4324
c0282183
AS
43252010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4326
82c3d67a
AS
4327 * Makefile.in (abs_builddir): Define.
4328 (bootstrap_exe): Use it.
4329 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4330
3613edce
SM
43312010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4332
4333 * Makefile.in (bootstrap_exe): Use an absolute name.
4334
7f110ddc
DN
43352010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4336
22e87574
DN
4337 Remove support for old GNU/Linux using libc version 5.
4338 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4339 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4340
05a670e6
DN
4341 Consolidate redundant definitions in s/bsd-common.h.
4342 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4343 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4344 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4345 doing it in all files that include this one.
4346 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4347 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4348 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4349 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4350 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4351 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4352 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4353 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4354 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4355
2968f561
DN
4356 Consolidate redundant definitions.
4357 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4358 it's undefined in all files that include this one.
4359 (POSIX_SIGNALS): Define here instead of doing it in all files that
4360 include this one.
4361 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4362 (POSIX_SIGNALS): Do not define.
4363 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4364 (POSIX_SIGNALS): Do not define.
4365 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4366 (POSIX_SIGNALS): Do not define.
4367
15d25dc0
DN
4368 Remove support for old UNIX System V systems.
4369 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4370 * s/usg-5-4-2.h: Remove.
4371
07e339e4
DN
4372 Remove support for Solaris on PPC and for old versions.
4373 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4374 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4375 that cancel each other.
4376 * s/sol2-3.h:
4377 * s/sol2-4.h:
4378 * s/sol2-5.h: Remove.
4379 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4380 (NO_REMAP): Remove, unused.
4381 (UNEXEC): Move definition ...
4382 * s/aix4-2.h (UNEXEC): ... here.
4383
7f110ddc
DN
4384 * s/openbsd.h: Remove support for non-ELF and for systems that do
4385 not support shared libraries.
4386 * s/netbsd.h:
4387 * s/freebsd.h: Likewise.
4388
605f35cd
DN
43892010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4390
4391 Remove non-working support for lynxos 3.0.
4392 * s/lynxos.h: Remove file.
4393
4394 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4395 COFF_BSD_SYMBOLS, nothing defines it anymore.
4396
aed71cf4
DN
43972010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4398
4399 Remove obsolete uses of HAVE_SHM.
4400 * emacs.c (standard_args):
4401 (Fdump_emacs):
4402 (syms_of_emacs): Remove code depending on HAVE_SHM.
4403
4404 * alloc.c: Remove HAVE_SHM dependent definition.
4405
4406 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4407
aded53ff
GM
44082010-03-18 Glenn Morris <rgm@gnu.org>
4409
17284745
GM
4410 * emacs.c (USAGE4): Hard-code bug address.
4411 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4412 (bug_reporting_address): Remove.
4413 (main): Don't call bug_reporting_address.
4414
aded53ff
GM
4415 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4416 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4417
303500aa
CY
44182010-03-15 Chong Yidong <cyd@stupidchicken.com>
4419
4420 * xfns.c (Fx_create_frame):
4421 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4422 on left.
4423
cef3058f
CY
44242010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4425
4426 * editfns.c (Fformat): Account for string precision when computing
4427 field width (Bug#5710).
4428
a647d59d
CY
44292010-03-12 Chong Yidong <cyd@stupidchicken.com>
4430
4fa42018
CY
4431 * xfns.c (Fx_create_frame): Set default to Qright.
4432
a647d59d
CY
4433 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4434 all window systems.
4435
6da23aaa
EZ
44362010-03-12 Eli Zaretskii <eliz@gnu.org>
4437
a96f6398 4438 These changes remove termcap.c from the build on Posix platforms.
83d02def 4439 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4440 (MSDOS_OBJ): ...to here.
4441 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4442 now identical to when LIBS_TERMCAP is defined.
4443
4444 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4445
4446 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4447
a96f6398 4448 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4449
288f9fc0
CY
44502010-03-10 Chong Yidong <cyd@stupidchicken.com>
4451
4452 * Branch for 23.2.
4453
d48cd3f4
SM
44542010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4455
4456 Cleanup setup of gl_state in various parts of the code.
4457 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4458 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4459 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4460 (skip_chars):
4461 * regex.c (regex_compile): Use it.
4462 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4463 it's now set in regex_compile when/if we need it.
4464
618db430
SM
44652010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4466
c0335e02
SM
4467 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4468 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4469 (QUIT): Use it to consolidate code and remove redundancy.
4470 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4471
254c06a8
SM
4472 * regex.c (regex_compile): Setup gl_state as well.
4473
618db430
SM
4474 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4475 (in_classes): Use CONSP before XCAR/XCDR.
4476
233f0c9f
CY
44772010-03-03 Chong Yidong <cyd@stupidchicken.com>
4478
4479 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4480 definitions, so that keyboard macros are correctly handled
4481 (Bug#5481).
4482
75f80e63
EZ
44832010-03-02 Eli Zaretskii <eliz@gnu.org>
4484
4485 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4486 text that could be relocated inside the call to emacs_mule_char.
4487 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4488 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4489
dcfb9bc4
KH
44902010-03-02 Kenichi Handa <handa@m17n.org>
4491
fc9a17bc
KH
4492 * character.c (parse_str_as_multibyte): Fix handling of the
4493 multibyte form of raw-bytes.
4494 (str_as_multibyte): Likewise.
4495
dcfb9bc4
KH
4496 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4497 form of raw-bytes.
4498
412c01b6
CY
44992010-02-28 Chong Yidong <cyd@stupidchicken.com>
4500
4501 * charset.c (load_charset_map_from_file)
4502 (load_charset_map_from_vector): Zero out allocated
4503 charset_map_entries before using them.
4504
df7e1ea0
AS
45052010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4506
4507 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4508
fe69a722
CY
45092010-02-27 Chong Yidong <cyd@stupidchicken.com>
4510
4ed28cf4
CY
4511 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4512 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4513
7379cfce
KH
45142010-02-26 Kenichi Handa <handa@m17n.org>
4515
f88cc4d6
KH
4516 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4517
7379cfce
KH
4518 * xdisp.c (reseat_to_string): Fix previous change.
4519
cf2fdcfb
CY
45202010-02-26 David Reitter <david.reitter@gmail.com>
4521
4522 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4523 Lisp_Object (Bug#4736).
4524
cc6c7c75
KH
45252010-02-25 Kenichi Handa <handa@m17n.org>
4526
4527 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4528
32e737d7
JD
45292010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4530
4531 * xterm.c (XTflash): Move declarations before statements.
4532
4533 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4534 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4535 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4536 (xg_create_tool_bar): Remove unused variables.
4537 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4538 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4539
676cae9f
CY
45402010-02-21 Chong Yidong <cyd@stupidchicken.com>
4541
4542 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4543
886cc2b8
SM
45442010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4545
4546 * term.c (fatal): Add a final \n if needed (bug#5596).
4547
ddb2d8e2
CY
45482010-02-18 Chong Yidong <cyd@stupidchicken.com>
4549
4550 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4551
2a4f8d3d
GM
45522010-02-18 Glenn Morris <rgm@gnu.org>
4553
4554 * callint.c (Finteractive): Doc fix.
4555
ebaf11b6
KH
45562010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4557
886cc2b8
SM
4558 * coding.c (record_conversion_result):
4559 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4560 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4561 memory allocation error.
4562
d0396581
KH
45632010-02-17 Kenichi Handa <handa@m17n.org>
4564
886cc2b8
SM
4565 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4566 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4567 (decode_coding): Setup ccl program here. Keep looping when the
4568 decoder stopped because the output buffer is
4569 fullfilled (bug#5534).
4570
4571 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4572
98599f74
JD
45732010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4574
471e4f04 4575 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4576 bug #5571.
886cc2b8 4577 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4578 overdrawn.
98599f74 4579
182659ae
JD
45802010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4581
4582 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4583 doing_interact here.
4584 (ice_connection_closed): New function.
4585 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4586 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4587 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4588 returns I/O error.
4589 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4590 bug #5512.
4591
9be32c4e 45922010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4593
4594 * nsfont.m (nsfont_open): The system's value for the font descent
4595 is negative, so round it down to avoid clipping.
4596
a2f3eb19
CY
45972010-02-06 Chong Yidong <cyd@stupidchicken.com>
4598
4599 * charset.c (load_charset_map_from_file)
4600 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4601 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4602
3088147c
CY
46032010-02-05 Chong Yidong <cyd@stupidchicken.com>
4604
4605 * charset.c (load_charset_map_from_file): Allocate large
4606 charset_map_entries structure on the heap rather than the stack.
4607 (Bug#5526).
4608
b57d9029
KH
46092010-01-31 Kenichi Handa <handa@m17n.org>
4610
4611 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4612 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4613
c67d885b
CY
46142010-01-31 Chong Yidong <cyd@stupidchicken.com>
4615
4616 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4617 <deactivated@gmail.com> (Bug#3605).
4618
8fab2362
CY
46192010-01-31 David De La Harpe Golden <david@harpegolden.net>
4620
4621 * fileio.c (Frename_file): Correctly rename symlinks to
4622 directories (Bug#5496).
4623
cb2a62f2
CY
46242010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4625
4626 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4627
944c7a26
AS
46282010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4629
4630 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4631
c024ac08
CY
46322010-01-29 Chong Yidong <cyd@stupidchicken.com>
4633
4634 * frame.c (DEFAULT_ROWS): Change default to 35.
4635
4636 * xfns.c (x_default_font_parameter): Change default XFT font to
4637 monospace-10 (Bug#3643).
4638
af93af83
EZ
46392010-01-29 Eli Zaretskii <eliz@gnu.org>
4640
4641 * w32inevt.c (key_event): Remove unnecessary comparison of
4642 event->uChar.AsciiChar with 128.
4643
ca0eb708
CY
46442010-01-28 Chong Yidong <cyd@stupidchicken.com>
4645
b242dbfc
CY
4646 * fileio.c (Frename_file): Fix last change (Bug#5487).
4647
ca0eb708
CY
4648 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4649
4650 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4651
45d45af5
JD
46522010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4653
4654 * xfns.c (Fx_create_frame): Remove window size matching code from
4655 2010-01-15.
a73f9c9d 4656 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4657
7e233730
JR
46582010-01-27 Jason Rumney <jasonr@gnu.org>
4659
4660 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4661 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4662
86e893e3
KH
46632010-01-27 Kenichi Handa <handa@m17n.org>
4664
4665 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4666 pattern string (Bug#4209).
86e893e3 4667
8719abec
CY
46682010-01-27 David De La Harpe Golden <david@harpegolden.net>
4669
4670 * fileio.c (Frename_file): Call copy-directory and
4671 delete-directory for directories, in order to handle cross-device
4672 renaming (Bug#3353).
4673
844794c8
JD
46742010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4675
aa3e13b5 4676 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4677 sizes 24 and 10. Bug #3643.
844794c8 4678
bd4b5750
SM
46792010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4680
8dc1adf6 4681 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4682 * keymap.c (shadow_lookup): Add `remap' arg.
4683 (describe_map, describe_vector): Update calls to shadow_lookup.
4684 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4685 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4686 perform remapping during shadow_lookup check of remapped_sequences.
4687
285d07e2
CY
46882010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4689
4690 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4691 png_check_sig, which has been removed in libpng 1.4.
4692
c6d09b8d
CY
46932010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4694
4695 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4696 lacks this header file).
4697
3d782998
YM
46982010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4699
4700 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4701 as in Emacs 22.
4702
2aff7c53
YM
47032010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4704
4705 * lisp.h (make_pure_string): String pointer arg now points to const.
4706
4707 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4708 args now point to const.
4709
74327f7a
EZ
47102010-01-22 Eli Zaretskii <eliz@gnu.org>
4711
4712 * lread.c (Fload): Don't treat files without .elc extension as
4713 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4714 them. (bug#5303)
4715
4d1e6632
KH
47162010-01-20 Kenichi Handa <handa@m17n.org>
4717
4718 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4719 treat the source as actual byte sequence.
4720
1fdede8f
AM
47212010-01-19 Alan Mackenzie <acm@muc.de>
4722
4723 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4724 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4725 `signal_after_change_p' to `coherent_change_p', and make the
4726 invocation of `modify_region' conditional on it.
4727
67477f30
JD
47282010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4729
4730 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4731 for debug purpose.
4732 (syms_of_xsettings): Declare xft-settings.
4733
244b023e
CY
47342010-01-18 Chong Yidong <cyd@stupidchicken.com>
4735
4736 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4737
617364fe
CY
47382010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4739
4740 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4741
4fe22cdf
CY
47422010-01-16 Chong Yidong <cyd@stupidchicken.com>
4743
4744 * emacs.c (standard_args): Adjust arg priorities to reflect how
4745 they are processed in startup.el.
4746
e118d2be
AS
47472010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4748
4749 * Makefile.in (lisp, shortlisp): Update.
4750
523ae620
SM
47512010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4752
4753 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4754 code, link the new kboard into all_kboard before running Lisp code,
4755 and protect the new terminal with GCPRO (Bug#5365).
4756 (x_term_init): Remove unused var `atom'.
4757 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4758
f0d13888
JD
47592010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4760
4761 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4762 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4763 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4764 this. Bug #3643.
f0d13888 4765
cc320f07
KH
47662010-01-15 Kenichi Handa <handa@m17n.org>
4767
4768 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4769
7ffdf101
CY
47702010-01-15 Chong Yidong <cyd@stupidchicken.com>
4771
4772 * nsterm.m (Qnone): Define.
4773
4774 * nsfns.m (Qnone): Move definition to nsterm.m.
4775
d12bd917
KH
47762010-01-14 Kenichi Handa <handa@m17n.org>
4777
4778 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4779 systems.
4780
d9a7c140
KH
47812010-01-14 Kenichi Handa <handa@m17n.org>
4782
4783 Make auto-composition work on all buffers even if they are
4784 fundamental mode.
4785
4786 * composite.c (Vauto_composition_mode): New variable.
4787 (composition_compute_stop_pos): Check Vauto_composition_mode
4788 instead of Vauto_composition_function.
4789 (composition_adjust_point, Ffind_composition_internal): Likewise.
4790 (syms_of_composite): Declare Lisp variable
4791 "auto-composition-mode" here.
4792
63286bb2
CY
47932010-01-13 Chong Yidong <cyd@stupidchicken.com>
4794
4795 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4796 during call to vendor-specific-keysyms (Bug#5365).
4797
c2623ee7
YM
47982010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4799
4800 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4801 Call SIGNAL_THREAD_CHECK (Bug#5333).
4802
4803 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4804 Call SIGNAL_THREAD_CHECK.
4805
0b5397c2
SM
48062010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4807
4808 Try to fix bug#5314. This is probably not the final word, tho.
4809 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4810 recent-auto-save-p as a side-effect.
4811 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4812 * buffer.c (Fkill_buffer, reset_buffer):
4813 * editfns.c (Fsubst_char_in_region):
4814 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4815 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4816
dc954cb2
KH
48172010-01-13 Kenichi Handa <handa@m17n.org>
4818
4819 Display buffer name, etc. in mode line by composing correctly.
4820
4821 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4822 STRING is not nil.
0b5397c2 4823 (display_mode_element): Adjust for the change of
dc954cb2
KH
4824 decode_mode_spec and display_line.
4825 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4826 (display_string): Handle the case that STRING is non-null and
4827 LISP_STRING is not nil.
4828
0b5397c2
SM
4829 * xterm.c (x_draw_composite_glyph_string_foreground):
4830 Pay attention to s->face->overstrike.
dc954cb2
KH
4831
4832 * composite.c (composition_reseat_it): Don't check PT if STRING is
4833 non nil.
4834
4a00eaca
YM
48352010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4836
4837 * keyboard.c (read_char): Don't apply previous change when current
4838 buffer is unchanged by command execution.
4839
60abb287
JD
48402010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4841
4842 * keyboard.c (read_char): Return after executing from special map.
4843
893db5bc
GM
48442010-01-12 Glenn Morris <rgm@gnu.org>
4845
4846 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4847 bug-gnu-emacs rather than emacs-pretest-bug.
4848
4d03ece0
CY
48492010-01-11 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4852 initializing the Lisp variables that depend on them.
4853
1df47e38
YM
48542010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4855
4856 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4857 Clear areas that will not be updated after change of menu bar lines.
4858 Clear the menu bar window's current matrix when the window gets empty.
4859
2f1c6384
CY
48602010-01-09 Chong Yidong <cyd@stupidchicken.com>
4861
e398c61c
CY
4862 * intervals.h, textprop.c (extend_property_ranges): Return value
4863 and args changed. Discard properties that begin at or after the
4864 new end (Bug#5306).
4865
4866 * editfns.c (Fformat): Caller changed.
4867
e5a29a10
CY
4868 * nsterm.m (ns_set_default_prefs): Delete function.
4869 (syms_of_nsterm): Initialize ns_command_modifier,
4870 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4871 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4872
2f1c6384
CY
4873 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4874 position (Bug#4040).
4875
d427a9fa
EZ
48762010-01-09 Eli Zaretskii <eliz@gnu.org>
4877
4878 * editfns.c (Ffloat_time): Doc fix.
4879
21b9df2f
JD
48802010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4881
4882 * xfns.c (Fx_create_frame): Don't create frame larger than display
4883 by default bug#3643.
4884
4b00d3b1
YM
48852010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4886
4887 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4888 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4889 windows above internal border.
4890
4891 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4892 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4893 windows above internal border.
4894
4895 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4896 tool bar windows specially.
4897
4898 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4899
4900 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4901 specially.
4902 (XTflash): Take account of menu bar height.
4903
4904 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4905 specially.
4906
5075d853
JD
49072010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4908
ac146f82 4909 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4910 also be true before we can return early (bug #5339).
4911
474217c8
CY
49122010-01-06 David Reitter <david.reitter@gmail.com>
4913
4914 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4915 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4916 (Bug#3233).
4917
c0e6d47d
JD
49182010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4919
d0cf45b7
JD
4920 * font.c (font_open_entity): Enable chache and call cached_font_ok
4921 for the driver if defined.
4922 (QCuser_spec): New symbol.
4923 (font_spec_from_name): Save name as user-spec.
4924 (font_load_for_lface): Keep user-spec instead of name.
4925 (font_open_by_name): Save name as user-spec.
4926 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4927 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4928
4929 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4930 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4931 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4932
4933 * font.h (struct font_driver): Add cached_font_ok.
4934
c0e6d47d
JD
4935 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4936
7c583cd8
JD
49372010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4938
4939 * xterm.c (x_new_font): Move code for setting rows/cols before
4940 resizing ...
ac146f82 4941 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4942
4943 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4944 (xg_frame_resized, xg_frame_set_char_size):
4945 Call xg_clear_under_internal_border.
7c583cd8 4946 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4947
03f77f0a
CY
49482010-01-05 Chong Yidong <cyd@stupidchicken.com>
4949
4950 * keyboard.c (read_key_sequence): Catch keyboard switch after
4951 making a new tty frame (Bug#5095).
4952
2a1ef5be
KH
49532010-01-05 Kenichi Handa <handa@m17n.org>
4954
4955 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4956
e3eb1dae
SM
49572010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4958
4959 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4960 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4961 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4962
777013f2
MA
49632010-01-03 Michael Albinus <michael.albinus@gmx.de>
4964
4965 * dbusbind.c (xd_add_watch): Improve debug message.
4966 (xd_remove_watch): Improve debug message. If DATA is the session
4967 bus, unset D-Bus session environment.
4968 (Fdbus_init_bus): Pass the bus as argument to
4969 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4970
8932b1c2
CY
49712010-01-01 Chong Yidong <cyd@stupidchicken.com>
4972
87231e2c
CY
4973 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4974
4801c5fa
CY
4975 * lread.c (syms_of_lread): Make it clearer that these are the
4976 names of loaded files (Bug#5068).
4977
8932b1c2
CY
4978 * eval.c (run_hook_with_args): Handle the case where the global
4979 value has the obsolete single-function form (Bug#5026).
4980
11e3c684
CY
49812009-12-27 Chong Yidong <cyd@stupidchicken.com>
4982
4983 * minibuf.c (Fall_completions): Minor optimization.
4984
5b28ce35
EZ
49852009-12-26 Eli Zaretskii <eliz@gnu.org>
4986
5ce6e4f4
JB
4987 * .gdbinit (pgx): Fix display of composite glyphs.
4988 Display cmp.from and cmp.to as well.
4989 (pitx): Fix last change.
5b28ce35 4990
bcffff46
KH
49912009-12-25 Kenichi Handa <handa@m17n.org>
4992
4993 * composite.h (composition_adjust_point): Update prototype.
4994
4995 * composite.c (composition_reseat_it): Don't make a composition
4996 spanning over point.
4997 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4998 composable characters.
4999 (composition_adjust_point): New arg NEW_PT. Callers changed.
5000
5001 * keyboard.c (command_loop_1): Force redisplay if the last point
5002 was within a composition.
5003 (adjust_point_for_property): Don't adjust point for automatic
5004 composition when called after buffer modification.
5005
3f670e9a
EZ
50062009-12-19 Eli Zaretskii <eliz@gnu.org>
5007
5ce6e4f4
JB
5008 * .gdbinit (pitx): Don't use enum names, use their values.
5009 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5010 (pgx): Don't use enum names, use their values.
5011 (pitmethod): New helper command.
5012 (pitx): Use it to display iteration method.
5013 (pgrowit): New command.
5014
ad903955
EZ
5015 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5016
3f670e9a
EZ
5017 Update dependencies in Makefile.in.
5018
5019 * Makefile.in (alloc.o): Depend on termhooks.h.
5020 (atimer.o): Depend on blockinput.h.
5021 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5022 and frame.h.
5023 (callint.o): Depend on systime.h, coding.h, and composite.h.
5024 (callproc.o): Depend on buffer.h.
5025 (casefiddle.o): Don't depend on charset.h.
5026 (casetab.o): Depend on character.h.
5027 (ccl.o): Depend on composite.h.
5028 (chartab.o): Depend on ccl.h.
5029 (cm.o): Depend on dispextern.h.
5030 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5031 (coding.o): Don't depend on $(INTERVALS_H).
5032 (composite.o): Don't depend on dispextern.h explicitly (it's in
5033 $(INTERVALS_H)). Depend on ccl.h.
5034 (data.o): Depend on systime.h, coding.h, composite.h,
5035 dispextern.h, font.h, and ccl.h.
5036 (dired.o): Depend on composite.h.
5037 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5038 composite.h (it's in $(INTERVALS_H)).
5039 (doc.o): Depend on systime.h, coding.h, and composite.h.
5040 (editfns.o): Don't depend explicitly on dispextern.h.
5041 (emacs.o): Depend on frame.h and coding.h.
5042 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5043 (fileio.o): Depend on frame.h and commands.h. Don't depend
5044 explicitly on dispextern.h.
5045 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5046 composite.h.
5047 (fns.o): Don't depend on termhooks.h.
5048 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5049 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5050 coding.h, $(INTERVALS_H), window.h, xterm.h.
5051 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5052 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5053 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5054 fontset.h, ccl.h, and ftfont.h.
5055 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5056 (gtkutil.o): Depend on dispextern.h and composite.h.
5057 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5058 termhooks.h, and ccl.h.
5059 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5060 (intervals.o): Depend on systime.h and coding.h.
5061 (keyboard.o): Depend on composite.h and coding.h.
5062 (keymap.o): Depend on coding.h and frame.h.
5063 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5064 (macros.o): Depend on systime.h, coding.h, and composite.h.
5065 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5066 and atimer.h.
5067 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5068 dispextern.h explicitly.
0b5397c2
SM
5069 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5070 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5071 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5072 (regex.o): Don't depend on charset.h.
5073 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5074 (search.o): Don't depend explicitly on composite.h.
5075 (sound.o): Depend on atimer.h and systime.h.
5076 (syntax.o): Don't depend explicitly on composite.h.
5077 (sysdep.o): Depend on coding.h and composite.h.
5078 (term.o): Depend on xterm.h and buffer.h.
5079 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5080 (textprop.o): Don't depend on dispextern.h explicitly.
5081 (undo.o): Depend on dispextern.h.
5082 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5083 dispextern.h and composite.h explicitly.
5084 (xdisp.o): Depend on ccl.h.
5085 (xfaces.o): Depend on coding.h and ccl.h.
5086 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5087 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5088 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5089 ftfont.h.
5090 (xgselect.o): New dependency.
5091 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5092 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5093 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5094 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5095 (xsmfns.o): Depend on frame.h and dispextern.h.
5096 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5097 sysselect.h.
5098
7a6f7fea
AS
50992009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5100
5101 * font.c (Fclear_font_cache): Pass correct cache argument to
5102 font_clear_cache.
5103
f4c21026
AS
51042009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5105
5106 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5107 twice.
5108
f7ab0997
CY
51092009-12-15 Chong Yidong <cyd@stupidchicken.com>
5110
5111 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5112 calling file-remote-p. Reported by Jim Meyering.
5113
fa8e045a
MA
51142009-12-15 Michael Albinus <michael.albinus@gmx.de>
5115
5116 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5117 avoid compiler warnings. (Bug #5217)
fa8e045a 5118
a63dba42
KH
51192009-12-14 Kenichi Handa <handa@m17n.org>
5120
5121 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5122 in 8-bit encoding.
5123
5ce6e4f4 51242009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5125
5126 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5127 tooltip windows.
5128
223e5fc6
JD
51292009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5130
36acb2a7
JD
5131 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5132 Xatom_net_window_type.
5133
5134 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5135 Xatom_net_window_type.
5136
b8f00677
JD
5137 * xterm.c (my_log_handler): New function.
5138 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5139 so we can filter out buggy messages. (Bug #5120).
b8f00677 5140
e5f0bc9a
JD
5141 * xterm.c (xg_scroll_callback): Parameter list changed,
5142 use parameter GtkScrollType to determine scroll/line/page.
5143 Only allow dragging if a button < 4 is grabbed (bug #5177).
5144 (xg_end_scroll_callback): New function.
5145 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5146 xg_create_scroll_bar.
5147
5148 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5149 (scroll_end_callback): Remove.
5150 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5151 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5152 bug #5177.
e5f0bc9a
JD
5153 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5154 bug #5177.
5155
5156 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5157 (xg_create_scroll_bar): Add GCallback end_callback.
5158
223e5fc6
JD
5159 * xftfont.c (QClcdfilter): New variable.
5160 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5161 (syms_of_xftfont): Initialize QClcdfilter.
5162
3c055b77
JD
51632009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5164
5165 * xsettings.c (struct xsettings): Add member seen.
5166 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5167 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5168 (apply_xft_settings): Only update Xft settings with what member seen
5169 indicates as new.
5170
05fe33ff
EZ
51712009-12-12 Eli Zaretskii <eliz@gnu.org>
5172
c4cc8b9a 5173 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5174 (struct glyph): Use EMACS_INT for charpos.
5175 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5176 region_beg_charpos, region_end_charpos,
5177 redisplay_end_trigger_charpos, and also for
5178 iterator_stack_entry.end_charpos and
5179 iterator_stack_entry.stop_charpos.
5180
e8d7886a
JD
51812009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5182
5ce6e4f4 5183 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5184 (xg_create_scroll_bar): Call scroll_end_callback on button release
5185 event (bug #5177).
5186 (xg_event_is_for_scrollbar): != replaced with ==.
5187
d0db2ec8
KH
51882009-12-12 Kenichi Handa <handa@m17n.org>
5189
5190 * ftfont.c (struct ftfont_info): New member matrix.
5191 (ftfont_open): Setup xftfont_info->matrix.
5192 (MFLTFontFT): New member matrix.
5193 (FLOOR, CEIL, ROUND): New macros.
5194 (ftfont_get_metrics): Handle matrix transformation.
5195 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5196
5197 * xftfont.c (struct xftfont_info): New member matrix.
5198 (xftfont_open): Setup xftfont_info->matrix.
5199
52002009-12-10 Kenichi Handa <handa@m17n.org>
5201
5202 * xdisp.c (append_space_for_newline): Consider face-remapping.
5203
2cc7b62f
AS
52042009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5205
b87dd913
AS
5206 * xsettings.c: Include "keyboard.h".
5207
eba5eb94
AS
5208 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5209
2cc7b62f
AS
5210 Fix implicit function declarations.
5211 * cmds.c: Include "frame.h".
5212 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5213 * frame.h: Move declaration of delete_frame outside of
5214 HAVE_WINDOW_SYSTEM.
5215
a4ef73c8
CY
52162009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5217
5218 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5219
5220 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5221 GTK builds.
5222
944a300c
AS
52232009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5224
5225 * unexelf.c (unexec): Don't search for .data twice.
5226
022eef62
CY
52272009-12-05 Chong Yidong <cyd@stupidchicken.com>
5228
426ac949
CY
5229 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5230 if push failed.
5231 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5232 of push_display_prop (Bug#5000).
5233
022eef62
CY
5234 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5235 value of font_list_entities (Bug#5085).
5236
be95bee9
JB
52372009-12-04 Juanma Barranquero <lekktu@gmail.com>
5238
5239 Fix `string-to-number' to deal consistently with integers and floats.
5240 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5241 trailing characters, not just whitespace.
5242 (read1): Pass new arg 0 to keep old behavior.
5243 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5244 trailing chars, as it is already done for integers. Doc fixes.
5245 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5246
24c2d7ce
EZ
52472009-12-04 Eli Zaretskii <eliz@gnu.org>
5248
0b5397c2
SM
5249 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5250 Delete unused enumeration value.
24c2d7ce 5251
7e694795
EZ
52522009-12-03 Eli Zaretskii <eliz@gnu.org>
5253
5254 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5255
84b31826
SM
52562009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5257
5258 * process.c (Fmake_network_process): Fix up the tests for
5259 "connectionless socket", so they DTRT for seqpacket sockets as well.
5260
f00c449b
SM
52612009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5262
5263 * process.c (Qseqpacket): New symbol.
5264 (HAVE_SEQPACKET): New macro.
5265 (Fmake_network_process): Accept new :type `seqpacket'.
5266 (init_process): Add `seqpacket' feature when applicable.
5267 (syms_of_process): Initialize Qseqpacket.
5268
8096a0ff
YM
52692009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5270
5271 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5272 if entity is Qnil.
5273
3e0de07f
SM
52742009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5275
5276 * print.c (print_preprocess): Preprocess the key_and_value table of
5277 hashtables, even tho they're "hidden" (bug#5082).
5278
abeafb2a
JD
52792009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5280
5281 * frame.c (frame_make_pointer_invisible)
5282 (frame_make_pointer_visible): Declare f before statements.
5283
4bf47195
EZ
52842009-11-28 Eli Zaretskii <eliz@gnu.org>
5285
5286 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5287 omitted dependencies on lisp.h.
5288
c525b3f2
JD
52892009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5290
ece2d4ed
JD
5291 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5292 is NULL.
5293
5294 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5295
5296 * frame.c (frame_make_pointer_invisible)
3e0de07f 5297 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5298 frame.
5299
c525b3f2
JD
5300 * search.c (simple_search): Remove warning by making *p const.
5301
2f00e299
DN
53022009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5303
5304 * xdisp.c (power_letter): Remove duplicate const.
5305
084b049b
JD
53062009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5307
a1fadc6f
JD
5308 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5309
5ce6e4f4 5310 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5311 defaults (bug #5025).
5312
28259cac
SM
53132009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5314
5315 * insdel.c (adjust_markers_for_delete): Move it in the
5316 right direction! (bug#4803)
5317
e8e14166
YM
53182009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5319
5320 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5321
5322 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5323
86677b58
GM
53242009-11-24 Glenn Morris <rgm@gnu.org>
5325
5326 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5327
581e51e8
JD
53282009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5329
cfc86c7a
JD
5330 * Makefile.in: Must create deps for ecrt0.o in its rule.
5331
581e51e8
JD
5332 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5333 because that is what Gtk+ font dialog understands.
5334
5335 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5336 of Fcopy_sequence.
5337 (font_open_by_name): Put name given into QCname for font-object returned.
5338
5339 * frame.c (x_set_font): Save original font name as frame parameter
5340 font-parameter.
5341
5342 * xsettings.c (set_default_xft_settings): New function.
5343 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5344 is found.
5345
8b264ecb
AS
53462009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5347
5348 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5349 searching backwards through multibyte buffer.
5350
872870b2
JD
53512009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5352
5353 * xterm.c: #include xgselect.h.
5354 (x_initialize): Call xgselect_initialize.
5355
5356 * xsettings.c (something_changedCB): C++ comments => C comments.
5357 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5358 does that now.
5359
5360 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5361 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5362 (scroll_bar_button_cb): Remove.
5ce6e4f4 5363 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5364 event.
5365 (xg_create_scroll_bar): Don't bind button-press-event and
5366 button-release-event.
5367
5368 * process.c: Include xgselect.h if defined (USE_GTK) ||
5369 defined (HAVE_GCONF).
5370 (wait_reading_process_output): Call xg_select for the same condition.
5371
5372 * xgselect.c (xg_select): New function to better integrate with
5373 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5374
5375 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5376
5377 * Makefile.in (XOBJ): Add xgselect.o.
5378
62a6e103
AS
53792009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5380
0b5397c2
SM
5381 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5382 Remove ignored second argument. All callers changed.
62a6e103
AS
5383 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5384 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5385 * xdisp.c (string_char_and_length): Likewise.
5386
b0ca0f33
DN
53872009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5388
5389 * xterm.c (x_new_font):
5390 * print.c (print_object):
5391 * cmds.c (Fself_insert_command): Move declarations before statements.
5392
dd5a6279
CY
53932009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5394
5395 * s/cygwin.h: Remove unneeded linker flags.
5396
4a8e097d
JD
53972009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5398
0d1d0d26
JD
5399 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5400
5401 * xsettings.h: Declare xsettings_get_system_font.
5402
5403 * xsettings.c (xsettings_get_system_font): New function.
5404 (init_gconf): No use initiating gconf unless we have Xft also.
5405 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5406 HAVE_GCONF.
5407
4a8e097d
JD
5408 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5409 add a blank entry so it doesn't collapse into nothing.
5410
8ab1650e
SM
54112009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5412
5413 * lread.c (Funintern): Comment out last change.
5414
82c602f0
RS
54152009-11-19 Richard Stallman <rms@gnu.org>
5416
5417 * lread.c (Funintern): Error if symbol is t or nil.
5418
87e32266
SM
54192009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5420
5421 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5422 representation of Lisp integers.
5423 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5424
1b9ac145
AS
54252009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5426
5427 * lisp.h: Remove declaration of Ffont_get_system_font.
5428 * xfns.c: Move include of "xsettings.h".
5429 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5430
dfb3c4c6
JD
54312009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5432
87e32266
SM
5433 * xsettings.c (something_changedCB, Ffont_get_system_font):
5434 Check use_system_font.
dfb3c4c6
JD
5435 (syms_of_xsettings): DEFVAR font-use-system-font.
5436
9370c1d8
AS
54372009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5438
25fe851a
AS
5439 * xfns.c (x_default_font_parameter): Remove dead assignment.
5440
9370c1d8
AS
5441 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5442
637fa988
JD
54432009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5444
87e32266 5445 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5446 not have FC_LCD_*. #define them if not there.
a6eb20d8 5447
87e32266 5448 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5449
637fa988
JD
5450 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5451
5452 * xterm.c (handle_one_xevent): Call xft_settings_event for
5453 ClientMessage, PropertyNotify and DestroyNotify.
5454 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5455 Call xsettings_initialize.
5456
5457 * xftfont.c (xftfont_fix_match): New function.
5458 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5459 Call xftfont_fix_match after XftFontMatch.
5460
5461 * xfont.c (xfont_driver): Initialize all members.
5462
87e32266
SM
5463 * xfns.c (x_default_font_parameter):
5464 Try font from Ffont_get_system_font.
637fa988
JD
5465 Do not get font from x_default_parameter if we got one from
5466 Ffont_get_system_font.
87e32266 5467 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5468
5469 * w32font.c (w32font_driver): Initialize all members.
5470
5471 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5472
5473 * lisp.h: Declare syms_of_xsettings.
5474
87e32266
SM
5475 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5476 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5477
5478 * ftfont.c (ftfont_filter_properties): New function.
5479
5480 * frame.c (x_set_font): Remove unused variable lval.
5481
87e32266 5482 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5483
5484 * font.c (font_put_extra): Don't return if val is nil, it means
5485 boolean option is off.
5486 (font_parse_fcname): Collect all extra properties in extra_props
5487 and call filter_properties for all drivers with extra_props and
5488 font as parameter.
87e32266
SM
5489 (font_open_entity): Do not use cache, it does not pick up new
5490 fontconfig settings like hinting.
637fa988
JD
5491 (font_load_for_lface): If spec had a name in it, store it in entity.
5492
a73f9c9d 5493 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5494
5495 * config.in: HAVE_GCONF is new.
5496
5497 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5498 xsettings.o is new.
5499
5a942932
KH
55002009-11-17 Kenichi Handa <handa@m17n.org>
5501
5502 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5503 back to the default font in case that no suitable font is found.
5504
b7c7a4d1
SM
55052009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5506
5507 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5508 Suggested by Chad Brown <yandros@mit.edu>.
5509 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5510
072f1e39
JD
55112009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5512
5513 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5514
5d1e70a2
AS
55152009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5516
87e32266 5517 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5518
a53cfbe5
JD
55192009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5520
473a99b7
JD
5521 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5522 has a parent.
5523
a53cfbe5 5524 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5525 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5526
5527 * config.in: Generated (AUTO_DEPEND).
5528
f04bb9b2
MA
55292009-11-13 Michael Albinus <michael.albinus@gmx.de>
5530
b7c7a4d1 5531 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5532 Vdbus_registered_functions_table, because it contains also
5533 properties. Fix docstring.
b7c7a4d1 5534 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5535
8f11f7ec
SM
55362009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5537
5538 * alloc.c (mark_object): Don't reprocess marked strings.
5539 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5540 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5541
8a605fe8
KH
55422009-11-13 Kenichi Handa <handa@m17n.org>
5543
8f11f7ec 5544 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5545 semantics of Vword_combining_categories.
5546 (Vword_combining_categories): Describe the slight change of the
5547 semantics.
5548
241c4680
EZ
55492009-11-13 Eli Zaretskii <eliz@gnu.org>
5550
5551 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5552
5553 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5554
5d58e44c
SM
55552009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5556
5557 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5558
5e13f9d3
JB
55592009-11-12 Juanma Barranquero <lekktu@gmail.com>
5560
5561 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5562
cf54c754
DR
55632009-11-11 David Reitter <david.reitter@gmail.com>
5564
5565 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5566 variables to fix 2009-11-09 change.
5567
a4ada374
DN
55682009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5569
91433552
DN
5570 * process.c (ifflag_def): Make flag_sym constant.
5571 (Fnetwork_interface_info): Use a constant pointer.
5572 (ifflag_table):
5573 * xfns.c (cursor_bits):
5574 * xdisp.c (power_letter):
5575 * termcap.c (speeds, esctab):
5576 * sysdep.c (baud_convert):
5577 * keyboard.c (lispy_accent_codes, modifier_names):
5578 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5579 (jpeg_format, tiff_format, gif_format, svg_format)
5580 (interlace_start, interlace_increment, gs_format):
5581 * gtkutil.c (separator_names):
5582 * fringe.c (swap_nibble):
5583 * fns.c (base64_value_to_char, base64_char_to_value):
5584 * fileio.c (make_temp_name_tbl):
5585 * coding.c (suffixes): Make constant.
5586
f4265f6c
DN
5587 * frame.c (make_initial_frame):
5588 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5589 build_string.
5590 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5591
04420943
DN
5592 * s/freebsd.h:
5593 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5594
0a5d24ae
DN
5595 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5596 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5597
a4ada374
DN
5598 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5599 * xterm.c (syms_of_xterm):
5600 * xfaces.c (syms_of_xfaces):
5601 * xdisp.c (syms_of_xdisp):
5602 * lread.c (syms_of_lread):
5603 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5604 build_string.
91433552 5605
a4ada374
DN
5606 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5607
af98fc7f
SM
56082009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5609
8ab1650e 5610 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5611
e90292a9
JD
56122009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5613
5614 * keyboard.h: Declare timer_check.
5615
5616 * keyboard.c (timer_check_2): New function that does what the old
5617 timer_check did.
5618 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5619 returned, i.e. don't return -1 with timers pending.
5620
5621 * process.c: Remove extern declaration of timer_check.
5622
5623 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5624 even if timer_check returned -1.
5625
af98fc7f
SM
5626 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5627 xg_dialog_data.
e90292a9
JD
5628 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5629 the event loop.
5630 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5631 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5632 Destroy the dialog after xg_dialog_run.
5633
045b83c0
SM
56342009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5635
5636 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5637
1fb99a3a
JD
56382009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5639
5640 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5641
04e452cb
JB
56422009-11-09 Juanma Barranquero <lekktu@gmail.com>
5643
5644 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5645
ef7417fd
SM
56462009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5647
5648 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5649 w32menu.c, and nsmenu.m.
5650 Simplify the obsolete case where position is nil.
5651 (cleanup_popup_menu): New function, moved from nsmenu.m.
5652 (struct skp): Remove slot `notreal'.
5653 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5654 adjust callers.
5655 (single_menu_item): Adjust call to parse_menu_item.
5656 (syms_of_menu): Defsubr x-popup-menu.
5657 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5658 (keymap_panes): Don't export any more.
5659 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5660 (xmenu_show): Declare.
5661 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5662 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5663 * keyboard.h (parse_menu_item): Update declaration.
5664 * xmenu.c (Fx_popup_menu): Remove.
5665 (syms_of_xmenu): Don't defsubr x-popup-menu.
5666 * w32menu.c (Fx_popup_menu): Remove.
5667 (syms_of_w32menu): Don't defsubr x-popup-menu.
5668 * nsmenu.m (cleanup_popup_menu): Remove.
5669 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5670 moved to menu.c's Fx_popup_menu.
5671 (Fx_popup_menu): Remove.
5672 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5673 menu_items (it's done in menu.c already).
5674
424d6179
SM
56752009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5676
5677 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5678 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5679
c0df13a6 56802009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5681
5682 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5683 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5684 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5685 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5686
2de9f71c
SM
56872009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5688
5689 Let integers use up 2 tags to give them one extra bit and thus double
5690 their range.
5691 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5692 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5693 New macros.
5694 (enum Lisp_Type): Use them. Give explicit values.
5695 (Lisp_Type_Limit): Remove.
5696 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5697 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5698 Pay attention to USE_2_TAGS_FOR_INTS.
5699 (INTEGERP): Use LISP_INT_TAG_P.
5700 * fns.c (internal_equal): Simplify the default case.
5701 (sxhash): Use case_Lisp_Int.
5702 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5703 any more.
5704 (Ftype_of): Use case_Lisp_Int.
5705 (store_symval_forwarding): Take into account the fact that Ints can
5706 now have more than one tag.
5707 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 5708 (buffer_slot_type_mismatch):
2de9f71c
SM
5709 * xfaces.c (face_attr_equal_p):
5710 * print.c (print_object):
5711 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5712 Use case_Lisp_Int.
5713
323637a2
EZ
57142009-11-06 Eli Zaretskii <eliz@gnu.org>
5715
7ac65b38
EZ
5716 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5717
323637a2
EZ
5718 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5719 warning.
5720
e511451f
JD
57212009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5722
5723 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5724
5725 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5726
5727 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5728 ButtonPressRelease and MotionNotify (bug#4870).
5729
5e2327cf
DN
57302009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5731
5adc433e
DN
5732 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5733
d67b4f80
DN
5734 * xterm.c (syms_of_xterm):
5735 * xselect.c (syms_of_xselect):
5736 * xmenu.c (syms_of_xmenu):
5737 * xfns.c (syms_of_xfns):
5738 * xfaces.c (syms_of_xfaces):
5739 * xdisp.c (syms_of_xdisp):
5740 * window.c (syms_of_window):
5741 * w32fns.c (syms_of_w32fns):
5742 * undo.c (syms_of_undo):
5743 * textprop.c (syms_of_textprop):
5744 * terminal.c (syms_of_terminal):
5745 * syntax.c (syms_of_syntax):
5746 * sound.c (syms_of_sound):
5747 * search.c (syms_of_search):
5748 * print.c (syms_of_print):
5749 * minibuf.c (syms_of_minibuf):
5750 * macros.c (syms_of_macros):
5751 * keymap.c (syms_of_keymap, initial_define_key)
5752 (initial_define_lispy_key):
5753 * keyboard.c (syms_of_keyboard):
5754 * insdel.c (syms_of_insdel):
5755 * image.c (syms_of_image):
5756 * fringe.c (syms_of_fringe):
5757 * frame.c (syms_of_frame):
5758 * fontset.c (syms_of_fontset):
5759 * fns.c (syms_of_fns):
5760 * fns.c (syms_of_fns):
5761 * fileio.c (syms_of_fileio):
5762 * fileio.c (syms_of_fileio):
5763 * eval.c (syms_of_eval):
5764 * doc.c (syms_of_doc):
5765 * dispnew.c (syms_of_display):
5766 * dired.c (syms_of_dired):
5767 * dbusbind.c (syms_of_dbusbind):
5768 * data.c (syms_of_data):
5769 * composite.c (syms_of_composite):
5770 * coding.c (syms_of_coding):
5771 * cmds.c (syms_of_cmds):
5772 * charset.c (define_charset_internal, syms_of_character):
5773 * ccl.c (syms_of_ccl):
5774 * category.c (syms_of_category, init_category_once):
5775 * casetab.c (syms_of_casetab):
5776 * casefiddle.c (syms_of_casefiddle):
5777 * callint.c (syms_of_callint):
5778 * bytecode.c (syms_of_bytecode):
5779 * buffer.c (keys_of_buffer, syms_of_buffer):
5780 * alloc.c (syms_of_alloc):
5781 * process.c (syms_of_process, init_process):
5782 * lread.c (syms_of_lread, init_obarray):
5783 * font.c (build_style_table):
5784 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5785 intern_c_string, calls to make_pure_string with
5786 make_pure_c_string. Use pure_cons instead of Fcons.
5787
5e2327cf
DN
5788 * process.c (socket_options): Make it const.
5789 (set_socket_option, init_process): Use a const pointer.
5790
5791 * lread.c (intern_c_string): New function.
5792 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5793 (defvar_int): Uset it. Make the name const char*.
5794
5795 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5796 (defvar_int): Update prototypes.
5797 (DEFUN, EXFUN): Support for prototypes is now required.
5798 (intern_c_string): New prototype.
5799 (struct Lisp_Subr): Make symbol_name constant.
5800
5801 * font.c (struct table_entry): Remove unused member. Make NAMES
5802 constant.
5803 (weight_table, slant_table, width_table): Make constant.
5804
5805 * emacs.c (struct standard_args): Make name and longname constant.
5806
5807 * character.h (DEFSYM): Use intern_c_string.
5808
a56eaaef
DN
58092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5810
5811 * alloc.c (make_pure_c_string): New function.
5812
5813 * eval.c (Fautoload): Purecopy all arguments.
5814
f6a07420
KH
58152009-11-05 Kenichi Handa <handa@m17n.org>
5816
5817 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5818 the buffer in case of replace.
5819
5d28d4b1
DN
58202009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5821
5822 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5823
b349d111
SM
58242009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5825
d528b1ce
SM
5826 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5827 when applicable (bug#4851).
5828
b349d111
SM
5829 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5830 (P_): Support for prototypes is now required.
5831
c38eb027
CY
58322009-10-31 Chong Yidong <cyd@stupidchicken.com>
5833
5834 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5835 (Bug#4827).
5836
0405f8d9
EZ
58372009-10-30 Eli Zaretskii <eliz@gnu.org>
5838
d528b1ce 5839 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5840
ca0a881a
DN
58412009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5842
5843 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5844
d528b1ce
SM
5845 * lread.c (Fload): Purecopy the file name when building
5846 Vpreloaded_file_list.
ca0a881a 5847
47e0e0e4
JR
58482009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5849
5850 * w32fns.c (syms_of_w32fns): Change default value of
5851 w32-scroll-lock-modifier to nil. (Bug#2827)
5852
057bce6f
JB
58532009-10-26 Juanma Barranquero <lekktu@gmail.com>
5854
782a943e 5855 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5856
242bc74c
AS
58572009-10-26 Andreas Schwab <schwab@redhat.com>
5858
5859 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5860
522d013a
JB
58612009-10-26 Juanma Barranquero <lekktu@gmail.com>
5862
5863 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5864 For delta < 0, skip check that only makes sense when the mini-window
5865 is going to be enlarged. (Bug#4534)
5866
18060980
CY
58672009-10-25 Chong Yidong <cyd@stupidchicken.com>
5868
5869 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5870 string in menu maps (Bug#4471).
5871
fec8f0fe
CY
58722009-10-24 Chong Yidong <cyd@stupidchicken.com>
5873
5874 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5875 FRAME_NS_VIEW on terminal frames (Bug#4765).
5876
10d66ec0
AS
58772009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5878
1cae01f7
AS
5879 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5880 DBUS_TYPE_UINTnn separately to get proper sign extension.
5881
58a12889
AS
5882 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5883 can properly handle unsigned types.
d528b1ce 5884 (make_uid, make_gid): Remove.
58a12889 5885
987c9327
AS
5886 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5887 types again.
5888
522d013a 5889 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5890 (system_process_attributes): Likewise.
5891
905a9ed3
DN
58922009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5893
5894 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5895
5896 * eval.c (Fautoload): Purecopy the filename. Simplify.
5897
5898 * category.c (Fdefine_category): Purecopy docstring.
5899
a599b3e8
AS
59002009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5901
7b792fc9
AS
5902 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5903
a599b3e8
AS
5904 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5905
b35ac83e
CY
59062009-10-23 Chong Yidong <cyd@stupidchicken.com>
5907
5908 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5909 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5910 (Bug#4775).
5911
e8903e00
SM
59122009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5913
5914 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5915 (init_fileio_once):
5916 * lisp.h (init_fileio_once): Remove.
5917 * emacs.c (main): Don't call init_fileio_once.
5918
8f43cbf3
DN
59192009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5920
5921 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5922
26898943
AS
59232009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5924
5925 * doprnt.c (doprnt): Fix overflow check.
5926
5c646d5a
JD
59272009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5928
3132a7ea
JD
5929 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5930
5c646d5a
JD
5931 * xterm.h (x_wait_for_event): Declare it.
5932
5933 * xterm.c (pending_event_wait): New variable.
5934 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5935 see pending_event_wait.eventtype.
5936 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5937 (x_new_font): Call change_frame_size with new rows/columns before we
5938 try to resize the frame.
5c646d5a 5939 (x_wait_for_event): New function.
d528b1ce
SM
5940 (x_set_window_size_1): Don't change gravity unless change_gravity
5941 is set.
5c646d5a
JD
5942 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5943 don't change frame size, instead wait for the ConfigureNotify.
5944 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5945 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5946 (x_initialize): Initialize pending_event_wait.
5947
5948 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5949 size.
5950
5951 * widget.c (EmacsFrameSetValues): Add comment.
5952 (EmacsFrameSetCharSize): Just call x_set_window_size.
5953
5954 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5955 x_wait_for_event.
d528b1ce 5956 (flush_and_sync): Remove again.
5c646d5a
JD
5957 (xg_get_font_name): Suggest monospace if no previous font is known.
5958
e9c1637d
SM
59592009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5960
5961 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5962 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5963
5a72cccb
YM
59642009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5965
5966 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5967 processing pending events when event is filtered for input method.
ab04798f 5968 (Bug#3681)
5a72cccb 5969
2629aa37
JB
59702009-10-20 Juanma Barranquero <lekktu@gmail.com>
5971
5972 * fns.c: Add #endif accidentally removed in previous change.
5973
c3417a74
DN
59742009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5975
5976 * fns.c: Remove code for unsupported system: MAC_OS.
5977 * image.c: Likewise. Include setjmp.h.
5978
9685cef2
JD
59792009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5980
5981 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5982 pixel -1 (bug #4742).
5983
d7306fe6
DN
59842009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5985
019d2c4c
DN
5986 * process.c (create_pty): Remove conditionals for no longer
5987 supported systems: UNIPLUS and RTU.
5988
ee6bacd4
DN
5989 * xterm.c:
5990 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5991
d7306fe6
DN
5992 * alloc.c: Do not define struct catchtag.
5993 * eval.c: Move struct catchtag definition ...
5994 * lisp.h: ... here.
5995
5996 * image.c: Move png.h #include earlier to avoid warnings.
5997
5998 * xterm.c:
5999 * xsmfns.c:
6000 * xselect.c:
6001 * xrdb.c:
6002 * xmenu.c:
6003 * xftfont.c:
6004 * xfont.c:
6005 * xfns.c:
6006 * xfaces.c:
6007 * xdisp.c:
6008 * window.c:
6009 * widget.c:
6010 * w32xfns.c:
6011 * w32uniscribe.c:
6012 * w32term.c:
6013 * w32select.c:
6014 * w32reg.c:
6015 * w32proc.c:
6016 * w32menu.c:
6017 * w32inevt.c:
6018 * w32heap.c:
6019 * w32font.c:
6020 * w32fns.c:
6021 * w32console.c:
6022 * w32.c:
6023 * w16select.c:
6024 * vm-limit.c:
6025 * unexsol.c:
6026 * unexec.c:
6027 * unexcw.c:
6028 * unexaix.c:
6029 * undo.c:
6030 * tparam.c:
6031 * textprop.c:
6032 * terminfo.c:
6033 * terminal.c:
6034 * termcap.c:
6035 * term.c:
6036 * syntax.c:
6037 * sound.c:
6038 * sheap.c:
6039 * search.c:
6040 * scroll.c:
6041 * region-cache.c:
6042 * regex.c:
6043 * ralloc.c:
6044 * process.c:
6045 * print.c:
b024548b
DN
6046 * nsterm.m:
6047 * nsselect.m:
6048 * nsmenu.m:
6049 * nsimage.m:
6050 * nsfont.m:
6051 * nsfns.m:
d7306fe6
DN
6052 * msdos.c:
6053 * minibuf.c:
6054 * menu.c:
6055 * marker.c:
6056 * macros.c:
6057 * keymap.c:
6058 * keyboard.c:
6059 * intervals.c:
6060 * insdel.c:
6061 * indent.c:
6062 * gtkutil.c:
6063 * ftxfont.c:
6064 * ftfont.c:
6065 * fringe.c:
6066 * frame.c:
6067 * fontset.c:
6068 * font.c:
6069 * fns.c:
6070 * floatfns.c:
6071 * filelock.c:
6072 * fileio.c:
6073 * emacs.c:
6074 * editfns.c:
6075 * dosfns.c:
6076 * doprnt.c:
6077 * doc.c:
6078 * dispnew.c:
6079 * dired.c:
6080 * dbusbind.c:
6081 * data.c:
6082 * composite.c:
6083 * coding.c:
6084 * cmds.c:
6085 * cm.c:
6086 * chartab.c:
6087 * charset.c:
6088 * character.c:
6089 * ccl.c:
6090 * category.c:
6091 * casetab.c:
6092 * casefiddle.c:
6093 * callproc.c:
6094 * callint.c:
6095 * bytecode.c:
6096 * buffer.c:
6097 * atimer.c: Include setjmp.h. (Bug#4643)
6098
fd5f21e6
SM
60992009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6100
4c0354d7
SM
6101 Remove leftover table unibyte_to_multibyte_table.
6102 * character.c (unibyte_to_multibyte_table): Remove.
6103 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6104 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6105 * character.h (UNIBYTE_TO_CHAR): New macro.
6106 (MAKE_CHAR_MULTIBYTE): Use it.
6107 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6108 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6109 (message_dolog, set_message_1):
6110 * search.c (Freplace_match):
6111 * editfns.c (Fcompare_buffer_substrings):
6112 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6113 (concat):
6114 * insdel.c (copy_text, count_size_as_multibyte):
6115 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6116 * term.c (produce_glyphs):
6117 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6118 * regex.c (RE_CHAR_TO_MULTIBYTE):
6119 * cmds.c (internal_self_insert):
6120 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6121
fd5f21e6
SM
6122 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6123
4418646e
DN
61242009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6125
6126 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6127
35f5c1d2
JB
61282009-10-16 Juanma Barranquero <lekktu@gmail.com>
6129
6130 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6131
a0cd8f6b
AR
61322009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6133
6134 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6135 still needed under Tiger.
6136
6137 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6138
6139 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6140 __Apple__.
6141
6142 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6143
01a8d3fa
KH
61442009-10-15 Kenichi Handa <handa@m17n.org>
6145
6146 * print.c (print_object): Escape a symbol like "2E10" too.
6147
bf6c75c9 61482009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6149
6150 Cleanups and changes for 64-bit compile under Snow Leopard.
6151 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6152
6153 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6154
c5959062 6155 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6156 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6157 cast argument.
6158 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6159 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6160
6161 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6162
6163 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6164 where appropriate.
6165
6166 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6167 where appropriate.
6e4780c5
JB
6168 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6169 Use stringWithUTF8String.
bf6c75c9
AR
6170 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6171
6e4780c5
JB
6172 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6173 Add formal protocol mention to inheritance.
bf6c75c9
AR
6174 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6175
6e4780c5
JB
6176 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6177 Fix printf format.
bf6c75c9
AR
6178 (ns_query_color): Use CGFloat where appropriate.
6179 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6180 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6181 argument.
6182
3d87f118
AR
6183 * config.in (NS_HAVE_NSINTEGER): Drop.
6184
a95c8102
AR
6185 * dbusbind.c (dbus-method-return-internal)
6186 (dbus-method-error-internal): Use long format in printf, and cast
6187 argument.
6188
6189 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6190 in printf, and cast argument.
6191
6873acca 6192 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6193 cast argument.
6194
9ec6f100
GM
61952009-10-11 Glenn Morris <rgm@gnu.org>
6196
6197 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6198
5be883cd
JD
61992009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6200
6201 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6202 menu bar with a small width so it doesn't enlarge the frame.
6203
d7a39b51
JB
62042009-10-08 Juanma Barranquero <lekktu@gmail.com>
6205
6206 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6207
0c2b6f8e
GM
62082009-10-06 Glenn Morris <rgm@gnu.org>
6209
6210 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6211 SOME_MACHINE_LISP (this enters indirectly via DOC).
6212
e02131a2
EZ
62132009-10-05 Eli Zaretskii <eliz@gnu.org>
6214
6215 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6216
b4744254
EZ
62172009-10-04 Eli Zaretskii <eliz@gnu.org>
6218
6219 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6220 Doc fix.
6221
dbf64827
JB
62222009-10-03 Martin Rudalics <rudalics@gmx.at>
6223
6224 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6225
e9a0aef8
MA
62262009-10-02 Michael Albinus <michael.albinus@gmx.de>
6227
d528b1ce 6228 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6229 used anymore outside fileio.c.
6230
6231 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6232
64eb2b56
JB
62332009-10-01 Juanma Barranquero <lekktu@gmail.com>
6234
6235 * lisp.h (Qdelete_directory_internal):
6236 Declare, instead of Qdelete_directory.
6237
6238 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6239
9d28c33e
SM
62402009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6241
6242 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6243
9d8f3bd9
MA
62442009-10-01 Michael Albinus <michael.albinus@gmx.de>
6245
9d28c33e 6246 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6247 Fdelete_directory. It is not a command anymore. It has no file
6248 name handler.
6249
9694740b
SM
62502009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6251
6252 * xdisp.c (get_next_display_element): Use an enum in last change.
6253
748e162f
KH
62542009-09-28 Kenichi Handa <handa@m17n.org>
6255
9694740b 6256 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6257 unibyte_display_via_language_environment in handling
6258 Vnobreak_char_display.
6259
17efd58d
AR
62602009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6261
6262 * nsterm.h (ns_app_name): New extern variable.
6263
6264 * nsterm.m (ns_app_name): New variable.
6265 (ns_term_init): Set and use it.
6266 (ns_term_shutdown): Use it.
6267
6268 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6269 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6270
6271 * nsfns.m (ns_set_name_iconic, ns_set_name)
6272 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6273 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6274
9694740b
SM
6275 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6276 Remove double-casting in client_data comparison.
31c2d412 6277
3208cb35
YM
62782009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6279
6280 * keyboard.c (make_lispy_event): Remember last wheel direction.
6281 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6282
b7d552d6
GM
62832009-09-26 Glenn Morris <rgm@gnu.org>
6284
6285 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6286 internal.elc. Add term/pc-win.elc.
6287 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6288 term/x-win.elc.
6289 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6290 term/w32-win.elc.
6291 (NS_SUPPORT): New.
6292 (lisp): Add NS_SUPPORT.
6293 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6294
4ff670a8
DR
62952009-09-25 David Reitter <david.reitter@gmail.com>
6296
6297 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6298 on Mac OS X 10.6+ (bug#4513).
6299
feabfb6c
JB
63002009-09-24 Juanma Barranquero <lekktu@gmail.com>
6301
6302 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6303 some parts of Emacs code (like font selection) don't grok them.
6304 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6305
de59072a
AS
63062009-09-24 Andreas Schwab <schwab@redhat.com>
6307
6308 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6309
a489517b
JB
63102009-09-24 Juanma Barranquero <lekktu@gmail.com>
6311
6312 * dired.c (Fdirectory_files): Fix typo in docstring.
6313
0592970c
AR
63142009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6315
6316 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6317 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6318 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6319 under GNUstep.
6320 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6321
6322 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6323 glyph advancement.
6324
48e8a88b
AR
63252009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6326
6327 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6328 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6329
6330 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6331 deleted (bug #4492).
6332
e14f0a78
AR
6333 * nsfont.m (Vns_reg_to_script): New lisp variable.
6334 (syms_of_nsfont): Declare it.
6335 (ns_registry_to_script): New function.
6336 (ns_get_req_script): Call it.
6337 (ns_findfonts): Don't give up on non-unicode registry.
6338
6339 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6340
5b650faa
SM
63412009-09-20 Tom Tromey <tromey@redhat.com>
6342
6343 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6344 batch mode (bug#4228).
6345
a489517b 63462009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6347
6348 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6349 carefully. (Bug #4339)
0bae4e09 6350
fcfe06f3
CY
63512009-09-18 Chong Yidong <cyd@stupidchicken.com>
6352
d798ba87 6353 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6354
31642728
AR
63552009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6356
6357 * emacs.c (inhibit_x_resources): Update doc string for NS.
6358 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6359 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6360
6361 * nsterm.h (ns_no_defaults): Remove.
6362
6363 * nsterm.m (ns_no_defaults): Remove.
6364 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6365 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6366 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6367 don't update the NSWindow itself.
6368 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6369 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6370
6371 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6372 ns_use_qd_smoothing.
6373
6374 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6375 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6376 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6377 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6378
8686ac71
JB
63792009-09-17 Juanma Barranquero <lekktu@gmail.com>
6380
6381 * emacs.c (inhibit_x_resources): New variable.
6382 (main) [HAVE_NS]: Don't process --quick command line option.
6383 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6384
6385 * lisp.h (inhibit_x_resources): Declare it extern.
6386
6387 * w32reg.c (x_get_string_resource):
6388 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6389
e227ba05
EZ
63902009-09-17 Eli Zaretskii <eliz@gnu.org>
6391
362654a6
JB
6392 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6393 Add lisp/term/internal.elc.
e227ba05 6394
742d40e8
SM
63952009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6396
6397 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6398 (bug#4461).
6399
005bd5a2
DN
64002009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6401
6402 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6403
6404 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6405 (OBJECTS_MACHINE): Remove, unused.
6406
f9af9719
SM
64072009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6408
6409 * frame.c (x_get_resource_string): Remove unused.
6410
0307c7d2
JD
64112009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6412
6413 * xterm.c (x_new_font): Call change_frame_size before calling
6414 x_set_window_size, in case frame size won't change.
6415
6416 * frame.c (x_set_font): Remove dead code.
6417
428b13d6
SM
64182009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6419
6420 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6421
5766c380
SM
64222009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6423
6424 * lread.c (Fload): Don't output a message after loading an obsolete
6425 package any more (done in Lisp now).
6426
2fd0161b
CY
64272009-09-12 Chong Yidong <cyd@stupidchicken.com>
6428
6429 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6430
bc5e75b6
SM
64312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6432
6433 * keymap.c (Fwhere_is_internal): Use nconc2.
6434
c31c985e
AM
64352009-09-11 Alan Mackenzie <acm@muc.de>
6436
6437 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6438 batch mode.
6439
78012bd2
AS
64402009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6441
6442 * xdisp.c (display_mode_element): Detect cycles.
6443
9d889332
SM
64442009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6445
6446 * keymap.c (where_is_internal): Don't erroneously return nil right after
6447 filling the cache.
6448 (where_is_internal_1): Fix up typo.
6449
7ab5d780
GM
64502009-09-11 Glenn Morris <rgm@gnu.org>
6451
6452 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6453 share a common doc-string.
6454
5238a749
SM
64552009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6456
66d77eda
SM
6457 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6458 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6459
5238a749
SM
6460 * keymap.c (QCadvertised_binding): New constant.
6461 (syms_of_keymap): Initialize it.
6462 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6463 if applicable.
6464
19f48442
SM
64652009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6466
50d4ba39
SM
6467 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6468 (parse_menu_item): Streamline since bindings are recomputed all the
6469 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6470 more and don't support lmenu's menu-alias any more either.
6471
a88a5372
SM
6472 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6473 (where_is_internal): Strip it down to only traverse the keymaps.
6474 Move the cache handling from Fwhere_is_internal to here.
6475 (Fwhere_is_internal): Move the handling of remapping and the choice of
6476 the best binding from where_is_internal to here.
6477 Unify the cached/noncached paths, so remapping is also handled
6478 correctly when the cache is used, and so the cache can be used to
6479 speed up remap-handling when applicable.
6480 Give preference to non-remapped bindings.
6481 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6482 non-remapped bindings.
6483 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6484 command remapping.
6485
19f48442
SM
6486 * xdisp.c (display_mode_element): Move list length limit from 50 to
6487 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6488
599498c3 64892009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6490
6491 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6492
f9b7b5ac
SM
64932009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6494
a53af587
JB
6495 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6496 (Bug#4334)
6497
f9b7b5ac
SM
6498 * keymap.c (where_is_internal): Filter out shadowed remappings.
6499 Assume that where_is_internal returns unshadowed bindings to simplify
6500 the code and get rid of the gotos. Use ASIZE.
6501
04f4b72d
JD
65022009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6503
4da146f2
JD
6504 * xterm.c (x_focus_changed): If we get a focusout and pointer
6505 is invisible, make it visible.
6506
04f4b72d
JD
6507 * xterm.h: Remove condition for declaration of
6508 x_*_window_to_frame.
6509
7cef7ce3
SM
65102009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6511
6512 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6513 initial terminal as well.
6514
a54fa5b7
JD
65152009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6516
6517 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6518 x_menubar_window_to_frame.
a54fa5b7 6519
50426a04 6520 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6521 (XTmouse_position): Do not return valid positions
6522 for clicks in the menubar and the toolbar for Gtk+.
6523
6524 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6525 if the widget for the event has the same top level as a frame,
6526 return the frame.
6527 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6528 internal windows, bug #4122.
6529 (x_non_menubar_window_to_frame): Remove.
6530
5a021dd0
GM
65312009-09-02 Glenn Morris <rgm@gnu.org>
6532
6533 * buffer.c (default-major-mode): Move most of the doc from here...
6534 (major-mode): ... to here.
6535
548fe2f3
NR
65362009-08-30 Nick Roberts <nickrob@snap.net.nz>
6537
6538 * process.c (wait_reading_process_output): Keep the descriptor
6539 when pty is used by a non-child process, e.g., in I/O buffer of
6540 GDB this allows inferior to be restarted.
6541
e0840eef
EZ
65422009-08-29 Eli Zaretskii <eliz@gnu.org>
6543
6544 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6545 both branches into one.
6546
82e98df4
SM
65472009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6548
6549 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6550 (main): Use enable-multibyte-characters rather than
6551 default-enable-multibyte-characters. Output a warning message when
6552 running a unibyte session.
6553
890617cb
YM
65542009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6555
6556 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6557 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6558 (copy_data_segment): Also copy __program_vars section.
6559 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6560 (dump_it) [LC_DYLD_INFO]: Use it.
6561
6562 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6563
e7adeadc
EZ
65642009-08-28 Eli Zaretskii <eliz@gnu.org>
6565
6566 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6567 $(SRC)/buildobj.h.
6568 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6569 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6570 $(SRC)/buildobj.h.
6571 (clean): Add buildobj.h.
6572
3ed8bbdc
TZ
65732009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6574
6575 * print.c (print_object): Set escapeflag to 1 when printing
6576 hashtable keys and values.
6577
155a6764
SM
65782009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6579
6580 * lread.c (read_integer): Use doubles (and potentially return a float
6581 number) as we do in string-to-number.
6582 (read1): Use strtol to read integers, signal errors on strtol's
6583 overflow and use floats if strtol's output is too large for
6584 Elisp integers.
6585
877610de
EZ
65862009-08-27 Eli Zaretskii <eliz@gnu.org>
6587
6588 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6589 (make-buildobj-SH): Fix last change.
6590 (SRC): Move to before where it's first used.
6591
ef73e7be
KH
65922009-08-27 Kenichi Handa <handa@m17n.org>
6593
550c8289
KH
6594 * process.c (send_process): Use encode_coding_object instead of
6595 encode_coding_string to perform eol-conversion even if the string
6596 is unibyte.
6597
60afa08d
KH
6598 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6599 character.
6600
ef73e7be 6601 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6602 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6603
7b3a82d7
DN
66042009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6605
5654bf63
DN
6606 * callproc.c (Fcall_process): Remove always true #if.
6607
7b3a82d7
DN
6608 * lisp.h: Replace #if 0 code for checking with text pointing to
6609 the --enable-checking configure flag.
6610
6611 * emacs.c (main): Mention the --enable-profiling configure flag
6612 instead of using CFLAGS.
6613
878bde49
KR
66142009-08-26 Ken Raeburn <raeburn@raeburn.org>
6615
6616 * Makefile.in (buildobj.h): New target.
6617 (doc.o): Depend on it.
6618 (temacs${EXEEXT}): Don't generate buildobj.lst.
6619 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6620 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6621 ($(BLD)/doc.$(O)): Depend on it.
6622 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6623 provided by Eli Zaretskii.)
6624 ($(TEMACS)): Don't generate buildobj.lst.
6625 * doc.c: Include buildobj.h.
6626 (buildobj): New static variable.
6627 (Fsnarf_documentation): Use it, instead of opening and reading
6628 buildobj.lst.
6629
1574224c
MA
66302009-08-25 Michael Albinus <michael.albinus@gmx.de>
6631
6632 * dbusbind.c (Fdbus_call_method)
6633 (Fdbus_call_method_asynchronously): Use English numeric format for
6634 timeout values in doc string.
6635
d9da2f45
KH
66362009-08-25 Kenichi Handa <handa@m17n.org>
6637
ef73e7be
KH
6638 * alloc.c (mark_char_table): New function.
6639 (mark_object): Use mark_char_table for a char-table.
6640
d9da2f45
KH
6641 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6642 (CHAR_TABLE_REF): Use it.
6643
c8edcc01
KR
66442009-08-23 Ken Raeburn <raeburn@raeburn.org>
6645
6646 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6647 before invoking the newly build emacs to check for load-path
6648 shadowing.
6649
7763401b
GM
66502009-08-22 Glenn Morris <rgm@gnu.org>
6651
6652 * Makefile.in (bootstrap_exe): New variable.
6653 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6654 Use ${bootstrap_exe}.
6655
729eadda
EZ
66562009-08-22 Eli Zaretskii <eliz@gnu.org>
6657
6658 * coding.h (encode_coding_string): Don't encode unibyte strings.
6659 (Bug#4047)
6660
eb4c6ace
MA
66612009-08-22 Michael Albinus <michael.albinus@gmx.de>
6662
6663 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6664
6665 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6666 intended as hotfix only.
6667 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6668
36e34d1b
AR
66692009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6670
6671 * nsterm.m (ns_get_color): Update documentation properly for last
6672 change, and clean up loose ends in the code left by it. Fix
6673 longstanding bug with 16-bit hex parsing, and add support for
6674 yet another X11 format (rgb:r/g/b) for compatibility.
6675 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6676 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6677
f983eb8a
SM
66782009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6679
6680 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6681
3f56d3c6
MA
66822009-08-20 Michael Albinus <michael.albinus@gmx.de>
6683
6684 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6685 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6686 (xd_initialize, xd_pending_messages): Check, whether
6687 $DBUS_SESSION_BUS_ADDRESS is set.
6688
fb641d68
YM
66892009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6690
6691 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6692
6693 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6694
cf59a374
GM
66952009-08-20 Glenn Morris <rgm@gnu.org>
6696
6697 * emacs.c (system-type): Doc fix.
6698
1373f3be
SM
66992009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6700
6701 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6702 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6703
058ed861
MA
67042009-08-18 Michael Albinus <michael.albinus@gmx.de>
6705
1373f3be
SM
6706 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6707 New functions.
058ed861
MA
6708 (xd_initialize): Revert change from 2009-08-16.
6709
563a866e 67102009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6711
6712 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6713 font-group vector, return nil.
5fc05db0 6714
e42bdf01
CY
67152009-08-17 Chong Yidong <cyd@stupidchicken.com>
6716
6717 * process.c (status_notify): Don't perform redisplay.
6718 (Fdelete_process, list_processes_1, process_send_signal):
6719 Expliticly perform redisplay.
6720 (wait_reading_process_output): Always check process status, but
6721 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6722
4230ab74
KR
67232009-08-17 Ken Raeburn <raeburn@raeburn.org>
6724
1373f3be 6725 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6726 (XFLOAT_INIT): New macro for storing a float value.
6727 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6728 * fns.c (sxhash): Copy out the value of a float in order to
6729 examine its bytes.
6730 * dbusbind.c (xd_append_arg): Likewise.
6731
4230ab74
KR
6732 * emacs.c (main): Don't call syms_of_data twice.
6733
a0645cdd
MA
67342009-08-16 Michael Albinus <michael.albinus@gmx.de>
6735
6736 * dbusbind.c (xd_initialize): Add connection file descriptor to
6737 input_wait_mask, in order to let select() detect, whether a new
6738 message has been arrived.
ca4f31ea 6739 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6740
485db0ba
MA
67412009-08-15 Michael Albinus <michael.albinus@gmx.de>
6742
1373f3be
SM
6743 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6744 New functions.
485db0ba
MA
6745
6746 * lisp.h (xd_pending_messages): Declare.
6747
6748 * keyboard.c (readable_events): Call xd_pending_messages.
6749
b5b98ff4
CY
67502009-08-15 Chong Yidong <cyd@stupidchicken.com>
6751
1373f3be 6752 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6753
f8354c6e
CY
6754 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6755
b5b98ff4
CY
6756 * buffer.c (set_buffer_internal_1)
6757 (swap_out_buffer_local_variables): Check for unbound local
6758 variables (Bug#4138).
6759
8b9fc636
EZ
67602009-08-14 Eli Zaretskii <eliz@gnu.org>
6761
6762 * process.c (create_pty): Fix last change.
6763
ce959360
CY
67642009-08-13 Chong Yidong <cyd@stupidchicken.com>
6765
6766 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6767 (xbm_load_image): Caller changed.
64b807c9 6768 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6769
c7baf7e9
NR
67702009-08-13 Nick Roberts <nickrob@snap.net.nz>
6771
6772 * process.c (create_pty): New function.
6773 (Fstart_process): Use it to allow Emacs to just associate a pty
6774 with the buffer. See associated change in gdb-mi.el.
6775 (list_processes_1): Deal with no program name.
6776 (start_process_unwind): Use pid == -2 to mean no process.
6777
1ac9108a
SM
67782009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6779
6780 * cmds.c (nonundocount): New global variable.
6781 (keys_of_cmds): Initialize it.
6782 (Fself_insert_command): Use it to combine upto 20 sequential chars
6783 into a single undo entry, just like the Qself_insert_command code in
6784 keyboard.c does.
6785 Call frame_make_pointer_invisible, also like the Qself_insert_command
6786 code in keyboard.c does.
6787 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6788 than its own local replacement for it.
6789
e267324c
KR
67902009-08-10 Ken Raeburn <raeburn@raeburn.org>
6791
1ac9108a 6792 * fns.c (concat): Don't re-set string length to its current value.
77437343 6793
1ac9108a
SM
6794 * coding.h (decode_coding_string, encode_coding_string):
6795 Use SBYTES macro.
f0bed503 6796
1ac9108a 6797 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6798 (doprnt): Merge with doprnt1, discarding lispstrings code.
6799 * lisp.h (doprnt_lisp): Don't declare.
6800
416e006d
JL
68012009-08-07 Juri Linkov <juri@jurta.org>
6802
6803 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6804
6f7d5780
DN
68052009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6806
6807 * print.c (syms_of_print): Undo previous change.
6808
f19a0f5b
TZ
68092009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6810
6811 * lread.c (read1, syms_of_lread): Read hashtables back from the
6812 readable format.
6813
6814 * print.c (print_preprocess, print_object): Print hashtables fully
6815 and readably.
6816 (syms_of_print): Provide 'hashtable-print-readable.
6817
b9173dc2
AR
68182009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6819
6820 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6821 no family set.
6822 (nsfont_open): Handle case when entity has no family.
6823
1586503c
AR
68242009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6825
6826 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6827 element, not a list, for match case.
6828
087048cd
KH
68292009-07-28 Kenichi Handa <handa@m17n.org>
6830
6831 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6832 rigidly.
6833
6834 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6835 font_parse_xlfd. Check font properties more rigidly.
6836
780c2506
DN
68372009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6838
31fd7c5c
JB
6839 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6840 bsd-common.h.
780c2506 6841
a8c0cc18
KH
68422009-07-27 Kenichi Handa <handa@m17n.org>
6843
6844 * xfaces.c (face_with_height): Call font_clear_prop.
6845
4fbe2306
CY
68462009-07-26 Chong Yidong <cyd@stupidchicken.com>
6847
111d9af3
CY
6848 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6849
6850 * xterm.c (x_term_init): Use Qx.
6851
4fbe2306
CY
6852 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6853
1ac9108a 6854 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6855 (ns_get_color): Revert 2009-07-16 change.
6856
beb0b7f9
EZ
68572009-07-25 Eli Zaretskii <eliz@gnu.org>
6858
6859 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6860 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6861
2baf5e76
KR
68622009-07-25 Ken Raeburn <raeburn@raeburn.org>
6863
1ac9108a
SM
6864 * coding.h (decode_coding_string, encode_coding_string):
6865 Use SCHARS macro.
8890e5f5 6866
2baf5e76 6867 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6868 (load_depth): Delete.
2baf5e76
KR
6869 (Qload_in_progress): New variable.
6870 (load_unwind): Don't reference load_depth or load_in_progress.
6871 (Fload): Likewise; specbind Qload_in_progress instead.
6872 (init_lread): Don't initialize load_depth.
6873 (syms_of_lread): Initialize and protect Qload_in_progress.
6874
1395c6f5
AR
68752009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6876
6877 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6878
4e2f36cf
AR
68792009-07-23 Yavor Doganov <yavor@gnu.org>
6880
6881 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6882
5dd9a6f7
AR
68832009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6884
6885 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6886 Bugs 3792, 3720, 2402.
6887 (ns_lookup_indexed_color): Check for bad index.
6888 (ns_index_color): Init unused slot to 0.
6889 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6890 Bug 3714, possibly 3082.
5dd9a6f7 6891
c902b920
JR
68922009-07-22 Jason Rumney <jasonr@gnu.org>
6893
1ac9108a
SM
6894 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6895 Position IME window at cursor (Bug#2570).
c902b920
JR
6896 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6897 (globals_of_w32fns): Dynamically load functions required above.
6898
6899 * w32term.c (w32_draw_window_cursor): Send message to reposition
6900 any IME window.
6901
090101cf
CY
69022009-07-21 Chong Yidong <cyd@stupidchicken.com>
6903
6904 * fileio.c: Revert 2009-07-16 changes.
6905 (Vauto_save_include_big_deletions): New variable.
6906 (Fdo_auto_save): Disable auto-save only if
6907 auto-save-include-big-deletions is nil.
6908
e6583e3d
CY
69092009-07-21 Chong Yidong <cyd@stupidchicken.com>
6910
6911 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6912 the overflowed pixels into account (Bug#3879).
6913
ece435a5
KR
69142009-07-21 Ken Raeburn <raeburn@raeburn.org>
6915
6916 * lread.c (load_depth): New variable.
6917 (Fload, load_unwind, init_lread): Set it to the load recursion
6918 depth; set load_in_progress as a simple boolean based on the
6919 current load_depth. (Bug#3892)
6920
40b2d973
AR
69212009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6922
6923 * nsfont.m (ns_has_attribute): Remove.
6924 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6925
10be7e0d
JL
69262009-07-18 Juri Linkov <juri@jurta.org>
6927
6928 * process.c (Fset_process_query_on_exit_flag): Mention killing
6929 a buffer in docstring.
6930
fa055055
KH
69312009-07-17 Kenichi Handa <handa@m17n.org>
6932
6933 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6934
042f7b69
YM
69352009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6936
6937 * nsfns.m (Fns_set_alpha): Remove function.
6938 (syms_of_nsfns): Don't defsubr it.
6939
6940 * nsterm.m (ns_get_color): Remove incompatible color formats.
6941 (ns_color_to_lisp): Generate #rrggbb color format string.
6942
4be941e3
RS
69432009-07-16 Richard Stallman <rms@gnu.org>
6944
6945 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6946 (Fset_buffer_auto_saved): Handle save_length = -2.
6947
4e6b227d
CY
69482009-07-16 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * xterm.c (Qx_gtk_map_stock): New var.
6951
6952 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6953 of calling intern each time.
6954
a1856973
YM
69552009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6956
6957 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6958 does tiling.
6959
6960 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6961
497e54d8
KH
69622009-07-14 Kenichi Handa <handa@m17n.org>
6963
72d36834
KH
6964 * font.c (font_vconcat_entity_vectors): New function.
6965 (struct font_sort_data): New member font_driver_preference.
6966 (font_compare): Check font_driver_preference.
6967 (font_sort_entities): The format of the first argument changed.
6968 (font_delete_unmatched): Likewise.
6969 (font_list_entities): The return type changed.
6970 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6971 (font_find_for_lface): Adjuste for the above changes.
6972 Don't suppress the checking of C even if the repertory supports it.
6973 (Flist_fonts): Adjust for the above changes.
72d36834 6974
1ac9108a
SM
6975 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6976 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6977 Reject a font who has adstyle property that is different from a
6978 langname derived from registry property.
1ac9108a 6979 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6980
b6046155
EZ
69812009-07-13 Eli Zaretskii <eliz@gnu.org>
6982
6983 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6984 local copy of dirfilename.
6985
fb6b6049
KH
69862009-07-13 Kenichi Handa <handa@m17n.org>
6987
e2402a5e
KH
6988 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6989 against max_char.
6990
fb6b6049
KH
6991 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6992 calling XSYMBOL (sym).
6993
65156807
EZ
69942009-07-11 Eli Zaretskii <eliz@gnu.org>
6995
1ac9108a
SM
6996 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6997 New function.
6998 (directory_files_internal) [WINDOWSNT]:
6999 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7000 the filesystem of the directory is fast or slow.
7001
7002 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7003 file name.
7004 (is_slow_fs): New function.
7005 (stat): Use it to determine whether to issue more system calls to
7006 get accurate file attributes, when w32-get-true-file-attributes is
7007 `local'.
7008
e0ab5fcf
JD
70092009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7010
7011 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7012 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7013 parameter font-parameter as default to the font dialog.
7014
784ceded
KH
70152009-07-10 Kenichi Handa <handa@m17n.org>
7016
7017 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7018
fb8edc0b
EZ
70192009-07-09 Eli Zaretskii <eliz@gnu.org>
7020
1ac9108a 7021 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7022
fb8edc0b
EZ
7023 * w32.c (stat): Treat UNC file names as residing on remote
7024 drives. (Bug#3542)
7025
635c75b1
KH
70262009-07-09 Kenichi Handa <handa@m17n.org>
7027
7028 * fontset.c (fontset_find_font): Fix previous change.
7029
c1d5ce94
MA
70302009-07-08 Michael Albinus <michael.albinus@gmx.de>
7031
7032 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7033 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7034 error flag.
7035
edb61b39
KH
70362009-07-08 Kenichi Handa <handa@m17n.org>
7037
374bf7e4
KH
7038 * fontset.c (fontset_find_font): Fix the logic of handling
7039 charset_matched.
7040 (font_for_char): Delete unused var.
7041 (generate_ascii_font_name): Delete it.
7042
edb61b39
KH
7043 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7044
7045 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7046 (encode_coding_sjis): Fix the code range check.
7047
0f3f018c
CY
70482009-07-07 Chong Yidong <cyd@stupidchicken.com>
7049
7050 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7051 (Fexpand_file_name): Copy string data properly (Bug#3772).
7052
fcaf6f3a
JD
70532009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7054
7055 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7056 first MapNotify.
7057
6809ca75
KH
70582009-07-07 Kenichi Handa <handa@m17n.org>
7059
7060 * character.h (unibyte_has_multibyte_table): Delete extern.
7061 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7062
7063 * charset.c (Fset_charset_priority): Update charset_unibyte.
7064 (syms_of_charset): Initialize charset_unibyte.
7065
7066 * character.c (unibyte_has_multibyte_table): Delete it.
7067 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7068 charset_unibyte.
7069 (multibyte_char_to_unibyte_safe): Likewise.
7070 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7071
1ac9108a 7072 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7073 (x_produce_glyphs): Likewise.
7074
7075 * .gdbinit (xcharset): Fix the treating $arg0.
7076
ad9e2d54
EZ
70772009-07-04 Eli Zaretskii <eliz@gnu.org>
7078
7079 Emulation of `getloadavg' on MS-Windows.
50426a04 7080 * w32.c: Include float.h.
ad9e2d54
EZ
7081 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7082 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7083 (get_native_system_info, get_system_times): New functions.
7084 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7085 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7086 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7087 g_b_init_get_system_times, and num_of_processors.
7088
0a3472c7
JR
70892009-07-03 Jason Rumney <jasonr@gnu.org>
7090
7091 * w32term.c (w32_initialize): Use standard types.
7092
80904120
EZ
70932009-07-03 Eli Zaretskii <eliz@gnu.org>
7094
7095 * dired.c (Ffile_attributes): Decode user and group names by the
7096 locale's encoding. (Bug#3443)
7097
6978862d
DN
70982009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7099
f8d23104
DN
7100 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7101 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7102
7103 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7104
7105 * term.c (init_tty): Remove spurious #ifdef.
7106
6978862d
DN
7107 * m/mips.h: Mention this file is also used for netbsd.
7108 * m/pmax.h: Remove file.
7109
e044e4fc
JD
71102009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7111
7112 * xterm.h (struct x_display_info): Add invisible_cursor.
7113 (struct x_output): Add current_cursor.
7114
7115 * xterm.c (XTtoggle_invisible_pointer): New function.
7116 (x_define_frame_cursor): Don't define cursor if invisible or the
7117 same as before. Set current_cursor.
7118 (x_create_terminal): Set toggle_invisible_pointer_hook.
7119
7120 * xfns.c (make_invisible_cursor): New function.
7121 (x_set_mouse_color): Call make_invisible_cursor.
7122 Set current_cursor.
7123 (x_window): Set current_cursor.
7124
7125 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7126
7127 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7128 inserting a character.
7129 (read_avail_input): Call frame_make_pointer_visible.
7130
7131 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7132 (frame_make_pointer_invisible, frame_make_pointer_visible):
7133 New functions.
e044e4fc
JD
7134 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7135
7136 * frame.h: Declare frame_make_pointer_invisible and
7137 frame_make_pointer_visible.
7138 (struct frame): Add pointer_invisible.
7139
574c8efa
JD
71402009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7141
7b507248
JD
7142 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7143 frame isn't visible.
7144 (xg_frame_resized): If width/height is -1, get size of window
7145 from X server.
7146
7147 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7148 for MapNotify.
7149
835bdaa7 7150 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7151 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7152 (flush_and_sync): Reintroduce.
574c8efa 7153
3f1c6666 71542009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7155
31fd7c5c 7156 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7157
7158 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7159 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7160
7161 * frame.h: Declare Qsticky.
7162
cad9ef74
JD
7163 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7164
7165 * nsfns.m (ns_frame_parm_handlers): Ditto.
7166
7167 * frame.c: Declare Qsticky.
7168 (frame_parms): Add sticky.
7169
7170 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7171
7172 * xterm.h: Declare x_set_sticky.
7173
7174 * xterm.c (x_set_sticky): New function.
7175
69b16610
JD
7176 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7177 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7178 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7179
7180 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7181
7182 * frame.c: Qmaximized is new.
7183 (x_set_frame_parameters): Do not handle fullscreen specially.
7184 Only set width and height if explicitly set.
7185 (x_set_fullscreen): Handle Qmaximized.
7186 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7187 (syms_of_frame): Initialize Qmaximized.
7188
1ac9108a
SM
7189 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7190 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7191
7192 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7193 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7194 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7195 set gravity to NorthWestGravity when USE_GTK.
7196 (set_wm_state): New function.
31fd7c5c 7197 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7198 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7199 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7200 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7201 to x_real_positions and x_fullscreen_adjust.
7202
7203 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7204 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7205 flush_and_sync.
7206 (xg_height_changed): New function.
7207 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7208 and gtk_window_set_policy. Set frame gravity after parsing the
7209 geometry string.
3f1c6666
JD
7210 (xg_update_frame_menubar, free_frame_menubar)
7211 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7212 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7213 Remove calls to xg_frame_set_char_size.
7214
fd503d99
KH
72152009-07-01 Kenichi Handa <handa@m17n.org>
7216
7217 * keyboard.c (decode_keyboard_code): New function.
7218 (tty_read_avail_input): Decode the input bytes if necessary.
7219
1ac9108a
SM
7220 * coding.c (setup_coding_system):
7221 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7222 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7223 use Qno_conversion.
7224
24ed93fb
YM
72252009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7226
7227 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7228
99061dfc
CY
72292009-06-30 Chong Yidong <cyd@stupidchicken.com>
7230
1ac9108a 7231 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7232
ff90fbde
JR
72332009-06-30 Jason Rumney <jasonr@gnu.org>
7234
7235 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7236 is already loaded.
7237 Set user model ID if supported (bug#1849).
7238
5f445726
JM
72392009-06-29 Jim Meyering <meyering@redhat.com>
7240
7241 Remove useless if-before-xfree test.
7242 * nsfont.m (nsfont_close): Remove useless test.
7243 * term.c (delete_tty): Likewise.
7244 * w32.c (system_process_attributes): Likewise.
7245 * w32font.c (w32font_close): Likewise.
7246 * xfaces.c (x_free_gc): Likewise.
7247 * xselect.c (buffer): Likewise.
7248
b9607587
AS
72492009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7250
7251 * process.c (send_process): Keep decoded string in a local
7252 variable and protect it from GC. (Bug#3521)
7253
89ba96f4
EZ
72542009-06-28 Eli Zaretskii <eliz@gnu.org>
7255
7256 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7257 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7258
098a1589
CY
72592009-06-28 Chong Yidong <cyd@stupidchicken.com>
7260
485422be
CY
7261 * xdisp.c (start_display, handle_face_prop)
7262 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7263 (redisplay_window, try_window_id, produce_image_glyph):
7264 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7265
098a1589
CY
7266 * xterm.c (x_update_window_begin, x_new_focus_frame)
7267 (x_scroll_bar_handle_click, handle_one_xevent)
7268 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7269 (x_make_frame_visible, x_make_frame_invisible)
7270 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7271 code chunks that are now obsolete.
7272
78c38319
MA
72732009-06-28 Michael Albinus <michael.albinus@gmx.de>
7274
7275 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7276 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7277 for hours, when optimzation is enabled.
7278 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7279 (xd_read_message): Make them static.
7280
4189ed40
CY
72812009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7282
7283 * term.c (turn_on_face): Allow simultaneously bold and dim
7284 terminal faces (Bug#3530).
7285
cd9b5e16
CY
72862009-06-27 Chong Yidong <cyd@stupidchicken.com>
7287
4e23bedb
CY
7288 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7289
cd9b5e16
CY
7290 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7291 truncation glyphs (Bug#3686).
7292
07cc3c35
GM
72932009-06-27 Glenn Morris <rgm@gnu.org>
7294
7295 * m/pmax.h: Restore file, with only netbsd portions.
7296
31fd7c5c 72972009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7298
cd9b5e16 7299 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7300
42d4a64f
KH
73012009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7302
7303 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7304 the arg FORCE_SYMBOL.
7305
930fe55b 73062009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7307
7308 * fontset.c (fontset_find_font): When a usable rfont_def is found
7309 in a fallback font-group, make it the first element of the group.
7310
57ebc3fd
CY
73112009-06-24 Chong Yidong <cyd@stupidchicken.com>
7312
7313 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7314
f084f942
KH
73152009-06-24 Kenichi Handa <handa@m17n.org>
7316
7317 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7318 set for C.
7319 (fontset_font): Record the availability of a font for C both in
7320 the realized fontsets of the current one and the default one.
7321
2f686c87
DN
73222009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7323
7324 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7325 conditional, it is always defined on AIX.
7326
666e158e
MB
73272009-06-23 Miles Bader <miles@gnu.org>
7328
7329 * window.c (Vrecenter_redisplay): New variable.
7330 (syms_of_window): Initialize it.
7331 (Qtty): New extern declaration.
7332 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7333
c6da7cd2
JM
73342009-06-23 Jim Meyering <meyering@redhat.com>
7335
1ac9108a
SM
7336 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7337 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7338 pointer dereferences are guaranteed to be valid.
c6da7cd2 7339
678dca3d
KH
73402009-06-23 Kenichi Handa <handa@m17n.org>
7341
74d75424
KH
7342 * emacs.c (main): Call init_font ().
7343
7344 * font.h (Vfont_log): Extern it.
7345 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7346
7347 * font.c (font_sort_entities, font_list_entities)
7348 (font_matching_entity, font_open_entity)
7349 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7350 (Vfont_log): Delete static.
7351 (font_log_env_checked): Delete this variable.
7352 (font_add_log): Don't check font_log_env_checked.
7353 (font_deferred_log): Check Vfont_log.
7354 (init_font): New function.
7355
678dca3d
KH
7356 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7357
7358 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7359
7360 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7361
7362 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7363
7364 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7365 (face_for_char): Don't call font_deferred_log here.
7366 (font_for_char): Likewise.
7367
8a668709
CY
73682009-06-22 Chong Yidong <cyd@stupidchicken.com>
7369
9a01ee33
CY
7370 * w32term.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).
7373
7374 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7375 rather than its background_width for drawing the overline and
7376 underline (Bug#489).
ec7c9926
CY
7377 (xg_default_icon_file): New variable.
7378 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7379 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7380
8a668709
CY
7381 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7382 (load_overlay_strings): Remove externs.
7383 (fast_find_position): Function deleted.
7384 (mouse_face_from_buffer_pos): New function, based on
7385 fast_find_position. Correctly handle before-strings,
7386 display-strings, and after-strings (Bug#1220).
7387 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7388
4d4c02d8
CY
73892009-06-21 Chong Yidong <cyd@stupidchicken.com>
7390
1ac9108a 7391 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7392 (move_it_in_display_line_to, move_it_in_display_line_to)
7393 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7394
70243478
CY
73952009-06-21 Chong Yidong <cyd@stupidchicken.com>
7396
7397 * Branch for 23.1.
7398
13087e59
JR
73992009-06-21 Jason Rumney <jasonr@gnu.org>
7400
7401 * w32term.c (keyboard_codepage): New static variable.
7402 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7403 (w32_read_socket) [WM_CHAR]: Use it to decode character
7404 input (bug#3237).
7405 (w32_initialize): Initialize it.
7406 (codepage_for_locale): New function.
7407
4735b74e
KR
74082009-06-20 Ken Raeburn <raeburn@raeburn.org>
7409
7410 * process.c (status_message): Pass Faset index argument as a lisp
7411 object, so as to work with USE_LISP_UNION_TYPE.
7412
0e727afa
YM
74132009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7414
7415 * coding.c (Ffind_coding_systems_region_internal):
7416 Cache checked characters.
7417
cf299835
KH
74182009-06-18 Kenichi Handa <handa@m17n.org>
7419
1ac9108a 7420 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7421
90f20d94
AS
74222009-06-18 Andreas Schwab <aschwab@redhat.com>
7423
7424 * xdisp.c (redisplay_internal): Check that the frame is still
7425 live after redisplay of its windows.
7426 (redisplay_windows): Check that the window is still live.
7427
7f1faf1c
KH
74282009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7429
7430 * coding.c (detect_coding_utf_16): Fix previous change.
7431
cc13543e
KH
74322009-06-16 Kenichi Handa <handa@m17n.org>
7433
7434 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7435 UTF-16 by checking the dispersion of Eth and Oth bytes.
7436
977b85f4
AS
74372009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7438
7439 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7440
66bd43d1
KH
74412009-06-15 Kenichi Handa <handa@m17n.org>
7442
7443 * process.c (status_message): Fix previous change. Be sure to
7444 decode a localized string.
7445
cb5ca9c5
YM
74462009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7447
7448 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7449 add comment explaining why.
7450
ec7709ba 74512009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7452
ec7709ba 7453 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7454
4b7f335c
AR
74552009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7456
7457 * nsfont.m (ns_attribute_value): Remove.
7458 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7459 (ns_has_attribute): Shrink the normal range.
7460 (ns_findfonts): Don't worry about requested spec in determining
7461 need for synthItal.
e41820ee 7462 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7463
73b26103
SZ
74642009-06-14 Seiji Zenitani <zenitani@mac.com>
7465
7466 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7467
5753e4da
KH
74682009-06-11 Kenichi Handa <handa@m17n.org>
7469
7470 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7471 overhang for the static composition case.
7472
3561b671
KH
74732009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7474
5753e4da
KH
7475 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7476 overhang for the automatic composition case.
7477
3561b671
KH
7478 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7479 composition case.
7480
852bbd41
CY
74812009-06-10 Chong Yidong <cyd@stupidchicken.com>
7482
7483 * xdisp.c (get_next_display_element): When handling wrap-prefix
7484 and line-prefix, treat \n as a control character (bug#3502).
7485
9903d1e6
KH
74862009-06-10 Kenichi Handa <handa@m17n.org>
7487
7488 * font.c (font_parse_family_registry): Fix for one-char foundry.
7489 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7490
0bcbaaaa
CY
74912009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7492
7493 * process.c (status_message): Fix handling of multibyte signal
7494 string (Bug#3499).
7495
40aa3f13
JM
74962009-06-09 Jim Meyering <meyering@redhat.com>
7497
1f80c7e2
CY
7498 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7499 color name is missing.
40aa3f13 7500
72d51285
KH
75012009-06-09 Kenichi Handa <handa@m17n.org>
7502
7503 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7504 FROM-CODE and TO-CODE are codepoints of CHARSET.
7505
c1d04d84
AR
75062009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7507
7508 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7509
75102009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7511
7512 Changes to support :script/:lang/:otf in NS font driver.
7513 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7514 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7515 indicate not part of font driver interface, and change callers.
7516 (ns_get_family): Remove pointless null check.
7517 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7518 ns_spec_to_descriptor, ns_descriptor_to_entity.
7519 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7520 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7521 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7522 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7523 (ns_get_req_script, ns_accumulate_script_ranges)
7524 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7525 New functions.
7526 (nsfont_list, nsfont_match): Use ns_findfonts.
7527 (nsfont_open): Use font descriptor instead of traits.
7528 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7529 (dump_glyphstring): Rename to ns_dump_glyphstring.
7530
c7eb9816
AR
7531 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7532
c1d04d84
AR
7533 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7534
7535 * fontset.c (fontset_from_font): Remove NS-specific code.
7536
ec7709ba 75372009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7538
7539 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7540 nonactive windows.
7541
31fd7c5c 75422009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7543
1ac9108a 7544 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7545
68852c13 75462009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7547
7548 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7549
6756cd1d
CY
75502009-06-07 Chong Yidong <cyd@stupidchicken.com>
7551
7552 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7553 account for the overflowing of newlines into the last glyph on the
7554 display line (Bug#3482).
7555
28bf482a
DR
75562009-06-05 David Reitter <david.reitter@gmail.com>
7557
ec7709ba
JB
7558 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7559 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7560 Fns_selection_exists_p, Fns_selection_owner_p.
7561
fdb55376
JR
75622009-06-03 Jason Rumney <jasonr@gnu.org>
7563
7564 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7565 available. (Bug#3379)
7566
05129fbe
KH
75672009-05-29 Kenichi Handa <handa@m17n.org>
7568
1ac9108a
SM
7569 * coding.c (get_translation_table):
7570 Check Venable_character_translation.
05129fbe 7571
ec7709ba 75722009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7573
ec7709ba
JB
7574 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7575 (x_make_frame_visible): Move frame to front rather than calling
15891144 7576 ns_raise_frame().
ec7709ba 7577 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7578 isn't key window.
ec7709ba 7579 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7580 drawRect may be called by NSView even if the frame is hidden.
7581
ec7709ba
JB
7582 * nsfns.m (Fx_create_frame): Follow other ports in
7583 determining visibility; default to t. Ensure async_visible is set.
15891144 7584
21f73755
EZ
75852009-05-23 Eli Zaretskii <eliz@gnu.org>
7586
7587 * dired.c (Ffile_attributes): Doc fix.
7588
34001e41
CY
75892009-05-22 Chong Yidong <cyd@stupidchicken.com>
7590
7591 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7592
46306a17
SM
75932009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7594
7595 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7596 and xfont_scratch_props.
7597 (syms_of_xfont): Do it here instead.
7598 (xfont_find_ccl_program): Delete, unused.
7599 (xfont_open): Delete unused var `i'.
7600
ef6e0694
KH
76012009-05-21 Kenichi Handa <handa@m17n.org>
7602
7603 * fontset.c (Qlatin): Don't make it static.
7604
46306a17
SM
7605 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7606 New functions.
ef6e0694
KH
7607 (xfont_scripts_cache, xfont_scratch_props): New variables.
7608 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7609 (xfont_list_pattern): Argument changed. Callers changed.
7610 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7611 (xfont_list): Don't reject a font spec with :script property.
7612 (xfont_has_char): Fix setting of encoding.
7613 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7614 xfont_scratch_props.
7615
76162009-05-19 Kenichi Handa <handa@m17n.org>
7617
46306a17 7618 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7619 Callers changed.
7620
76212009-05-18 Kenichi Handa <handa@m17n.org>
7622
7623 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7624
ac71ced7
SM
76252009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7626
7627 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7628 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7629
1c6d1051
YM
76302009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7631
7632 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7633 (x_delete_terminal): Dissociate resource database from display and
7634 then call XrmDestroyDatabase before closing display.
7635
9b9b779c
AR
76362009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7637
7638 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7639 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7640 whether selected frame is viable before raising it (based on patch
7641 by David Reitter), and improve commentary.
7642 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7643
cccd42d5
KH
76442009-05-15 Kenichi Handa <handa@m17n.org>
7645
7646 * font.c (Ffont_spec): Check arguments.
7647
337fbd17
CY
76482009-05-14 Chong Yidong <cyd@stupidchicken.com>
7649
7650 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7651 weight when testing attributes (Bug#3282).
7652
47a6002f
JD
76532009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7654
7655 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7656 what we expect to get in the next ConfigureNotify event.
7657
9cb363db
YM
7658 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7659 before Xft one (Bug#1696).
7660
b9126609
CY
76612009-05-07 David Reitter <david.reitter@gmail.com>
7662
7663 * nsfns.m (Fx_display_planes): Compute bitplanes using
7664 NSBitsPerPixelFromDepth (Bug#3207).
7665
27a69fd9
CY
76662009-05-10 Chong Yidong <cyd@stupidchicken.com>
7667
7668 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7669
00f37552
TTN
76702009-05-10 Ulrich Mueller <ulm@gentoo.org>
7671
7672 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7673
2d82a920
DR
76742009-05-07 David Reitter <david.reitter@gmail.com>
7675
ec7709ba
JB
7676 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7677 Respect mouse face background.
2d82a920 7678
46b0d52d
DR
76792009-05-07 David Reitter <david.reitter@gmail.com>
7680
ec7709ba
JB
7681 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7682 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7683 in ns_update_begin and ns_update_end.
7684
ce1b23bb
SM
76852009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7686
5996e1b7
SM
7687 * nsfns.m (ns_get_screen): Rewrite.
7688 Don't presume selected-frame is of type `ns'.
7689
ba98e3a0
SM
7690 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7691 all drivers.
7692
ce1b23bb
SM
7693 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7694
bcda200f
YM
76952009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7696
7697 * keyboard.h (add_user_signal): Fix typo in extern.
7698
7699 * lisp.h (add_user_signal): Remove extern.
7700
7701 * unexelf.c (unexec): Consider a section to precede the .bss section
7702 if its addresses overlap that of .bss.
7703 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7704 instead of dumping process.
7705
864660a2
SM
77062009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7707
7708 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7709
50da4e56
SM
77102009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7711
7712 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7713
51520a1a
DN
77142009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7715
7716 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7717 any statements.
7718
409ea3a1
AS
77192009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7720
59c4c60f
AS
7721 * process.c (read_process_output): Make sure the current buffer is
7722 always restored.
7723
409ea3a1
AS
7724 * coding.c (record_conversion_result): Don't modify
7725 Vlast_code_conversion_error for successful result.
7726 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7727
56f00ed2
KH
77282009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7729
7730 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7731 (load_charset_map): Remove unnecessary code.
56f00ed2 7732
4491c9d2
DR
77332009-04-30 David Reitter <david.reitter@gmail.com>
7734
35f5b128 7735 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7736 through f24.
7737
6970f632
CY
77382009-04-30 Chong Yidong <cyd@stupidchicken.com>
7739
7740 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7741
7742 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7743 face_at_buffer_position.
7744 (face_before_or_after_it_pos, get_next_display_element)
7745 (note_mouse_highlight): Update face_at_buffer_position call.
7746
7747 * term.c (term_mouse_highlight):
7748 * msdos.c (IT_note_mouse_highlight):
7749 * fontset.c (Finternal_char_font):
35f5b128 7750 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7751
7752 * dispextern.h (face_at_buffer_position): Update prototype.
7753
0c616f63
KH
77542009-04-30 Kenichi Handa <handa@m17n.org>
7755
35f5b128 7756 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7757
ad3aaf33
AS
77582009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7759
7760 * callproc.c (Fcall_process): Fix GC protection. Make sure
7761 current buffer is always restored.
7762
c3c963a0
YM
77632009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7764
7765 * atimer.c (init_atimer): Also clear stopped_atimers.
7766
7767 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7768
7e3386cb
YM
7769 * process.c (create_process): Clean up merger residues of
7770 2008-07-17 change.
7771
91f68422
CY
77722009-04-29 Ulrich Mueller <ulm@gentoo.org>
7773
7774 * lread.c (Vread_circle): New variable.
7775 (read1): Disable recursive read if Vread_circle is nil.
7776
24b34550
KH
77772009-04-29 Kenichi Handa <handa@m17n.org>
7778
7779 * fontset.h (set_default_ascii_font): Delete extern.
7780
7781 * fontset.c (set_default_ascii_font): Delete this unused function.
7782
7783 * frame.c (x_set_font): When ARG is a font-object, check if the
7784 font-object matches with the ASCII font-spec of the frame's
9c358bda 7785 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7786
77bf07e1
AS
77872009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7788
7789 * fns.c (Flocale_info): Protect vector from GC during decoding.
7790
7791 * process.c (Fstart_process): Protect argv strings from GC during
7792 encoding.
7793
2c55aacf
AS
77942009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7795
7796 * sysdep.c: Include <ctype.h>.
7797
b892d3c9
DR
77982009-04-27 David Reitter <david.reitter@gmail.com>
7799
35f5b128 7800 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7801 Remove commented-out code.
7802
9d0644c4
JB
78032009-04-26 Johan Bockgård <bojohan@gnu.org>
7804
7805 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7806
b7053016
JR
78072009-04-25 Jason Rumney <jasonr@gnu.org>
7808
7809 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7810
4e8231f3
YM
78112009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7812
7813 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7814 Swap bytes in short integer if fringe bitmap width > 8.
7815
493dcf2c
KH
78162009-04-23 Kenichi Handa <handa@m17n.org>
7817
7818 * xfaces.c (Fx_list_fonts): If a font size is specified in
7819 PATTERN, set it in returned scalable fonts.
7820
401e9e57
CY
78212009-04-22 Chong Yidong <cyd@stupidchicken.com>
7822
708e05dc
CY
7823 * keyboard.c (Fset_input_meta_mode): Doc fix.
7824
7825 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7826
1ac9108a 7827 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7828
7829 * coding.c (Fterminal_coding_system): Doc fix.
7830
7831 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7832 (Fx_display_pixel_height, Fx_display_planes)
7833 (Fx_display_color_cells, Fx_server_max_request_size)
7834 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7835 (Fx_display_mm_height, Fx_display_mm_width)
7836 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7837 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7838 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7839 (check_x_display_info): Handle terminal objects instead of
7840 terminal ids.
7841
401e9e57
CY
7842 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7843 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7844 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7845 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7846
df80c7f0
KH
78472009-04-21 Kenichi Handa <handa@m17n.org>
7848
5a8f12af 7849 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7850 (font_score): Check AVGWIDTH too.
908567ef 7851
df80c7f0
KH
7852 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7853 worst case.
1ac9108a
SM
7854 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7855 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7856
705af33f
JR
78572009-04-19 Jason Rumney <jasonr@gnu.org>
7858
7859 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7860 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7861
7862 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7863 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7864 get_phys_cursor_geometry.
7865
b71ac3dd 7866 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7867 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7868 using get_phys_cursor_geometry.
7869
7870 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7871 correctly calculated.
7872
dc2933eb
JD
78732009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7874
1ac9108a
SM
7875 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7876 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7877 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7878 is deprecated.
7879
973e7849
AS
78802009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7881
7882 * font.c (font_put_frame_data): Use xfree instead of free.
7883
314d66f4
JB
78842009-04-17 Juanma Barranquero <lekktu@gmail.com>
7885
7886 * w32font.c (Qja, Qko): Remove declarations.
7887 (syms_of_w32font): Don't DEFSYM them.
7888
cf702558
CY
78892009-04-17 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7892
7893 * font.h (Qja, Qko): Extern them.
7894
7895 * ftfont.c (Qja, Qko): Remove declarations.
7896
7897 * xfont.c (Qja, Qko): Remove declarations.
7898
b50504f5
KH
78992009-04-17 Kenichi Handa <handa@m17n.org>
7900
bde25748
KH
7901 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7902 string from a vector to handle Latin-1 characters correctly.
7903
b50504f5
KH
7904 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7905 entity even if the cache hits.
7906
f4646fff
AS
79072009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7908
7909 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7910 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7911
e7deaab0
AS
7912 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7913 * lisp.h: Adjust prototypes.
7914
0a0e7d49
CY
79152009-04-16 Chong Yidong <cyd@stupidchicken.com>
7916
7917 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7918 change (Bug#3003).
7919
3c908a57
KH
79202009-04-16 Kenichi Handa <handa@m17n.org>
7921
1ac9108a 7922 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7923
7924 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7925 adstyle.
7926
7927 * ftfont.c (Qja, Qko): Don't make them static.
7928 (enum ftfont_cache_for): New enum.
7929 (fc_charset_table): Undo the previous change.
7930 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7931 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7932 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7933 non-scarable font, try to get AVERAGE_WIDTH.
7934 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7935 Change ft_face_cache from a list of a hash-table. Don't check
7936 `ja' and `ko' adstyle here.
7937 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7938 FTFONT_CACHE_FOR_CHARET.
7939 (ftfont_get_charset): Undo the previous change.
1ac9108a 7940 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7941 (ftfont_close): Likewise.
7942 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7943
7944 * font.c (font_sort_entites): Change the meaning of the arg
7945 BEST-ONLY. Don't optimize for VEC of lenght 1.
7946 (font_select_entity): Just return the value of font_sort_entites.
7947
7948 * xfaces.c (merge_face_vectors): Reflect font properties in
7949 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7950 font_clear_prop if a face attribute doesn't change.
7951
3c908a57
KH
7952 * charset.h (charset_ksc5601): Extern it.
7953
7954 * charset.c (charset_ksc5601): New variable.
7955 (Fdefine_charset_internal): Set charset_ksc5601.
7956 (init_charset_once): Initialize charset_ksc5601 to -1.
7957
d65859c3
DN
79582009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7959
7960 * fileio.c (history_delete_duplicates): Remove unused declaration.
7961
7962 * callint.c (history_delete_duplicates): New declaration.
7963 (Fcall_interactively): Remove command history duplicates when
7964 history_delete_duplicates is true.
7965
3ba010e5
EZ
79662009-04-14 Eli Zaretskii <eliz@gnu.org>
7967
7968 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7969
06f19b91
KH
79702009-04-14 Kenichi Handa <handa@m17n.org>
7971
7972 * font.c (Ffont_info): Fix docstring. Fix the second element of
7973 the returned value (bug#2949).
7974
2cce8bfc
CY
79752009-04-14 Chong Yidong <cyd@stupidchicken.com>
7976
7977 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7978
d156542d
KH
79792009-04-14 Kenichi Handa <handa@m17n.org>
7980
7981 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7982 encoding charset is ascii_compatible.
7983
7984 * charset.c (Fdefine_charset_internal): Make charset
7985 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7986 code_offset is 0, and covers all ASCII characters.
7987
86fa089e
SM
79882009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7989
7990 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7991 (ns_string_to_pasteboard_internal):
7992 * nsmenu.m (process_dialog):
7993 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7994 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7995 * lisp.h (Fx_load_color_file): Declare.
7996
a8a3728b
KH
79972009-04-13 Kenichi Handa <handa@m17n.org>
7998
1ac9108a 7999 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8000 (font_select_entity): Suppress the code to optimize for the same
8001 kind of fonts.
8002 (font_load_for_lface): Get a font that supports at least ASCII
8003 characters.
8004
8005 * ftfont.c (Qja, Qko): New variables.
8006 (fc_charset_table): Delete uniquifier data for iso8859-1.
8007 (ftfont_get_latin1_charset): New function.
8008 (get_adstyle_property): New function.
8009 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8010 bitmap fonts.
8011 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8012 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8013 `ko' or `ja'.
8014 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8015 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8016 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8017 property.
8018 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8019 (syms_of_ftfont): DEFSYM Qja and Qko.
8020
483670b5
KH
80212009-04-09 Kenichi Handa <handa@m17n.org>
8022
12b55765
KH
8023 * charset.c (map_charset_chars): For a charset of `superset'
8024 method, fix calculation of code range.
8025
483670b5
KH
8026 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8027 from the list of extra properties.
8028 (font_clear_prop): Be sure to delete `:name' font property.
8029
57d3b93b
KH
80302009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8031
b4b2c2ca
YM
8032 * dispnew.c (redraw_overlapping_rows): Fix detection of
8033 overlapping for topmost and bottommost rows.
8034
1ac9108a 8035 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8036
472c3609
JR
80372009-04-06 Jason Rumney <jasonr@gnu.org>
8038
8039 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8040
ab193662
KH
80412009-04-06 Kenichi Handa <handa@m17n.org>
8042
8043 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8044
8045 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8046
0c26f026
KH
80472009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8048
8049 * ftfont.c (ftfont_open): Fix checking of the return value of
8050 FT_Load_Char. Fix setting font->underline_thickness.
8051
e173bbce
CY
80522009-04-04 Chong Yidong <cyd@stupidchicken.com>
8053
8054 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8055 (Fterminal_parameters, Fterminal_parameter)
8056 (Fset_terminal_parameter): In doc string, refer to terminal
8057 objects rather than terminal ids.
8058
693a2698
EZ
80592009-04-04 Eli Zaretskii <eliz@gnu.org>
8060
8061 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8062 ret_lim_data. (Bug#2867)
8063
d5221487
CY
80642009-04-03 Chong Yidong <cyd@stupidchicken.com>
8065
8066 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8067 so they don't get wider than the window, matching 2006-01-23
8068 change to the partner function in xdisp.c (Bug#2800).
8069
223509a3
KH
80702009-04-03 Kenichi Handa <handa@m17n.org>
8071
8072 * print.c (print_object): Make each lowest sub_char_table start a
8073 new line (Bug#2866).
8074
74fcd0b1
KH
80752009-04-02 Kenichi Handa <handa@m17n.org>
8076
8077 * fontset.c (fontset_font): Record no-font when a fontset
8078 explicitly tells not to try another font-specs.
8079
c542407d
SM
80802009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8081
8082 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8083
e3869731
KH
80842009-03-30 Kenichi Handa <handa@m17n.org>
8085
d8d2f142
KH
8086 * fontset.c (fontset_from_font): Specify only registry in a
8087 font-spec for all characters supported by that registry.
8088
e3869731
KH
8089 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8090 even if HAVE_M17N_FLT is not defined.
8091
5da5f805
CY
80922009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8093
8094 * ftfont.c: Conditionalize prototyping and use of
8095 ftfont_variation_glyphs.
8096
ab226c50
SM
80972009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8098
9628fed7
SM
8099 * frame.c (delete_frame): Work around compiler bug.
8100
8101 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8102 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8103 Some more EMACS_INT.
8104 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8105
8106 * xdisp.c (dump_glyph): Fix typo.
8107
ae19ba7c
SM
8108 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8109 (adjust_markers_gap_motion, adjust_markers_for_delete)
8110 (adjust_markers_for_insert, adjust_point)
8111 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8112 (make_gap, copy_text, count_size_as_multibyte, insert)
8113 (insert_and_inherit, insert_before_markers)
8114 (insert_before_markers_and_inherit, insert_1)
8115 (count_combining_before, count_combining_after, insert_1_both)
8116 (insert_from_string, insert_from_string_before_markers)
8117 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8118 (insert_from_buffer_1, adjust_after_replace)
8119 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8120 (replace_range_2, del_range, del_range_1, del_range_byte)
8121 (del_range_both, del_range_2, modify_region)
8122 (prepare_to_modify_buffer, signal_before_change)
8123 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8124 for buffer positions and sizes.
8125 * lisp.h: Adjust prototypes accordingly.
8126
8127 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8128 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8129 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8130
ab226c50
SM
8131 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8132
46dfb8fb
JD
81332009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8134
8135 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8136 lines and columns so we keep the same pixel height and width.
8137
8138 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8139 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8140 (x_handle_net_wm_state): New function to update frame parameter
8141 fullscreen.
8142 (x_term_init): Initialize atoms for _NET_WM_STATE.
8143
8144 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8145
d347e494
SM
81462009-03-27 Kevin Ryde <user42@zip.com.au>
8147
8148 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8149 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8150 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8151 (Fgpm_mouse_stop): Pass that new parameter.
8152 * termhooks.h (close_gpm): Adjust prototype.
8153
84db11d6
SM
81542009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8155
c95a5008
SM
8156 * lisp.h (Fx_focus_frame): Declare.
8157
84db11d6
SM
8158 * callint.c (Fcall_interactively): For '^' just delegate the work to
8159 handle-shift-selection.
8160 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8161
0a1958d6
CY
81622009-03-24 Chong Yidong <cyd@stupidchicken.com>
8163
0bfdff23
CY
8164 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8165
0a1958d6
CY
8166 * data.c (Qinteractive_form): New variable.
8167 (Finteractive_form): Use it.
8168
8169 * eval.c (Fcommandp): Use Qinteractive_form.
8170
58aec0d6
JR
81712009-03-24 Jason Rumney <jasonr@gnu.org>
8172
8173 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8174 Calculate total size precisely. Decode environment variables
8175 before substituting. (Bug#38)
8176
553dd618
KH
81772009-03-24 Kenichi Handa <handa@m17n.org>
8178
8179 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8180 encoding (Bug#2722).
553dd618 8181
c39ea606
JD
81822009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8183
8184 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8185 that gdpy is set.
8186
bc9b2b5e
AM
81872009-03-22 Alan Mackenzie <acm@muc.de>
8188
8189 * callint.c (Finteractive): Clarify the doc string - even
8190 promptless elements need \n separators.
8191
9f995a76
JR
81922009-03-22 Jason Rumney <jasonr@gnu.org>
8193
8194 * w32term.c (syms_of_w32term): Doc fix for
8195 x-use-underline-position-properties.
8196
22749e9a
EZ
81972009-03-21 Eli Zaretskii <eliz@gnu.org>
8198
8199 * w32.c (getpwuid): Change argument type to unsigned.
8200 (struct w32_id): Change type of `rid' member to unsigned.
8201 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8202 argument ID to unsigned. All callers changed.
8203 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8204
e00553bf
EZ
82052009-03-20 Eli Zaretskii <eliz@gnu.org>
8206
8207 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8208 negative, produce a float value.
8209
8210 * dired.c (make_uid, make_gid): New functions.
8211 (Ffile_attributes): Use them to avoid negative UID and GID.
8212
f761d6b6
JB
82132009-03-20 Juanma Barranquero <lekktu@gmail.com>
8214
8215 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8216 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8217 Fix typos in docstrings.
8218
d507f8d7
KH
82192009-03-19 Kenichi Handa <handa@m17n.org>
8220
8221 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8222 changed, use font_load_for_lface to get a new font object.
8223 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8224
8225 * frame.c (x_set_font): Handle the case that ARG is a cons.
8226
c68845e0
GM
82272009-03-19 Glenn Morris <rgm@gnu.org>
8228
8229 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8230
bfa49dd1
CY
82312009-03-19 Chong Yidong <cyd@stupidchicken.com>
8232
8233 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8234
8458d4c1
KH
82352009-03-19 Kenichi Handa <handa@m17n.org>
8236
8237 * charset.c (load_charset_map_from_file): When a mapfile can't be
8238 loaded, signal an error.
8239
78e7d1fe
EZ
82402009-03-18 Eli Zaretskii <eliz@gnu.org>
8241
8242 * dired.c (Ffile_attributes): Make sure UID and GID are always
8243 positive, even if the value is too large for a positive EMACS_INT.
8244 Doc fix.
8245
8246 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8247
5da9fdfa
YM
82482009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8249
8250 * xmenu.c (xdialog_show): Move Fredisplay call ...
8251 (Fx_popup_dialog): ... here.
8252
7519c40d
SM
82532009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8254
8255 * dired.c (file_name_completion): Disable the first optimization just
8256 installed, since it is not implemented correctly.
8257
2cd298e2
SM
82582009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8259
8260 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8261 only if the entry can affect bestmatch.
2cd298e2
SM
8262 Stop the search early, as Ftry_completion already does.
8263
48d37adf
CY
82642009-03-17 Chong Yidong <cyd@stupidchicken.com>
8265
e10c9c93 8266 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8267
9286b16a
CY
82682009-03-15 Chong Yidong <cyd@stupidchicken.com>
8269
8270 * keyboard.c (parse_menu_item): Don't display remappings as menu
8271 equivalent bindings (Bug#788).
8272
f7b146dc
JR
82732009-03-15 Jason Rumney <jasonr@gnu.org>
8274
8275 * w32term.h (WM_EMACS_PAINT): New message.
8276 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8277 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8278 before passing to lisp thread. (Bug#950)
8279
f761d6b6 82802009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8281
d93f9575
CY
8282 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8283 variable as it was never reset.
8284 (ns_term_init): Remove initialization of Lisp-settable defaults
8285 and ns_expand_space.
8286 (-setPanelFromDefaultValues): Remove ns_expand_space.
8287 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8288 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8289 i.e. no additional spacing, similar to Carbon port.
8290
d93f9575
CY
8291 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8292 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8293
305018ec
JD
82942009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8295
8296 * sound.c (alsa_configure): Remove call to deprecated
8297 snd_pcm_sw_params_set_xfer_align.
8298
f761d6b6 82992009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8300
8301 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8302 after clicking in a detached tool bar.
8303 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8304
46e722a9
SM
83052009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8306
348db3dd
SM
8307 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8308 int/Lisp_Object mixup).
46e722a9 8309
a3d16f39
KH
83102009-03-13 Kenichi Handa <handa@m17n.org>
8311
8312 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8313 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8314 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8315 (set_fontset_font): Change ARG to a vector. Handle range_list in
8316 ARG correctly.
8317 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8318 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8319 the above change.
8320 (fontset_from_font): Fix previous change.
fe24f56a 8321 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8322 entry. If FONTSET is the default fontset, don't set the extra
8323 slot of the returning char-table.
8324
b066e6b6
JB
83252009-03-12 Juanma Barranquero <lekktu@gmail.com>
8326
8327 * nsfns.m (Fx_close_connection): Doc fix.
8328 (Fns_do_applescript): Reflow docstring.
8329 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8330 (Fx_display_pixel_width, Fx_display_pixel_height)
8331 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8332 Fix typos in docstrings.
8333 (Fns_set_alpha): Fix typos in error messages.
8334
d472514e 83352009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8336
d472514e 8337 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8338 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8339 were used for such events.
8340
d472514e
JB
8341 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8342 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8343
d472514e 8344 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8345 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8346
fb930676
KH
83472009-03-11 Kenichi Handa <handa@m17n.org>
8348
ff85581a
KH
8349 * font.h (font_open_by_spec): Extern it.
8350
c50b7e98
KH
8351 * font.c (font_open_by_spec): New function.
8352 (font_open_by_name): Use font_open_by_spec.
8353
fb930676
KH
8354 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8355 fontset of the frame.
8356
8357 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8358 modify the default font of frames that use this fontset.
8359 (num_auto_fontsets): New variable.
8360 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8361 name. Be sure to set FONTSET_ASCII to the correct font name.
8362 (update_auto_fontset_alist): New function.
8363
df4e8455
JB
83642009-03-11 Juanma Barranquero <lekktu@gmail.com>
8365
8366 * makefile.w32-in: Update dependencies.
8367
0a375797
AR
83682009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8369
8370 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8371
61313fa3
SM
83722009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8373
8374 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8375
b55103fb
CY
83762009-03-10 Chong Yidong <cyd@stupidchicken.com>
8377
8378 * lread.c (Feval_buffer): Doc fix.
8379
dde2559c
KH
83802009-03-09 Kenichi Handa <handa@m17n.org>
8381
8382 * charset.c (Qfile_name_handler_alist): Extern it.
8383 (load_charset_map_from_file): Temporarily bind
8384 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8385
df4e8455 83862009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8387
47f588bb
GM
8388 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8389 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8390
4ddf94bd
AR
83912009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8392
4c9bdfc2
AR
8393 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8394 (x_set_window_size): Change back to calculated method of setting
8395 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8396 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8397 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8398
fe41ae9e
AR
8399 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8400
4c9bdfc2
AR
8401 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8402 accelerator in parens under GNUstep.
8403
825d0875
KH
84042009-03-06 Kenichi Handa <handa@m17n.org>
8405
8406 These changes are to detect incorrect composition sequence without
f3b3be74 8407 looking ahead the source. (Bug#2370)
825d0875
KH
8408
8409 * coding.h: Include "composite.h".
8410 (enum compisition_state): New enum.
8411 (struct compisition_status): New struct.
8412 (struct iso_2022_spec): New member cmp_status.
8413 (struct emacs_mule_spec): New struct.
8414 (struct coding_system): New members ctext_extended_segment_len and
8415 embedded_utf_8. Change the union member
8416 spec.emacs_mule_full_support to spec.emacs_mule.
8417
8418 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8419 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8420 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8421 (ADD_COMPOSITION_DATA): New arg nbytes.
8422 (emacs_mule_char): New arg cmp_status.
8423 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8424 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8425 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8426 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8427 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8428 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8429 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8430 (EMACS_MULE_COMPOSITION_END): New macro.
8431 (emacs_mule_finish_composition): New function.
8432 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8433 (decode_coding_emacs_mule): Avoid long looking ahead while
8434 handling composition.
8435 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8436 (ENCODE_COMPOSITION_RULE): New macro.
8437 (finish_composition): New function.
8438 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8439 (DECODE_COMPOSITION_START): New implementation.
8440 (DECODE_COMPOSITION_END): Likewise.
8441 (STORE_COMPOSITION_RULE): New macro.
8442 (decode_coding_iso_2022): Avoid long looking ahead while handling
8443 composition, CTEXT extended segment, and embedded UTF-8.
8444 (setup_coding_system): For a coding of type iso-2022, reset
8445 CODING_ISO_EXTSEGMENT_LEN (coding) and
8446 CODING_ISO_EMBEDDED_UTF_8 (coding).
8447 (get_translation): Delete arguments last_block, from_nchars,
8448 to_nchars. Callers changed.
8449 (produce_chars): Don't modify charbuf. Adjusted for the change of
8450 get_translation.
98a326f7 8451 (produce_composition): Adjust for the new annotation sequence.
825d0875 8452 (handle_composition_annotation): Likewise.
98a326f7 8453 (consume_chars): Adjust for the change of get_translation.
825d0875 8454
ccbc4452
AR
84552009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8456
4ddf94bd 8457 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8458
988a7ddb
KH
84592009-03-05 Kenichi Handa <handa@m17n.org>
8460
8461 * font.c (font_select_entity): New function.
8462 (font_find_for_lface): Use font_select_entity to select a font.
8463
8464 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8465 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8466 font with C restriction.
8467
98a326f7 84682009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8469
be1bce46 8470 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8471
10ea2b82
JR
84722009-03-04 Jason Rumney <jasonr@gnu.org>
8473
2c93b248 8474 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8475 characters that have already been read. (Bug#2569)
2c93b248 8476
10ea2b82
JR
8477 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8478 Log an error message if check_image_size failed.
8479 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8480 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8481
71a0c011
EZ
84822009-03-02 Eli Zaretskii <eliz@gnu.org>
8483
8484 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8485 when decoding process output.
8486
2f63bba8
RS
84872009-03-01 Richard M Stallman <rms@gnu.org>
8488
8489 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8490
8491 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8492
0a9564cb
EZ
84932009-02-28 Eli Zaretskii <eliz@gnu.org>
8494
8495 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8496 (decode_coding_emacs_mule, decode_coding_iso_2022)
8497 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8498 (decode_coding_raw_text, decode_coding_charset)
8499 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8500 Honor inhibit-eol-conversion. (Bug #2186)
8501
449148b3
JR
85022009-02-28 Jason Rumney <jasonr@gnu.org>
8503
8504 * coding.c (detect_coding_charset): If not checking latin extra,
8505 fail on characters between 0x80 and 0xA0. (Bug#2354)
8506
a4aee864
EZ
85072009-02-28 Eli Zaretskii <eliz@gnu.org>
8508
8509 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8510 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8511
d88bee5a
GM
85122009-02-27 Glenn Morris <rgm@gnu.org>
8513
8514 * callint.c (Finteractive): Doc fix.
8515
a808f22d
KH
85162009-02-27 Kenichi Handa <handa@m17n.org>
8517
8518 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8519
caf8d60c
CY
85202009-02-27 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * font.c (font_style_to_value): Set value for unknown symbols to
8523 100 instead of 255.
b61137ea
CY
8524 (weight_table, slant_table, width_table): Treat "unspecified" as
8525 the default value.
caf8d60c 8526
1a0de25c
JB
85272009-02-26 Juanma Barranquero <lekktu@gmail.com>
8528
8529 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8530
8fc45744
JB
85312009-02-25 Juanma Barranquero <lekktu@gmail.com>
8532
107bd7d1
JB
8533 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8534 error as soon as a recursive load is detected.
8fc45744 8535
f097e223
AR
85362009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8537
8538 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8539 before caching.
8540
8810a12f
KH
85412009-02-24 Kenichi Handa <handa@m17n.org>
8542
8543 * fontset.c (fontset_find_font): Fix the condition for checking
8544 unavailable font.
8545
2c7d1565
GM
85462009-02-24 Glenn Morris <rgm@gnu.org>
8547
8548 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8549 whitespace that confuses documentation.
8550
a20878b6
MB
85512009-02-23 Miles Bader <miles@gnu.org>
8552
8553 * process.c (Flist_system_processes, Fprocess_attributes)
8554 (syms_of_process): Rename `system-process-attributes' to
8555 `process-attributes'.
8556
b3b58c01
AS
85572009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8558
1b3b981b
AS
8559 * coding.h (struct coding_system): Make safe_charsets a pointer to
8560 unsigned char.
8561 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8562 being 255.
8563 (SAFE_CHARSET_P): Likewise.
8564 (setup_iso_safe_charsets): Properly setup safe_charsets.
8565 (Fdefine_coding_system_internal): Likewise.
8566 (setup_coding_system): Likewise. Remove unneeded casts.
8567 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8568 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8569 unneeded casts.
8570
b3b58c01
AS
8571 * insdel.c (del_range_2): Don't modify gap contents when called
8572 from decode_coding_object. (Bug#1809)
8573
0b6f228c
CY
85742009-02-21 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8577 Qfont_object.
8578 (Ftype_of): Recognize font objects.
8579
8580 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8581
8582 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8583 moved to data.c.
8584
52f8870b
AR
85852009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8586
8587 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8588 async_iconified. Based on a patch by Christian Lynbech
8589 <christian.lynbech@tieto.com>.
8590 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8591
7087d5e9
GM
85922009-02-20 Glenn Morris <rgm@gnu.org>
8593
8594 * syntax.c (Fskip_chars_forward): Fix doc typo.
8595
41d2ceef
CY
85962009-02-20 Chong Yidong <cyd@stupidchicken.com>
8597
8598 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8599
1a3b7ca6
CY
86002009-02-19 Chong Yidong <cyd@stupidchicken.com>
8601
8602 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8603
73cce38d
KH
86042009-02-19 Kenichi Handa <handa@m17n.org>
8605
8606 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8607 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8608
a51092ee
DN
86092009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8610
8611 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8612
c423ecca
KH
86132009-02-18 Kenichi Handa <handa@m17n.org>
8614
8615 * font.c (font_check_otf_features): Fix handling of `nil' element.
8616 (Ffont_spec): Describe :lang and :otf in the docstring.
8617
4c1958f4
AS
86182009-02-16 Andreas Schwab <schwab@suse.de>
8619
8620 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8621 string.
8622
5704f39a
KH
86232009-02-16 Kenichi Handa <handa@m17n.org>
8624
8625 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8626 (Bug#1723)
5704f39a 8627
8f0085aa
CY
86282009-02-14 Chong Yidong <cyd@stupidchicken.com>
8629
a057d86a 8630 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8631
8632 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8633 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8634
aff01dd9
EZ
86352009-02-14 Eli Zaretskii <eliz@gnu.org>
8636
8637 * msdos.c (MAX_SCREEN_BUF): New macro.
8638 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8639 Encode the entire run of glyphs sharing the same face, instead of
8640 doing that one glyph at a time (fixes a bug with displaying
8641 double-size characters).
8642
ba301db3
AR
86432009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8644
8645 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8646
8647 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8648 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8649 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8650
8651 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8652 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8653
51d861de
SM
86542009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8655
ac146f82 8656 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8657 invisible areas.
8658
7fed8996
JR
86592009-02-12 Jason Rumney <jasonr@gnu.org>
8660
631ea4fb
JR
8661 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8662 (add_font_entity_to_list): Call check_face_name even when family
8663 is unspecified.
8664
cb4a3e42
JR
8665 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8666 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8667 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8668
7fed8996 8669 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8670 raster fonts. (Bug#2219)
7fed8996 8671
895416e3
KH
86722009-02-12 Kenichi Handa <handa@m17n.org>
8673
8674 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8675 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8676 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8677 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8678 (find_automatic_composition): While looking forward and backward,
8679 check static composition. Fix where to stop looking forward.
8680 (composition_adjust_point): Fix checking of static composition.
8681 (Fcomposition_get_gstring): Pay attention to
1dacf998 8682 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8683
8684 * lisp.h (fast_looking_at): Extern it.
8685
8686 * search.c (fast_looking_at): New function.
8687
51d861de 8688 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8689 <struct glyph>.u.cmp.to.
8690 (append_composite_glyph): Likewise.
8691
51d861de 8692 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8693 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8694 composition.
51d861de 8695 (append_composite_glyph): Adjust for the change of
895416e3
KH
8696 <strcut glyph>.u.cmp.to.
8697
8510724d
JB
86982009-02-11 Juanma Barranquero <lekktu@gmail.com>
8699
8700 * casetab.c (init_casetab_once):
8701 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8702 * font.c (font_update_lface):
8703 * fontset.c (Fnew_fontset):
8704 * ftfont.c (ftfont_drive_otf):
8705 * xfont.c (xfont_open):
8706 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8707
294fa707
SM
87082009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8709
8710 * fileio.c (Fwrite_region): !NILP -> CONSP.
8711
b5bfebec
AS
87122009-02-10 Andreas Schwab <schwab@suse.de>
8713
8714 * process.c (send_process): Properly relocate pointer into data
adab88bd 8715 when using encoded data. (Bug#2272)
b5bfebec 8716
cb84a2be
KH
87172009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8718
8719 * coding.c (detect_coding_charset): Fix previous change.
8720
89e09428
JR
87212009-02-08 Jason Rumney <jasonr@gnu.org>
8722
8723 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8724 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8725
4470a277
AS
87262009-02-07 Andreas Schwab <schwab@suse.de>
8727
8728 * unexelf.c (unexec): Fix error message.
8729
3175b12a
AR
87302009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8731
8732 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8733 when modal window is active. (Bug #2152)
3175b12a
AR
8734 (applicationShouldTerminate:): Remove now-unneeded while loop
8735 around NSRunAlertPanel.
8736
8737 * nsmenu.m (popupSession): New file-global variable.
8738 (pop_down_menu): End the popupSession before closing dialog.
8739 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8740 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8741 don't query NSApp for events (just sleep instead).
8742
8434d0b8
EZ
87432009-02-07 Eli Zaretskii <eliz@gnu.org>
8744
51d861de
SM
8745 * coding.c (syms_of_coding) <translation-table-for-input>:
8746 Modify doc string to discourage use for character code unification.
8434d0b8 8747
aa82edfd
CY
87482009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8749
8750 * atimer.c (run_timers): Update pending_atimers.
8751
2d283c7c
CY
87522009-02-06 Chong Yidong <cyd@stupidchicken.com>
8753
eb306cab
CY
8754 * image.c (svg_load_image): Fix last change.
8755
2d283c7c
CY
8756 * xfns.c (Fx_create_frame): Signal an error if no font is
8757 found (Bug#2147).
8758
4d8e170e
JB
87592009-02-05 Juanma Barranquero <lekktu@gmail.com>
8760
8761 * character.c (syms_of_character) <script-representative-chars>:
8762 Fix typo in docstring.
8763
c96169a0
AR
87642009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8765
8766 * nsmenu.m (pop_down_menu): New function.
8767 (ns_popup_dialog): Call it on unwind.
8768 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8769 call timer_check() (Bug#2154).
8770 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8771 handling_signal is set.
8772 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8773
31fd7c5c 8774 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8775
8776 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8777
8778 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8779
51d861de
SM
8780 * keyboard.c (poll_for_input_1, handle_async_input):
8781 Set handling_signal under HAVE_NS.
c96169a0 8782
aacd8ba1
GM
87832009-02-04 Glenn Morris <rgm@gnu.org>
8784
8785 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8786
4cb75c4b
KH
87872009-02-04 Kenichi Handa <handa@m17n.org>
8788
8789 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8790
8791 * charset.c (Fchar_charset): New optional arg restriction.
8792
8793 * coding.h (coding_system_charset_list): Extern it.
8794
8795 * coding.c (coding_system_charset_list): New function.
8796
8797 * composite.c: Include coding.h and termhooks.h.
8798 (composition_gstring_p): Fix for the terminal case.
8799 (composition_gstring_width): Likewise.
8800 (fill_gstring_body): Likewise.
8801 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8802 the frame.
8803 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8804 is within a composition.
867d4bb3 8805 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8806
8807 * term.c (encode_terminal_code): Fix handling of composition.
8808 (produce_composite_glyph): For static composition, get pixel_width
8809 from struct composition.
8810
826ba17e
AS
88112009-02-02 Andreas Schwab <schwab@suse.de>
8812
8813 * unexelf.c (unexec): Handle unaligned bss offset.
8814
8ad093db
AR
88152009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8816
8817 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8818 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8819
8ad093db
AR
8820 * keyboard.c (handle_interrupt): Don't call
8821 quit_throw_to_read_char() under NS.
d0a76a6e 8822
8ad093db
AR
8823 * blockinput.h: Remove NS-specific code.
8824
4d18a7a2
DN
88252009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8826
db878925
DN
8827 * dispnew.c (window_change_signal): Don't try to get the size of a
8828 suspended tty frame.
8829 * term.c (Fresume_tty): Resize if the size has changed while the
8830 tty was suspended.
8831
4d18a7a2
DN
8832 * alloc.c (mark_stack): Properly conditionalize previous change.
8833
8984df7c
JB
88342009-01-30 Juanma Barranquero <lekktu@gmail.com>
8835
8836 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8837 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8838 Remove; this code is not used on Windows.
8839
75f4f1ac
EZ
88402009-01-30 Eli Zaretskii <eliz@gnu.org>
8841
8842 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8843 EOLs that also has stray ^M characters.
8844
07a1e794
JB
88452009-01-30 Juanma Barranquero <lekktu@gmail.com>
8846
8847 * atimer.c (run_timers, alarm_signal_handler):
8848 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8849 * w32inevt.c (w32_console_read_socket):
8850 * w32term.c (w32_read_socket):
8851 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8852
a8b11cc9
CY
88532009-01-30 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8856 Initialize it as a relative filename pattern.
8857 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8858 (Fcall_process_region): Simplify temp file creation using
8859 temporary-file-directory.
8860
c279587b
EZ
88612009-01-29 Eli Zaretskii <eliz@gnu.org>
8862
8863 * msdos.c: Rename pending_signals to msdos_pending_signals.
8864 (sig_suspender, sigprocmask): Adjust.
8865
a8fe3242
CY
88662009-01-29 Chong Yidong <cyd@stupidchicken.com>
8867
8868 * keyboard.c (pending_signals): New var.
8869 (poll_for_input, input_available_signal, init_keyboard): Set it.
8870 (process_pending_signals): New function.
8871
8872 * lisp.h (QUIT): Check pending_signals instead of
8873 interrupt_input_pending. Use process_pending_signals.
8874
51d861de 8875 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8876
51d861de 8877 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8878
8879 * sysdep.c (emacs_write): Use process_pending_signals.
8880
8881 * xterm.c (XTread_socket): Update pending_signals.
8882
8883 * w32term.c (w32_read_socket): Update pending_signals.
8884
8885 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8886
6570a1c4
KH
88872009-01-29 Kenichi Handa <handa@m17n.org>
8888
8889 * xftfont.c (xftfont_has_char): New function.
8890 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8891
d72a4afa
AR
88922009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8893
8894 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8895 under GNUstep.
8896 (ns_query_color): New declaration.
8897
8898 * nsterm.m (ns_confirm_quit): New variable.
8899 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8900 (EmacsApp-applicationShouldTerminate:): Use it.
8901 (EmacsPrefsController): Let user set it.
8902 (ns_query_color): New function.
8903 (ns_defined_color): Use it.
8904 (ns_initialize): Drop.
8905 (ns_term_init): Add two lines from ns_initialize(), and set
8906 input_interrupt_mode to nil.
8907
8908 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8909 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8910
9fe78804
KH
89112009-01-28 Kenichi Handa <handa@m17n.org>
8912
8913 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8914 (fontset_get_font_group): Remember that no font-group is specified
8915 for C.
9fe78804 8916
fa57de36
CY
89172009-01-27 Chong Yidong <cyd@stupidchicken.com>
8918
930600e9
CY
8919 * fns.c (concat): Check for string overflow (bug#1787).
8920
fa57de36
CY
8921 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8922 Quadruple undo limits (bug#1501).
8923
7179ce7b
KH
89242009-01-27 Kenichi Handa <handa@m17n.org>
8925
8926 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8927 directly use GT_Get_Char_index.
8928
8929 * xftfont.c (struct xftfont_info): New member `index'.
8930
8931 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8932 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8933
5be8fcc0
CY
89342009-01-26 Kenichi Handa <handa@m17n.org>
8935
8936 * fontset.c (fontset_find_font): Fix handling of non-cons return
8937 value of fontset_get_font_group.
8938 (fontset_font): Revert last change.
8939
19ae3e61
JR
89402009-01-26 Jason Rumney <jasonr@gnu.org>
8941
8942 * w32font.c (w32font_list_internal): Return quickly if registry is
8943 unknown. Simplify final return.
8944 (add_font_entity_to_list): Break complex logic down into more
8945 manageable chunks. Move unknown registry check to
8946 w32font_list_internal.
8947
8612b71a
AR
89482009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8949
8950 Changes to remove Feval calls from GUI under NS.
8951
d8038940
JB
8952 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8953 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8954 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8955
8956 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8957 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8958 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8959 instead of NON_ASCII_KEYSTROKE_EVENT.
8960 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8961 (EmacsApp-applicationShouldTerminate:): Query user.
8962 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8963 instead of Feval.
8964
8965 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8966
8967 * keyboard.c (kbd_buffer_get_event): Check for it.
8968 (keys_of_keyboard): Define lispy keys for
8969 ns-put/unput-working-text.
8970
8971 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8972 versions.
8973 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8974
6288ae55
CY
89752009-01-25 Chong Yidong <cyd@stupidchicken.com>
8976
8977 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8978 setting current_buffer directly. (Bug#2044)
6288ae55 8979
289e7f8f
CY
89802009-01-24 Chong Yidong <cyd@stupidchicken.com>
8981
5ce87308 8982 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8983 any work. (Bug#1952, bug#1990).
5ce87308 8984
64cc3cf6 8985 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8986
b3243e6f
AR
89872009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8988
8989 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8990 (ns_no_defaults): New declaration.
8991 (main): Use it.
e0d2e69a 8992
d900b2af 8993 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8994
d900b2af 8995 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8996
d900b2af
AR
8997 * nsterm.m (ns_no_defaults): New variable.
8998 (ns_initialize): Don't read defaults when ns_no_defaults.
8999 (EmacsView-readSelectionFromPasteboard:)
9000 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9001 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9002 (ns_dumpglyphs_stretch): New function.
9003 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9004 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9005
e0d2e69a
AR
9006 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9007
3ac71f5d
CY
90082009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9009
9010 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9011 call for Sparc64.
9012
3fe53a83
AR
90132009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9014
9015 * nsfns.m:
9016 * nsgui.h:
9017 * nsmenu.m:
9018 * nsselect.m:
9019 * nsterm.h:
9020 * nsterm.m: Remove '23' comments that indicated code added during
9021 update from emacs-20 -> emacs-23.
9022
10f87c6f 90232009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9024
9025 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9026 ns_alternate_modifier. (Bug#1217)
a3b53a85 9027
c7cef62d
AR
9028 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9029 Display all shortcuts, including those w/o super modifier.
9030
575fb8bd
AR
9031 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9032
918b848b
CY
90332009-01-22 Chong Yidong <cyd@stupidchicken.com>
9034
9035 * fileio.c (Vwrite_region_post_annotation_function)
9036 (Vwrite_region_annotation_buffers): New vars.
9037 (build_annotations_unwind): Just reset
9038 Vwrite_region_annotation_buffers.
9039 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9040 Call write-region-post-annotation-function.
9041 (build_annotations): Add to Vwrite_region_annotation_buffers if
9042 buffer changes.
9043
a39e2539
AR
90442009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9045
9046 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9047 Tiger.
51d861de
SM
9048 * nsfns.m (ns_do_applescript):
9049 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9050
35ed44db
AR
90512009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9052
9053 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9054
cbe0b5bf
AR
90552009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9056
9057 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9058
6049d3a0
AR
9059 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9060
9061 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9062 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9063 handle Ctrl-tab. (Bug#1841)
9064 (ns_get_color): Use unsigned long long for scanned hex string value.
9065 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9066 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9067 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9068 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9069 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9070 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9071 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9072
d3810c21 9073 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9074 DPI. (Bug#1316)
d3810c21
AR
9075 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9076 values in onTiger section.
4c7077c3 9077
e301e634
CY
90782009-01-19 Chong Yidong <cyd@stupidchicken.com>
9079
7f82490b
CY
9080 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9081 Check return value of font_spec_from_name.
64cc3cf6 9082 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9083
9084 * font.c (font_spec_from_name): Return Qnil if font name could not
9085 be parsed.
9086 (font_parse_name): Treat a `?' character as part of an XLFD.
9087
e301e634
CY
9088 * fns.c (Fsubstring): Doc fix.
9089
1c0db158
KH
90902009-01-19 Kenichi Handa <handa@m17n.org>
9091
51d861de 9092 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9093 (ftfont_list): Likewise.
9094
acf20901
JB
90952009-01-18 Juanma Barranquero <lekktu@gmail.com>
9096
fff4e459
JB
9097 * dbusbind.c (Fdbus_register_signal):
9098 * process.c (conv_sockaddr_to_lisp):
9099 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9100
acf20901
JB
9101 * callproc.c (Fgetenv_internal): Doc fix.
9102
e7abcdfb
CY
91032009-01-16 Chong Yidong <cyd@stupidchicken.com>
9104
9105 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9106 it is not even used.
9107
b60861e6
GM
91082009-01-16 Glenn Morris <rgm@gnu.org>
9109
9110 * font.c (Ffont_variation_glyphs): Silence compiler.
9111
8db52afe
JB
91122009-01-15 Juanma Barranquero <lekktu@gmail.com>
9113
9114 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9115 Reported by David Robinow <drobinow@gmail.com>.
9116
4cddb209
KH
91172009-01-15 Kenichi Handa <handa@m17n.org>
9118
51d861de 9119 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9120
f247f67b
JR
91212009-01-14 Jason Rumney <jasonr@gnu.org>
9122
9123 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9124 never a fontset. (Bug#1562)
f247f67b 9125
f56a4450
KH
91262009-01-14 Kenichi Handa <handa@m17n.org>
9127
9128 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9129 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9130
4e99855e
CY
91312009-01-13 Chong Yidong <cyd@stupidchicken.com>
9132
9133 * font.c (font_clear_prop): If clearing the family, clear the font
9134 width index too.
9135
fff4e459 9136 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9137
24f01470
JB
91382009-01-12 Juanma Barranquero <lekktu@gmail.com>
9139
9140 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9141 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9142 functions, use sizeof.
9143
a41240a3
MR
91442009-01-12 Martin Rudalics <rudalics@gmx.at>
9145
9146 * keyboard.c (read_char): Fix case where last_nonmenu_event
9147 returned a bad value with submenus. (Bug#447)
9148
944636b8
CY
91492009-01-12 Chong Yidong <cyd@stupidchicken.com>
9150
9151 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9152 family, clear the font width index too.
9153
0dad7c6f
JR
91542009-01-11 Jason Rumney <jasonr@gnu.org>
9155
9156 * keyboard.c (cmd_error_internal): Exit when errors occur before
9157 frame creation and not in daemon mode. (Bug#1836)
9158
7c2363af
CY
91592009-01-10 Chong Yidong <cyd@stupidchicken.com>
9160
9161 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9162 of a display vector, backtrack.
9163 (try_window_reusing_current_matrix): Check glyph type before
9164 referencing charpos member.
9165
97b1b294
EZ
91662009-01-10 Eli Zaretskii <eliz@gnu.org>
9167
9168 Fix Bug #876:
9169
9170 * coding.c (inhibit_null_byte_detection): New variable.
9171 (detect_coding, detect_coding_system): Don't pay attention to null
9172 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9173 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9174 <inhibit-iso-escape-detection>: Doc fix.
9175
4624b6e3
JR
91762009-01-09 Jason Rumney <jasonr@gnu.org>
9177
9178 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9179 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9180 Only report Unicode Plane 2 fonts as unicode-sip.
9181
323b840c
CY
91822009-01-09 Chong Yidong <cyd@stupidchicken.com>
9183
51d861de
SM
9184 * xfaces.c (Fx_font_family_list): Delete function.
9185 Move compatibility version to faces.el.
323b840c 9186
51d861de 9187 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9188
eba7400d
MR
91892009-01-09 Martin Rudalics <rudalics@gmx.at>
9190
9191 * frame.c (x_set_frame_parameters): Remember requested value for
9192 fullscreen before it's reset by the parameter handler.
9193
4b09796d
GM
91942009-01-09 Glenn Morris <rgm@gnu.org>
9195
9196 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9197 (last_command_event): ... and update all users.
4b09796d
GM
9198 (last_input_char): For clarity, rename to...
9199 (last_input_event): ... and update all users.
9200 (last-command-char, last-input-char): Move to subr.el as aliases.
9201 * cmds.c, commands.h: Update for last_command_char rename.
9202
14ccea62
CY
92032009-01-08 Chong Yidong <cyd@stupidchicken.com>
9204
51d861de 9205 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9206
5f004711
JR
92072009-01-08 Jason Rumney <jasonr@gnu.org>
9208
9209 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9210 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9211 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9212 Don't declare.
fff4e459 9213 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9214 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9215
b71f6f73
KH
92162009-01-07 Kenichi Handa <handa@m17n.org>
9217
50b06221 9218 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9219 remember the coding system used for decoding in
50b06221
KH
9220 coding_system (Bug#1039).
9221
b71f6f73 9222 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9223 breaking the loop. (Bug#870)
b71f6f73
KH
9224 (decode_coding_utf_16, decode_coding_emacs_mule)
9225 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9226 (decode_coding_charset): Likewise.
9227
56f668f7
MR
92282009-01-05 Martin Rudalics <rudalics@gmx.at>
9229
9230 * frame.c (x_set_frame_parameters): Make sure height (width) get
9231 applied when fullwidth (fullheight) is set. (Bug#1522)
9232
5da9424d
JB
92332009-01-04 Juanma Barranquero <lekktu@gmail.com>
9234
9235 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9236 (utc_base): Declare as ULONGLONG, not long double.
9237 (convert_time_raw): Delete.
9238 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9239 (initialize_utc_base): New function.
9240 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9241 (convert_from_time_t): Use initialize_utc_base; compute result with
9242 64-bit arithmetic.
9243 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9244
c4605e09
EZ
92452009-01-03 Eli Zaretskii <eliz@gnu.org>
9246
9acef61c 9247 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9248 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9249 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9250 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9251 [!subprocesses]: Define.
9252 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9253 (Flist_system_processes, Fsystem_process_attributes)
9254 [!subprocesses]: Call list_system_processes and
9255 system_process_attributes instead of returning Qnil.
9256
9acef61c
JB
9257 * dosfns.c (system_process_attributes, list_system_processes):
9258 New functions.
c4605e09
EZ
9259
9260 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9261
9262 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9263 Don't use the default (no-op) implementation.
9264
8b7d0a16
JR
92652009-01-03 Jason Rumney <jasonr@gnu.org>
9266
a6d46bc1
JR
9267 * keyboard.c (parse_modifiers_uncached): Wheel events are
9268 clicks (bug#687).
9269
8b7d0a16
JR
9270 * w32term.c (x_query_colors, x_query_color): New functions.
9271
9272 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9273 (svg_load_image): Cast returned pointers from dynamically loaded
9274 functions. Eliminate W32 specific code.
9275
bfe11752
DN
92762009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9277
89e2438a
DN
9278 * nsfns.m (x_set_foreground_color, x_set_background_color)
9279 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9280 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9281 x_ prefix instead of ns_. Update references.
9282 (syms_of_nsfns): Add a FIXME comment.
9283
9284 * nsterm.m (x_set_cursor_type): New prototype.
9285 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9286
bfe11752
DN
9287 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9288 for Solaris instead of incorrectly providing Qutime and Qcutime.
9289
031da700
EZ
92902009-01-02 Eli Zaretskii <eliz@gnu.org>
9291
9292 * w32.c (process_times): Compute sum of utime and stime.
9293 (system_process_attributes): Add Qtime to the alist.
9294
9295 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9296 and add them to the alist.
9297
9298 * process.c (top level) <Qtime, Qctime>: New variables.
9299 (syms_of_process): staticpro them.
9300 (Fsystem_process_attributes): Add their documentation to the doc
9301 string.
9302
9303 * process.h: Declare Qtime and Qctime.
9304
df23bf08
JR
93052009-01-02 Jason Rumney <jasonr@gnu.org>
9306
9acef61c 9307 * image.c (Qgobject): New symbol.
df23bf08
JR
9308 (syms_of_image): Initialize it.
9309 (init_svg_functions): Load some functions from gobject library.
9310
5bbdf7aa
DN
93112009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9312
9313 * frame.c (make_terminal_frame): Remove redundant code and useless
9314 block.
9315
63136da6
AS
93162009-01-01 Andreas Schwab <schwab@suse.de>
9317
9318 * process.c (conv_sockaddr_to_lisp): Add workaround for
9319 getsockname bug on BSD.
9320
9ef69046
CY
93212009-01-01 Chong Yidong <cyd@stupidchicken.com>
9322
d6fafbe0
CY
9323 * xfns.c (x_create_tip_frame): Set border width of the X window.
9324
51d861de 9325 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9326
f9c34147
JR
93272009-01-01 Jason Rumney <jasonr@gnu.org>
9328
9acef61c 9329 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9330 Don't block input, as per earlier xterm.c changes.
9331
f5497e45
AR
93322008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9333
9334 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9335 (ns_appkit_version_int): New function.
9336 (x-server-version): Use ns_appkit_version_int and follow 21+
9337 convention of returning 3 integers.
9338
c19cab20
KH
93392008-12-30 Kenichi Handa <handa@m17n.org>
9340
9341 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9342 (CHAR_SURROGATE_PAIR_P): New macro.
9343
9344 * font.h (struct font_driver): New member get_variation_glyphs.
9345
9acef61c 9346 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9347 (Ffont_variation_glyphs): New function.
9348 (syms_of_font): Defsubr it.
9349
9350 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9351 ftfont_variation_glyphs.
9352 (setup_otf_gstring): New function.
9353 (ftfont_drive_otf): Use it.
9354 (ftfont_shape_by_flt): Handle variation selector.
9355 (ftfont_variation_glyphs): New function.
9356
28cd591f
MR
93572008-12-30 Martin Rudalics <rudalics@gmx.at>
9358
9359 * frame.c (Vemacs_iconified): Remove.
9360
7f714baf
JR
93612008-12-30 Jason Rumney <jasonr@gnu.org>
9362
9363 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9364 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9365
9d2d22ab
CY
93662008-12-30 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * indent.c (Fvertical_motion): Don't advance iterator if we have
9369 reseated to the desired position.
9370
9371 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9372 checking for pos match.
9373
545312c2
KH
93742008-12-30 Kenichi Handa <handa@m17n.org>
9375
1ede3eb6
KH
9376 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9377 just get the low 8-bit of the code.
9378
545312c2
KH
9379 * font.c (font_intern_prop): Validate str as multibyte.
9380
bd7bbf29
DN
93812008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9382
31e0750e
DN
9383 * dispextern.h (struct face): Move lface and hash from the middle
9384 of bitfields.
9385
bd7bbf29
DN
9386 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9387
b5672e7c
DN
93882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9389
9390 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9391 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9392 instead of intervals.h.
9393
d704470f
AS
93942008-12-26 Andreas Schwab <schwab@suse.de>
9395
9396 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9397 cons.
9398
54b33868
MR
93992008-12-26 Martin Rudalics <rudalics@gmx.at>
9400
9401 * textprop.c (Qminibuffer_prompt): New variable.
9402 (syms_of_textprop): Initialize it.
9403 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9404 in minibuffer-prompt face. (Bug#1662)
9405
40b615d6
JR
94062008-12-25 Jason Rumney <jasonr@gnu.org>
9407
9408 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9409
baae5c2d
JR
94102008-12-24 Jason Rumney <jasonr@gnu.org>
9411
9412 * ralloc.c (r_alloc_reset_variable): New function.
9413
9414 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9415 record of what points where. (Bug#716)
baae5c2d 9416
a9051c88
DN
94172008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9418
9419 * minibuf.c (read_minibuf): Follow the non-interactive case when
9420 running as a daemon, before detaching.
9421
8b146312
AS
94222008-12-22 Andreas Schwab <schwab@suse.de>
9423
9424 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9425 * gtkutil.c (free_widget_value): Use xfree instead of free.
9426
56f2de10
MR
94272008-12-22 Martin Rudalics <rudalics@gmx.at>
9428
9429 * frame.c (delete_frame): New function derived from
9430 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9431 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9432 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9433 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9434 * frame.h: Extern delete_frame.
9435 * window.c (window_loop):
9436 * terminal.c (delete_terminal):
9437 * xterm.c (x_connection_closed):
9438 * xfns.c (Fx_hide_tip):
9acef61c 9439 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9440
1fc200d6
JR
94412008-12-21 Jason Rumney <jasonr@gnu.org>
9442
9443 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9444 when character maps to .notdef character.
9445
5e252df2
SM
94462008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9447
9448 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9449
99b72cc4
JR
94502008-12-20 Jason Rumney <jasonr@gnu.org>
9451
9452 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9453 a graphical frame on Windows. (Bug#1325)
99b72cc4 9454
acc49a52
JD
94552008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9456
9457 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9458
6ea15123
CY
94592008-12-20 Chong Yidong <cyd@stupidchicken.com>
9460
9461 * minibuf.c (Fread_buffer): Doc fix.
9462
b2dab6c8
JR
94632008-12-20 Jason Rumney <jasonr@gnu.org>
9464
54ea0c87 9465 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9466 server name in UNC paths. (Bug#719)
54ea0c87 9467
b2dab6c8 9468 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9469 charbuf. (Bug#1035)
b2dab6c8 9470
6d1921be
DN
94712008-12-19 Daniel Engeler <engeler@gmail.com>
9472
9473 * sysdep.c (serial_configure): Fix typo.
9474
53934c98
DN
94752008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9476
9477 * sysdep.c: Include alloca.h.
f4f634e8
DN
9478 (system_process_attributes): Add implementation for Solaris.
9479
9480 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9481
06e111a6
DN
94822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9483
9484 Reorganize implementation of Flist_system_processes and
9485 Fsystem_process_attributes. No functional changes.
9486 * process.c: Don't #include pwd.h, grp.h and limits.h.
9487 (Flist_system_processes): Just call list_system_processes.
9488 (Fsystem_process_attributes): Just call system_process_attributes.
9489 (procfs_list_system_processes, time_from_jiffies)
9490 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9491 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9492
9493 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9494 (list_system_processes): Rename from
9495 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9496 Provide a do nothing implementation.
9497 (system_process_attributes): Rename from
9498 procfs_list_system_processes.
9499 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9500 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9501
9502 * w32.c (list_system_processes): Rename from
9503 w32_list_system_processes.
9504 (system_process_attributes): Rename from
9505 w32_system_process_attributes.
9506
9507 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9508
9509 * process.h (w32_list_system_processes)
9510 (w32_system_process_attributes): Remove.
362654a6
JB
9511 (list_system_processes, system_process_attributes):
9512 New prototypes.
06e111a6 9513
6a705b23
KH
95142008-12-19 Kenichi Handa <handa@m17n.org>
9515
9516 * xfont.c (xfont_decode_coding_xlfd): New function.
9517 (xfont_encode_coding_xlfd): New function.
9518 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9519 (xfont_list): Decode and encode XLFD by iso-8859-1.
9520 (xfont_match): Likewise.
9521 (xfont_list_family): Likewise.
9522 (xfont_open): Likewise.
9523
d66c0241 9524 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9525 names are utf-8.
9526
d66c0241 9527 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9528 names are utf-8.
9529
5a130941
JD
95302008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9531
9532 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9533 changed.
bfd20325
JD
9534 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9535 clicked on a detached tool bar button.
5a130941 9536
fd95644b
DN
95372008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9538
9539 * emacs.c (main): Print and error and exit when no data is read
9540 from the pipe.
9541
e6eee6ae
JR
95422008-12-17 Jason Rumney <jasonr@gnu.org>
9543
9544 * w32font.c (w32font_has_char): Always return -1.
9545
a35dd56b
KH
95462008-12-16 Kenichi Handa <handa@m17n.org>
9547
9548 * font.c (font_open_entity): Fix previous change.
9549
0e3635c2
DN
95502008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9551
9552 * process.c: Include <limits.h>.
9553
d4835507 95542008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9555
9556 * font.c (font_update_drivers): Fix mistake in reconstructing the
9557 driver list.
9558
95592008-12-16 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * font.c (font_clear_cache): Fix format of font cache data.
9562
e2cbc401
CY
95632008-12-15 Chong Yidong <cyd@stupidchicken.com>
9564
9565 * xftfont.c (xftfont_open): Free Xft font pattern if
9566 XftFontOpenPattern fails.
9567
9568 * xterm.c (x_free_frame_resources): Remove extraneous call to
9569 free_frame_faces.
9570
b131d535
CY
95712008-12-13 Chong Yidong <cyd@stupidchicken.com>
9572
9573 * xterm.c (x_delete_display): Move xim_close_dpy call to
9574 x_delete_terminal.
9575 (x_delete_terminal): Call xim_close_dpy.
9576
e6df5336
JR
95772008-12-13 Jason Rumney <jasonr@gnu.org>
9578
9579 * w32font.c (intern_font_name): New function.
9580 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9581 (w32font_open_internal, Fx_select_font): Decode font name.
9582 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9583
9584 * w32font.h (intern_font_name): Declare new function.
9585
9586 * w32uniscribe.c (add_opentype_font_name_to_list):
9587 Use intern_font_name.
9588
20d68145
CY
95892008-12-13 Chong Yidong <cyd@stupidchicken.com>
9590
9f2554de
CY
9591 * frame.c (Fdelete_frame): Call free_font_driver_list.
9592
3d9bec9a
CY
9593 * font.c (free_font_driver_list): Implement missing function.
9594
20d68145
CY
9595 * w32term.c (w32_term_init): Don't initialize the image cache
9596 here; it will be done in init_frame_faces.
9597
9598 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9599 (struct x_display_info): Remove unused member null_pixel. New
9600 member xim_callback_data.
9601
9602 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9603 (xim_initialize): Save pointer to callback function data.
9604 (xim_close_dpy): Free callback function data. Call XCloseIM,
9605 reverting 2008-11-04 change by David Smith.
9606 (x_term_init): Don't initialize the image cache here; it will be
9607 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9608 (x_delete_display): Free x_dnd_atoms member.
9609
96f9306b
KH
96102008-12-13 Kenichi Handa <handa@m17n.org>
9611
6dec9044
JB
9612 * font.c (font_rescale_ratio): Moved from xfaces.c.
9613 Argument type changed. Handle a font-spec too.
96f9306b 9614 (font_score): Check Vface_font_rescale_alist.
6dec9044 9615 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9616
9617 * xfaces.c (font_rescale_ratio): Moved to font.c.
9618
8d5b4964
CY
96192008-12-13 Chong Yidong <cyd@stupidchicken.com>
9620
9621 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9622
e6df5336
JR
96232008-12-12 Jason Rumney <jasonr@gnu.org>
9624
9625 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9626 Vwindow_system_version to the real w32 major version.
9627
97c6058a
DN
96282008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9629
9630 * term.c (init_tty): Move setting the terminal name before the
9631 potential user: maybe_fatal.
9632
ec4e88d7
CY
96332008-12-11 Chong Yidong <cyd@stupidchicken.com>
9634
d4835507
JB
9635 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9636 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9637
b4233ec9
JR
96382008-12-11 Jason Rumney <jasonr@gnu.org>
9639
8ec71e23 9640 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9641 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9642
b4233ec9 9643 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9644 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9645
011a0143
JB
96462008-12-11 Juanma Barranquero <lekktu@gmail.com>
9647
9648 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9649
3c309f34
JB
96502008-12-11 Juanma Barranquero <lekktu@gmail.com>
9651
9652 * process.c (Fsystem_process_attributes, syms_of_process):
9653 Fix typo in name of Ssystem_process_attributes.
9654 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9655
fedc6ab5
JB
96562008-12-11 Juanma Barranquero <lekktu@gmail.com>
9657
9658 * syntax.c (Fmodify_syntax_entry): Doc fix.
9659
ba3de0e8
JB
96602008-12-10 Juanma Barranquero <lekktu@gmail.com>
9661
9662 * font.c (Ffont_spec): Move usage to end of docstring.
9663
174f1c74
JR
96642008-12-10 Jason Rumney <jasonr@gnu.org>
9665
9666 * w32font.c (Qcham): New symbol.
9667 (font_supported_scripts): Add cham, and comments for other new
9668 scripts in bitfield from OpenType spec.
9d32f818
JR
9669 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9670 contain characters beyond the bmp.
174f1c74 9671
7b649478
KH
96722008-12-10 Kenichi Handa <handa@m17n.org>
9673
9674 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9675 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9676 Qunicode_sip.
9677
2133e2d1
JB
96782008-12-10 Juanma Barranquero <lekktu@gmail.com>
9679
9680 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9681 (Fcoding_system_put): Use QCdefault_char.
9682 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9683
9af886ee
CY
96842008-12-09 Chong Yidong <cyd@stupidchicken.com>
9685
74d819eb
CY
9686 * xftfont.c (syms_of_xftfont): Fix typo.
9687
4ccfa1c0 9688 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9689
7c19d3ae
DN
96902008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9691
9692 * emacs.c (main): Close daemon_pipe on exec.
9693
567826bb
CY
96942008-12-08 Chong Yidong <cyd@stupidchicken.com>
9695
9696 * termchar.h (struct tty): New members termcap_term_buffer and
9697 termcap_strings_buffer.
9698
9699 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9700 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9701 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9702 All callers changed.
9703 (init_tty): Store termcap data and string buffers in new struct
9704 tty members termcap_term_buffer and termcap_strings_buffer.
9705 (delete_tty): Free them.
4ccfa1c0 9706 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9707
aa96c42b
SZ
97082008-12-07 Seiji Zenitani <zenitani@mac.com>
9709
9710 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9711 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9712
b7e1d896
CY
97132008-12-06 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * coding.c (make_conversion_work_buffer): Disable buffer
9716 modification hooks in the work buffer.
9717
b5ec91a5
EZ
97182008-12-05 Eli Zaretskii <eliz@gnu.org>
9719
9720 * process.c (procfs_system_process_attributes): If `nread' has a
9721 negative value, assign zero to it.
9722
a5d2a52b
CY
97232008-12-05 Chong Yidong <cyd@stupidchicken.com>
9724
68c5540b 9725 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9726
7bf1bb21
KH
97272008-12-05 Kenichi Handa <handa@m17n.org>
9728
9729 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9730 second character is a combining character.
9731
2fdc7d00
EZ
97322008-12-05 Eli Zaretskii <eliz@gnu.org>
9733
9734 * process.c (procfs_system_process_attributes): Don't use cmd,
9735 cmdsize, and q without initializing them first.
9736
bf6bfba8
JR
97372008-12-04 Jason Rumney <jasonr@gnu.org>
9738
9739 * w32font.c (w32font_draw): Initialize orig_clip before getting
9740 it, and delete it when finished.
9741
a3b1a468
DN
97422008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9743
9744 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9745 case when running as a daemon before detaching.
9746
8b8be8eb
JB
97472008-12-03 Juanma Barranquero <lekktu@gmail.com>
9748
805f2638 9749 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9750
b1bde622
KH
97512008-12-03 Kenichi Handa <handa@m17n.org>
9752
e500c47d
KH
9753 * font.c (font_at): Set `multibyte' at first.
9754
ca516334
KH
9755 * coding.c (decode_coding_charset): Check type of an element of
9756 vector VALIDS.
7bf1bb21 9757 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9758
4ccfa1c0 9759 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9760 (font_for_char): Likewise.
9761
1e5ecd37
CY
97622008-12-03 Chong Yidong <cyd@stupidchicken.com>
9763
d5b01609 9764 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9765 (font_update_lface): Handle fonts with corrupted size specs,
9766 i.e. non-int and non-float.
d5b01609 9767
11e3a6e4 9768 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9769 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9770 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9771
ab06788b
CY
9772 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9773
1e5ecd37 9774 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9775 underline_minimum_offset for underline position.
1e5ecd37 9776
63c125ab
DN
97772008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9778
9779 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9780
9781 * character.c (c_string_width): Specify the type for LEN.
9782
3a8406e1
KH
97832008-12-03 Kenichi Handa <handa@m17n.org>
9784
4ccfa1c0 9785 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9786 (decode_coding_utf_8): Likewise.
4ccfa1c0 9787 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9788 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9789
651df7d9
CY
97902008-12-02 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * keyboard.c (make_lispy_position): Only use PT if the selected
9793 window is current.
9794
1f625c6c
AS
97952008-12-02 Andreas Schwab <schwab@suse.de>
9796
f7741ce9
AS
9797 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9798
1f625c6c
AS
9799 * doprnt.c (doprnt1): Fix size of charbuf.
9800
92bc2678
CY
98012008-12-02 Chong Yidong <cyd@stupidchicken.com>
9802
9803 * keyboard.c (timer_check): Revert last change.
9804
93b9e8cc
JB
98052008-12-02 Juanma Barranquero <lekktu@gmail.com>
9806
9807 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9808
fd7a37d5
JB
98092008-12-01 Juanma Barranquero <lekktu@gmail.com>
9810
9811 * makefile.w32-in: Update dependencies.
9812 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9813
c115043b
AS
98142008-12-01 Andreas Schwab <schwab@suse.de>
9815
9816 * font.c (register_font_driver): Use xmalloc.
9817 (font_put_frame_data): Likewise.
9818
f5668d2a
CY
98192008-12-01 Chong Yidong <cyd@stupidchicken.com>
9820
860d96be
CY
9821 * xfaces.c (realize_x_face): Make abort condition clearer.
9822
f5668d2a
CY
9823 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9824
379c17e7
CY
98252008-11-30 Chong Yidong <cyd@stupidchicken.com>
9826
9827 * keyboard.c (timer_check): After a timer runs, ensure that the
9828 selected window's buffer is current.
9829
35f36d65
JB
98302008-11-30 Juanma Barranquero <lekktu@gmail.com>
9831
f952c61c
JB
9832 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9833 It was accidentally restored by the Unicode merge.
9834
35f36d65
JB
9835 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9836
b23077df
JB
98372008-11-29 Juanma Barranquero <lekktu@gmail.com>
9838
9839 * w32proc.c: Include "coding.h".
9840 (Fw32_short_file_name): Encode filename passed to Windows API.
9841 (Fw32_long_file_name): Encode filename passed to Windows API and
9842 decode back the result. (Bug#1433)
9843
b8ebe9dd
KH
98442008-11-29 Kenichi Handa <handa@m17n.org>
9845
8cc53f96
KH
9846 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9847 not before accessing it.
9848
b8ebe9dd
KH
9849 * charset.c (Fdefine_charset_internal): After calculating
9850 min_char, max_char, and fastmap, copy the charset structure again.
9851 (encode_char): Fix the previous change.
9852
59bc82c0
SZ
98532008-11-28 Seiji Zenitani <zenitani@mac.com>
9854
9855 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9856
9857 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9858
9859 * nsterm.m (x_set_frame_alpha): New function.
9860
32247e3d
EZ
98612008-11-27 Eli Zaretskii <eliz@gnu.org>
9862
9863 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9864
b003e5ff
JB
98652008-11-27 Juanma Barranquero <lekktu@gmail.com>
9866
9867 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9868 pointer to check_face_name.
9869
708550f5
KH
98702008-11-27 Kenichi Handa <handa@m17n.org>
9871
9872 * category.h (SET_CATEGORY_SET): Call set_category_set.
9873 (set_category_set): Extern it.
9874
9875 * category.c (hash_get_category_set): New function.
9876 (Fmodify_category_entry): Adjusted for the change of
9877 char_table_ref_and_range. Call hash_get_category_set to get a
9878 category set to store in the table.
9879
9880 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9881 Funify_charset.
9882
2ae37cf0 9883 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9884 (DECODE_CHAR): Check if the decoder vector is ready.
9885 (ENCODE_CHAR): Check if the encoder char-table is ready.
9886 (maybe_unify_char): Extern it.
9887
9888 * charset.c (Vchar_unified_charset_table): Delete it.
9889 (inhibit_load_charset_map): New variable.
9890 (temp_charset_work): New variable.
9891 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9892 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9893 New macros.
9894 (load_charset_map): Meaning of control_flag changed. If
9895 inhibit_load_charset_map is nonzero, setup a table in
9896 temp_charset_work.
9897 (load_charset): New argument control_flag.
9898 (map_charset_for_dump): New function.
9899 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9900 map_charset_for_dump.
9901 (Fdefine_charset_internal): If the charset method is MAP, load
9902 mapping tables by calling load_charset.
9903 (Funify_charset): Don't load a mapping table but directly set
9904 Vchar_unify_table.
9905 (maybe_unify_char): New function.
9906 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9907 Handle the case of inhibit_load_charset_map being nonzero.
9908 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9909 Handle the case of inhibit_load_charset_map being nonzero.
9910 (Fclear_charset_maps): Just free temp_charset_work.
9911 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9912 variable.
9913
9914 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9915 change of char_table_ref_and_range.
9916 (char_table_ref_and_range): Change the meaning of argument FROM
9917 and TO. Now the caller must provide initial values for *FROM
9918 and *TO.
9919
9920 * fontset.c (fontset_add): Adjusted for the change of
9921 char_table_ref_and_range.
9922 (fontset_get_font_group): Likewise.
9923 (Ffontset_info): Likewise.
9924
9925 * keymap.c (describe_vector): Adjusted for the change of
9926 char_table_ref_and_range. For char-table, put boundary between
9927 non-ASCII and 8-bit characters.
9928
9929 * print.c (print_object): For bool-vector, delete unnecessary
9930 check of ASCII_BYTE_P.
9931
9196133b
JR
99322008-11-26 Jason Rumney <jasonr@gnu.org>
9933
9934 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9935 leading in font height. (Bug#879)
9196133b 9936
9f688acf
GM
99372008-11-26 Glenn Morris <rgm@gnu.org>
9938
9939 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9940 redefinition with ifdef. (Bug#1383)
9941
90d19aff
AR
99422008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9943
9944 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9945
4ccfa1c0 99462008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9947
9948 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9949 New EmacsView methods.
9950 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9951 Fixes bug #1048,1357,1414.
9952
99532008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9954
9955 Fix bug #1362.
9956 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9957 is not an indexed color.
9958 * nsterm.m (free_indexed_color): Add argument checking.
9959 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9960
e7d5ecb3
CY
99612008-11-24 Chong Yidong <cyd@stupidchicken.com>
9962
9963 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9964 Document confirm-after-completion value for
9965 minibuffer-completion-confirm.
9966
c285743c
JR
99672008-11-24 Jason Rumney <jasonr@gnu.org>
9968
9969 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9970 warning.
9971
b0857706
JR
99722008-11-23 Jason Rumney <jasonr@gnu.org>
9973
9974 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9975 restored before returning.
9976
9977 * w32font.c (check_face_name): New function.
9978 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9979 fonts. (Bug#642)
b0857706 9980
ee50ff07
MR
99812008-11-22 Martin Rudalics <rudalics@gmx.at>
9982
9983 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9984 confirm-nonexistent-file-or-buffer in doc-string.
9985
b8ff72fa
SM
99862008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9987
9988 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9989 Fix copy/paste typo. Add checks.
9990
cee53ed4
KH
99912008-11-21 Kenichi Handa <handa@m17n.org>
9992
9993 * coding.c (detect_coding_iso_2022): Reject invalid composition
9994 sequence.
9995 (DECODE_COMPOSITION_START): If the current source is the last
9996 block, and the current composition doesn't end, regard this
9997 sequence as invalid.
9998 (decode_coding_iso_2022): Handle invalid composition sequence.
9999
f6ef1e65
MR
100002008-11-20 Martin Rudalics <rudalics@gmx.at>
10001
10002 * window.c (coordinates_in_window): Don't return
10003 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10004 line when the window is not the rightmost one. (Bug#1372)
10005
e08b1705
MR
100062008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10007
10008 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10009
ad98e89f
EZ
100102008-11-15 Eli Zaretskii <eliz@gnu.org>
10011
10012 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10013 and bright_bg if noninteractive is non-zero.
10014
fb098a4b
CY
100152008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10016
10017 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10018 x_draw_glyph_string_background.
10019
10020 * w32term.c (x_draw_glyph_string): Likewise.
10021
ce952b6e
CY
100222008-11-15 Chong Yidong <cyd@stupidchicken.com>
10023
10024 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10025 the next glyph string once past the overhang width.
10026
10027 * nsterm.m (ns_draw_glyph_string): Likewise.
10028
10029 * w32term.c (x_draw_glyph_string): Likewise.
10030
26ea7079
CY
100312008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10032
10033 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10034 double file close.
10035
1c33c906
MR
100362008-11-14 Martin Rudalics <rudalics@gmx.at>
10037
10038 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10039 dedicated status of window before attempting to display another
10040 buffer in it.
10041
8fc29035
JB
100422008-11-14 Juanma Barranquero <lekktu@gmail.com>
10043
10044 * msdos.c (Fmsdos_long_file_names):
10045 (syms_of_msdos) <dos-unsupported-char-glyph>:
10046 * dosfns.c (Fint86): Fix typos in docstrings.
10047
55fb4286
EZ
100482008-11-14 Eli Zaretskii <eliz@gnu.org>
10049
10050 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10051
3fda0315
KY
100522008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10053
10054 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10055
7e849c17
CY
100562008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10057
10058 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10059
10060 * frame.h: Negative alpha means "don't touch".
10061
10062 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10063
10064 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10065
b9fd67bd
DN
100662008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10067
10068 * hftctl.c:
10069 * chpdef.h:
10070 * acldef.h: Remove files used only for systems no longer supported.
10071
10072 * Makefile.in: Fix .o alphabetical ordering.
10073 (hftctl.o): Remove dependency, file removed.
10074 (keymap.o, print.o): Depend on charset.h.
10075
d5998e03
KH
100762008-11-10 Kenichi Handa <handa@m17n.org>
10077
2ae37cf0 10078 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10079
be70e183
CY
100802008-11-08 Chong Yidong <cyd@stupidchicken.com>
10081
10082 * dired.c (file_name_completion): If completion_ignore_case is
10083 enabled, ignore case when checking completion-regexp-list.
10084
7cf94eac
EZ
100852008-11-08 Eli Zaretskii <eliz@gnu.org>
10086
10087 * vm-limit.c (get_lim_data): Fix last change.
10088
ee107a89
KH
100892008-11-08 Kenichi Handa <handa@m17n.org>
10090
10091 * character.c (Fget_byte): New function.
10092 (syms_of_character): Defsubr Fget_byte.
10093
5fd15622
CY
100942008-11-07 Chong Yidong <cyd@stupidchicken.com>
10095
10096 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10097 cursor position is valid after scrolling.
10098
13d62fad
JB
100992008-11-06 Juanma Barranquero <lekktu@gmail.com>
10100
10101 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10102
a1dd2936
GM
101032008-11-06 Glenn Morris <rgm@gnu.org>
10104
10105 * xterm.c (handle_one_xevent): Don't let popup menus cause
10106 mouse-autoselect-window related window switching. (Bug#1261)
10107
860cd236
CY
101082008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10109
10110 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10111
653a3150
AS
101122008-11-04 Andreas Schwab <schwab@suse.de>
10113
10114 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10115
870f5cac
CY
101162008-11-03 Chong Yidong <cyd@stupidchicken.com>
10117
10118 * xfns.c (Fx_wm_set_size_hint): New function.
10119
1e02f3cb
MR
101202008-11-03 Martin Rudalics <rudalics@gmx.at>
10121
10122 * textprop.c (Fprevious_single_char_property_change): Return 0
10123 when there's no change in a string. (Bug#1301)
10124
e630dfc6
MR
101252008-11-02 Martin Rudalics <rudalics@gmx.at>
10126
10127 * frame.c (do_switch_frame): New argument NORECORD passed to
10128 Fselect_window.
10129 (Fselect_frame): New argument NORECORD passed to
10130 do_switch_frame.
10131 (Fset_frame_selected_window): New argument NORECORD passed to
10132 Fselect_frame.
10133 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10134 in call of do_switch_frame.
10135 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10136 Handle NORECORD argument in call of Fselect_frame.
10137 * lisp.h (do_switch_frame, Fselect_frame)
10138 (Fset_frame_selected_window): Adjust declarations.
10139 * window.c (select_frame_norecord): New function.
10140 (run_window_configuration_change_hook): Use it and call
10141 Fselect_frame with NORECORD set.
10142 (Fselect_window): Pass NORECORD to Fselect_frame.
10143 (Fset_window_configuration): Handle NORECORD argument in call of
10144 do_switch_frame.
10145 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10146 Fset_frame_selected_window.
10147 * keyboard.c (command_loop_1): Handle NORECORD in call of
10148 Fselect_frame (currently ifdefd).
10149
9020b223
GM
101502008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10151
10152 * emacs.c (USAGE2): Untabify.
10153
793ffee8
SM
101542008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10155
10156 * composite.c (fill_gstring_header): Fix copy/paste typo.
10157
ab6d1131
MR
101582008-10-31 Martin Rudalics <rudalics@gmx.at>
10159
10160 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10161 (Fother_window): Rename argument and rewrite doc-string.
10162 (select_window_norecord): Fix return value. (Bug#1276)
10163
601a9cf1
JB
101642008-10-30 Juanma Barranquero <lekktu@gmail.com>
10165
10166 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10167 new frames overriding foreground for tooltips. Based on similar patch
10168 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10169
813b0652
CY
101702008-10-29 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * emacs.c (Fdaemon_initialized): Initialize nfd.
10173
4414f58f
MR
101742008-10-29 Martin Rudalics <rudalics@gmx.at>
10175
10176 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10177 (Fwindow_text_height): Clarify doc-strings.
10178 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10179 doc-string of window-scroll-functions.
10180
ecdcaa09
RS
101812008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10182
10183 * category.c (syms_of_category): Fix typo in docstring.
10184
23fe745a
JB
101852008-10-28 Juanma Barranquero <lekktu@gmail.com>
10186
10187 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10188 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10189 Fix typos in docstrings.
10190
ff808935
DN
101912008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10192
10193 * emacs.c (daemon_pipe): Make non-static.
10194 (IS_DAEMON): Move definition ...
10195 * lisp.h (IS_DAEMON): ... here.
10196 (daemon_pipe): Declare.
10197 (is_daemon): Remove.
10198 * dispnew.c (init_display): Use IS_DAEMON.
10199
fc012771
SM
102002008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10201
10202 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10203 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10204
10205 * emacs.c (is_daemon): Remove.
10206 (main): Don't set is_daemon.
10207 (IS_DAEMON): New macro.
10208 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10209 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10210 parent exits.
10211 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10212
d8bdbe6f
CY
102132008-10-27 Chong Yidong <cyd@stupidchicken.com>
10214
d1a072bf
CY
10215 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10216 over-sized glyph, draw it with the default glyph width.
10217
e2e325aa
CY
10218 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10219 glyph, draw it with the default glyph width.
10220
10221 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10222 glyph, draw it with the default glyph width.
10223
d8bdbe6f
CY
10224 * xdisp.c (try_scrolling): When computing the distance from the
10225 scroll margin to PT, try moving some distance past the window
10226 bottom before giving up.
10227
7bfac547
MR
102282008-10-27 Martin Rudalics <rudalics@gmx.at>
10229
10230 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10231 (Fset_window_buffer): Explain in doc-string that a window can be
10232 "strongly" dedicated to its buffer.
10233
4ff029f6
DN
102342008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10235
10236 * emacs.c (daemon_name): New variable.
10237 (main): Deal with --daemon=SERVER_NAME.
10238 (Fdaemonp): Return a name if one was passed to --daemon.
10239
5790ef40
DN
102402008-10-26 Romain Francoise <romain@orebokech.com>
10241
f9bd0df9 10242 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10243 (main): Create a pipe before forking, make the parent exit only after
10244 the child has closed its end of the pipe. Move closing the
10245 descriptors ...
10246 (Fdaemon_initialized): ... here. New function.
10247
f5385255
SM
102482008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10249
4d632321
SM
10250 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10251 the previous unoptimized table.
10252
f5385255
SM
10253 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10254 the distinction between non-nil and non-t value of `dedicated'.
10255
6c56a0f3
CY
102562008-10-25 Chong Yidong <cyd@stupidchicken.com>
10257
10258 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10259 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10260
fec89261
MR
102612008-10-25 Martin Rudalics <rudalics@gmx.at>
10262
10263 * window.c (Fget_buffer_window, Fdelete_windows_on)
10264 (Freplace_buffer_in_windows): Make buffer argument optional and
10265 rename to buffer_or_name.
10266
34fcddd0
CY
102672008-10-24 Chong Yidong <cyd@stupidchicken.com>
10268
f5385255
SM
10269 * xdisp.c (handle_single_display_spec, handle_display_prop):
10270 Undo 2005-05-16 change.
34fcddd0
CY
10271 (handle_stop): Pop iterator if it's loaded with an empty string.
10272 (get_overlay_strings_1): Don't save iterator if it's loaded with
10273 an empty string (bug#1201).
10274
064766f2
KH
102752008-10-24 Kenichi Handa <handa@m17n.org>
10276
10277 * ftfont.c (ftfont_otf_features): Fix previous change.
10278 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10279 calling ftfont_otf_features.
10280
f9bd0df9 102812008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10282
10283 * font.c (font_match_p): Fix for the case that a vector of
10284 characters is in script-representative-chars.
10285
1dae9197
MA
102862008-10-24 Michael Albinus <michael.albinus@gmx.de>
10287
10288 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10289 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10290 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10291 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10292 macro. (Bug#1186)
1dae9197 10293
f9bd0df9 102942008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10295
10296 * s/sol2-10.h: New file.
10297
878a4584
JB
102982008-10-23 Juanma Barranquero <lekktu@gmail.com>
10299
10300 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10301 poor beast has survived 9+ years and the jump from xterm.c!).
10302
cd265ca6
MR
103032008-10-23 Martin Rudalics <rudalics@gmx.at>
10304
10305 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10306 Reword doc-string.
f5385255 10307 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10308
472a4dc9
JB
103092008-10-23 Juanma Barranquero <lekktu@gmail.com>
10310
10311 * character.c (syms_of_character) <script-representative-chars>:
10312 <unicode-category-table>: Doc fixes.
10313
159bd5a2
NF
103142008-10-23 Noah Friedman <friedman@splode.com>
10315
10316 * coding.c (make_conversion_work_buffer): Check that
10317 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10318 Fget_buffer_create.
10319
49f9c344
KH
103202008-10-23 Kenichi Handa <handa@m17n.org>
10321
10322 * font.c (font_add_log): Check the values of extra properties.
10323
12bb3111
MR
103242008-10-22 Martin Rudalics <rudalics@gmx.at>
10325
10326 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10327 Reword doc-string.
10328 (Fset_window_parameter): Use NILP.
10329 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10330 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10331
bbeb4e99
JB
103322008-10-22 Juanma Barranquero <lekktu@gmail.com>
10333
10334 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10335
103362008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10337
10338 * nsfns.m (ns_appkit_version): New function.
10339 (x-server-version): Use it.
10340 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10341 (x-server-vendor): Don't check_ns().
10342
10343 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10344
a9b555d3
JB
103452008-10-22 Juanma Barranquero <lekktu@gmail.com>
10346
10347 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10348 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10349
4626499f
KH
103502008-10-22 Kenichi Handa <handa@m17n.org>
10351
e3681952
KH
10352 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10353 scripts.
10354
4626499f
KH
10355 * category.c (word_boundary_p): Check scripts instead of charset.
10356 Handle nil value in word-separating-categories and
10357 word-combining-categories.
10358 (syms_of_category): Fix docstrings of word-separating-categories
10359 and word-combining-categories.
10360
1560f91a
EZ
103612008-10-21 Eli Zaretskii <eliz@gnu.org>
10362
10363 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10364 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10365
f4668441
MR
103662008-10-21 Martin Rudalics <rudalics@gmx.at>
10367
10368 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10369 Rename arg "buffer" to "buffer_or_name".
10370 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10371 it optional.
10372 (no_switch_window): Remove since the return value is not used.
a9b555d3 10373 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10374 Consider window as dedicated when Fwindow_dedicated_p returns a
10375 non-nil value.
10376 * lisp.h: Remove prototype for no_switch_window.
10377
fd75ddb2
JD
103782008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10379
10380 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10381 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10382
07295713
KH
103832008-10-21 Kenichi Handa <handa@m17n.org>
10384
10385 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10386 check Vlatin_extra_code_table.
10387
712adc82
EZ
103882008-10-20 Eli Zaretskii <eliz@gnu.org>
10389
10390 * fileio.c (Fset_file_modes): Doc fix.
10391
f549eb0b
MA
103922008-10-19 Michael Albinus <michael.albinus@gmx.de>
10393
10394 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10395 in arrays.
10396
aac0c6e3
MR
103972008-10-19 Martin Rudalics <rudalics@gmx.at>
10398
10399 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10400 Mention kill-buffer in doc-string.
10401 (Fset_window_buffer): Reinsert tem check removed in last commit.
10402 (Fenlarge_window, Fshrink_window): Have argument names and
10403 doc-string follow Elisp manual more closely.
10404
104052008-10-18 Eli Zaretskii <eliz@gnu.org>
10406
10407 * fileio.c (Fset_file_modes): Doc fix.
10408
104092008-10-18 Martin Rudalics <rudalics@gmx.at>
10410
10411 * window.c (Fwindow_width, Fset_window_start)
10412 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10413 (Fdelete_windows_on, Freplace_buffer_in_windows):
10414 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10415 (Fwindow_dedicated_p): Make window argument optional.
10416 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10417 (Fset_window_buffer): Respect any non-nil dedicated value for
10418 window. Rename "buffer" argument to "buffer_or_name".
10419
104202008-10-18 Ulrich Mueller <ulm@gentoo.org>
10421
10422 * m/sh3.h: New file, machine description for SuperH.
10423
104242008-10-17 Martin Rudalics <rudalics@gmx.at>
10425
10426 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10427
104282008-10-17 Kenichi Handa <handa@m17n.org>
10429
10430 * ftfont.c (ftfont_otf_features): Fix indexing
10431 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10432
104332008-10-16 Magnus Henoch <mange@freemail.hu>
10434
10435 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10436 (Fdbus_call_method_asynchronously): Ditto.
10437 This change makes C-h f display the argument list.
10438
104392008-10-16 Chong Yidong <cyd@stupidchicken.com>
10440
10441 * fileio.c (Fexpand_file_name): Doc fix.
10442
10443 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10444 of :foreground and :background equivalent to unspecified (20.x
10445 compatibility).
10446
104472008-10-15 Eli Zaretskii <eliz@gnu.org>
10448
10449 * buffer.c (syms_of_buffer): Doc fix.
10450
104512008-10-14 Kenichi Handa <handa@m17n.org>
10452
10453 * font.c (font_clear_prop): When clearing font width, clear the
10454 average width field too.
10455
104562008-10-12 Andreas Schwab <schwab@suse.de>
10457
10458 * ftfont.c (ftfont_shape_by_flt): Make static.
10459 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10460
10461 * font.c: Don't include <m17n-flt.h>.
10462
104632008-10-10 Eli Zaretskii <eliz@gnu.org>
10464
10465 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10466
104672008-10-09 Eli Zaretskii <eliz@gnu.org>
10468
10469 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10470 away code.
10471
104722008-10-09 Chong Yidong <cyd@stupidchicken.com>
10473
10474 * dispnew.c (update_text_area): Avoid looping due to large glyph
10475 overhangs (bug#1070).
10476
104772008-10-09 Kenichi Handa <handa@m17n.org>
10478
10479 * fontset.c (face_for_char): If face->fontset is negative, just
10480 return ascii_face.
10481
f5385255
SM
10482 * font.c (font_delete_unmatched): Fix previous change.
10483 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10484
104852008-10-09 Martin Rudalics <rudalics@gmx.at>
10486
10487 * frame.c (Fraise_frame): On text-only terminals select frame in
10488 order to make it visible. (Bug#1061)
10489
104902008-10-08 Chong Yidong <cyd@stupidchicken.com>
10491
10492 * fontset.c (fontset_find_font): Check frame validity.
10493
104942008-10-07 Chong Yidong <cyd@stupidchicken.com>
10495
a9b555d3 10496 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10497 (xg_display_close): Allow Emacs to close all displays (bug#985).
10498
104992008-10-06 Andreas Schwab <schwab@suse.de>
10500
f5385255 10501 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10502
105032008-10-06 Chong Yidong <cyd@stupidchicken.com>
10504
f5385255 10505 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10506
a9b555d3 10507 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10508
10509 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10510 during initialization.
10511
105122008-10-04 Eli Zaretskii <eliz@gnu.org>
10513
10514 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10515 whole thing on MSDOS frames as well as on a TTY.
10516
10517 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10518 well as for TTY.
10519 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10520 well as on a TTY.
10521
10522 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10523 as well as for TTY.
10524
10525 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10526
10527 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10528 MSDOS frames as well.
10529
105302008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10531
10532 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10533 correct arguments.
b71ac3dd 10534 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10535
105362008-10-03 Glenn Morris <rgm@gnu.org>
10537
10538 * emacs.c (USAGE1): Add --daemon.
10539
105402008-10-02 Eli Zaretskii <eliz@gnu.org>
10541
10542 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10543 100, so it's in percents as advertised.
10544
105452008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10546
10547 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10548 (ns_output.current_cursor, ns_output.desired_cursor)
10549 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10550 (FRAME_NEW_CURSOR_COLOR): Remove.
10551
10552 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10553 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10554 enumeration (HOLLOW_BOX_CURSOR, etc.).
10555
10556 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10557 (draw_window_cursor): Simplify code.
f5385255
SM
10558 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10559 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10560 updates manually.
a9b555d3
JB
10561 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10562 Use core Emacs cursor types.
aac0c6e3 10563
b8ff72fa 10564 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10565
105662008-10-02 Martin Rudalics <rudalics@gmx.at>
10567
10568 * process.c (Faccept_process_output): Fix doc-string.
10569
105702008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10571
10572 * gmalloc.c (__sbrk): Also define for uClibc.
10573
10574 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10575 for uClibc.
10576
105772008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10578
10579 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10580 styles.
10581 (nsfont_open): Reenable the cache.
10582
105832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10584
10585 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10586 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10587
105882008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10589
10590 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10591 a suspended terminal.
10592
105932008-09-30 Michael Albinus <michael.albinus@gmx.de>
10594
10595 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10596
105972008-09-30 Eli Zaretskii <eliz@gnu.org>
10598
10599 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10600
106012008-09-30 Chong Yidong <cyd@stupidchicken.com>
10602
10603 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10604 in a continued line coincides with a line beginning.
10605
106062008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10607
10608 * nsfont.m (nsfont_trait_distance): Fix bug.
10609 (nsfont_list): Return a list rather than a vector (syncs with Handa
10610 changes of 2008-05-14).
10611 (nsfont_open): Improve logging.
10612
106132008-09-29 Andreas Schwab <schwab@suse.de>
10614
10615 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10616
106172008-09-28 Martin Rudalics <rudalics@gmx.at>
10618
10619 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10620 name as char-resolve-modifiers.
10621 Reported by: Markus Triska <markus.triska@gmx.at>
10622
106232008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10624
10625 * dispnew.c (init_display): Return earlier when running as a daemon.
10626
106272008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10628
10629 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10630
106312008-09-27 Eli Zaretskii <eliz@gnu.org>
10632
10633 * composite.c (Fcomposition_get_gstring)
10634 (Fcompose_region_internal, Fcompose_string_internal)
10635 (Ffind_composition_internal): Doc fix.
10636 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10637 (syms_of_composite) <auto-composition-function>: Doc fix.
10638 (syms_of_composite) <composition-function-table>: Doc fix.
10639
106402008-09-25 Chong Yidong <cyd@stupidchicken.com>
10641
10642 * search.c (wordify): New argument for lax word-ends.
10643 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10644
106452008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10646
10647 * lisp.h (is_daemon): Declare.
10648 * dispnew.c (init_display): Do not try to initialize the terminal
10649 when running as a daemon.
10650
106512008-09-22 Chong Yidong <cyd@stupidchicken.com>
10652
10653 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10654 x_display_pixel_height.
10655
106562008-09-22 Martin Rudalics <rudalics@gmx.at>
10657
10658 * undo.c (record_point): Don't call Fundo_boundary for first
10659 change. (Bug#731)
10660
106612008-09-22 Juanma Barranquero <lekktu@gmail.com>
10662
10663 * emacs.c (Fdaemonp): Doc fix.
10664
106652008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10666
10667 * emacs.c (main): Place #ifdef in the proper place.
10668
106692008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10670
10671 * emacs.c (standard_args): Add --daemon.
10672 (main): Disconnect from the terminal when --daemon is passed.
10673 (is_daemon): New variable.
10674 (Fdaemonp): New function.
10675 (syms_of_emacs): Defsubr it.
10676
106772008-09-20 Chong Yidong <cyd@stupidchicken.com>
10678
10679 * xdisp.c (get_next_display_element): Handle string display
10680 correctly when checking for the end of a box run.
10681
106822008-09-20 Glenn Morris <rgm@gnu.org>
10683
10684 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10685 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10686 (Frename_file): Avoid copying to trash if a rename involves
10687 a delete. (Bug#964).
10688
106892008-09-20 Eli Zaretskii <eliz@gnu.org>
10690
10691 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10692 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10693 frames as well as termcap frames.
10694 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10695 get_named_tty.
10696
106972008-09-19 Eli Zaretskii <eliz@gnu.org>
10698
10699 * process.c (procfs_system_process_attributes): Fix cmdline in
10700 case /proc/PID/cmdline is empty.
10701
10702 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10703 x_display_pixel_height.
10704
107052008-09-19 Juanma Barranquero <lekktu@gmail.com>
10706
10707 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10708
10709 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10710 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10711
107122008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10713
10714 * dispextern.h (struct it): Move line_wrap away from the middle of
10715 bitfields. Move voffset in struct iterator_stack_entry after the
10716 bitfields. Move tab_width near after another short.
10717
107182008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10719
10720 * frame.h (struct frame): Move alpha from the middle of bitfields.
10721
10722 * window.h (struct window): Move frozen_window_start_p after the
10723 rest of the bitfields to reduce padding.
10724
107252008-09-18 Chong Yidong <cyd@stupidchicken.com>
10726
10727 * xterm.h (x_display_info): Remove `height' and `width' members.
10728
10729 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10730
10731 * w32term.h (w32_display_info): Remove `height', `width',
10732 `height_in', and `width_in' members.
10733
b8ff72fa
SM
10734 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10735 New functions.
aac0c6e3
MR
10736 (x_calc_absolute_position): Use them.
10737 (x_term_init): Omit removed `height' and `width' members.
10738
b8ff72fa
SM
10739 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10740 New functions.
aac0c6e3
MR
10741 (w32_read_socket, x_calc_absolute_position): Use them.
10742 (w32_initialize_display_info, w32_term_init): Omit removed members
10743 of w32_display_info.
10744
b8ff72fa
SM
10745 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10746 New functions.
10747 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10748
b8ff72fa
SM
10749 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10750 New functions.
aac0c6e3
MR
10751 (x_calc_absolute_position): Use them.
10752 (x_term_init): Omit removed `height' and `width' members.
10753
10754 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10755 (compute_tip_xy):
10756 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10757 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10758 x_display_pixel_width.
10759
107602008-09-18 Kenichi Handa <handa@m17n.org>
10761
10762 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10763 (composition_compute_stop_pos): Fix handling of static composition.
10764 (Fcomposition_get_gstring): Check FROM and TO at first.
10765
107662008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10767
46e722a9 10768 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10769 mixup (YAILOM).
10770
107712008-09-17 Chong Yidong <cyd@stupidchicken.com>
10772
10773 * indent.c (Fvertical_motion): Use position reported by iterator
10774 instead of PT for determining screen motion (bug#943).
10775
107762008-09-17 Romain Francoise <romain@orebokech.com>
10777
10778 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10779
107802008-09-17 Kenichi Handa <handa@m17n.org>
10781
10782 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10783
10784 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10785 if necessary.
10786
107872008-09-16 Kenichi Handa <handa@m17n.org>
10788
10789 * coding.c (make_conversion_work_buffer): Avoid calling
10790 Fget_buffer_create if it is not necessary.
10791
107922008-09-15 Martin Rudalics <rudalics@gmx.at>
10793
10794 * window.c (Fselect_window): Don't update window_select_count and
10795 use_time when norecord is not nil.
10796
107972008-09-14 Kenichi Handa <handa@m17n.org>
10798
10799 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10800 specpdl_ptr.
10801
108022008-09-12 Kenichi Handa <handa@m17n.org>
10803
10804 * indent.c (scan_for_column): Don't handle automatic composition
10805 if the current buffer is not associated with a window.
10806
10807 * composite.c (composition_reseat_it): If the current buffer is
10808 not associated with a window, ignore the automatic composition.
10809 (find_automatic_composition): Likewise.
10810
108112008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10812
10813 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10814 (Fgpm_mouse_stop): Use it.
10815 * termhooks.h (close_gpm): Declare.
10816 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10817 connection if Gpm_GetEvent fails.
10818
10819 * window.c (set_window_buffer): Always preserve current-buffer.
10820
108212008-09-12 Glenn Morris <rgm@gnu.org>
10822
10823 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10824
108252008-09-11 Glenn Morris <rgm@gnu.org>
10826
10827 * charset.c (charset-map-path): Doc fix.
10828
108292008-09-10 Kenichi Handa <handa@m17n.org>
10830
10831 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10832
10833 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10834 compose a grapheme cluster with the preceding base glyph.
10835
10836 * composite.c (composition_compute_stop_pos): Fix previous change.
10837 Reset cmp_it->id to -1 at first.
10838
108392008-09-10 Glenn Morris <rgm@gnu.org>
10840
10841 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10842
108432008-09-09 Chong Yidong <cyd@stupidchicken.com>
10844
10845 * keyboard.c (read_key_sequence): Reapply translation maps when
10846 switching keyboards.
10847
108482008-09-09 Kenichi Handa <handa@m17n.org>
10849
10850 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10851 characters.
10852
10853 * composite.c (FORWARD_CHAR): Fix calculation
10854 of (POSITION).pos_byte.
10855 (composition_compute_stop_pos): Limit the search of composition to
10856 at most 500 characters ahead. If we reach the limit or find a
10857 newline, set cmp_it->ch to -2 and return 0.
10858 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10859
108602008-09-08 Kenichi Handa <handa@m17n.org>
10861
10862 * indent.c (Fvertical_motion): Be sure to set
10863 it_overshoot_expected if it.cmp_it.id is non-negative.
10864
108652008-09-07 Andreas Schwab <schwab@suse.de>
10866
10867 * callproc.c (Fcall_process): Don't hold references to string data
10868 across garbage collection. Move initialisation of new_argv down
10869 to avoid compiler bug.
10870
108712008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10872
10873 * process.c (Fsystem_process_attributes): Doc fix.
10874
108752008-09-07 Chong Yidong <cyd@stupidchicken.com>
10876
10877 * callproc.c (Fcall_process): Canonicalize current directory name.
10878
10879 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10880 iterator advances to the next line if the current line ends in a
10881 continued tab.
10882
108832008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10884
10885 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10886 member to point to cmp_from.
10887
10888 * xdisp.c: Doc fix for references to gidx data member.
10889
108902008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10891
10892 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10893
108942008-09-07 Kenichi Handa <handa@m17n.org>
10895
10896 * composite.c (FORWARD_CHAR): Check STOP after
10897 incrementing (POSITION).pos.
10898
108992008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10900
10901 * process.c (Fsystem_process_attributes): Doc fix.
10902
109032008-09-06 Chong Yidong <cyd@stupidchicken.com>
10904
10905 * keyboard.c (Ftop_level): Doc fix.
10906
109072008-09-06 Eli Zaretskii <eliz@gnu.org>
10908
10909 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10910 minibuffer, don't let lower part of menu invade the echo area.
10911
10912 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10913 "char *q" to access menu text and advance through it. Revert the
10914 change that displayed ">" instead of ASCII character 0x10.
10915
109162008-09-05 Eli Zaretskii <eliz@gnu.org>
10917
10918 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10919 toggle boxes and radio buttons on MS-DOS as well.
10920
109212008-09-05 Kenichi Handa <handa@m17n.org>
10922
10923 * composite.c (autocmp_chars): Check lookback count.
10924 (composition_compute_stop_pos): Set cmp_it->lookback.
10925 (composition_reseat_it): Check lookback count.
10926 (struct position_record): New struct.
10927 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10928 (find_automatic_composition): New function.
10929 (composition_adjust_point): Use find_automatic_composition.
10930
10931 * dispextern.h (struct composition_it): New member lookback.
10932
109332008-09-02 Chong Yidong <cyd@stupidchicken.com>
10934
10935 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10936 if moving by a single line.
10937
109382008-09-02 Andreas Schwab <schwab@suse.de>
10939
10940 * xterm.c (x_delete_display): Fix merge error.
10941
10942 * fileio.c (Fexpand_file_name): Remove unused variables.
10943
109442008-09-02 Eli Zaretskii <eliz@gnu.org>
10945
10946 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10947 storage on all platforms, not just on DOS_NT.
10948
109492008-09-02 Jason Rumney <jasonr@gnu.org>
10950
b8ff72fa
SM
10951 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10952 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10953
109542008-09-01 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * xfaces.c (Finternal_set_alternative_font_family_alist)
10957 (Finternal_set_alternative_font_registry_alist): Properly copy
10958 entire alist structure.
10959
109602008-09-01 Kenichi Handa <handa@m17n.org>
10961
d66c0241 10962 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10963 representative chars of the script is a vector.
d66c0241
JB
10964 (ftfont_list): Handle the case where the representative chars of
10965 the script is a vector.
aac0c6e3
MR
10966
10967 * character.c (syms_of_character): Docstring of
10968 script-representative-chars fixed.
10969
109702008-08-31 Eli Zaretskii <eliz@gnu.org>
10971
10972 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10973 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10974 the menu. Allocate larger buffer for `text', to account for
10975 possible ^C characters.
10976
109772008-08-31 Martin Rudalics <rudalics@gmx.at>
10978
10979 * xdisp.c (prepare_menu_bars): Don't call
10980 Vwindow_size_change_functions with arg Qt.
10981
109822008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10983
10984 * font.h (font_range):
10985 * fileio.c (report_file_error):
46e722a9
SM
10986 * composite.c (composition_update_it): Yet another int/Lisp_Object
10987 mixup (YAILOM).
aac0c6e3
MR
10988
109892008-08-30 Glenn Morris <rgm@gnu.org>
10990
10991 * data.c (Fmake_variable_frame_local): Doc fix.
10992
10993 * frame.c (Fmodify_frame_parameters): Doc fix.
10994
109952008-08-30 Eli Zaretskii <eliz@gnu.org>
10996
10997 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10998 needed by GetTokenInformation.
10999 (w32_system_process_attributes): Check return values of all system
11000 APIs.
11001
11002 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11003 only when the state changes.
11004 (IT_update_begin, IT_update_end): Add termscript trace.
11005
11006 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11007 clipboard is unavailable. Set dst to NULL if it doesn't point to
11008 malloc'ed data.
11009 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11010 passing random values to xfree.
11011
11012 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11013 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11014
110152008-08-29 Jason Rumney <jasonr@gnu.org>
11016
11017 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11018
110192008-08-29 Eli Zaretskii <eliz@gnu.org>
11020
11021 * composite.c (fill_gstring_body): Avoid compiler warnings.
11022
11023 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11024 LGLYPH_SET_CODE to avoid compiler warnings.
11025
2ae37cf0 11026 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11027
11028 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11029
11030 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11031 LGLYPH_SET_CODE.
11032
110332008-08-29 Kenichi Handa <handa@m17n.org>
11034
11035 * fileio.c (report_file_error): Don't downcase the first character
11036 of errstring if it is still unibyte.
11037
110382008-08-29 Kenichi Handa <handa@m17n.org>
11039
11040 These changes are to re-implement the automatic composition so
11041 that it doesn't use text properties.
11042
11043 * Makefile.in (ftfont.o): Depend on composite.h.
11044 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11045
11046 * character.h (Vunicode_category_table): Extern it.
11047
11048 * character.c (Vunicode_category_table): New variable.
11049 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11050
11051 * chartab.c (optimize_sub_char_table): Perform more greedy
11052 optimization.
11053
b8ff72fa
SM
11054 * composite.h (enum composition_method):
11055 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11056 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11057 (Vcomposition_function_table): Extern it.
11058 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11059 (composition_gstring_put_cache, composition_gstring_from_id)
11060 (composition_gstring_p, composition_gstring_width)
11061 (composition_compute_stop_pos, composition_reseat_it)
11062 (composition_update_it, composition_adjust_point): Extern them.
11063 (Fcomposition_get_gstring): EXFUN it.
11064
d66c0241 11065 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11066 (Vcomposition_function_table)
11067 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11068 (gstring_hash_table, gstring_work, gstring_work_headers):
11069 New variables.
aac0c6e3
MR
11070 (gstring_lookup_cache, composition_gstring_put_cache)
11071 (composition_gstring_from_id, composition_gstring_p)
11072 (composition_gstring_width, fill_gstring_header)
11073 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11074 (composition_reseat_it, composition_update_it)
b8ff72fa 11075 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11076 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11077 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11078 Defsubr composition_get_gstring.
aac0c6e3
MR
11079
11080 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11081 cmp_id.
11082 (struct glyph_string): Delete the member gidx. New members
11083 cmp_id, cmp_from, and cmp_to.
11084 (enum it_method): Delete GET_FROM_COMPOSITION.
11085 (struct composition_it): New struct.
11086 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11087 Delete c, len, cmp_id, cmp_len in u.comp.
11088
11089 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11090 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11091 (enum lglyph_indices): Likewise.
b8ff72fa 11092 (font_range): Adjust extern.
aac0c6e3
MR
11093 (font_fill_lglyph_metrics): Extern it.
11094
11095 * font.c (QCf): New variable.
11096 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11097 (font_prepare_composition): Delete this function.
11098 (font_range): Type and arguments changed.
11099 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11100 (font_fill_lglyph_metrics): New function.
b8ff72fa 11101 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11102 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11103 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11104 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11105
11106 * fontset.h (font_for_char): Extern it.
11107
11108 * fontset.c (font_for_char): New function.
11109
11110 * ftfont.c: Include composite.h.
11111 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11112 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11113
11114 * indent.c: Include composite.h and dispextern.h.
11115 (check_composition): Delete this function.
11116 (scan_for_column): Handle composition by
11117 composition_compute_stop_pos, composition_reseat_it, and
11118 composition_update_it.
11119 (compute_motion): Likewise.
11120 (Fvertical_motion): Fix checking of composition.
11121
11122 * keyboard.c (adjust_point_for_property): Check composition by
11123 composition_adjust_point.
11124
b8ff72fa 11125 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11126 struct glyph_string.
11127
b8ff72fa
SM
11128 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11129 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11130 struct glyph.
11131 (produce_composite_glyph): Likewise.
11132
b8ff72fa
SM
11133 * w32term.c (x_draw_composite_glyph_string_foreground):
11134 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11135 (x_draw_glyph_string): Likewise.
11136
11137 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11138 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11139
11140 * xdisp.c: Include font.h.
11141 (it_props): Delete the entry for Qauto_composed.
11142 (init_iterator): Initialize it->cmp_it.id to -1.
11143 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11144 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11145 (handle_auto_composed_prop): Delete it.
11146 (handle_composition_prop): Handle only static composition.
11147 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11148 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11149 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11150 (pop_it): Likewise.
11151 (get_next_element): Delete next_element_from_composition.
11152 (CHAR_COMPOSED_P): New macro.
11153 (get_next_display_element): For automatic composition, get a face
11154 from the font in the glyph-string.
11155 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11156 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11157 (next_element_from_string): Check if the character at the current
11158 position is composed by CHAR_COMPOSED_P.
11159 (next_element_from_buffer): Likewise.
d66c0241
JB
11160 (next_element_from_composition): Adjust for the change of struct it.
11161 Update it->cmp_it.
b8ff72fa
SM
11162 (dump_glyph): Adjust for the change of struct glyph.
11163 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11164 it and struct glyph. Don't handle automatic composition here.
11165 (fill_gstring_glyph_string): New function.
11166 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11167 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11168 (BUILD_GSTRING_GLYPH_STRING): New macro.
11169 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11170 automatic composition.
b8ff72fa 11171 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11172 struct glyph.
b8ff72fa 11173 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11174
b8ff72fa 11175 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11176 the change of struct glyph_string.
11177 (x_draw_glyph_string): Likewise.
11178
111792008-08-29 Glenn Morris <rgm@gnu.org>
11180
11181 * buffer.c (word-wrap): Doc fix.
11182 * xdisp.c (truncate-partial-width-windows): Doc fix.
11183 Increase default to 50.
11184
111852008-08-29 Chong Yidong <cyd@stupidchicken.com>
11186
11187 * xdisp.c (update_tool_bar_unwind): New function.
11188 (update_tool_bar): Temporarily set selected frame before building
11189 tool-bar items.
11190
111912008-08-28 Michael Albinus <michael.albinus@gmx.de>
11192
11193 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11194 snprintf, respectively.
11195 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11196
111972008-08-28 Chong Yidong <cyd@stupidchicken.com>
11198
11199 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11200 LDFLAGS to GNUstep CC invocation.
11201
112022008-08-27 Chong Yidong <cyd@stupidchicken.com>
11203
11204 * indent.c (Fvertical_motion): Revert last change. Handle the
11205 general case where we are moving forward, and PT spans multiple
11206 screen lines.
11207
11208 * eval.c (find_handler_clause): Temporarily increase
11209 max-lisp-eval-depth while printing the backtrace buffer, to
11210 guarantee that help-mode code can run.
11211
112122008-08-27 Eli Zaretskii <eliz@gnu.org>
11213
11214 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11215 colors under -rv.
11216 (IT_set_frame_parameters): Don't swap foreground and background
11217 colors if `(reverse . t)' is present in the frame properties.
11218 (internal_terminal_init): Call init_frame_faces only for the
11219 initial frame.
11220
112212008-08-27 Andreas Schwab <schwab@suse.de>
11222
11223 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11224
112252008-08-27 Andreas Schwab <schwab@suse.de>
11226
11227 * search.c (search_buffer): Set char_base to zero only at the end.
11228
112292008-08-27 Kenichi Handa <handa@m17n.org>
11230
b8ff72fa 11231 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11232
112332008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11234
11235 * xterm.c (x_term_init): Temporarily hide the partially
11236 initialized terminal while calling vendor-specific-keysyms.
11237
112382008-08-26 Eli Zaretskii <eliz@gnu.org>
11239
11240 * msdos.c (internal_terminal_init): Most initializations done only
11241 once, especially initial_screen_colors[] and termscript open.
11242
112432008-08-26 Chong Yidong <cyd@stupidchicken.com>
11244
11245 * eval.c (Fcondition_case): Doc fix.
11246
11247 * widgetprv.h (EmacsFramePart): Change font member to the new font
11248 struct.
11249
11250 * widget.c: Include character.h and font.h for XSETFONT.
11251 (setup_frame_gcs): Compute X font id from font struct, just once.
11252
112532008-08-26 Eli Zaretskii <eliz@gnu.org>
11254
11255 * term.c (get_named_tty): Fix last change.
11256
112572008-08-26 Chong Yidong <cyd@stupidchicken.com>
11258
11259 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11260 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11261
112622008-08-25 Eli Zaretskii <eliz@gnu.org>
11263
11264 * frame.c (do_switch_frame): Mark previously displayed frame as
11265 obscured for FRAME_MSDOS_P frames as well.
11266
112672008-08-24 Eli Zaretskii <eliz@gnu.org>
11268
11269 * frame.c (make_terminal_frame): Initialize f->terminal,
11270 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11271 Set the top frame to newly created frame.
11272 (Fmake_terminal_frame): Reuse the_only_display_info.
11273
11274 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11275 estimating available memory.
11276
b97439ce 112772008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11278
11279 * nsterm.m (ns_draw_window_cursor): Don't call
11280 NSDisableScreenUpdates and NSEnableScreenUpdates on
11281 non-NS_IMPL_COCOA systems.
11282
112832008-08-23 Andreas Schwab <schwab@suse.de>
11284
11285 * process.c (procfs_system_process_attributes): Fix use of
11286 uninitialized variables.
11287
112882008-08-23 Eli Zaretskii <eliz@gnu.org>
11289
11290 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11291
11292 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11293 calling tty-set-up-initial-frame-faces.
11294
b8ff72fa
SM
11295 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11296 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11297
11298 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11299 addition to output_termcap.
11300
11301 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11302
11303 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11304 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11305 highlight.
11306
11307 * process.c [!subprocesses]: Define QCname.
11308 (syms_of_process): Intern and staticpro it.
11309
11310 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11311 Adjust for changes in encoding/decoding routines.
11312 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11313 encode_coding and decode_coding.
11314
b8ff72fa 11315 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11316
11317 * dosfns.c: Include frame.h before termhooks.h.
11318 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11319 variable termscript.
11320
11321 * s/msdos.h (USER_FULL_NAME): Define.
11322 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11323
11324 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11325 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11326 pw->pw_gecos.
11327
11328 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11329 SELECTED_FRAME as additional (1st) argument.
11330 (tty_read_avail_input): Handle output_msdos_raw in
11331 addition to output_termcap.
11332
11333 * msdos.c: Include frame.h before termhooks.h.
11334 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11335 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11336 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11337 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11338 (IT_set_terminal_modes, IT_reset_terminal_modes)
11339 (IT_set_frame_parameters): Use tty->termscript instead of a global
11340 variable termscript.
11341 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11342 global variable terminal_coding. Don't refer to
11343 Vnonascii_translation_table.
11344 (internal_terminal_init): Set Vwindow_system in current_kboard.
11345 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11346 Announce date and time of session start, if termscript is open.
11347 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11348 term.c:init_tty). Open termscript only of not already open.
11349 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11350 here instead of dos_ttraw. Don't initialize display if this is an
11351 initial tty. Don't set FRAME_FONT.
11352 (Vwindow_system_version): Bump to 23.
11353 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11354 is available, set up mouse_position_hook.
11355 (dos_ttraw, IT_set_terminal_modes): If called with initial
11356 terminal, do nothing.
11357 (IT_set_frame_parameters): Handle the Qtty_type frame
11358 parameter by calling internal_terminal_init.
11359 (dos_set_window_size, show_mouse_face)
11360 (clear_mouse_face, IT_note_mode_line_highlight)
11361 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11362 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11363 (initialize_msdos_display): New function.
11364 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11365 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11366 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11367 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11368 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11369 (request_sigio, unrequest_sigio): Don't define, now defined on
11370 sysdep.c.
11371 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11372
11373 * term.c [MSDOS]: Include msdos.h.
11374 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11375 conditional to DOS_NT. Allow only one call to this function in a
11376 session. Don't allocate a new struct tty_display_info; instead,
11377 reuse the_only_display_info. Call get_tty_size to get screen
11378 dimensions. Call init_baud_rate to set bad_rate.
11379 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11380 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11381 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11382 (get_tty_terminal, get_named_tty, Ftty_type)
11383 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11384 output_termcap.
b8ff72fa
SM
11385 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11386 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11387 only when subprocesses are supported.
aac0c6e3
MR
11388
11389 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11390 f->output_data.x.
11391 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11392 terminal devices.
11393
5582fbc7 11394 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11395 x_output.
11396 (FRAME_FONT): Use output_data.tty.
11397 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11398 (struct x_display_info): Rename from display_info. Update all users in
11399 msdos.c.
aac0c6e3 11400 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11401 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11402 (dos_ttraw): Update prototype.
11403
11404 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11405 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11406
114072008-08-23 Jason Rumney <jasonr@gnu.org>
11408
11409 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11410 (fn_TIFFSetDirectory): New library function used.
11411 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11412 (tiff_load): Use :index to select among multiple images. Set count
11413 property when multiple images exist.
11414 (gif_format): Use :index, not :image.
11415
114162008-08-23 Chong Yidong <cyd@stupidchicken.com>
11417
11418 * xdisp.c (try_scrolling): Check INT_MAX instead of
11419 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11420 to obtain INT_MAX.
11421
114222008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11423
11424 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11425
114262008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11427
11428 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11429 GNUstep library location.
11430
114312008-08-21 Chong Yidong <cyd@stupidchicken.com>
11432
11433 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11434 before using it.
11435
11436 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11437
114382008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11439
11440 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11441 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11442 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11443 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11444 (EmacsApp-cursor_blink_handler): Remove declaration.
11445 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11446 match 01 Feb 2008 changes in xterm.c.
11447 (ns_read_socket): Add cast to avoid warning.
11448 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11449 GNUstep.
11450
114512008-08-20 Chong Yidong <cyd@stupidchicken.com>
11452
11453 * xselect.c (x_get_foreign_selection): Return nil if desired
11454 selection could not be obtained, instead of signalling an error.
11455
114562008-08-20 David Reitter <david.reitter@gmail.com>
11457
11458 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11459 * nsterm.m: Remove ns-specific code for cursor blinking.
11460 (ns_draw_window_cursor): Clear cursor properly rather than
11461 redrawing the area. Respect width of bar cursors.
11462 These changes enable the use of generic blink-cursor-mode and
11463 generic cursor types in NS and support smooth cursor movements (do
11464 not blink off after command).
11465 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11466 Nextstep, too.
11467
114682008-08-19 Kenichi Handa <handa@m17n.org>
11469
11470 * font.c (Vfont_log_deferred): New variable.
11471 (font_add_log): Check Vfont_log_deferred.
11472 (font_deferred_log): New function.
11473
11474 * font.h (font_deferred_log): Extern it.
11475
11476 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11477 for sorting.
11478 (face_for_char): Use deferred log.
11479
114802008-08-18 Kenichi Handa <handa@m17n.org>
11481
11482 * fontset.c (face_for_char): Add font log.
11483
11484 * font.c (font_add_log): Add the font properties :script, :lang,
11485 and :otf in the log.
11486
114872008-08-17 Chong Yidong <cyd@stupidchicken.com>
11488
11489 * xdisp.c: Remove dead code.
11490 (handle_invisible_prop, next_overlay_string): Defer call to
11491 setup_for_ellipsis.
11492 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11493
114942008-08-15 Chong Yidong <cyd@stupidchicken.com>
11495
11496 * xfaces.c (lookup_derived_face): Properly handle possible zero
11497 return value of get_lface_attributes.
11498 (merge_faces): Don't tell lookup_derived_face to signal an error
11499 if face is not found.
11500
11501 * dired.c (Fdirectory_files): Doc fix.
11502
11503 * process.c (make_process): Initialize kill_without_query struct
11504 member.
11505
115062008-08-15 Eli Zaretskii <eliz@gnu.org>
11507
11508 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11509 Alternative calculation of totphys for Visual Studio 6.
11510
11511 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11512
11513 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11514 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11515 All users changed.
11516 (stat): Only root directory passed to GetDriveType. Allow RAM
11517 disk as well as local fixed disk when w32-get-true-file-attributes
11518 is set to `local'.
11519 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11520 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11521 (w32_cached_id, w32_add_to_cache): New functions.
11522 (get_name_and_id): Look account names in the cache before calling
11523 lookup_account_sid.
11524 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11525 New initialization flags.
11526 (globals_of_w32): Initialize them to zero.
11527 (w32_system_process_attributes): Use w32_cached_id and
11528 w32_add_to_cache.
11529
115302008-08-14 Lawrence Mitchell <wence@gmx.li>
11531
11532 * lread.c (Fread_char, Fread_char_exclusive): If no character
11533 event is read before timeout is reached, return nil, rather than
11534 converting to a number.
11535
115362008-08-14 Chong Yidong <cyd@stupidchicken.com>
11537
11538 * fns.c (use_dialog_box): Doc fix.
11539
11540 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11541 on OS X.
11542
115432008-08-13 Chong Yidong <cyd@stupidchicken.com>
11544
11545 * frame.c (Qns_parse_geometry): New var.
11546 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11547
115482008-08-11 Chong Yidong <cyd@stupidchicken.com>
11549
11550 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11551 space character in calculating tabs.
11552
115532008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11554
11555 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11556
115572008-08-10 Glenn Morris <rgm@gnu.org>
11558
11559 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11560 silence gcc "limited range of data type" warnings in some
11561 make_fixnum_or_float calls.
11562
115632008-08-09 Eli Zaretskii <eliz@gnu.org>
11564
11565 * w32.c (w32_system_process_attributes): If the process does not
11566 exist, return nil.
11567
11568 * w32.c: Include thelp32.h, psapi.h and coding.h.
11569 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11570 declarations.
11571 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11572 (Process32Next_Proc): New typedefs.
11573 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11574 (g_b_init_process32_next, g_b_init_open_thread_token)
11575 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11576 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11577 (g_b_init_get_process_working_set_size)
11578 (g_b_init_global_memory_status_ex): New static variables.
11579 (globals_of_w32): Initialize them.
11580 (create_toolhelp32_snapshot, process32_first, process32_next)
11581 (open_thread_token, impersonate_self, revert_to_self)
11582 (get_process_memory_info, get_process_working_set_size)
11583 (global_memory_status, global_memory_status_ex): New wrapper
11584 functions.
11585 (w32_list_system_processes, w32_system_process_attributes)
11586 (enable_privilege, restore_privilege, ltime, process_times):
11587 New functions.
11588 (convert_time_raw): New function.
11589 (convert_time): Remove conversion of FILETIME into time in 100
11590 nsec units, call convert_time_raw instead.
11591
11592 * process.h (w32_list_system_processes, w32_system_process_attributes):
11593 Add prototypes.
11594 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11595 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11596 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11597 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11598
11599 * process.c (Fsystem_process_attributes): Doc fix.
11600
116012008-08-08 Chong Yidong <cyd@stupidchicken.com>
11602
11603 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11604 a continued multi-char glyph; if so, advance to the actual glyph.
11605
116062008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11607
11608 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11609
11610 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11611 (.m.o): Use it.
11612 * config.in: Regenerate.
11613
116142008-08-07 Chong Yidong <cyd@stupidchicken.com>
11615
11616 * xdisp.c (redisplay_window): Revert last change.
11617 (try_window): Check bottom scroll margin too.
11618
116192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11620
11621 * config.in: Regenerate.
11622
11623 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11624 -list-load-path-shadows'.
11625 (nsgui.h): Reduce number of things depending on it.
11626
116272008-08-06 Chong Yidong <cyd@stupidchicken.com>
11628
11629 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11630 instead of window-end which does the wrong thing at eob.
11631 (try_cursor_movement): Minor optimization.
11632 (redisplay_window): If scroll margin is defined, don't assume
11633 window doesn't need scrolling.
11634
116352008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11636
11637 * config.in: Regenerate.
11638
11639 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11640 (mostlyclean): Don't delete *.d under NS.
11641
11642 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11643
116442008-08-06 Kenichi Handa <handa@m17n.org>
11645
11646 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11647
116482008-08-06 Andreas Schwab <schwab@suse.de>
11649
11650 * config.in: Regenerate.
11651
116522008-08-05 Chong Yidong <cyd@stupidchicken.com>
11653
11654 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11655 forcing a window start.
11656
11657 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11658 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11659
116602008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11661
11662 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11663 argument.
11664
116652008-08-05 Juanma Barranquero <lekktu@gmail.com>
11666
11667 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11668 <scroll-down-aggressively, before-change-functions>:
11669 <after-change-functions>: Reflow docstrings.
11670
116712008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11672 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11673
11674 Dock menu customization, based on a patch by Ken Raeburn, plus some
11675 other fixes.
11676 * nsmenu.m (dockMenu): New variable.
11677 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11678
11679 * nsterm.h (dockMenu): Declare.
11680
11681 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11682 (ns_term_init): Initialize dockMenu.
11683 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11684 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11685 left.
11686
11687 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11688
116892008-08-04 Chong Yidong <cyd@stupidchicken.com>
11690
11691 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11692
11693 * config.in: Regenerate.
11694
116952008-08-04 Seiji Zenitani <zenitani@mac.com>
11696
11697 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11698
116992008-08-04 Chong Yidong <cyd@stupidchicken.com>
11700
11701 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11702
117032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11704
11705 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11706
11707 * keyboard.h: Comment an #endif.
11708
11709 * lisp.h (have_menus_p): Adjust comment.
11710
11711 * menu.c (find_and_return_menu_selection): Fix comparison with
11712 client_data.
11713
11714 * nsmenu.m (popup_activated_flag): New variable.
11715 (popup_activated): New function.
11716 (menu-or-popup-active-p): New exported lisp definition.
11717 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11718 when popup done.
11719 (ns_popup_dialog): Set popup_activated_flag.
11720
11721 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11722 version for GNUstep (handled by conditional typedef in nsterm.m).
11723 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11724 in rgb.txt).
11725
11726 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11727
11728 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11729
11730 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11731
11732 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11733 shortcircuit if popup_activated like GTK and X toolkit.
11734
11735 * m/inter386.h: Change DARWIN to DARWIN_OS.
11736
11737 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11738 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11739 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11740 comment on NO_SOCK_SIGIO.
11741
117422008-08-03 Chong Yidong <cyd@stupidchicken.com>
11743
11744 * nsterm.m (windowDidResize): Remove stopModal call.
11745
117462008-08-03 Andreas Schwab <schwab@suse.de>
11747
11748 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11749 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11750
117512008-08-02 Chong Yidong <cyd@stupidchicken.com>
11752
11753 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11754 Don't use uninitialized pointer variable when using getrlimit.
11755
117562008-08-02 Jason Rumney <jasonr@gnu.org>
11757
11758 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11759
117602008-08-02 Eli Zaretskii <eliz@gnu.org>
11761
11762 * alloc.c (NSTATICS): Bump to 0x640.
11763
11764 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11765
11766 * lisp.h: Add prototype for directory_files_internal.
11767
11768 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11769 New functions.
11770 (syms_of_process): Defsubr them. Add initializations for various
11771 Q* symbols used in procfs_system_process_attributes.
11772 (procfs_list_system_processes, procfs_system_process_attributes)
11773 [HAVE_PROCFS]: New functions.
11774 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11775 (procfs_get_total_memory): New functions.
11776
117772008-08-01 Juanma Barranquero <lekktu@gmail.com>
11778
11779 * xfaces.c (Fx_load_color_file): Fix previous change;
11780 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11781
117822008-08-01 Michael Albinus <michael.albinus@gmx.de>
11783
11784 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11785
117862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11787
11788 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11789
117902008-08-01 Chong Yidong <cyd@stupidchicken.com>
11791
11792 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11793
11794 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11795 define NSApplicationDelegateReplySuccess.
11796 (EmacsView -converstationIdentifier): Use long instead of
11797 NSInteger for GNUstep, since it doesn't have NSInteger.
11798
11799 * xmenu.c: Revert last change.
11800
11801 * keyboard.h: Fix last change.
11802
118032008-08-01 Juanma Barranquero <lekktu@gmail.com>
11804
11805 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11806 on Windows.
11807
118082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11809
11810 Warning clearing and clean-up in NS port.
11811 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11812 Add prototypes.
11813 * nsgui.h (FACE_DEFAULT): Remove, unused.
11814 (XGCValues): Change colors to unsigned long.
11815 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11816 nsterm.m.
11817 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11818 (ns_list_fonts): Remove, unused.
11819 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11820 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11821 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11822 (nsfont_draw): Compare face colors to 0, not nil.
11823 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11824 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11825 (-addSubmenuWithTitle:): Use NSMenuItem class.
11826 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11827 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11828 (ns_clip_to_row): Make gc arg a BOOL.
11829 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11830 ns_clip_to_row() call.
11831 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11832 used). Cast FRAME_FONT assignments.
11833 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11834 (ns_string_to_lispmod): Change arg to const char.
11835 (ns_term_init): Use NSMenuItem class.
11836 (EmacsApp -openFile:): Move to different section of file.
11837 (EmacsApp -application:openFiles:): Don't return a value, call
11838 -replyToOpenOrPrint:.
11839 (EmacsView -keyDown:): Fix up cast.
11840 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11841 (EmacsView -menuDown:): Cast tag in call to
11842 find_and_call_menu_selection().
11843 (ns_list_fonts): Remove, unused.
11844 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11845 (ns_fontname_to_xlfd): Make static.
11846 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11847 Remove prototypes (now in keyboard.h).
11848 (next_menubar_widget_id): Remove, unused.
11849 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11850 Remove prototypes (now in keyboard.h).
11851 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11852
118532008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11854
11855 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11856 (floatfns.o): Depend on syssignal.h.
11857 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11858
11859 * systty.h: Fix previous change that removed BSD_TERMIOS.
11860 Add comments to #ifdefs.
11861
118622008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11863
11864 * w32fns.c (w32-load-color-file): Remove.
11865 (x-open-connection): Use renamed Fx_load_color_file.
11866 * xfaces.c (x-load-color-file): Add.
11867 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11868 Emacs.clr.
11869 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11870
118712008-07-31 Michael Albinus <michael.albinus@gmx.de>
11872
11873 * dbusbind.c (Fdbus_call_method_asynchronously)
11874 (Fdbus_method_error_internal): New defuns.
11875 (xd_read_message): Handle also reply messages.
11876 (Vdbus_registered_functions_table): Extend docstring.
11877
118782008-07-31 Juanma Barranquero <lekktu@gmail.com>
11879
11880 * keyboard.c (gobble_input): Fix previous change.
11881
118822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11883
11884 * bitmaps/README:
11885 * xfns.c:
11886 * termcap.c:
11887 * term.c:
11888 * syswait.h:
11889 * systty.h:
11890 * systime.h:
11891 * syssignal.h:
11892 * sysdep.c:
11893 * process.h:
11894 * process.c:
11895 * print.c:
11896 * ndir.h:
11897 * lread.c:
11898 * keyboard.c:
11899 * getpagesize.h:
11900 * floatfns.c:
11901 * fileio.c:
11902 * emacs.c:
11903 * doc.c:
11904 * dispnew.c:
11905 * dired.c:
11906 * data.c:
11907 * callproc.c:
11908 * buffer.c:
11909 * README:
11910 * Makefile.in:
11911 * s/template.h:
11912 * s/msdos.h:
11913 * m/vax.h: Remove VMS support.
11914 * s/vms.h:
11915 * vlimit.h:
11916 * uaf.h:
11917 * temacs.opt:
11918 * param.h:
11919 * ioctl.h: Remove file.
11920
119212008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11922
11923 * s/ms-w32.h (MULTI_KBOARD): Remove.
11924 * xterm.c:
11925 * xselect.c:
11926 * xfns.c:
11927 * window.c:
11928 * w32term.c:
11929 * w32fns.c:
11930 * terminal.c:
11931 * termhooks.h:
11932 * term.c:
11933 * sysdep.c:
11934 * keyboard.h:
11935 * keyboard.c:
11936 * frame.h:
11937 * frame.c:
11938 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11939 * config.in: Regenerate.
11940
119412008-07-30 Jason Rumney <jasonr@gnu.org>
11942
11943 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11944
11945 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11946 (w32font_open_internal): Get unicode version of textmetrics.
11947 Don't enable or disable glyph indices here.
11948 (w32font_open): Disable use of glyph indices.
11949
11950 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11951
119522008-07-30 Chong Yidong <cyd@stupidchicken.com>
11953
11954 * minibuf.c (Vread_buffer_function): Doc fix.
11955
119562008-07-30 John Paul Wallington <jpw@pobox.com>
11957
11958 * minibuf.c (read_buffer_completion_ignore_case): New var.
11959 (Fread_buffer): Use it.
11960
119612008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11962
11963 * systty.h (sensemode): Remove empty #if. Remove reference to
11964 BSD_TERMIOS, unused.
11965
11966 * sysdep.c: Remove reference to DGUX.
11967 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11968
11969 * config.in: Regenerate.
11970
119712008-07-30 Jason Rumney <jasonr@gnu.org>
11972
11973 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11974
119752008-07-29 Jason Rumney <jasonr@gnu.org>
11976
11977 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11978 is populated.
11979 (uniscribe_encode_char): Always use uniscribe.
11980 Avoid using context if cache is populated.
11981
119822008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11983
11984 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11985 open menu.
11986
11987 * gtkutil.c (menu_nav_ended): Remove.
11988 (create_menus): Remove signal connect for menu_nav_ended.
11989
119902008-07-28 Chong Yidong <cyd@stupidchicken.com>
11991
11992 * xdisp.c (redisplay_window): Check return value of
11993 compute_window_start_on_continuation_line before forcing a window
11994 start.
11995
119962008-07-28 Jason Rumney <jasonr@gnu.org>
11997
11998 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11999
12000 * w32term.c (w32_enable_unicode_output, cleartype_active):
12001 Remove obsolete display options.
12002 (x_draw_glyph_string_background): Don't use old cleartype_active
12003 workaround.
12004 (w32_initialize): Remove cleartype_active initialization.
12005 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12006
120072008-07-28 Andreas Schwab <schwab@suse.de>
12008
12009 * lisp.h (init_weak_hash_tables, syms_of_font)
12010 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12011 (remove_hash_entry): Don't declare.
12012 * eval.c (maybe_call_debugger): Make static and move before use.
12013 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12014 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12015 * xterm.h (x_set_frame_alpha): Declare.
12016
120172008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12018
12019 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12020 (create_menus): Connect selection-done to menu_nav_ended.
12021
120222008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12023
12024 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12025 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12026 parameter with read of 'alpha' one.
12027 (Qns_frame_parameter): Remove.
5582fbc7 12028 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12029 (next-selection-coding-system, Vselection_coding_system)
12030 (Vnext_selection_coding_system): Drop.
12031
120322008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12033
12034 * nsfns.m (do-applescript, do_applescript): Rename to
12035 ns-do-applescript, ns_do_applescript, and move within file.
12036
120372008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12038
12039 Remove support for Mac Carbon.
12040 * mactoolbox.c:
12041 * macterm.h:
12042 * macterm.c:
12043 * macselect.c:
12044 * macmenu.c:
12045 * macgui.h:
12046 * macfns.c:
12047 * mac.c: Remove file.
12048 * s/darwin.h:
12049 * m/intel386.h:
12050 * xfaces.c:
12051 * xdisp.c:
12052 * window.c:
12053 * tparam.c:
12054 * termhooks.h:
12055 * termcap.c:
12056 * term.c:
12057 * syssignal.h:
12058 * sysselect.h:
12059 * sysdep.c:
12060 * process.c:
12061 * lread.c:
12062 * lisp.h:
12063 * keyboard.c:
12064 * image.c:
12065 * fringe.c:
12066 * frame.h:
12067 * frame.c:
12068 * fontset.c:
12069 * font.h:
12070 * font.c:
12071 * fns.c:
12072 * fileio.c:
12073 * emacs.c:
12074 * dispnew.c:
12075 * dispextern.h:
12076 * config.in:
12077 * atimer.c:
2ae37cf0 12078 * Makefile.in: Remove code for Carbon.
aac0c6e3 12079
f0131492 120802008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12081
12082 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12083
120842008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12085
12086 * macterm.h (kCGBitmapByteOrder32Host): New define for
12087 non-universal SDKs.
12088
12089 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12090 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12091
12092 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12093 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12094
120952008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12096
12097 * w32inevt.c: Include dispextern.h.
12098
120992008-07-26 Andreas Schwab <schwab@suse.de>
12100
12101 * print.c (print_object): Fix off-by-one in last change.
12102
121032008-07-25 Juanma Barranquero <lekktu@gmail.com>
12104
12105 * term.c (syms_of_term): Don't initialize default_orig_pair,
12106 default_set_foreground and default_set_background on Windows.
12107
121082008-07-25 Jason Rumney <jasonr@gnu.org>
12109
12110 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12111 ScriptItemize. Clean up return value checking. Remove unused
12112 variables.
12113 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12114 shaping engine.
12115
12116 * w32font.c (w32font_has_char): Handle the case where we can't
12117 determine the script for a character.
12118
121192008-07-25 Chong Yidong <cyd@stupidchicken.com>
12120
12121 * term.c (syms_of_term): Initialize default_orig_pair,
12122 default_set_foreground, and default_set_background.
12123
12124 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12125 clash (bug#86).
12126 (getloadavg): Callers changed.
12127
12128 * image.c (svg_load_image): Fix last change.
12129 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12130 image size is valid. Use g_object_unref instead of deprecated
12131 rsvg_handle_free to free rsvg handle.
12132 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12133
121342008-07-25 Jason Rumney <jasonr@gnu.org>
12135
12136 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12137 surrogates before looking up glyph index.
12138 (w32font_text_extents): Encode as surrogates if falling back to
12139 functions that need UTF-16 wide chars.
12140
12141 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12142 BMP as surrogates before looking up glyph index.
12143
121442008-07-25 Chong Yidong <cyd@stupidchicken.com>
12145
12146 * image.c (svg_load_image): Check for failure in return value of
12147 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12148
121492008-07-25 Jason Rumney <jasonr@gnu.org>
12150
12151 * w32font.c (Fx_select_font): Reverse sense of second arg.
12152
121532008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12154
12155 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12156 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12157
12158 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12159 (PURESIZE): Use it.
12160
121612008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12162
12163 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12164 * m/alpha.h (TEXT_END):
12165 * m/ibmrs6000.h (TEXT_END):
12166 * m/macppc.h (TEXT_END):
12167 * s/darwin.h (TEXT_END):
12168 * s/msdos.h (TEXT_END): Remove, unused.
12169 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12170 * s/cygwin.h: Remove comment.
12171
12172 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12173 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12174 * m/intel386.h (DOT_GLOBAL_START):
12175 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12176 (USG): Remove, file not used on USG platforms.
12177
12178 * Makefile.in (HAVE_X11): Remove empty #else.
12179
121802008-07-24 Andreas Schwab <schwab@suse.de>
12181
12182 * fileio.c (Finsert_file_contents): Properly adjust undo list
12183 after format conversion.
12184
121852008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12186
12187 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12188 (menu_nav_ended): Remove.
12189 (create_menus): Remove signal connect for menu_nav_ended.
12190 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12191 create_menus.
12192 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12193
121942008-07-23 Jason Rumney <jasonr@gnu.org>
12195
12196 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12197 with opened font.
12198 (w32font_open): Set font type to gdi.
12199
12200 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12201
122022008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12203
12204 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12205 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12206 defines it.
12207 * unexec.c (ADDR_CORRECT): Define unconditionally.
12208
12209 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12210
12211 * unexec.c: Remove code depending on !COFF and USG, the file is
12212 not used for such systems.
12213
12214 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12215 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12216 (LD_SWITCH_SYSTEM_1): Remove, update users.
12217
12218 * s/darwin.h (DATA_END):
12219 * m/intel386.h (DATA_END):
12220 * m/ibmrs6000.h (DATA_END):
12221 * m/alpha.h (DATA_END): Remove, unused.
12222
12223 * config.in: Regenerate.
12224 * s/ms-w32.h (subprocesses): Define unconditionally.
12225 * s/template.h (subprocesses): Update comment.
12226 * s/vms.h (subprocesses):
12227 * s/usg5-4.h (subprocesses):
12228 * s/hpux10-20.h (subprocesses):
12229 * s/gnu-linux.h (subprocesses):
12230 * s/cygwin.h (subprocesses):
12231 * s/bsd-common.h (subprocesses):
12232 * s/aix4-2.h (subprocesses):
12233 * s/darwin.h (subprocesses): Do not define, defined by default now.
12234
12235 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12236 Remove all references.
12237 (temacs): Add GNUstep specific ld flags.
12238
12239 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12240 similarly to what X does.
12241
122422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12243
12244 * nsfns.m (x-list-fonts): Remove.
12245 (syms_of_nsfns): Drop the x-list-fonts declaration.
12246 * nsterm.m: Get rid of remaining "//" comments.
12247
122482008-07-22 Chong Yidong <cyd@stupidchicken.com>
12249
12250 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12251
12252 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12253 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12254 (Fns_own_selection_internal, Fx_disown_selection_internal)
12255 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12256
12257 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12258 ... */' style of docstrings. Doc fixes.
12259
122602008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12261
12262 * terminfo.c (UP, BC, PC): Undo previous change.
12263
12264 * nsfns.m: Rename ns prefixed functions/variables to the
12265 corresponding x versions. Update references.
12266
122672008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12268
12269 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12270
122712008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12272
12273 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12274 Remove forwarding functions.
12275 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12276 non-static.
12277 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12278 non-static.
12279 (ns_frame_parm_handlers): Use the new names.
12280 (syms_of_nsfns): Move to the end of file.
12281
12282 * nsterm.m (syms_of_nsterm): Move to the end of file.
12283
12284 * dispnew.c (init_display): Remove code for X10.
12285
122862008-07-22 Jason Rumney <jasonr@gnu.org>
12287
12288 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12289 bare drive.
12290
122912008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12292
12293 * nsterm.m (syms_of_nsterm): Remove debugging println.
12294
122952008-07-22 David Reitter <david.reitter@gmail.com>
12296
12297 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12298 Carbon implementation of the same functionality: execute arbitrary
12299 AppleScript code.
12300
123012008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12302
12303 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12304 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12305 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12306 (Fx_display_mm_height, Fx_display_mm_width)
12307 (Fx_display_backing_store, Fx_display_visual_class)
12308 (Fx_display_save_under, Fx_open_connection)
12309 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12310 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12311 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12312 (Fx_display_pixel_width, Fx_display_pixel_height)
12313 (Fx_display_usable_bounds, Fx_display_planes)
12314 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12315 ... */' style of docstrings.
12316
123172008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12318
12319 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12320 on this platform.
12321 (mips):
12322 * m/iris4d.h (mips): Do not define.
12323 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12324
12325 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12326
12327 * image.c:
12328 * nsfns.m:
12329 * nsselect.m:
12330 * nsterm.h:
12331 * nsterm.m: Rename ns prefixed functions/variables to the
12332 corresponding x versions. Update references.
12333
12334 * m/ibms390x.h (NO_REMAP): Do not undefine.
12335
12336 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12337
123382008-07-21 Chong Yidong <cyd@stupidchicken.com>
12339
12340 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12341 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12342 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12343 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12344 (Fns_display_mm_height, Fns_display_mm_width)
12345 (Fns_display_backing_store, Fns_display_visual_class)
12346 (Fns_display_save_under, Fns_open_connection)
12347 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12348 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12349 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12350 (Fns_display_pixel_width, Fns_display_pixel_height)
12351 (Fns_display_usable_bounds, Fx_display_planes)
12352 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12353
123542008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12355
12356 * print.c (print_object): Check print_depth before searching for
12357 circularities.
12358
123592008-07-21 Michael Albinus <michael.albinus@gmx.de>
12360
12361 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12362 only sprintf.
12363
123642008-07-21 Kenichi Handa <handa@m17n.org>
12365
12366 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12367
123682008-07-20 Andreas Schwab <schwab@suse.de>
12369
12370 * syntax.c (find_start_pos, find_start_value)
12371 (find_start_value_byte, find_start_begv, find_defun_start)
12372 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12373
123742008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12375
12376 * s/sol2-3.h: Insert contents of s/sol2.h.
12377 (LD_SWITCH_SYSTEM): Remove redundant definition.
12378 * s/sol2.h: Remove, unused.
12379
123802008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12381
12382 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12383
123842008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12385
12386 * Makefile.in (ns_appdir): Fix typo in find command.
12387
123882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12389
12390 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12391
12392 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12393 added not supported anymore.
12394
12395 * s/usg5-4-2.h (LIBS_SYSTEM):
12396 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12397
12398 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12399 * s/lynxos.h (GETPGRP_NO_ARG):
12400 * s/hpux10-20.h (NO_SIOCTL_H):
12401 * s/gnu.h (GETPGRP_NO_ARG):
12402 * s/gnu-linux.h (NO_SIOCTL_H):
12403 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12404 * s/cygwin.h (GETPGRP_NO_ARG):
12405 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12406 (C_DEBUG_SWITCH): Remove duplicate definition.
12407
12408 * m/ibms390.h: Remove boilerplate comments.
12409
12410 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12411
12412 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12413 (wait_reading_process_output): Remove code for SunOS, platform not
12414 supported anymore. Use SOLARIS2 instead of sun.
12415
124162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12417
12418 * font.c (font_open_by_name): Under NS, default lface height to zero.
12419 (font_open_for_lface): Under NS, set size based on frame fontsize.
12420 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12421 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12422
124232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12424
12425 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12426 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12427 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12428 YES/NO.
12429 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12430 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12431 * Makefile.in (clean): Clear out build destination dir.
12432
124332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12434
12435 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12436 xterm, xselect.
12437 * lisp.h: Remove declaration of hash_remove.
12438 * nsgui.h: Remove redefinitions of hash_remove.
12439 * fns.c (hash_remove): Rename to hash_remove_from_table.
12440
124412008-07-19 Seiji Zenitani <zenitani@mac.com>
12442
12443 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12444 strdup() the family UTF8String before modifying it.
12445
124462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12447
12448 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12449 NS_FACE_BACKGROUND with 0 instead of nil.
12450 * nsfont.m (nsfont_draw): Same.
12451
124522008-07-19 Chong Yidong <cyd@stupidchicken.com>
12453
12454 * nsfns.m (ns_set_background_color): Fix crash.
12455
124562008-07-18 Chong Yidong <cyd@stupidchicken.com>
12457
12458 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12459
124602008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12461
12462 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12463
124642008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12465
12466 * gtkutil.c: Include <config.h> instead of "config.h".
12467
12468 * lisp.h (Foverlay_buffer): Add EXFUN.
12469
12470 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12471 child process to complete child_setup. Undo 2005-09-21 change.
12472
12473 * s/darwin.h: Mention setsid after vfork.
12474
124752008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12476
12477 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12478 Depend on macgui.h.
12479
12480 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12481 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12482
12483 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12484 and f19.
12485 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12486
12487 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12488 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12489 Remove enumerators.
12490
12491 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12492 Check if FACE_FROM_ID returns NULL.
12493
124942008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12495
12496 * w32inevt.c (change_frame_size): Remove extern declaration.
12497 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12498 change_frame_size.
12499
125002008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12501
12502 * getloadavg.c: Revert last change (2008-07-15).
12503
125042008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12505
12506 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12507 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12508 from configure.
12509
125102008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12511
12512 * s/sol2.h:
12513 * s/sol2-4.h: Reorganize conditionals.
12514
12515 * ecrt0.c: Remove code depending on m68000, not used anymore.
12516
12517 * fns.c (hash_remove): Make static.
12518 * lisp.h (hash_remove): Don't prototype.
12519
12520 * m/ibmrs6000.h:
12521 * m/ibms390x.h:
12522 * m/macppc.h: Remove boilerplate comments.
12523
12524 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12525 Solaris, which does not need them.
12526
12527 * m/vax.h: Remove comments about unsupported systems.
12528
12529 * s/darwin.h: Reorganize ifdefs.
12530
125312008-07-17 Andreas Schwab <schwab@suse.de>
12532
12533 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12534
125352008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12536
12537 Use SDATA. Follow coding convention of placing operators at
12538 beginning of next line rather than end of previous line, and placing
12539 spaces around infix operators.
12540
12541 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12542 in case it was defined already.
12543 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12544 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12545 ns_default.
12546 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12547 Lisp_Objects.
12548 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12549 (ns_defined_color, ns_color_to_lisp): Declare.
12550 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12551 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12552 it's accepted even with USE_LISP_UNION_TYPE.
12553 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12554 (update_frame_tool_bar): Remove apparently obsolete tests for
12555 non-integerness of f->tool_bar_lines.
12556 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12557 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12558 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12559 (nsfont_open): Don't confuse NULL for Qnil.
12560 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12561 * menu.h (find_and_call_menu_selection):
12562 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12563 (find_and_return_menu_selection): Always return something.
12564 * frame.h: Include dispextern.h for Display_Info.
12565 (display_x_get_resource): Declare.
12566
125672008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12568
12569 * syntax.c: Remove stdio.h include accidentally introduced in
12570 Emacs.app commit.
12571 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12572 NS_IMPL_COCOA.
12573 * keyboard.c (handle_async_input, input_available_signal): Remove
12574 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12575
125762008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12577
12578 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12579 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12580 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12581 Use SDATA.
12582
12583 * keymap.c: Remove all NS-specific code.
12584 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12585 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12586 where_is_preferred_modifier, return a different value depending on how
12587 preferred is the binding.
12588 (where_is_internal): Adjust accordingly.
12589 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12590 Adjust to new preferred_sequence_p.
12591 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12592 * keyboard.c (parse_solitary_modifier): Not static any more.
12593 * keyboard.h (parse_solitary_modifier): Declare.
12594
125952008-07-16 Andreas Schwab <schwab@suse.de>
12596
12597 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12598 of easymenu.
12599
126002008-07-16 Chong Yidong <cyd@stupidchicken.com>
12601
12602 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12603 that we don't move off the line.
12604
126052008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12606
12607 * keyboard.c (Qsuper): Remove.
12608 (parse_menu_item): Don't call where_is_internal specially for NS.
12609
126102008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12611
12612 * s/gnu-linux.h: Remove boilerplate comments.
12613
12614 * m/alpha.h (__ELF__): Consolidate conditions.
12615
12616 * m/m68k.h (linux): Use GNU_LINUX instead.
12617 Remove boilerplate comments.
12618
12619 * m/intel386.h: Undo refactoring from previous change.
12620 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12621 too, remove dead code.
12622 (linux): Use GNU_LINUX instead.
12623
126242008-07-16 Jason Rumney <jasonr@gnu.org>
12625
12626 * w32gui.h: Repeat 26 June changes lost by last change.
12627
126282008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12629
12630 * systty.h: Remove code for Aix on 386, unsupported platform.
12631
12632 * s/ms-w32.h: Remove boilerplate comments.
12633 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12634
12635 * s/gnu-linux.h (TERM): Remove support.
12636 (HAVE_SYSVIPC): Remove, unused.
12637 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12638 for this system.
12639
12640 * process.c: Remove support for IRIS, unused.
12641 Remove support for TERM, not relevant anymore.
12642
12643 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12644 used with the definition.
12645
12646 * s/aix4-2.h (static): Do not undef.
12647
12648 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12649 only used on Aix.
12650 (HAVE_SYSVIPC): Remove, unused.
12651
12652 * m/hp800.h (CANNOT_DUMP): Do not undef.
12653
12654 * m/alpha.h: Fix comment.
12655
12656 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12657 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12658 used by this configuration.
12659 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12660 * unexec.c: Remove code depending on HPUX and
12661 USG_SHARED_LIBRARIES, not used with this file. Remove code
12662 depending on IRIS, unused. Remove if 0-ed code.
12663
12664 * s/template.h: Remove comments about static.
12665
12666 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12667 Remove if 0-ed code.
12668 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12669 were the same as the default.
12670 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12671 Remove boilerplate comments.
12672 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12673 (HAVE_SYSVIPC): Remove, unused.
12674 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12675
12676 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12677 Remove boilerplate comments.
12678 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12679 Remove boilerplate comments.
12680 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12681 Remove boilerplate comments.
12682 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12683
12684 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12685 USG systems which do not use DATA_SEG_BITS.
12686 Refactor code. Remove boilerplate comments.
12687
12688 * m/ibms390.h:
12689 * m/m68k.h:
12690 * s/bsd-common.h:
12691 * s/cygwin.h:
12692 * s/darwin.h:
12693 * s/freebsd.h:
12694 * s/gnu.h:
12695 * s/msdos.h: Remove boilerplate comments.
12696
12697 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12698 do not use this file.
aac0c6e3
MR
12699 (IRIS_4D): Remove, unused.
12700
12701 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12702 do not use this file.
aac0c6e3
MR
12703 (SIGN_EXTEND_CHAR):
12704 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12705 * unexmips.c: Remove file, unused.
12706
12707 * editfns.c (Fuser_full_name): Replace the only use of
12708 USER_FULL_NAME with its value.
12709 * config.in: Regenerate.
12710
127112008-07-16 David Reitter <david.reitter@gmail.com>
12712
12713 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12714 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12715
127162008-07-16 Glenn Morris <rgm@gnu.org>
12717
12718 * emacs.c (system-type): Doc fix.
12719
127202008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12721
12722 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12723 If the cache doesn't work, let's fix it, rather than work around it.
12724
127252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12726
12727 * Makefile.in: Correct additions for nsfont.o in last commit.
12728 * nsfont.m: New file (forgot last commit).
12729
127302008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12731
12732 * callproc.c (set_initial_environment): Initialize
12733 Vprocess_environment under CANNOT_DUMP (fixes crash when
12734 batch-compiling for bootstrap).
12735
127362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12737 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12738
c4cc8b9a
JB
12739 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12740 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12741
127422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12743
12744 Changes and additions for NeXTstep windowing system (Cocoa and
12745 GNUstep) support.
12746
12747 * Makefile.in:
12748 * config.in: Support defines and build commands for NS port.
12749 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12750 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12751 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12752 windowing.
12753 (struct face): Add synth_ital field.
12754 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12755 (init_display): Initialize Vinitial_window_system to "ns" when so
12756 compiled.
12757 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12758 (display_arg): Use under NS.
12759 (main): Under NS, allocate autorelease pool and handle command line
12760 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12761 (standard_args): Add NS-specific args.
12762 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12763 * font.c (DEFAULT_ENCODING): New variable.
12764 (font_find_for_lface): Use it.
12765 (syms_of_font): Load syms_of_nsfont under NS.
12766 * font.h: Declare nsfont_driver when compiled under NS.
12767 * fontset.c: When compiling under NS, include nsterm.h.
12768 (fontset_from_font): Autoconstruct fontset under NS.
12769 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12770 symbol, document and use it.
12771 (do_switch_frame): When for_deletion under Cocoa, add
12772 Fraise_frame(Qnil).
12773 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12774 (x_get_arg): Allow "yes" and "no" as boolean values.
12775 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12776 Qright under Cocoa.
12777 (focus-follows-mouse): Default to 0 under NS.
12778 * frame.h (enum output_method): Add output_ns.
12779 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12780 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12781 (FRAME_WINDOW_P): NS-specific definition.
12782 * fringe.c (max_used_fringe_bitmap): Make public.
12783 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12784 (getloadavg): Use NeXT code under descendant OS's.
12785 * image.c (includes and header section, x_create_bitmap_from_data)
12786 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12787 (image_background_transparent, x_clear_image_1)
12788 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12789 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12790 (x_to_xcolors, x_from_xcolors, x_disable_image)
12791 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12792 other GUIs, including XPM support using code originally written for
12793 Carbon GUI.
12794 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12795 using NS API.
12796 (image_ascent): Use font metrics macros instead of direct struct field
12797 access.
12798 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12799 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12800 Also, handle NS as GTK for menu bar purposes.
12801 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12802 toolkit where they differ.
12803 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12804 use cachelist, still needed under NS.
12805 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12806 (struct widget_value): Define it here for menu.c.
12807 * keymap.c (includes): Include modifier internals.
12808 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12809 NS.
12810 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12811 support for preferring sequences using certain modifiers, specified by
12812 the FIRSTONLY argument.
12813 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12814 under NS GNUstep implementation.
12815 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12816 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12817 * menu.c: Include nsterm.h under NS.
12818 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12819 (free_menubar_widget_tree_value, update_submenu_strings)
12820 (find_and_call_menu_selection): Treat NS as X and NT.
12821 (find_and_return_menu_selection): New function, used for popup menus.
12822 * nsgui.h:
12823 * nsterm.h:
12824 * nsfns.m:
12825 * nsimage.m:
12826 * nsmenu.m:
12827 * nsselect.m:
12828 * nsterm.m: New files.
12829 * process.c (wait_reading_process_output): Under NS, call ns_select()
12830 instead of plain select().
12831 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12832 beginning of buffer.
12833 * sysselect.h (init_process): Rename when compiling under Cocoa to
12834 avoid name conflict.
12835 * termhooks.h (display_info): Add ns_display_info to union.
12836 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12837 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12838 COCOA environment.
12839 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12840 unexec() signature. (Note, this will dump, but the resulting file
12841 crashes; unexosx is used instead; keeping around for reference and
12842 possible aid in getting dump working under GNUstep.)
12843 * w32gui.h (button_type, widget_value): Remove definitions (now in
12844 keyboard.h).
12845 * window.c: Include nsterm.h when compiling under NS.
12846 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12847 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12848 other GUI windowing systems.
12849 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12850 GTK.
12851 (x_consider_frame_title): Under NS, set icon type and frame
12852 modified-state indicator; use ns_set_name_as_filename() when using
12853 formatted title.
12854 (update_window_cursor): Make public when compiling under NS.
12855 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12856 (hourglass_atimer, Vhourglass_delay
12857 * xfaces.c (header section, init_frame_faces, clear_font_table)
12858 (defined_color, unload_color, x_face_list_fonts)
12859 (prepare_face_for_display): Add NS support parallel to other GUIs.
12860 Emulate GCs like other non-X GUIs.
12861 (split_font_name): Don't lowercase font name under NS.
12862 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12863 under NS.
12864 * s/darwin.h: Add support for compilation under NS.
12865
128662008-07-15 Jason Rumney <jasonr@gnu.org>
12867
12868 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12869 (w32_show_hourglass): Rename from show_hourglass.
12870 (w32_hide_hourglass): Rename from hide_hourglass.
12871 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12872 (Vhourglass_delay): Declare extern.
12873 (hourglass_started): Remove.
12874
12875 * xdisp.c (Vhourglass_delay): Remove static.
12876 (hourglass_started, start_hourglass, cancel_hourglass):
12877 Don't include these versions on WINDOWSNT.
12878
128792008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12880
12881 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12882 variables (formerly in xfns.c).
12883 (show_hourglass, hide_hourglass): New prototypes (same).
12884 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12885 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12886 in xfns.c).
12887 (syms_of_xdisp): Declare/initialize display-hourglass,
12888 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12889 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12890 formerly in xfns.c.
12891 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12892 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12893 (start_hourglass, cancel_hourglass): Remove.
12894 (show_hourglass, hide_hourglass): Remove prototypes and static
12895 modifiers.
12896 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12897 hourglass_atimer, hourglass_shown_p declaration/initialization.
12898 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12899 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12900 (start_hourglass, cancel_hourglass): Remove.
12901 (show_hourglass, hide_hourglass): Remove prototypes and static
12902 modifiers.
12903 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12904 hourglass_atimer, hourglass_shown_p declaration/initialization.
12905 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12906 (DEFAULT_HOURGLASS_DELAY): Remove.
12907 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12908 hourglass_shown_p declaration/initialization.
12909
129102008-07-14 Jason Rumney <jasonr@gnu.org>
12911
12912 * w32fns.c (w32_get_arg): Remove wrapper function.
12913 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12914 directly.
12915 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12916
129172008-07-14 Kenichi Handa <handa@m17n.org>
12918
12919 * xfont.c (xfont_open): Add workaround for X's bug.
12920
129212008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12922
12923 * fontset.c: Include <stdio.h> unconditionally.
12924
129252008-07-13 Michael Albinus <michael.albinus@gmx.de>
12926
12927 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12928 for filtering.
12929
129302008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12931
12932 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12933
12934 * m/macppc.h:
12935 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12936
c4cc8b9a 12937 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12938 (SPECIAL_EMACS_INT):
12939 * m/ia64.h (SPECIAL_EMACS_INT):
12940 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12941 * s/gnu.h (NLIST_STRUCT):
12942 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12943 * s/gnu-linux.h (LINUX):
12944 * s/msdos.h (HAVE_FACES):
12945 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12946
12947 * systty.h:
12948 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12949 anymore.
12950
129512008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12952
12953 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12954 always defined as int.
12955
12956 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12957 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12958 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12959 * s/freebsd.h (HAVE_WAIT_HEADER):
12960 * s/bsd-common.h (HAVE_UNION_WAIT):
12961 * s/aix4-2.h (HAVE_WAIT_HEADER):
12962 * m/mips.h (HAVE_UNION_WAIT):
12963 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12964 (COFF, static): Do not define, they are undefined later in the file.
12965
12966 * process.c (update_status): Don't use a union.
12967 (status_convert):
12968 (sigchld_handler): Use int instead of WAITTYPE.
12969
129702008-07-12 Chong Yidong <cyd@stupidchicken.com>
12971
12972 * indent.c (Fvertical_motion): Restore hscroll before moving to
12973 goal column.
12974
129752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12976
12977 * lisp.h: Remove left over code.
12978
129792008-07-11 Andreas Schwab <schwab@suse.de>
12980
12981 * lisp.h: Fix logic in last change.
12982
12983 * menu.h: New file.
12984 * menu.c: Include it.
12985 * xmenu.c: Likewise.
12986 * Makefile.in: Update dependencies.
12987
129882008-07-11 Kenichi Handa <handa@m17n.org>
12989
12990 * fontset.c (fontset_from_font): Cancel the previous change.
12991
129922008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12993
12994 * lisp.h:
12995 * w32heap.c:
12996 * emacs.c:
12997 * alloc.c: Replace all references of NO_UNION_TYPE with
12998 USE_LISP_UNION_TYPE.
12999
13000 * m/xtensa.h (NO_UNION_TYPE):
13001 * m/vax.h (NO_UNION_TYPE):
13002 * m/template.h (NO_UNION_TYPE):
13003 * m/sparc.h (NO_UNION_TYPE):
13004 * m/mips.h (NO_UNION_TYPE):
13005 * m/macppc.h (NO_UNION_TYPE):
13006 * m/m68k.h (NO_UNION_TYPE):
13007 * m/iris4d.h (NO_UNION_TYPE):
13008 * m/intel386.h (NO_UNION_TYPE):
13009 * m/ibms390x.h (NO_UNION_TYPE):
13010 * m/ibms390.h (NO_UNION_TYPE):
13011 * m/ibmrs6000.h (NO_UNION_TYPE):
13012 * m/ia64.h (NO_UNION_TYPE):
13013 * m/hp800.h (NO_UNION_TYPE):
13014 * m/arm.h (NO_UNION_TYPE):
13015 * m/amdx86-64.h (NO_UNION_TYPE):
13016 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13017 defining it the same.
13018
130192008-07-10 Chong Yidong <cyd@stupidchicken.com>
13020
13021 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13022
130232008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13024
13025 * fileio.c:
50426a04 13026 * sysdep.c:
aac0c6e3
MR
13027 * systty.h:
13028 * m/ibmrs6000.h:
13029 * m/iris4d.h:
13030 * s/aix4-2.h:
13031 * s/freebsd.h:
13032 * s/gnu-linux.h:
13033 * s/hpux10-20.h:
13034 * s/hpux11.h:
13035 * s/netbsd.h:
13036 * s/sol2-3.h:
13037 * s/sol2-4.h:
13038 * s/sol2.h:
13039 * s/usg5-4.h:
13040 * s/vms.h: Remove references to unused variables.
13041
130422008-07-10 Andreas Schwab <schwab@suse.de>
13043
13044 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13045 pattern before matching the generic family.
13046
130472008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13048
13049 * unexec.c:
13050 * s/vms.h:
13051 * s/usg5-4-2.h:
13052 * s/sol2-5.h:
13053 * s/freebsd.h:
13054 * s/darwin.h: Remove dead code.
13055
13056 * m/template.h:
13057 * m/sparc.h:
13058 * m/mips.h:
13059 * m/m68k.h:
13060 * m/iris4d.h:
13061 * m/intel386.h:
13062 * m/ibms390x.h:
13063 * m/ibms390.h:
13064 * m/ia64.h:
13065 * m/hp800.h:
13066 * m/arm.h:
13067 * m/amdx86-64.h: Remove dead code and references to unused
13068 and compiler defined symbols.
13069
13070 * unexmips.c:
13071 * unexelf.c: Remove references to desupported systems.
13072
13073 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13074
13075 * m/powermac.h: Remove boilerplate comments.
13076 (NO_REMAP): Remove unused definition.
13077
13078 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13079 define them.
13080
130812008-07-10 Kenichi Handa <handa@m17n.org>
13082
13083 * xfont.c (xfont_open): Log the reason of failure.
13084
130852008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13086
13087 * fontset.c (fontset_get_font_group):
13088 * font.c (font_check_otf): Specify argument types.
13089
130902008-07-09 Kenichi Handa <handa@m17n.org>
13091
13092 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13093 non-ASCII char is found.
13094
13095 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13096 (reorder_font_vector): Change the arg preferred_family to font.
13097 Prefer the spec matching with font.
13098 (fontset_get_font_group): New function.
13099 (fontset_find_font): Change the format of an element of a realized
13100 fontset. Use fontset_get_font_group.
13101 (fontset_font): Try the current fontset, the default fontset, the
13102 fallbacks of the current fontset, and the fallbacks of the default
13103 fontset in this order.
13104 (face_for_char): Delete the shortcut to use the current font.
13105 (fontset_from_font): Don't set fonts for Latin in the fontset.
13106
13107 * font.h (font_make_object, font_match_p): Adjust prototypes.
13108
13109 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13110
13111 * font.c (font_make_object): New arg entity and pixelsize.
13112 (font_check_otf_features, font_check_otf): New functions.
13113 (font_match_p): Check :lang, :script, and :otf properties.
13114
13115 * xfont.c (xfont_open): Adjust it for the change of
13116 font_make_object.
13117 (xfont_text_extents): Fix initial setting of metrics.
13118
13119 * ftfont.c (struct ftfont_info): New member index, delete member
13120 fc_charset_idx. Make the member order compatible with struct
13121 xftfont_info.
13122 (fc_charset_table): Change charset names to registry names.
13123 (ftfont_pattern_entity): Delete the args registry and
13124 fc_charset_idx. Change the value of :font-entity property
13125 to (FONTNAME . INDEX). Always set :registry property to
13126 `iso10646-1'.
13127 (struct ftfont_cache_data): New struct.
13128 (ftfont_lookup_cache): New arg for_face.
13129 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13130 (ftfont_driver): Set the member otf_capability.
13131 (ftfont_get_charset): Adjust it for the change of
13132 fc_charset_table.
13133 (OTF_TAG_SYM): New macro.
13134 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13135 for the change of fc_charset_table.
13136 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13137 ftfont_pattern_entity. Add FC_INDEX to objset.
13138 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13139 and ftfont_pattern_entity.
13140 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13141 font_make_object, struct ftfont_info.
13142 (ftfont_has_char): Use ftfont_get_fc_charset.
13143 (ftfont_otf_features, ftfont_otf_capability): New functions.
13144 (ftfont_shape): Use ftfont_get_otf.
13145 (ftfont_text_extents): Fix initial setting of metrics.
13146
13147 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13148 member order compatible with struct ftfont_info.
13149 (xftfont_open): Add FC_CHARSET to the pattern. Set
13150 xftfont_info->ft_size. Don't unlock the face. Check BDF
13151 properties if appropriate.
13152 (xftfont_close): Unlock the face.
13153 (xftfont_anchor_point, xftfont_shape): Deleted.
13154 (syms_of_xftfont): Don't set members anchor_point and shape of
13155 xftfont_driver.
13156
13157 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13158 font_make_object.
13159
13160 * w32font.c (w32font_open): Adjust it for the change of
13161 font_make_object.
13162 (w32font_open_internal): Don't set properties of font_object here.
13163
131642008-07-08 Chong Yidong <cyd@stupidchicken.com>
13165
13166 * macfns.c (x_create_tip_frame):
13167 * w32fns.c (x_create_tip_frame):
13168 * xfns.c (x_create_tip_frame): Pass parameter argument to
13169 face-set-after-frame-default.
13170
13171 * xfaces.c (Finternal_merge_in_global_face): Save merged
13172 attributes for the default face back into the face vector.
13173
131742008-07-08 Andreas Schwab <schwab@suse.de>
13175
13176 * fontset.h: Declare fontset_from_font. Don't declare
13177 new_fontset_from_font and fontset_from_font_name.
13178 * xterm.c: Include "fontset.h".
13179 * Makefile.in (xterm.o): Update dependencies.
13180
131812008-07-08 Glenn Morris <rgm@gnu.org>
13182
13183 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13184 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13185
131862008-07-07 Chong Yidong <cyd@stupidchicken.com>
13187
13188 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13189 (x_set_frame_parameters): Don't bind it.
13190
131912008-07-07 Juanma Barranquero <lekktu@gmail.com>
13192
13193 * w32fns.c (map_w32_filename): Declare extern.
13194
131952008-07-07 Jason Rumney <jasonr@gnu.org>
13196
13197 * w32term.c (WS_EX_LAYERED): Define if not already.
13198
131992008-07-06 Chong Yidong <cyd@stupidchicken.com>
13200
13201 * xfaces.c (set_font_frame_param): Don't try to set the font
13202 parameter if it is still unspecified in the lface.
13203
132042008-07-05 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13207 face if it didn't already exist.
13208
13209 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13210
132112008-07-05 Andreas Schwab <schwab@suse.de>
13212
13213 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13214
132152008-07-05 Chong Yidong <cyd@stupidchicken.com>
13216
13217 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13218 word-wrapping.
13219 (IT_DISPLAYING_WHITESPACE): New macro.
13220 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13221 when word-wrapping. Simplify word-wrapping logic. Use correct
13222 pixel positions when saving copies of the iterator.
13223 (display_line): Use proper wrap point if the last character on a
13224 line was preceded by whitespace.
13225
132262008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13227
13228 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13229
132302008-07-04 Kenichi Handa <handa@m17n.org>
13231
13232 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13233
13234 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13235
132362008-07-02 Jason Rumney <jasonr@gnu.org>
13237
13238 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13239 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13240
13241 * xdisp.c (next_element_from_display_vector): Move assignment out
13242 of if statement.
13243
132442008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13245
13246 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13247
13248 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13249 (syms_of_fileio): Initialize and export them.
13250 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13251
13252 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13253 (Fsystem_move_file_to_trash): New function.
13254 (syms_of_w32fns): Export it to lisp.
13255
132562008-07-01 Jason Rumney <jasonr@gnu.org>
13257
13258 * w32font.c (w32font_text_extents): Don't count overhang as part
13259 of width.
13260
132612008-06-30 Miles Bader <miles@gnu.org>
13262
13263 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13264 Add `avoid_cursor_p' field.
13265
13266 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13267 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13268 (append_glyph, append_composite_glyph, produce_image_glyph)
13269 (append_stretch_glyph): Initialize avoid_cursor_p.
13270 (get_it_property): Rename from `get_line_height_property'.
13271 (x_produce_glyphs): Use get_it_property.
13272 (handle_line_prefix, push_display_prop): New functions.
13273 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13274 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13275 New variables.
13276 (syms_of_xdisp): Initialize them.
13277
132782008-06-30 Kenichi Handa <handa@m17n.org>
13279
13280 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13281 XftDefaultSubstitute (they are called in XftFontMatch).
13282 (xftfont_open): Fix args to ftfont_font_format.
13283
13284 * ftfont.c (fc_charset_table): New member lang.
13285 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13286 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13287 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13288 (ftfont_open): Fix args to ftfont_font_format.
13289 (ftfont_font_format): New arg filename.
13290
132912008-06-30 Chong Yidong <cyd@stupidchicken.com>
13292
13293 * xfaces.c (Finternal_merge_in_global_face): If default face was
13294 modified, realize it again. Update the font face attribute.
13295
132962008-06-29 Jason Rumney <jasonr@gnu.org>
13297
13298 * w32term.c (x_set_frame_alpha): Fix logic.
13299
133002008-06-29 Kenichi Handa <handa@m17n.org>
13301
13302 * fontset.c (Finternal_char_font): Return font-object instead of
13303 font-name.
13304
13305 * composite.c (get_composition_id): Fix the width calculation for TAB.
13306
133072008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13308
13309 * indent.c (Fvertical_motion): Properly handle float column arg.
13310
133112008-06-28 Jason Rumney <jasonr@gnu.org>
13312
13313 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13314 (pfnSetLayeredWindowAttributes): New function pointer.
13315 (w32_initialize): Initialize it when supported.
13316 (x_set_frame_alpha): New function.
13317
13318 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13319 (w32_frame_parm_handlers): Set alpha handler.
13320
13321 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13322
133232008-06-27 Jason Rumney <jasonr@gnu.org>
13324
13325 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13326 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13327 (w32_to_x_charset, x_to_w32_charset)
13328 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13329 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13330 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13331 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13332 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13333 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13334 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13335 (Qw32_charset_unicode): Remove.
13336 (syms_of_w32fns): Update for above changes.
13337
13338 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13339 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13340 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13341 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13342 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13343 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13344 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13345 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13346 (syms_of_w32font): Update for above changes.
13347
133482008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13349
13350 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13351 removed #if.
13352 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13353
133542008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13355 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13356
13357 * makefile.w32-in (LOCAL_FLAGS):
13358 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13359
13360 * sysdep.c (_spawnlp, _getpid):
13361 Declare with explicit _cdecl instead of _CRTAPI1.
13362
13363 * editfns.c (Fget_internal_run_time):
13364 Check for WINDOWSNT with #ifdef, not #if.
13365
133662008-06-26 Jason Rumney <jasonr@gnu.org>
13367
13368 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13369
13370 * w32term.c (x_draw_glyph_string_foreground)
13371 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13372 Use FONT_HANDLE macro.
13373 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13374
13375 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13376 (uniscribe_encode_char): Use FONT_HANDLE macro.
13377
13378 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13379 (w32font_text_extents): Use precast w32_font.
13380 (w32font_close): Free cached metrics.
13381 (w32font_open_internal): Allocate space for name on stack.
13382
133832008-06-26 Chong Yidong <cyd@stupidchicken.com>
13384
13385 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13386
133872008-06-26 Jason Rumney <jasonr@gnu.org>
13388
13389 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13390 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13391
133922008-06-26 Juanma Barranquero <lekktu@gmail.com>
13393
13394 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13395
133962008-06-26 Jason Rumney <jasonr@gnu.org>
13397
13398 * w32bdf.c, w32bdf.h: Remove obsolete files.
13399
13400 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13401
13402 * w32gui.h: Don't include w32bdf.h.
13403 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13404 Remove obsolete font support.
13405
13406 * w32font.h (struct w32font_info): Remove compat_w32_font.
13407 Add hfont member.
13408 (FONT_COMPAT): Remove obsolete macro.
13409
13410 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13411 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13412 (w32font_open_internal): Remove compat code. Set new hfont member.
13413 (Fx_select_font): Use new hfont member.
13414
13415 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13416 (uniscribe_encode_char): Use new hfont member.
13417
13418 * w32term.c (x_draw_glyph_string_foreground)
13419 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13420 (x_draw_glyph_string): Use metrics in w32font_info.
13421
134222008-06-26 Kenichi Handa <handa@m17n.org>
13423
13424 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13425
134262008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13427
13428 * unexnext.c:
13429 * m/ews4800.h:
13430 * m/hp9000s300.h:
13431 * m/ibm370aix.h:
13432 * m/mips-siemens.h:
13433 * m/ncr386.h:
13434 * m/next.h:
13435 * m/pmax.h:
13436 * m/powerpcle.h:
13437 * m/tandem-s2.h:
13438 * s/386bsd.h:
13439 * s/bsd386.h:
13440 * s/bsd4-1.h:
13441 * s/bsd4-2.h:
13442 * s/bsdos2-1.h:
13443 * s/bsdos2.h:
13444 * s/bsdos3.h:
13445 * s/bsdos4.h:
13446 * s/nextstep.h:
13447 * s/ultrix4-3.h:
13448 * s/usg5-0.h:
13449 * s/usg5-2-2.h:
13450 * s/usg5-2.h:
13451 * s/usg5-4-3.h:
13452 * s/ux4800.h:
13453 * s/uxpds.h:
13454 * s/uxpv.h: Remove support for obsolete systems.
13455 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13456 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13457 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13458 Remove, insert contents in s/aix4-2.h.
13459 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13460 * s/bsd4-3.h: Rename to ...
13461 * s/bsd-common.h: ... this.
13462 * data.c:
13463 * doc.c:
13464 * ecrt0.c:
13465 * emacs.c:
13466 * fileio.c:
13467 * floatfns.c:
13468 * keyboard.c:
13469 * mem-limits.h:
13470 * print.c:
13471 * process.c:
13472 * sysdep.c:
13473 * syssignal.h:
13474 * systty.h:
13475 * syswait.h:
13476 * term.c:
13477 * unexec.c:
13478 * unexelf.c:
13479 * unexhp9k800.c:
13480 * m/hp800.h:
13481 * m/ibmrs6000.h:
13482 * m/mips.h:
13483 * m/vax.h:
13484 * s/darwin.h:
13485 * s/freebsd.h:
13486 * s/gnu.h:
13487 * s/ms-w32.h:
13488 * s/msdos.h:
13489 * s/netbsd.h:
13490 * s/template.h: Remove references to obsolete variables.
13491
13492 * Makefile.in: Add dependencies for all unexec files.
13493 (admindir): Remove unused variable.
13494 (UNEXEC_SRC): Remove references.
13495
134962008-06-25 Chong Yidong <cyd@stupidchicken.com>
13497
13498 * xfns.c (x_default_font_parameter): If Xft is available, first
13499 try Monospace-12 for the default font.
13500
135012008-06-25 Jason Rumney <jasonr@gnu.org>
13502
13503 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13504
135052008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13506
13507 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13508
13509 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13510
135112008-06-25 Juanma Barranquero <lekktu@gmail.com>
13512
13513 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13514 <scroll-conservatively>: Fix typo in docstring.
13515
13516 * xselect.c (Fx_send_client_event): Doc fix.
13517
135182008-06-25 Kenichi Handa <handa@m17n.org>
13519
13520 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13521
13522 * font.c (font_parse_fcname): Remove unused variables.
13523 (font_sort_entites): Delete the arg SPEC. Caller changed.
13524 Fix for the case of ! best_only.
13525 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13526
13527 * lisp.h (Fstring_to_unibyte): EXFUN it.
13528
13529 * character.h (str_to_unibyte): Extern it.
13530
13531 * character.c (str_to_unibyte): New function.
13532
13533 * fns.c (Fstring_to_unibyte): New function.
13534 (syms_of_fns): Defsubr it.
13535
135362008-06-24 Kenichi Handa <handa@m17n.org>
13537
13538 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13539 DPI too.
13540 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13541
135422008-06-24 Andreas Schwab <schwab@suse.de>
13543
13544 * Makefile.in (${lispsource}loaddefs.el): Rename from
13545 ../lisp/loaddefs.el.
13546 (bootstrap-clean): Do what distclean does but don't remove
13547 Makefile.
13548 (distclean): Depend on bootstrap-clean and remove Makefile.
13549
135502008-06-24 Chong Yidong <cyd@stupidchicken.com>
13551
13552 * buffer.h (struct buffer): New member word_wrap.
13553
13554 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13555 word-wrap.
13556 (init_buffer_once): Initialize them.
13557
13558 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13559 line_wrap enum possessing three possible values.
13560
13561 * termopts.h: Replace truncate_partial_width_windows with
13562 Vtruncate_partial_width_windows.
13563
13564 * dispnew.c (direct_output_for_insert): Avoid direct output when
13565 inserting a space with word wrap on.
13566
13567 * indent.c (compute_motion): Obey integer values of
13568 truncate-partial-width-windows.
13569
13570 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13571 replacing truncate_partial_width_windows.
13572 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13573 truncate only if the window width is below that integer.
13574 (start_display, resize_mini_window, produce_stretch_glyph)
13575 (display_string, move_it_in_display_line_to): Use line_wrap.
13576 (back_to_previous_visible_line_start, reseat_1): Reset
13577 string_from_display_prop_p.
13578 (display_line): Extend default face to end of line when wrapping.
13579
135802008-06-24 Kim F. Storm <storm@cua.dk>
13581
13582 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13583 to wrap continued lines at word boundaries.
13584
135852008-06-24 Jason Rumney <jasonr@gnu.org>
13586
13587 * font.c (Ffont_face_attributes): Multiply pixel size before point
13588 conversion to avoid multiplying rounding error.
13589
135902008-06-23 Jason Rumney <jasonr@gnu.org>
13591
13592 * w32term.c (x_draw_glyph_string_background)
13593 (x_draw_glyph_string): Remove old bdf font code.
13594
13595 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13596
135972008-06-22 Kenichi Handa <handa@m17n.org>
13598
13599 * font.c (font_find_for_lface): Try the adstyle specified in
13600 the property of LFACE_FONT of LFACE (if any).
13601
136022008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13603 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13604
13605 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13606
136072008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13608
13609 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13610 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13611 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13612 (witness-emacs): Remove.
13613 (lisp, shortlisp): Move loaddefs.el earlier.
13614 (mostlyclean): Forget about witness-emacs.
13615
136162008-06-22 Glenn Morris <rgm@gnu.org>
13617
13618 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13619 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13620
136212008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13622
13623 * Makefile.in (PRECOMP): Remove.
13624 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13625 (witness-emacs): Run `compile-first'.
13626 (.el.elc): Use the new compile-onefile target.
13627
136282008-06-21 Kenichi Handa <handa@m17n.org>
13629
13630 * xftfont.c (xftfont_open): Handle QCembolden only when
13631 FC_EMBOLDEN is defined.
13632
136332008-06-21 Andreas Schwab <schwab@suse.de>
13634
13635 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13636 (.el.elc): Likewise.
13637
136382008-06-21 Miles Bader <miles@gnu.org>
13639
13640 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13641 build dir, not the lisp source dir.
13642
136432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13644
13645 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13646 (bootstrapclean): Remove.
13647 (.el.elc): New rule.
13648 (PRECOMP): New var.
13649 (../lisp/subdirs.el): Remove.
13650 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13651 (witness-emacs): New target.
13652 (mostlyclean): Remove witness-emacs as well.
13653 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13654 Add witness-emacs dependency.
13655
136562008-06-20 Chong Yidong <cyd@stupidchicken.com>
13657
13658 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13659 defined by the font.
13660
136612008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13662
13663 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13664 (bootstrap-clean): New target that keeps TAGS around.
13665 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13666 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13667
136682008-06-20 Jason Rumney <jasonr@gnu.org>
13669
13670 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13671 Remove obsolete font code.
13672
13673 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13674 to determine language support.
13675
136762008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13677
13678 * sysdep.c (cfsetspeed): New fun extracted from the code.
13679 (cfmakeraw): Move before first use.
13680
136812008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13682
13683 * sysdep.c (cfmakeraw): Provide fallback implementation.
13684 (serial_configure): Provide fallback implementation of cfsetspeed.
13685
136862008-06-20 Kenichi Handa <handa@m17n.org>
13687
13688 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13689 the pattern.
13690
13691 * fontset.c (fontset_from_font): Copy font_spec before changing
13692 the elements.
13693
13694 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13695
136962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13697
13698 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13699 for explicit `font' parameters.
13700
13701 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13702
137032008-06-19 Kenichi Handa <handa@m17n.org>
13704
13705 * frame.c: Include <ctype.h>.
13706 (x_set_font_backend): Allow spacing characters in the X resource
13707 for FontBackend.
13708
137092008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13710
13711 * w32fns.c, xfns.c (Qfont_param): New var.
13712 (syms_of_w32fns): Initialize it.
13713 (x_default_font_parameter): Record explicit `font' into
13714 `font-parameter'.
13715
137162008-06-18 Kenichi Handa <handa@m17n.org>
13717
13718 * font.c (font_parse_xlfd): Fix previous change.
13719 (font_parse_fcname): Don't use :fc-unknown-spec.
13720 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13721 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13722 (font_add_log): Prepend the driver name to the resulting fonts.
13723
13724 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13725 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13726 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13727
13728 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13729 (QCembolden): New variables.
13730 (syms_of_xftfont): DEFSYM them.
13731 (xftfont_open): Call XftFontMatch. Don't trust the result of
13732 XftTextExtents8 if the pixel_size is less than 5.
13733
137342008-06-18 Andreas Schwab <schwab@suse.de>
13735
13736 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13737 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13738
137392008-06-18 Jason Rumney <jasonr@gnu.org>
13740
13741 * w32font.c (w32font_list, w32font_match): Add logging.
13742
13743 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13744
137452008-06-17 Chong Yidong <cyd@stupidchicken.com>
13746
13747 * font.c (font_parse_fcname): Store divider characters for
13748 unknown-spec list. For known key symbols, intern using correct
13749 symbol name.
13750
137512008-06-17 Kenichi Handa <handa@m17n.org>
13752
13753 * xfaces.c (realize_default_face): If the frame is not on window
13754 system, set the fontset of face to nil.
13755
137562008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13757
13758 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13759
137602008-06-16 Juanma Barranquero <lekktu@gmail.com>
13761
13762 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13763 (build_font_name_from_vector): Delete externs.
13764
13765 * xfaces.c (struct font_name): Don't declare.
13766
137672008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13768
13769 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13770
137712008-06-16 Chong Yidong <cyd@stupidchicken.com>
13772
13773 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13774
137752008-06-16 Juanma Barranquero <lekktu@gmail.com>
13776
13777 * font.c (Ffont_spec): Fix usage in docstring.
13778 (Ffont_face_attributes): Doc fix.
13779
137802008-06-16 Andreas Schwab <schwab@suse.de>
13781
13782 * font.c (Ffont_face_attributes): Fix definition.
13783
137842008-06-16 Jason Rumney <jasonr@gnu.org>
13785
13786 * font.h (font_style_symbolic_from_value): Remove.
13787
13788 * font.c (font_style_symbolic_from_value): Remove.
13789 (font_style_symbolic): Revert to pre 2008-06-13 version.
13790
13791 * w32font.c (w32_to_fc_weight): New function.
13792 (w32font_full_name, logfont_to_fcname): Use it.
13793
137942008-06-16 Kenichi Handa <handa@m17n.org>
13795
13796 * font.c (font_check_object): Delete it.
13797 (font_clear_cache): Check if a font-object is alive.
13798 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13799 font-object to nil.
13800 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13801 (font_at): Don't call font_check_object.
13802 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13803
138042008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13805
13806 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13807
138082008-06-16 Chong Yidong <cyd@stupidchicken.com>
13809
13810 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13811
138122008-06-15 Chong Yidong <cyd@stupidchicken.com>
13813
13814 * font.c (font_parse_fcname): Only one decimal point.
13815 (font_unparse_fcname): Handle data in family and foundry indices
13816 as symbols, not strings.
13817 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13818
13819 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13820
13821 * font.h (font_unparse_gtkname): Add prototype.
13822
138232008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13824
13825 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13826
138272008-06-15 Andreas Schwab <schwab@suse.de>
13828
13829 * font.c (font_update_drivers): Fix crash when no drivers match.
13830
138312008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13832
13833 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13834 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13835
138362008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13837
13838 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13839
138402008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13841
13842 * process.c (Fserial_process_configure, Fprocess_send_eof):
13843 Use EQ to compare Lisp_Objects.
13844
138452008-06-13 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32fns.c (Fw32_select_font): Remove old font API function.
13848
13849 * w32font.c (logfont_to_fcname): New function.
13850 (Fx_select_font): New font dialog function compatible with
13851 GTK/fontconfig version.
13852
13853 * font.c (font_style_symbolic_from_value): New function.
13854 (font_style_symbolic): Use it.
13855
13856 * font.h (font_style_symbolic_from_value): Declare new function.
13857
138582008-06-13 Juanma Barranquero <lekktu@gmail.com>
13859
13860 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13861 <font-width-table>: Fix typos in docstrings.
13862
138632008-06-13 Daniel Engeler <engeler@gmail.com>
13864
13865 These changes add serial port access.
13866 * process.c: Add HAVE_SERIAL.
13867 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13868 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13869 (list_processes_1, select_wrapper, Fstop_process)
13870 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13871 (status_notify): Modify to handle serial processes.
13872 [HAVE_SERIAL] (Fserial_process_configure)
13873 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13874 New functions.
13875 * process.h (struct Lisp_Process): Add `type'.
13876 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13877 New functions.
13878 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13879 serial ports.
b71ac3dd 13880 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13881 * w32.h: Add FILE_SERIAL.
13882 (struct _child_process): Add ovl_read, ovl_write.
13883
138842008-06-13 Kenichi Handa <handa@m17n.org>
13885
13886 * dispextern.h (enum lface_attribute_index): New member
13887 LFACE_FOUNDRY_INDEX.
13888
13889 * font.c (font_score): Delete arg alternate_families. Check only
13890 weight, slant, width, and size. Ignore the difference of alias
13891 style symbols.
13892 (font_sort_entites): Adjust for the above change. Reflect the
13893 order of font-driver to scores.
13894 (font_list_entities): Don't check alternate_familes here.
13895 (font_clear_prop): Handle foundry.
13896 (font_update_lface): Don't parse "foundry-family" form here.
13897 Handle FONT_FOUNDRY_INDEX.
13898 (font_find_for_lface): Likewise. Handle alternate families here.
13899 If registry is nil, try iso8859-1 and ascii-0.
13900 (font_open_for_lface): Pay attention to size in ENTITY.
13901 (font_open_by_name): Simplify by calling font_load_for_lface.
13902 (free_font_driver_list): Delete it.
13903 (font_update_drivers): Preserve the order of backends.
13904 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13905 of font_score and font_sort_entites.
13906 (font_update_sort_order): Likewise.
13907
13908 * xfaces.c (LFACE_FOUNDRY): New macro.
13909 (check_lface_attrs): Check foundry.
13910 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13911 (merge_face_vectors): Check foundry.
13912 (merge_face_ref): Likewise.
13913 (Finternal_set_lisp_face_attribute): Likewise.
13914 (x_update_menu_appearance): Likewise.
13915 (Finternal_get_lisp_face_attribute): Likewise.
13916 (lface_hash): Likewise.
13917 (lface_same_font_attributes_p): Likewise.
13918 (x_supports_face_attributes_p): Likewise.
13919 (tty_supports_face_attributes_p): Likewise.
13920 (Finternal_set_alternative_font_family_alist): Intern strings.
13921 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13922 (realize_default_face): Set LFACE_FOUNDRY (lface).
13923
13924 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13925 font-driver at first.
13926
13927 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13928
139292008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13930
13931 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13932
139332008-06-12 Jim Meyering <meyering@redhat.com>
13934
13935 Make unexec_free handle NULL the same way free does.
13936 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13937
139382008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13939
13940 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13941 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13942 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13943 (WEAK_ALIAS): Simplify.
13944 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13945 when searching a unibyte buffer.
13946
139472008-06-12 Chong Yidong <cyd@stupidchicken.com>
13948
13949 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13950
139512008-06-12 Juanma Barranquero <lekktu@gmail.com>
13952
13953 * w32font.c: Include ctype.h.
13954
139552008-06-11 Jason Rumney <jasonr@gnu.org>
13956
13957 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13958 misreported as space.
13959 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13960 as aliases for registry iso10646-1.
13961
139622008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13963
13964 * buffer.c (clone_per_buffer_values): Skip `name'.
13965
139662008-06-11 Chong Yidong <cyd@stupidchicken.com>
13967
13968 * font.c (font_parse_fcname): Fix last change; accept decimal
13969 points in font size.
13970
139712008-06-10 Jason Rumney <jasonr@gnu.org>
13972
13973 * w32uniscribe.c (add_opentype_font_name_to_list):
13974 Skip non unicode fonts.
13975
139762008-06-10 Chong Yidong <cyd@stupidchicken.com>
13977
13978 * xfns.c (Fx_font_dialog): New function.
13979
13980 * gtkutil.c (xg_dialog_response_cb): Rename from
13981 xg_file_response_callback.
13982 (pop_down_dialog): Rename from pop_down_file_dialog.
13983 (xg_get_file_name): Callers changed.
13984 (xg_get_font_name): New function.
13985
13986 * gtkutil.h (xg_get_font_name): Insert prototype.
13987
139882008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13989
13990 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13991 x_underline_minimum_display_offset.
13992 (syms_of_xdisp): Declare it here rather than in xterm.c.
13993 * dispextern.h (underline_minimum_offset): Declare it.
13994 * w32term.c (x_draw_glyph_string): Use it.
13995 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13996 (syms_of_xterm): Don't declare it any more.
13997 (x_draw_glyph_string): Adjust to the new name.
13998
8719abec 139992008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14000
14001 * xterm.c (x_underline_minimum_display_offset): New var.
14002 (x_draw_glyph_string): Use it.
14003 (syms_of_xterm): Declare it.
14004
140052008-06-10 Chong Yidong <cyd@stupidchicken.com>
14006
14007 * font.c (font_parse_fcname): Accept GTK-style font names too.
14008
140092008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14010
14011 * dired.c (file_name_completion): Don't return t if the match is exact
14012 but with different capitalization.
14013 * minibuf.c (Ftry_completion): Simplify.
14014
14015 * window.c (Vwindow_point_insertion_type): New var.
14016 (set_window_buffer): Use it.
14017 (syms_of_window): Init and export it to Lisp.
14018
140192008-06-10 Kenichi Handa <handa@m17n.org>
14020
14021 * font.h (font_intern_prop): Prototype adjusted.
14022
14023 * font.c (font_intern_prop): New arg force_symbol.
14024 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14025 Adjust for the change of font_intern_prop.
14026
14027 * ftfont.c (ftfont_pattern_entity):
14028 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14029 (w32_registry):
14030 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14031 the change of font_intern_prop.
14032
140332008-06-09 Juanma Barranquero <lekktu@gmail.com>
14034
14035 * w32menu.c (digest_single_submenu): Declare extern.
14036
140372008-06-09 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14040
14041 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14042 (parse_single_submenu): Remove.
14043 (digest_single_submenu): Remove.
14044 (syms_of_w32menu): Don't initialise variables that have moved
14045 to menu.c.
14046 (set_frame_menubar): Sync with version in xmenu.c.
14047 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14048
14049 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14050 Make static again.
14051
140522008-06-09 Jason Rumney <jasonr@gnu.org>
14053
14054 Changes to w32 files related to the move of common menu code
14055 to menu.c on 2008-06-08 by Chong Yidong.
14056
14057 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14058 defs to w32gui.h.
14059 (single_keymap_panes, push_menu_item, push_menu_pane):
14060 Make globally visible.
14061
14062 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14063 (local_free, malloc_widget_value, free_widget_value)
14064 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14065 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14066 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14067 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14068 (menu_items, menu_items_allocated, menu_items_used)
14069 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14070 (init_menu_items, finish_menu_items, discard_menu_items)
14071 (grow_menu_items, push_submenu_start, push_submenu_end)
14072 (push_left_right_boundary, push_menu_pane, push_menu_item)
14073 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14074 (free_menubar_widget_tree_value, parse_single_submenu)
14075 (update_submenu_strings): Remove functions.
14076 (xmalloc_widget_value): Remove and declare extern.
14077
14078 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14079 (OBJ1): Build it.
14080
14081 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14082 (local_heap, local_alloc, local_free, malloc_widget_value)
14083 (free_widget_value): Define here.
14084
140852008-06-09 Kenichi Handa <handa@m17n.org>
14086
14087 * font.h (Qascii_0): Extern it.
14088
14089 * font.c (Qascii_0): New variable.
14090 (syms_of_font): DEFSYM it.
14091 (font_open_by_name): If the registry "iso8859-1" fails, try also
14092 "ascii-0".
14093
14094 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14095
140962008-06-08 Kenichi Handa <handa@m17n.org>
14097
14098 * .gdbinit (xfont): New command.
14099
141002008-06-08 Andreas Schwab <schwab@suse.de>
14101
14102 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14103 * Makefile.in (menu.o): Update dependencies.
14104
14105 * Makefile.in (obj): Always add menu.o.
14106 * emacs.c (main): Always call syms_of_menu.
14107 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14108
141092008-06-08 Chong Yidong <cyd@stupidchicken.com>
14110
14111 * Makefile.in: Compile menu.c.
14112
14113 * lisp.h: Declare syms_of_menu.
14114
14115 * emacs.c (main): Call syms_of_menu.
14116
14117 * keyboard.h: Relocate platform-independent menu definitions from
14118 xmenu.c.
14119
14120 * menu.c: New file. Relocate platform-independent menu
14121 definitions from xmenu.c. Suggested by Adrian Robert.
14122
14123 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14124 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14125 (menu_items_used, menu_items_n_panes)
14126 (menu_items_submenu_depth): Move to keyboard.h.
14127 (init_menu_items, finish_menu_items, unuse_menu_items)
14128 (discard_menu_items, restore_menu_items, save_menu_items)
14129 (grow_menu_items, push_submenu_start, push_submenu_end)
14130 (push_left_right_boundary, push_menu_pane, push_menu_item)
14131 (keymap_panes, single_keymap_panes, single_menu_item)
14132 (list_of_panes, list_of_items, find_and_call_menu_selection)
14133 (xmalloc_widget_value, free_menubar_widget_value_tree)
14134 (parse_single_submenu, digest_single_submenu)
14135 (update_submenu_strings): Move to menu.c.
14136
141372008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14138
14139 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14140
141412008-06-06 Miles Bader <miles@gnu.org>
14142
14143 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14144 face, not frame default.
14145
141462008-06-05 Martin Rudalics <rudalics@gmx.at>
14147
14148 * window.c (pop_up_windows, pop_up_frames)
14149 (display_buffer_reuse_frames, Vpop_up_frame_function)
14150 (Vdisplay_buffer_function, Veven_window_heights)
14151 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14152 (Vspecial_display_function, Vsame_window_buffer_names)
14153 (Vsame_window_regexps, split_height_threshold)
14154 (Vsplit_window_preferred_function): Move those vars to window.el.
14155 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14156 (Fdisplay_buffer): Move those functions to window.el.
14157 (syms_of_window): Remove corresponding declarations.
14158 (display_buffer): New function.
14159 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14160 * dispnew.c (Flast_nonminibuf_frame): New function.
14161 * buffer.c (Fpop_to_buffer): Move to window.el.
14162
141632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14164
14165 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14166
141672008-06-05 Kenichi Handa <handa@m17n.org>
14168
14169 * coding.c (detect_coding): Fix previous change.
14170 (detect_coding_system): Likewise.
14171
141722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14173
14174 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14175
14176 * keymap.c (Vminibuffer_local_filename_must_match_map):
14177 Rename from Vminibuffer_local_must_match_filename_map.
14178 (syms_of_keymap):
14179 * minibuf.c (Fcompleting_read): Adjust accordingly.
14180 * commands.h: Rename declaration as well.
14181
141822008-06-05 Kenichi Handa <handa@m17n.org>
14183
14184 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14185 family name.
14186 (Ffont_put): Likewise.
14187
14188 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14189 current font-spec.
14190
14191 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14192 is unspecified.
14193
14194 * xfaces.c (realize_x_face): If the font-related face attributes
14195 are the same as those of default face, realize a new fontset from
14196 default->fontset.
14197 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14198
141992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14200
14201 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14202 (move_it_in_display_line): New wrapper.
14203
14204 * window.c (window_scroll_pixel_based_preserve_x)
14205 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14206 (window_scroll_pixel_based, window_scroll_line_based):
14207 Use them to preserve column positions.
14208 (syms_of_window): Initialize them.
14209
14210 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14211 (HPOS . VPOS) pair.
14212
14213 * dispextern.h (move_it_in_display_line): Declare.
14214
142152008-06-05 Juanma Barranquero <lekktu@gmail.com>
14216
14217 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14218 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14219 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14220
142212008-06-04 Juanma Barranquero <lekktu@gmail.com>
14222
14223 * window.c (Fset_window_parameter): Doc fix.
14224 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14225
142262008-06-04 Joakim Verona <joakim@verona.se>
14227
14228 * window.h (struct window): Add new member window_parameters.
14229
14230 * window.c (Fwindow_parameters, Fwindow_parameter)
14231 (Fset_window_parameter): New defuns.
14232 (syms_of_window): Defsubr the new defuns.
14233 (make_window): Initialize window_parameters to nil.
14234
142352008-06-04 John Paul Wallington <jpw@pobox.com>
14236
14237 * eval.c (Fdefmacro): Doc fix.
14238
142392008-06-04 Kenichi Handa <handa@m17n.org>
14240
14241 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14242 Be sure to call setup_coding_system when we find a proper coding system.
14243 (detect_coding_system): Fix handling of coding->head_ascii.
14244
142452008-06-03 Andreas Schwab <schwab@suse.de>
14246
14247 * font.c (font_prop_validate_spacing): Fix last change.
14248
142492008-06-03 Kenichi Handa <handa@m17n.org>
14250
14251 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14252 (font_parse_fcname): Fix handling of unknown key.
14253
14254 * xfont.c (xfont_list): Try an alias.
14255
14256 * charset.c (char_charset): Return NULL if the arg charset_list is
14257 specified and C doesn't belong to any of them.
14258
142592008-06-02 Chip Coldwell <coldwell@redhat.com>
14260
14261 * font.c (font_pixel_size): Don't take cdr of an integer.
14262
142632008-06-02 Jim Meyering <meyering@redhat.com>
14264
14265 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14266 * alloc.c (xfree): Return right away for a NULL arg.
14267 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14268 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14269 * mac.c (create_apple_event_from_event_ref): Likewise.
14270 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14271 Likewise.
14272 * doprnt.c (doprnt1): Likewise.
14273 * frame.c (frame): Likewise.
14274 * keyboard.c (wipe_kboard): Likewise.
14275 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14276 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14277 * term.c (tty_default_color_capabilities, maybe_fatal)
14278 (delete_tty): Likewise.
14279 * w16select.c (string): Likewise.
14280 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14281 * w32bdf.c (w32_free_bdf_font): Likewise.
14282 * w32fns.c (w32_unload_font): Likewise.
14283 * w32font.c (w32font_close): Likewise.
14284 * window.c (size_window): Likewise.
14285 * xselect.c (receive_incremental_selection): Likewise.
14286 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14287 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14288 * w32.c (stat): Likewise.
14289
14290 Remove useless if-before-free tests.
14291 * editfns.c (Fset_time_zone_rule): Likewise.
14292 * lread.c (nosuffix): Likewise.
14293 * ralloc.c (get_bloc): Likewise.
14294 * regex.c (reg_free): Likewise.
14295 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14296 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14297 * xsmfns.c (smc_save_yourself_CB): Likewise.
14298
142992008-06-02 Kenichi Handa <handa@m17n.org>
14300
14301 * font.c (font_find_for_lface): Handle float font size.
14302 (font_open_for_lface): Likewise.
14303
14304 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14305 comparing the properties.
14306
143072008-06-01 Jason Rumney <jasonr@gnu.org>
14308
14309 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14310 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14311 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14312 Don't add empty script list.
14313 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14314
143152008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14316
14317 * Makefile.in (dot, dotdot): Remove, update users.
14318 ".." has been used elsewhere in the file for a long time.
14319 (LIBXT_STATIC): Remove conditional based on unused variable.
14320
143212008-06-01 Miles Bader <miles@gnu.org>
14322
14323 * xfaces.c (Vface_remapping_alist): New variable.
14324 (syms_of_xfaces): Initialize it.
14325 (enum named_merge_point_kind): New type.
14326 (struct named_merge_point): Add `named_merge_point_kind' field.
14327 (push_named_merge_point): Make cycle detection respect different
14328 named-merge-point kinds.
14329 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14330 Remove face-name alias resolution.
14331 (lface_from_face_name): New definition using
14332 `lface_from_face_name_no_resolve'.
14333 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14334 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14335 (get_lface_attributes): New definition that layers face-remapping on
14336 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14337 (lookup_basic_face): New function.
14338 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14339 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14340 `get_lface_attributes'.
14341 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14342 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14343 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14344
14345 * xdisp.c (init_iterator): Pass base_face_id through
14346 `lookup_basic_face' when we actually use it as a face-id.
14347 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14348 DEFAULT_FACE_ID.
14349
14350 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14351 lookup the initial face-id.
14352
14353 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14354
143552008-06-01 Juanma Barranquero <lekktu@gmail.com>
14356
14357 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14358 (Fremove_text_properties): Fix typos in docstrings.
14359
143602008-05-31 Kenichi Handa <handa@m17n.org>
14361
14362 * font.c (font_list_entities): Fix the car part of data to be
14363 stored in the cache.
14364
14365 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14366
143672008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14368
14369 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14370 Add a `test' argument so another predicate than `equal' can be used.
14371 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14372 (map_char_table): Remove unused vars `c' and `i'.
14373 * lisp.h (Foptimize_char_table): Adjust declaration.
14374 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14375
143762008-05-30 Kenichi Handa <handa@m17n.org>
14377
14378 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14379 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14380 defined.
14381
143822008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14383
14384 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14385 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14386 frame-local settings for the same variable.
14387
143882008-05-30 Kenichi Handa <handa@m17n.org>
14389
14390 * fontset.c (Ffont_info): Move to font.c.
14391 (syms_of_fontset): Delete defsubr of Sfont_info.
14392
14393 * font.c (font_style_to_value, font_score): Delete casting of the
14394 args to xstcasecmp.
14395 (register_font_driver): Increment num_font_drivers only when
14396 registering the driver globally.
14397 (Ffont_info): Move from fontset.c. Handle a font object too.
14398 (syms_of_font): Defsubr Sfont_info.
14399
144002008-05-29 Kenichi Handa <handa@m17n.org>
14401
14402 * coding.h (enum define_coding_utf8_arg_index): New enum.
14403 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14404 coding_attr_utf_bom.
14405 (enum utf_bom_type): Rename from utf_16_bom_type.
14406 (struct utf_16_spec): Adjust for the above change.
14407 (struct coding_system): Add utf_8_bom in `spec' union.
14408
14409 * coding.c (CODING_UTF_8_BOM): New macro.
14410 (enum coding_category): Delete coding_category_utf_8, add
14411 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14412 coding_category_utf_8_sig.
14413 (CATEGORY_MASK_UTF_8): Delete it.
14414 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14415 (CATEGORY_MASK_UTF_8_SIG): New macros.
14416 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14417 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14418 CATEGORY_MASK_UTF_8_SIG.
14419 (CATEGORY_MASK_UTF_8): New macro.
14420 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14421 (detect_coding_utf_8): Check BOM.
14422 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14423 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14424 (encode_coding_utf_16): Likewise.
14425 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14426 (detect_coding, detect_coding_system): Handle utf-8-auto.
14427 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14428 (syms_of_coding): Fix setting up of Vcoding_category_table.
14429
144302008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14431
14432 * process.c (Faccept_process_output): If `millisec' is non-nil,
14433 `seconds' default to 0.
14434 (wait_reading_process_output): Also return non-nil if we read output
14435 from a non-running process.
14436
144372008-05-29 Jason Rumney <jasonr@gnu.org>
14438
14439 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14440 `raster' specified.
14441 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14442 in the uniscribe backend, but disallow any font that has no
14443 unicode subrange support.
14444
144452008-05-29 Juanma Barranquero <lekktu@gmail.com>
14446
14447 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14448 Fix typos in docstrings.
14449
144502008-05-29 Kenichi Handa <handa@m17n.org>
14451
14452 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14453 (Fx_family_fonts): Set frame correctly.
14454
144552008-05-28 Jason Rumney <jasonr@gnu.org>
14456
14457 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14458
144592008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14460
14461 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14462 calling build_annotations.
14463
144642008-05-28 Juanma Barranquero <lekktu@gmail.com>
14465
14466 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14467 (Fencode_coding_string):
14468 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14469 <latin-extra-code-table>: Fix typos in docstrings.
14470 (syms_of_coding) <coding-system-alist>: Doc fix.
14471 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14472
144732008-05-28 Kenichi Handa <handa@m17n.org>
14474
14475 * fontset.c (Ffont_info): Don't call font_close_object.
14476
14477 * font.c (font_parse_family_registry): Use Ffont_put to validate
14478 foundry and family.
14479 (font_delete_unmatched): Don't check spacing.
14480 (font_list_entities): Add spacing to the spec to list fonts.
14481
14482 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14483 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14484
14485 * coding.c (encode_coding_raw_text): Fix previous change.
14486 (encode_coding_object): When the dst_object is a buffer and is
14487 different from src_object, move gap to PT.
14488
144892008-05-27 Chong Yidong <cyd@stupidchicken.com>
14490
14491 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14492
144932008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14494
14495 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14496 all branches. Compute it differently.
14497
14498 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14499
145002008-05-27 Juanma Barranquero <lekktu@gmail.com>
14501
14502 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14503 into "else if () ... else ...".
14504
145052008-05-27 Jason Rumney <jasonr@gnu.org>
14506
14507 * w32font.c (w32font_open_internal): Determine if glyph indices
14508 are likely to work here.
14509
145102008-05-27 Chong Yidong <cyd@stupidchicken.com>
14511
14512 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14513 draw overlap glyphs with appropriate highlighting.
14514
145152008-05-27 Kenichi Handa <handa@m17n.org>
14516
14517 * xfont.c (xfont_open): Fix calculation of font->average_width.
14518
145192008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14520
14521 * casefiddle.c (casify_object): Try to guess better whether the
14522 argument is a byte or a char.
14523
145242008-05-26 Andreas Schwab <schwab@suse.de>
14525
14526 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14527 Always send multiples of format size.
14528
14529 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14530
145312008-05-26 Jason Rumney <jasonr@gnu.org>
14532
14533 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14534 (compute_metrics): Don't set failure if we just cleared the cache.
14535 (w32_weight_table): Remove unused variable.
14536 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14537 backwards compatibility.
14538
145392008-05-25 Kenichi Handa <handa@m17n.org>
14540
14541 * w32term.c (x_draw_glyph_string):
14542 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14543
14544 * xfaces.c: Delete unused function prototypes.
14545 (xstrlwr, font_frame): Delete them.
14546 (clear_face_cache): Delete unused variable.
14547
14548 * xftfont.c (xftfont_open): Delete unused variable.
14549 If underline_thickness is not 1, adjust underline_position.
14550
14551 * ftxfont.c (ftxfont_open): Delete unused variable.
14552
14553 * fontset.c (face_for_char): Optimize for the case of no charset
14554 property.
14555
14556 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14557 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14558 (otf_open, font_otf_capability, generate_otf_features)
14559 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14560 Comment out by surrounding "#if 0" and "#endif" for the moment.
14561 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14562 (syms_of_font): Codes for accessing above commented out.
14563
145642008-05-24 Eli Zaretskii <eliz@gnu.org>
14565
14566 * w32proc.c: Include dispextern.h.
14567
14568 * w32.c: Include dispextern.h.
14569
145702008-05-23 Juanma Barranquero <lekktu@gmail.com>
14571
14572 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14573 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14574 Fix typos in docstrings.
14575
145762008-05-23 Jason Rumney <jasonr@gnu.org>
14577
14578 * xsmfns.c: Remove includes that are already included by config.h.
14579
145802008-05-23 Kenichi Handa <handa@m17n.org>
14581
14582 * charset.c (Qemacs, charset_emacs): New variables.
14583 (char_charset): Fix for non-Unicode characters.
14584 (syms_of_charset): Define charset_emacs.
14585
14586 * w32term.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 * xterm.c (x_draw_glyph_string): Be sure to update
14591 s->underline_thickness and s->underline_position. Be sure to draw
14592 underline within the current line area.
14593
14594 * fontset.c: Delete unused variables and add casting for char *
14595 throughout the file.
14596 (fontset_font): Try the fallback fonts of the current fontset
14597 before consulting the default fontset.
14598
14599 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14600
14601 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14602
146032008-05-22 Jason Rumney <jasonr@gnu.org>
14604
14605 * font.c: Don't include strings.h.
14606
14607 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14608
14609 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14610 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14611 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14612 to call xstrcasecmp.
14613
14614 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14615
14616 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14617
14618 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14619
14620 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14621
146222008-05-22 Kenichi Handa <handa@m17n.org>
14623
14624 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14625
14626 * font.c (font_prop_validate_style): Adjust for the format
14627 change of font_style_table.
14628
14629 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14630 two args.
14631
14632 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14633 two args.
14634
146352008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14636
14637 * minibuf.c (keys_of_minibuf): Delete.
14638 * lisp.h (keys_of_minibuf): Delete.
14639 * emacs.c (main): Don't call keys_of_minibuf.
14640
146412008-05-22 Kenichi Handa <handa@m17n.org>
14642
14643 * ftfont.c (ftfont_resolve_generic_family): Rename from
14644 ftfont_list_generic_family. Return a single family for each
14645 generic family.
14646 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14647 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14648 Call font_add_log.
14649 (ftfont_match): Call font_add_log.
14650
14651 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14652 (FONT_DEBUG): Define it.
14653 (font_add_log): Extern it.
14654 (font_assert): Rename from xassert.
14655
14656 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14657 (xfont_list_family): Call font_add_log.
14658 (xfont_match): Likewise.
14659 (memq_no_quit): Delete.
14660
14661 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14662 call of Ffont_xlfd_name.
14663
14664 * xfaces.c (struct table_entry, slant_table, weight_table)
14665 (swidth_table): Move to font.c.
14666
14667 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14668 xassert are changed to font_assert. Delete many unused variables.
14669 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14670 New variables.
14671 (struct table_entry): Move from xfaces.c and modified.
14672 (weight_table, slant_table, width_table): Move from xfaces.c and
14673 contents adjusted for the change of struct table_entry.
14674 (font_style_to_value, font_style_symbolic): Adjust for the
14675 format change of font_style_table.
14676 (font_parse_family_registry): Don't overwrite existing foundry and
14677 family of font_spec.
14678 (font_score): Fix calculation of diff for sizes.
14679 (font_sort_entites): Call font_add_log.
14680 (font_delete_unmatched): Return a newly created list.
14681 (font_list_entities): Fix previous change. Call font_add_log.
14682 (font_matching_entity, font_open_entity, font_close_entity):
14683 Call font_add_log.
14684 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14685 (Finternal_set_font_style_table): Delete.
14686 (BUILD_STYLE_TABLE): New macro.
14687 (build_style_table): New function.
14688 (Vfont_log, font_log_env_checked): New variables.
14689 (font_add_log): New function.
14690 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14691 Declare Lisp variables "font-weight-table", "font-slant-table",
14692 "font-width-table", and "font-log". Initialize font_style_table.
14693
146942008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14695
14696 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14697
146982008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14699 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14700
14701 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14702 (Vframe_alpha_lower_limit): New variable.
14703 (x_set_alpha): New function.
14704
14705 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14706
14707 * xfns.c (x-create-frame, Qalpha):
14708 Initialize the frame parameter `alpha'.
14709 * xterm.c (OPAQUE, OPACITY): New.
14710 (x_set_frame_alpha): New function.
14711 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14712
14713 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14714 * w32fns.c (w32_frame_parm_handlers): Likewise.
14715
147162008-05-20 Jason Rumney <jasonr@gnu.org>
14717
14718 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14719 truetype fonts to opentype list.
14720
147212008-05-20 Juanma Barranquero <lekktu@gmail.com>
14722
14723 * fontset.c (Ffontset_info): Doc fix.
14724 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14725 <ignore-relative-composition>: Fix typos in docstrings.
14726
14727 * font.c (syms-of-font) <font-encoding-alist>:
14728 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14729 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14730 (Ffont_otf_alternates): Doc fixes.
14731
147322008-05-20 Kenichi Handa <handa@m17n.org>
14733
14734 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14735 font.h through out the file.
14736 (FONT_DRIVERS): Rename from FONTOBJ.
14737 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14738 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14739
14740 * emacs.c (main): Call syms_of_font unconditionally.
14741
14742 * font.h (find_font_encoding): Extern it.
14743
14744 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14745 fontset.c.
194d44e7 14746 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14747 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14748 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14749 only when HAVE_WINDOW_SYSTEM is defined.
14750 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14751 when HAVE_WINDOW_SYSTEM is defined.
14752
14753 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14754 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14755
14756 * xfaces.c: Include font.h unconditionally.
14757 (merge_face_ref, merge_face_vectors)
14758 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14759
147602008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14761
14762 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14763 indirect_variable.
14764 * eval.c (lisp_indirect_variable): New fun.
14765 (Fuser_variable_p): Use it.
14766
147672008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14768
14769 * lisp.h (indirect_variable):
14770 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14771 Use Lisp_Symbol pointers rather than Lisp_Object.
14772 Adjust callers.
14773 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14774 To this end, change calling-convention.
14775
14776 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14777 if some non-hidden buffers are selected by string&pred.
14778
147792008-05-19 Chong Yidong <cyd@stupidchicken.com>
14780
14781 * process.c (wait_reading_process_output): Always check status
14782 when in batch mode.
14783
147842008-05-19 Kenichi Handa <handa@m17n.org>
14785
14786 * font.c (font_list_entities): Fix handling of cache.
14787 (font_matching_entity): Likewise.
14788
14789 * ftfont.c (cs_iso8859_1): Delete.
14790 (ft_face_cache): New variable.
14791 (struct ftfont_info): New member fc_charset_idx.
14792 (ftfont_build_basic_charsets): Delete.
14793 (fc_charset_table): New variable.
14794 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14795 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14796 Callers changed.
14797 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14798 (ftfont_spec_pattern): New argument fc_charset_idx.
14799 Check registry more rigidly. Change callers.
14800 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14801 change of :font-entity property of the font.
14802
14803 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14804 property of the font.
14805
148062008-05-18 Juanma Barranquero <lekktu@gmail.com>
14807
14808 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14809 (Funencodable_char_position, Fcheck_coding_systems_region)
14810 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14811 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14812 (Ffind_operation_coding_system, Fset_coding_system_priority)
14813 (Fcoding_system_eol_type): Doc fixes.
14814
148152008-05-17 Glenn Morris <rgm@gnu.org>
14816
14817 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14818
148192008-05-16 Eli Zaretskii <eliz@gnu.org>
14820
14821 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14822 and st_gid.
14823
14824 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14825 HAVE_WINDOW_SYSTEM is not defined.
14826
14827 * xfaces.c (merge_face_ref, merge_face_vectors)
14828 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14829 HAVE_WINDOW_SYSTEM is defined.
14830 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14831
148322008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14833
14834 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14835
148362008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14837
14838 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14839
148402008-05-15 Kenichi Handa <handa@m17n.org>
14841
14842 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14843 preference.
14844
148452008-05-15 Glenn Morris <rgm@gnu.org>
14846
14847 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14848
148492008-05-15 Chong Yidong <cyd@stupidchicken.com>
14850
14851 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14852 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14853
14854 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14855
148562008-05-15 Kenichi Handa <handa@m17n.org>
14857
14858 * ftfont.c (ftfont_list): Downcase family name to check generic
14859 families.
14860
14861 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14862 font-spec for QCfont value.
14863
14864 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14865 buffer. Check the return value of it.
14866
148672008-05-14 Jason Rumney <jasonr@gnu.org>
14868
14869 * w32term.c (w32_get_glyph_overhangs): Remove.
14870 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14871
148722008-05-14 Kenichi Handa <handa@m17n.org>
14873
14874 * font.c (font_prop_validate): Make nil a valid value.
14875 (font_clear_cache): Check if the cached vector of entities is nil
14876 or not.
14877
148782008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14879
14880 * emacs.c (main_thread): Conditionalize on
14881 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14882 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14883
14884 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14885 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14886 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14887
148882008-05-14 Kenichi Handa <handa@m17n.org>
14889
14890 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14891 has no corresponding coding system.
14892
148932008-05-14 Jason Rumney <jasonr@gnu.org>
14894
14895 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14896
14897 * w32font.h (w32font_open_internal): Update declaration.
14898
14899 * w32font.c (w32font_open_internal): Change last argument from
14900 w32font_info struct to font object. Fill in font object from
14901 font_entity. Get Outline metrics if possible. Use them to
14902 calculate underline position and thickness. Use xlfd name as name
14903 property. Don't set codepage.
14904 (w32font_open): Pass font_object to w32font_open_internal. Don't
14905 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14906 (w32font_draw): Use s->font.
14907 (clear_cached_metrics): Don't clear non-existent blocks.
14908
14909 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14910 font was not found.
14911 (x_draw_glyph_string): Use underline position and thickness from font.
14912
14913 * w32uniscribe.c (uniscribe_open): Pass font_object to
14914 w32font_open_internal.
14915
149162008-05-14 Kenichi Handa <handa@m17n.org>
14917
14918 These changes are to delete all legacy font-handling codes, and
14919 make Emacs use only font-backends.
14920
14921 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14922 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14923
14924 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14925
14926 * charset.h (Vcharset_non_preferred_head)
14927 (Vcurrent_iso639_language): Extern them.
14928
14929 * charset.c (Vcharset_non_preferred_head): New variable.
14930 (Vcurrent_iso639_language): New variable.
14931 (syms_of_charset): Declare it as a Lisp variable.
14932 (char_charset): Don't check non preferred charsets. As a last
14933 resort, return charset_unicode.
14934 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14935
14936 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14937 conditionals. Don't check enable_font_backend. Delete all codes
14938 used only when USE_FONT_BACKEND is not defined.
14939
14940 * dispextern.h (struct glyph_string): Change type of `font' to
14941 `struct font *'.
14942 (struct glyph_string): New member underline_position and
14943 underline_thickness.
14944 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14945 (struct face): Change type of `font' to `struct font *'. Remove
14946 members `font_name', `font_info_id'.
14947 (per_char_metric, encode_char): Delete externs.
14948 (calc_pixel_width_or_height): Adjust the prototype.
14949
14950 * emacs.c (enable_font_backend): Delete extern.
14951 (main): Don't set enable_font_backend. Don't check the command
14952 line argument "-disable-font-backend".
14953
14954 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14955 (enum font_property_index): New members FONT_DPI_INDEX,
14956 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14957 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14958 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14959 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14960 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14961 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14962 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14963 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14964 (struct font_spec, struct font_entity): New structs.
14965 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14966 (struct font): Many members from old "struct font_info" moved to
14967 here. Members font and entity deleted.
14968 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14969 the new font-related objects.
14970 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14971 (CHECK_FONT_GET_OBJECT): Likewise.
14972 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14973 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14974 (struct font_driver): New members case_sensitive anc check. Type
14975 of the member list and open changed.
14976 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14977 (font_symbolic_width, font_find_object, font_get_spec)
14978 (font_set_lface_from_name): Delete extern.
14979 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14980
14981 * font.c: Include <strings.h>.
14982 (enable_font_backend): Delete it.
14983 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14984 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14985 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14986 (null_string): Delete it.
14987 (null_vector): Make it static.
14988 (font_family_alist): Delete it.
14989 (Qnormal): Extern it.
14990 (QCextra, QClanguage): Delete it.
14991 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14992 (font_make_spec, font_make_entity, font_make_object)
14993 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14994 the string. Callers changed.
14995 (font_pixel_size): Adjusted for the format change of font-related
14996 objects.
14997 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14998 (font_style_to_value, font_style_symbolic): New function.
14999 (build_font_family_alist): Delete it.
15000 (font_registry_charsets): Use Fassoc_string instead of
15001 assq_no_quit.
15002 (font_prop_validate_symbol): Don't return null_string.
15003 (font_prop_validate_style): Adjusted for the change of
15004 style-related values in a font vector.
15005 (font_property_table): Delete entries for QClanguage and
15006 QCantialias, add entries for QCavgwidth.
15007 (get_font_prop_index): Delete the 2nd argument FROM.
15008 (font_prop_validate): Arguments changed.
15009 (font_put_extra): Adjusted for the change of font-related objects.
15010 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15011 (font_parse_fcname, font_unparse_fcname)
15012 (font_prepare_composition): Likewise.
15013 (font_parse_family_registry): Renamed from font_merge_old_spec.
15014 (otf_open): Delete the 1st arg entity.
15015 (font_otf_capability): Adjusted for the above change.
15016 (font_score): New arg alternate_families. Adjusted for the change
15017 of font-related objects.
15018 (font_sort_entites): New arg best_only.
15019 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15020 Delete them.
15021 (font_match_p): Check alternate families.
15022 (font_find_object): Delete it.
15023 (font_check_object): New function.
15024 (font_clear_cache): Adjusted for the change of font-related objects.
15025 (font_delete_unmatched): New arg.
15026 (font_list_entities): Call font_driver->list with a spec that
15027 doesn't specify style-related properties.
15028 (font_matching_entity): Arguments changed. Caller changed.
15029 (font_open_entity): Adjusted for the change of font-related objects.
15030 (font_close_object, font_has_char, font_encode_char)
15031 (font_get_name, font_get_spec): Likewise.
15032 (font_spec_from_name, font_clear_prop, font_update_lface):
15033 New functions.
15034 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15035 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15036 (font_at): Adjusted for the change of font-related objects.
15037 (font_range): New function.
15038 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15039 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15040 (Fcopy_font_spec, Fmerge_font_spec): New function.
15041 (Ffont_family_list): Renamed from list-families.
15042 (Finternal_set_font_style_table): Arguments changed.
15043 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15044 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15045 change of font-related objects.
15046 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15047
15048 * fontset.h (struct font_info): Delete it. Most members go to
15049 struct font.
15050 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15051 (enum FONT_SPEC_INDEX): Delete it.
15052 (font_info, list_fonts_func, load_font_func, query_font_func)
15053 (set_frame_fontset_func, find_ccl_program_func)
15054 (get_font_repertory_func, new_fontset_from_font_name): Delete
15055 externs.
15056 (fontset_from_font_name): Extern it.
15057 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15058 (FONT_INFO_FROM_FACE): Deleted.
15059 (face_for_font): Adjust prototype.
15060
15061 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15062 conditionals. Don't check enable_font_backend. Delete all codes
15063 used only when USE_FONT_BACKEND is not defined.
15064 (get_font_info_func, list_font_func, load_font_func)
15065 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15066 (get_font_repertory_func): Delete them.
15067 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15068 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15069 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15070 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15071 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15072 (fontset_compare_rfontdef): New function.
15073 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15074 rfont-defs by qsort. Adjusted for the change of font-group vector.
15075 (load_font_get_repertory): Deleted.
15076 (fontset_find_font): Use new macros to ref/set elements of
15077 font-def and rfont-def.
15078 (fontset_font): Fix the timing of remembering that no font for C.
15079 (free_face_fontset): Do nothing if the face has no fontset.
15080 (face_suitable_for_char_p): Use new macros to ref/set elements of
15081 rfont-def.
15082 (face_for_char): Likewise. Call face_for_char with font_object.
15083 (fs_load_font): Delete. Delete #pragma surrounding it.
15084 (fs_query_fontset): Use strcasecmp instead of strcmp.
15085 (generate_ascii_font_name): Adjusted for the format change of
15086 font-spec.
15087 (Fset_fontset_font): Likewise. Use new macros to set elements of
15088 font-def.
15089 (Fnew_fontset): Use font_unparse_xlfd to generate
15090 FONTSET_ASCII (fontset).
15091 (new_fontset_from_font_name): Deleted.
15092 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15093 a fontset is already created for the font. FIx updating of
15094 Vfontset_alias_alist.
15095 (fontset_ascii_font): Deleted.
15096 (Ffont_info): Adjusted for the format change of font-spec.
15097 (Finternal_char_font): Likewise.
15098 (Ffontset_info): Likewise.
15099 (syms_of_fontset): Don't check load_font_func.
15100
15101 * fns.c (internal_equal): Handle PREV_FONT.
15102
15103 * frame.h: Delete USE_FONT_BACKEND conditional.
15104
15105 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15106 conditionals. Don't check enable_font_backend. Delete all codes
15107 used only when USE_FONT_BACKEND is not defined.
15108 (x_set_font): Call x_new_font, not x_new_fontset2.
15109 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15110 already set for the frame.
15111
15112 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15113 a font-entity by font_make_entity. Use font_intern_prop instead
15114 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15115 font property. If a font is scalable, set avgwidth property to 0.
15116 Set font-entity property by font_put_extra.
15117 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15118 (ffont_driver): Adjusted for the change of struct font_driver.
15119 (ftfont_spec_pattern): New function.
15120 (ftfont_list): Return a list, not vector.
15121 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15122 (ftfont_list_family): Don't downcase names.
15123 (ftfont_free_entity): Deleted.
15124 (ftfont_open): Return a font-object. Adjusted for the change of
15125 struct font. Get underline_thickness and underline_position from
15126 font property. Don't update dpyinfo->smallest_font_height and
15127 dpyinfo->smallest_char_width.
15128 (ftfont_close): Don't free `struct font'.
15129 (ftfont_has_char): Adjusted for the format change of font-entity.
15130 (ftfont_encode_char, ftfont_text_extents): Likewise.
15131
15132 * ftxfont.c (ftxfont_list): Return a list, not vector.
15133 (ftxfont_open): Return a font-object. Adjusted for the change of
15134 struct font. Get underline_thickness and underline_position from
15135 font property. Don't update dpyinfo->smallest_font_height and
15136 dpyinfo->smallest_char_width.
15137 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15138 (ftxfont_draw): Adjusted for the change of struct font.
15139
15140 * image.c (image_ascent): Don't include "charset.h". Include
15141 "character.h" and "font.h".
15142
15143 * lisp.h (enum pvec_type): New member PREV_FONT.
15144 (Fassoc_string): EXFUN it.
15145
15146 * print.c: Include font.h.
15147 (print_object): Handle font-related objects.
15148
15149 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15150 conditionals. Don't check enable_font_backend. Delete all codes
15151 used only when USE_FONT_BACKEND is not defined.
15152 (handle_auto_composed_prop): Do nothing if it->f is not on a
15153 window system. Check how many following characters can be
15154 displayed by the same font.
15155 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15156 'struct font *'.
15157 (get_char_face_and_encoding): Assign the whole encoding task to
15158 the `encode-char' method of a font driver.
15159 (fill_composite_glyph_string): Adjusted for the change of `struct
15160 face' and `struct glyph_string'.
15161 (fill_glyph_string): Likewise.
15162 (get_per_char_metric): Arguments changed.
15163 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15164 and `struct glyph_string'.
15165 (produce_stretch_glyph, calc_line_height_property)
15166 (x_produce_glyphs): Likewise.
15167
15168 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15169 conditionals. Don't check enable_font_backend. Delete all codes
15170 used only when USE_FONT_BACKEND is not defined. Use
15171 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15172 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15173 (Qp): Extern them.
15174 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15175 Deleted.
15176 (struct font_name): Deleted.
15177 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15178 (compare_fonts_by_sort_order): New function.
15179 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15180 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15181 Deleted.
15182 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15183 compare_fonts_by_sort_order.
15184 (Fx_font_family_list): Call Ffont_family_list.
15185 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15186 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15187 (face_symbolic_slant, face_symbolic_swidth)
15188 (split_font_name_into_vector, build_font_name_from_vector)
15189 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15190 (font_rescale_ratio, split_font_name, build_font_name)
15191 (free_font_names, sort_fonts, x_face_list_fonts)
15192 (face_font_available_p, sorted_font_list, cmp_font_names)
15193 (font_list_1, concat_font_list, font_list, remove_duplicates):
15194 Deleted.
15195 (Fx_list_fonts): Use Ffont_list.
15196 (LFACE_AVGWIDTH): Deleted.
15197 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15198 by FONTP.
15199 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15200 (set_lface_from_font_name): Delete it.
15201 (set_lface_from_font): Renamed from
15202 set_lface_from_font_and_fontset. Caller changed. Don't set
15203 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15204 for face.
15205 (merge_face_vectors): Copy font-spec if necessary.
15206 Clear properties of the font-spec if necessary.
15207 (merge_face_ref): Clear properties of the font-spec if necessary.
15208 (Finternal_set_lisp_face_attribute): Likewise.
15209 (set_font_frame_param): Use font_load_for_lface to load a
15210 font-object, and call Fmodify_frame_parameters with it.
15211 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15212 font name by Ffont_xlfd_name.
15213 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15214 QCslant, and QCwidth.
15215 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15216 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15217 Compare fonts by EQ.
15218 (lookup_non_ascii_face): Deleted.
15219 (face_for_font): The 2nd argument changed.
15220 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15221 Check atomic font properties by case insensitive.
15222 (realize_non_ascii_face): Set face->overstrike correctly.
15223 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15224 (dump_realized_face): Get font name from
15225 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15226
15227 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15228 conditionals. Don't check enable_font_backend. Delete all codes
15229 used only when USE_FONT_BACKEND is not defined.
15230 (xic_create_xfontset): Original code deleted and renamed from
15231 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15232 (x_make_gc): Don't set GCFont in GCs.
15233 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15234 opened by "fixed".
15235 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15236 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15237 get_font_repertory_func.
15238
15239 * xfont.c: Include <stdlib.h> and "ccl.h".
15240 (struct xfont_info): New structure.
15241 (xfont_query_font): Deleted.
15242 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15243 moved from xterm.c.
15244 (xfont_driver): Adjusted for the change of struct font_driver.
15245 (compare_font_names): New function.
15246 (xfont_list_pattern): Sort font names case insensitively. Make
15247 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15248 (xfont_list): Return a list, not vector.
15249 (xfont_match): If the font doesn't have QCname property, generate
15250 a name from the other font properties.
15251 (xfont_open): Return a font-object. Adjusted for the change of
15252 struct font. Get underline_thickness and underline_position from
15253 font property. Don't update dpyinfo->smallest_font_height and
15254 dpyinfo->smallest_char_width.
15255 (xfont_close): Don't free struct font.
15256 (xfont_prepare_face): Adjusted for the change of struct font.
15257 (xfont_done_face): Deleted.
15258 (xfont_has_char): Adjusted for the change of struct font.
15259 (xfont_encode_char, xfont_draw): Likewise.
15260 (xfont_check): New function.
15261
15262 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15263 callback function.
15264 (xftfont_match): Adjusted for the format change of font-entity.
15265 (xftfont_open): Adjusted for the format change of font-entity and
15266 font-object. Adjusted for the change of struct font. Return a
15267 font-object. Don't update dpyinfo->smallest_font_height and
15268 dpyinfo->smallest_char_width.
15269 (xftfont_close): Block input while calling XftFontClose.
15270 (xftfont_prepare_face): Don't block input while calling
15271 xftfont_get_colors. Adjusted for the change of struct font.
15272 (xftfont_shape): Return value of error case fixed.
15273
15274 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15275
15276 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15277 conditionals.
15278 (FONT_WIDTH): Return (f)->max_width.
15279 (struct x_display_info): Delete member `font'.
15280 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15281 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15282 (struct x_output): Change type of `font' to `struct font *'.
15283
15284 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15285 conditionals. Don't check enable_font_backend. Delete all codes
15286 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15287 (x_per_char_metric, x_encode_char): Deleted.
15288 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15289 (x_compute_glyph_string_overhangs): Adjusted for the change of
15290 `struct face'.
15291 (x_draw_glyph_string_foreground)
15292 (x_draw_composite_glyph_string_foreground): Likewise.
15293 (x_draw_glyph_string): Likewise. Use font->underline_position and
15294 font->underline_thickness.
15295 (x_new_font): Renamed from x_new_fontset2.
15296 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15297 (x_check_font): Call `check' method of a font driver.
15298 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15299 (x_query_font, x_get_font_repertory): Deleted.
15300 (x_find_ccl_program): Renamed and moved to xfont.c.
15301 (x_redisplay_interface): Adjusted for the change of `struct
15302 redisplay_interface'.
15303
15304 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15305 conditionals. Don't check enable_font_backend. Delete all codes
15306 used only when USE_FONT_BACKEND is not defined. Surround non-used
15307 code by "#ifdef OLD_FONT" and "endif".
15308 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15309
15310 * w32font.h (struct w32font_info): New member.
15311 (FONT_COMPAT): New macro.
15312 (w32font_open_internal): Prototype adjusted.
15313
15314 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15315 OLD_FONT" and "endif".
15316
15317 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15318 conditionals. Don't check enable_font_backend. Delete all codes
15319 used only when USE_FONT_BACKEND is not defined.
15320 (w32font_open): Return a font-object. Make a font-object by
15321 font_make_object. Adjusted for the change of struct w32font_info.
15322 (w32font_close): Don't free struct font. Adjusted for the change
15323 of struct w32font_info.
15324 (w32font_encode_char, w32font_text_extents, w32font_draw):
15325 Adjusted for the change of struct w32font_info.
15326 (w32font_draw): Likewise.
15327 (w32font_list_internal): Return a list, not vector.
15328 (w32font_open_internal): Change the 4th arg to font-object.
15329 Adjusted for the change of struct w32font_info and font-object format.
15330 (add_font_name_to_list): Don't downcase names.
15331 (w32_enumfont_pattern_entity): Make a font-entity by
15332 font_make_entity. Adjusted for the format change of font-entity.
15333 Use FONT_SET_STYLE to set a style-related font property. If a
15334 font is scalable, set avgwidth property to 0. Set font-entity
15335 property by font_put_extra.
15336 (font_matches_spec): Adjusted for the format change of font-entity.
15337 (w32_weight_table, w32_decode_weight): New variables.
15338 (w32_encode_weight): New function.
15339 (fill_in_logfont): Adjusted for the format change of font-spec.
15340 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15341 weight value.
15342 (w32font_driver): Adjusted for the change of struct font_driver.
15343
15344 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15345 conditionals. Don't check enable_font_backend. Surround non-used
15346 code by "#ifdef OLD_FONT" and "endif".
15347 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15348 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15349
15350 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15351 conditionals. Don't check enable_font_backend. Delete all codes
15352 used only when USE_FONT_BACKEND is not defined. Surround non-used
15353 code by "#ifdef OLD_FONT" and "endif".
15354
15355 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15356 (uniscribe_open): Return value changed to font-object.
15357 Adjusted for the format change of font-object.
15358 (uniscribe_otf_capability): Adjusted for the change of struct font.
15359 (add_opentype_font_name_to_list): Don't downcase names.
15360 (uniscribe_font_driver): Adjusted for the change of struct
15361 font_driver.
15362
153632008-05-13 Chong Yidong <cyd@stupidchicken.com>
15364
15365 * dispnew.c (update_frame_1): Check if tty output is still valid
15366 before flushing it.
15367
153682008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15369
15370 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15371 to Gtk+ menus.
15372
153732008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15374
15375 * dired.c (file_name_completion): Tweak the code so as to always do it
15376 in a single pass. Tighten the scope of some variables.
15377
15378 * dired.c (Qdefault_directory): New var.
15379 (file_name_completion): Use it instead of Fexpand_file_name.
15380 (syms_of_dired): Initialize it.
15381
153822008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15383
15384 * fileio.c (double_dollars): Remove dead code.
15385
153862008-05-10 Eli Zaretskii <eliz@gnu.org>
15387
15388 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15389 Mention w32-get-true-file-attributes in doc string.
15390
15391 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15392
153932008-05-09 Glenn Morris <rgm@gnu.org>
15394
15395 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15396 2008-04-23.
15397
153982008-05-09 Eli Zaretskii <eliz@gnu.org>
15399
15400 Support for reporting owner and group of each file on MS-Windows:
15401 * dired.c (stat_uname, stat_gname): New functions, with special
15402 implementation for w32.
15403 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15404
15405 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15406 (dflt_group_name): New static variable.
15407 (dflt_group): Rename from the_group.
15408 (init_user_info): Init dflt_group fields. Get user's group name
15409 from LookupAccountSid.
15410 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15411 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15412 New initialization states.
15413 (globals_of_w32): Initialize them to zero. Initialize the default
15414 group name to "None".
15415 (GetFileSecurity_Name): New global var, the name of the function
15416 to call for GetFileSecurity.
15417 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15418 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15419 (get_file_security, get_security_descriptor_owner)
15420 (get_security_descriptor_group, is_valid_sid)
15421 (get_file_security_desc, get_rid, get_name_and_id)
15422 (get_file_owner_and_group): New functions.
15423 (stat): Use get_file_security_desc and get_file_owner_and_group to
15424 report the owner and primary group of each file. Don't ignore the
15425 high 32 bits of file's size, now that st_size is 64-bit wide.
15426 Fix test when to get true file attributes.
15427 (init_user_info): Use get_rid instead of equivalent inline code.
15428 (fstat): Don't ignore the high 32 bits of file's size.
15429
154302008-05-09 Chong Yidong <cyd@stupidchicken.com>
15431
15432 * image.c (png_load): Use correct bit-depth for setting background
15433 color.
15434
154352008-05-08 Eli Zaretskii <eliz@gnu.org>
15436
15437 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15438 epa-hook.elc.
15439
154402008-05-08 Juanma Barranquero <lekktu@gmail.com>
15441
15442 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15443
154442008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15445
15446 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15447 because the original parameters are in pure storage now.
15448 (mac_window): Remove unused params. Update callers.
15449
154502008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15451
15452 * lread.c (substitute_object_recurse): Use lower-level primitives.
15453 Don't signal errors when traversing sub-char-tables.
15454 Don't loop over all the possible characters when traversing char-tables.
15455
15456 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15457 just like we do in print.c.
15458
154592008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15460
15461 * minibuf.c (Ftry_completion): Remove code left over from when we used
15462 scmp instead of Fcompare_strings.
15463
154642008-05-04 Juanma Barranquero <lekktu@gmail.com>
15465
15466 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15467
154682008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15469
15470 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15471 Create bitmap context in native byte order.
15472
15473 * macterm.c (XDrawLine)
15474 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15475 context in native byte order.
15476
154772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15478
15479 * config.in: Regenerate.
15480
15481 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15482 New definitions for Image I/O support.
15483 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15484 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15485 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15486 (mac_data_provider_release_data, image_load_image_io)
15487 [USE_MAC_IMAGE_IO]: New functions.
15488 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15489 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15490 (init_image_func_pointer) [MAC_OSX]: Remove function.
15491 (image_load_quartz2d) [MAC_OSX]: Check availability of
15492 CGImageCreateWithPNGDataProvider at compile time.
15493 Use lowercase `false' for boolean constant.
15494 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15495 Use image_load_image_io.
15496 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15497 Don't check MyCGImageCreateWithPNGDataProvider.
15498 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15499 Don't call init_image_func_pointer.
15500
15501 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15502
15503 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15504 Make variable non-static.
15505 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15506 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15507
15508 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15509 (RED_FROM_ULONG): Mask off higher bits.
15510 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15511
15512 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15513 Include AvailabilityMacros.h.
15514 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15515 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15516
155172008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15518
15519 * chartab.c (Fset_char_table_range): If range is t, really set all
15520 chars to that value.
15521
155222008-05-03 Eli Zaretskii <eliz@gnu.org>
15523
15524 * dired.c (Ffile_attributes): Don't allow the device number become
15525 negative.
15526
155272008-05-02 Daiki Ueno <ueno@unixuser.org>
15528
15529 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15530
155312008-05-02 Juri Linkov <juri@jurta.org>
15532
15533 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15534 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15535 DEFAULT argument as a list of default values in docstrings.
15536
155372008-05-01 Chong Yidong <cyd@stupidchicken.com>
15538
15539 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15540
155412008-05-01 Martin Rudalics <rudalics@gmx.at>
15542
15543 * dispnew.c (change_frame_size_1): Preserve small windows when
15544 shrinking frames by calling set_window_height|width with third
15545 arg 2.
15546
15547 * window.h (struct window): Replace field too_small_ok by field
15548 resize_proportionally.
15549
15550 * window.c (make_window): Initialize resize_proportionally.
15551 (enlarge_window): Temporarily set resize_proportionally to make
15552 sure that shrink_windows does scale the window proportionally.
15553 (shrink_windows): When window has resize_proportionally set try
15554 to shrink it proportionally by stealing from other windows.
15555 (struct saved_window, Fset_window_configuration)
15556 (compare_window_configurations): Handle resize_proportionally.
15557 (WINDOW_TOTAL_SIZE): New macro.
15558 (window_min_size, shrink_windows, size_window): Use it.
15559 (check_min_window_sizes): Remove. Invalid values of
15560 window-min-height|width are handled by window_min_size_2 now.
15561 (size_window, Fsplit_window, enlarge_window)
15562 (adjust_window_trailing_edge, grow_mini_window): Don't call
15563 check_min_window_sizes.
15564 (window_min_size_2, window_min_size_1, window_min_size):
15565 New argument safe_p for retrieving "safe" minimum sizes.
15566 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15567 (adjust_window_trailing_edge, grow_mini_window):
15568 Adjust arguments of window_min_size... functions.
15569 (shrink_windows): Argument min_size removed. New argument
15570 safe_p allows shrinking windows to their safe minimum sizes.
15571 Calculate minimum size and decide whether a window shall be
15572 deleted for each window individually.
15573 (size_window): When nodelete_p equals 2, tell shrink_windows to
15574 delete windows only if their new minimum size is no more safe.
15575 (shrink_window_lowest_first): Call window_min_size_1 to make
15576 sure to preserve modeline of bottom-most window when resizing
15577 the minibuffer.
15578 (Fset_window_configuration, Fcurrent_window_configuration)
15579 (compare_window_configurations): Do not handle
15580 window-min-height|width any more.
15581 (syms_of_window): Clarify window-min-height|width doc-strings.
15582
155832008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15584
15585 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15586 some more. Copy some of the code from Ftry_completions.
15587 Remove special case code that dates back to initial revision when the
15588 slash was only added when necessary and that can't trigger nowadays.
15589
155902008-04-27 Kenichi Handa <handa@m17n.org>
15591
15592 * font.c (font_prop_validate): Signal `error' instead of `font'.
15593
155942008-04-29 Jason Rumney <jasonr@gnu.org>
15595
15596 * w32fns.c (Fw32_battery_status): New defun.
15597 (syms_of_w32fns): Defsubr it.
15598
155992008-04-28 Andreas Schwab <schwab@suse.de>
15600
15601 * dired.c (file_name_completion): Fix another mixing of encoded
15602 and decoded names.
15603
156042008-04-28 Juanma Barranquero <lekktu@gmail.com>
15605
15606 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15607
156082008-04-27 Juanma Barranquero <lekktu@gmail.com>
15609
15610 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15611
156122008-04-27 Andreas Schwab <schwab@suse.de>
15613
15614 * dired.c (file_name_completion): Fix inappropriate mixing of
15615 encoded and decoded names.
15616
15617 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15618
15619 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15620
156212008-04-26 Eli Zaretskii <eliz@gnu.org>
15622
15623 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15624 2008-03-31, it's not needed anymore with `struct stat' definition
15625 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15626 for the same reasons.
15627
156282008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15629
15630 * m/sparc.h: Additional redefinitions for GNU/Linux.
15631
156322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15633
15634 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15635 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15636 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15637 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15638 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15639 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15640 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15641 Likewise.
15642
15643 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15644 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15645 (mac_ax_number_of_characters): Add externs.
15646 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15647 [USE_MAC_TSM]: Likewise.
15648 (mac_handle_text_input_event) [MAC_OSX]:
15649 Handle kEventTextInputOffsetToPos for no active input area case.
15650 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15651 (mac_handle_document_access_event)
15652 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15653 (install_application_handler) [MAC_OSX]: Register handlers for
15654 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15655 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15656 Register mac_handle_document_access_event.
15657
15658 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15659 Make functions non-static.
15660
156612008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15662
15663 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15664 (read_file_name_completion_ignore_case, insert_default_directory)
15665 (Qdefault_directory): Move to minibuffer.el.
15666 (Fread_file_name): Call the new `read-file-name' instead.
15667
156682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15669
15670 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15671 Make function non-static.
15672 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15673 Remove function.
15674 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15675 Move to mactoolbox.c.
15676 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15677
15678 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15679 (mac_rect_make): New macro.
15680
15681 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15682 instead of float.
15683 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15684 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15685 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15686 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15687 CGRectMake.
15688 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15689 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15690 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15691 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15692 instead of WindowRef in argument type.
15693 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15694 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15695 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15696 instead of DISPLAY. All uses changed.
15697 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15698 (x_calc_absolute_position): Simplify so as not to use
15699 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15700
15701 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15702 instead of WindowRef in argument type.
15703 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15704 [TARGET_API_MAC_CARBON]: Remove externs.
15705 (create_apple_event, mac_event_parameters_to_lisp)
15706 [TARGET_API_MAC_CARBON]: Add externs.
15707
15708 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15709 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15710 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15711 is clicked.
15712 (x_activate_menubar): Remove extern for saved_menu_event_location.
15713 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15714 Move from mac.c.
15715
157162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15717
15718 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15719 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15720
157212008-04-23 Jason Rumney <jasonr@gnu.org>
15722
15723 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15724 attributes only for local files.
15725
15726 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15727 default to Qlocal.
15728
157292008-04-22 Juri Linkov <juri@jurta.org>
15730
15731 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15732 read-buffer-to-switch instead of using the letter "B".
15733
157342008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15735
15736 * fileio.c (Qdefault_directory): New variable.
15737 (Fread_file_name): Use it to pass `dir' to the completion functions.
15738
157392008-04-20 Chong Yidong <cyd@stupidchicken.com>
15740
15741 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15742
157432008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15744
15745 * keyboard.c (Vpre_help_message): Remove.
15746 (show_help_echo): Remove default C code.
15747
15748 * dired.c (directory_files_internal, file_name_completion):
15749 Only call ENCODE_FILE if the string is indeed decoded.
15750
157512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15752
15753 * Makefile.in (TOOLKIT_DEFINES): Remove.
15754 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15755
157562008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15757
15758 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15759 (mactoolbox.o): New target.
15760
15761 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15762 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15763
15764 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15765 Use mac_set_frame_window_background instead of XSetWindowBackground.
15766 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15767 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15768 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15769 instead of SetWindowTitleWithCFString.
15770 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15771 Move function to mactoolbox.c.
15772 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15773 Use mac_set_window_modified instead of SetWindowModified.
15774 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15775 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15776 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15777 FrontNonFloatingWindow. Use mac_activate_window instead of
15778 ActivateWindow. Use mac_active_non_floating_window instead of
15779 ActiveNonFloatingWindow.
15780 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15781 Use mac_show_hourglass and mac_hide_hourglass.
15782 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15783 instead of GetGlobalMouse.
15784 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15785 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15786 Use mac_bring_window_to_front instead of BringToFront.
15787 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15788 mactoolbox.c.
15789 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15790 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15791 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15792 mactoolbox.c.
15793
15794 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15795 (XtPointer): Move typedef from macmenu.c.
15796 (enum button_type): Move enum from macmenu.c.
15797 (widget_value): Move typedef from macmenu.c.
15798 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15799 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15800 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15801 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15802 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15803 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15804 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15805 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15806 (Selection): Move typedef from macselect.c.
15807 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15808 macterm.c.
15809 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15810 (mac_is_window_collapsed, mac_bring_window_to_front)
15811 (mac_send_window_behind, mac_hide_window, mac_show_window)
15812 (mac_collapse_window, mac_front_non_floating_window)
15813 (mac_active_non_floating_window, mac_activate_window)
15814 (mac_move_window_structure, mac_move_window, mac_size_window)
15815 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15816
15817 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15818 (enum mac_menu_kind): Move enum to mactoolbox.c.
15819 (min_menu_id): Move variable to mactoolbox.c.
15820 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15821 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15822 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15823 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15824 [TARGET_API_MAC_CARBON]: Likewise.
15825 (XtPointer): Move typedef to macgui.h.
15826 (enum button_type): Move enum to macgui.h.
15827 (widget_value): Move typedef to macgui.h.
15828 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15829 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15830 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15831 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15832 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15833 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15834 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15835 (popup_activated_flag): Make variable non-static.
15836 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15837 (add_menu_item, fill_menu, dispose_menus):
15838 Move functions to mactoolbox.c.
15839 (restore_show_help_function, menu_target_item_handler)
15840 (install_menu_target_item_handler, mac_handle_dialog_event)
15841 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15842 [TARGET_API_MAC_CARBON]: Likewise.
15843 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15844 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15845 (find_and_call_menu_selection, name_is_separator): Make function
15846 non-static.
15847 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15848 to mactoolbox.c.
15849 (set_frame_menubar): Don't call install_menu_quit_handler.
15850 (menu_item_selection): New variable.
15851 (mac_menu_show): Use create_and_show_popup_menu.
15852 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15853 selection but set variable menu_item_selection. All uses changed.
15854 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15855 Call install_menu_quit_handler. Move to mactoolbox.c.
15856
15857 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15858 (Selection): Move typedef to macgui.h.
15859 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15860 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15861 Make variables non-static.
15862 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15863 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15864 Make functions non-static.
15865 (Vmac_service_selection) [MAC_OSX]: Likewise.
15866 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15867 (mac_valid_selection_target_p, mac_clear_selection)
15868 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15869 (mac_put_selection_value, mac_selection_has_target_p)
15870 (mac_get_selection_value, mac_get_selection_target_list)
15871 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15872 Move functions to mactoolbox.c.
15873 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15874 Likewise.
15875 (copy_scrap_flavor_data, mac_handle_service_event)
15876 (install_service_handler) [MAC_OSX]: Likewise.
15877 (syms_of_macselect) <Vmac_dnd_known_types>:
15878 Use mac_dnd_default_known_types.
15879
15880 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15881 Move to mactoolbox.c.
15882 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15883 (Fx_selection_owner_p): Add EXFUN.
15884 (install_window_handler, remove_window_handler, XSetWindowBackground):
15885 Remove externs.
15886 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15887 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15888 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15889 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15890 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15891 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15892 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15893 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15894 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15895 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15896 (mac_valid_selection_target_p, mac_clear_selection)
15897 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15898 (mac_put_selection_value, mac_selection_has_target_p)
15899 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15900 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15901 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15902 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15903 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15904 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15905 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15906 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15907 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15908
15909 * mactoolbox.c: New file.
15910
159112008-04-18 Jason Rumney <jasonr@gnu.org>
15912
15913 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15914
159152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15916
15917 * character.c (Fmultibyte_char_to_unibyte):
15918 Return latin1 chars unchanged.
15919
15920 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15921 relocated if it points to `name'.
15922
159232008-04-17 Kenichi Handa <handa@m17n.org>
15924
15925 * data.c (Faset): Allow setting a multibyte character in an
15926 ASCII-only unibyte string.
15927
15928 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15929
159302008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15931
15932 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15933 done in config.h.
15934
159352008-04-16 Juanma Barranquero <lekktu@gmail.com>
15936
15937 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15938 (Fchar_direction): Add usage in the docstring.
15939
159402008-04-15 Chong Yidong <cyd@stupidchicken.com>
15941
15942 * keyboard.c (read_key_sequence): Remove always-true checks.
15943
159442008-04-14 Jason Rumney <jasonr@gnu.org>
15945
15946 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15947 compatibility struct, for better underline positioning.
15948
159492008-04-13 David Hansen <david.hansen@gmx.net>
15950
15951 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15952 string.
15953
159542008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15955
15956 * m/hp800.h (XUINT, XSET): Remove.
15957
159582008-04-12 Juanma Barranquero <lekktu@gmail.com>
15959
15960 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15961 previous change.
15962
159632008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15964
15965 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15966 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15967
159682008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15969
15970 * keymap.h (map_keymap_canonical): Declare.
15971 * xmenu.c (single_keymap_panes): Use it.
15972
159732008-04-11 Glenn Morris <rgm@gnu.org>
15974
15975 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15976 set the target's value to that of the alias.
15977
159782008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15979
15980 * term.c (set_tty_color_mode): Left over typo.
15981
159822008-04-10 Michael Albinus <michael.albinus@gmx.de>
15983
15984 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15985 only after check for file name handler functions. Signal, when
15986 native functionality is not supported.
15987 (syms_of_fileio): Declare it unconditionally.
15988
159892008-04-10 Jason Rumney <jasonr@gnu.org>
15990
15991 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15992 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15993
15994 * w32.c (logon_network_drive): Also logon to remote drives that
15995 are mapped to drive letters.
15996
159972008-04-10 Glenn Morris <rgm@gnu.org>
15998
15999 * xdisp.c (truncate-partial-width-windows): Doc fix.
16000
160012008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16004 Move functions to minibuffer.el.
16005 (syms_of_fileio): Don't declare them.
16006
160072008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16008
16009 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16010 (syms_of_minibuf): Remove its initialization.
16011
16012 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16013
160142008-04-09 Juanma Barranquero <lekktu@gmail.com>
16015
16016 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16017
160182008-04-09 Jason Rumney <jasonr@gnu.org>
16019
16020 * makefile.w32-in (distclean): Delete makefile too.
16021 (maintainer-clean): New target.
16022
16023 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16024
16025 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16026 for new font backend and composite cases.
16027
160282008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16029
16030 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16031 Most of the code moved to run_timers.
16032 (do_pending_atimers): Call run_timers.
16033 (run_timers): New function.
16034
16035 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16036 run atimers.
16037
16038 * process.c (wait_reading_process_output): The same as above.
16039
160402008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16041
16042 * minibuf.c (last_exact_completion): Remove variable.
16043 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16044 (complete_and_exit_1, complete_and_exit_2)
16045 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16046 (Fdisplay_completion_list, display_completion_list_1)
16047 (Fminibuffer_completion_help, Fself_insert_and_exit)
16048 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16049 minibuffer.el.
16050 (syms_of_minibuf): Remove corresponding initializations.
16051
16052 * keyboard.c (Qdeactivate_mark): New var.
16053 (command_loop_1): Use it to call `deactivate-mark'.
16054 (syms_of_keyboard): Initialize it.
16055
16056 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16057 to another frame.
16058 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16059 Don't call set_tty_color_mode.
16060 (store_frame_param): Reset previous_frame rather than call
16061 set_tty_color_mode.
16062 * term.c (set_tty_color_mode): Rewrite.
16063 * dispextern.h (set_tty_color_mode): New type.
16064 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16065
160662008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16067
16068 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16069 for generic chars, which do not exist any more in emacs-unicode.
16070
160712008-04-08 Michael Albinus <michael.albinus@gmx.de>
16072
16073 * coding.c (detect_coding_emacs_mule)
16074 (Ffind_operation_coding_system): Fix typo.
16075
160762008-04-08 Jason Rumney <jasonr@gnu.org>
16077
16078 * w32uniscribe.c (SNAME): Extract only symbol name.
16079
16080 * w32font.h (struct w32_metric_cache): New struct.
16081 (w32font_info): Use it.
16082 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16083 (CACHE_BLOCKSIZE): New constants.
16084
16085 * w32font.c (Qja, Qko, Qzh): New symbols.
16086 (syms_of_w32font): Initialise them.
16087 (font_matches_spec): Use them to filter by language.
16088 (recompute_cached_metrics): Remove function.
16089 (compute_metrics, clear_cached_metrics): New functions.
16090 (w32font_encode_char): Use them to manage metric cache.
16091 (w32font_text_extents): Cache metrics for all glyphs on demand.
16092 Delay converting glyph indices to WORD until needed.
16093 (w32font_open_internal): Initialize metric cache to empty.
16094 (registry_to_w32_charset): Charset should always be a symbol.
16095 (fill_in_logfont, list_all_matching_fonts): Family should
16096 always be a symbol.
16097
160982008-04-06 Jason Rumney <jasonr@gnu.org>
16099
16100 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16101 Give up if glyph indices not supported. Use uniscribe obtained
16102 ABC widths for individual metrics. Map glyph clusters back to
16103 characters using fClusterStart flag. Return number of glyphs
16104 produced, not chars processed.
16105 (uniscribe_shape): Map char at FROM to current glyph.
16106
161072008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16108
16109 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16110 Use SetMenuItemHierarchicalMenu.
16111
161122008-04-05 Jason Rumney <jasonr@gnu.org>
16113
16114 * image.c (pbm_load): Allow color values up to 65535.
16115 Throw an error if max_color_idx is outside the supported range.
16116 Report an error when image size is invalid.
16117 Read two bytes at a time when raw images have max_color_idx above 255.
16118
aac0c6e3
MR
161192008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16120
16121 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16122 append "CCL: Quitted" when the CCL program is quitted.
16123 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16124
16125 * ccl.h (struct ccl_program): New member quit_silently.
16126
161272008-04-05 Chong Yidong <cyd@stupidchicken.com>
16128
16129 * search.c (compile_pattern_1): Treat non-nil and non-string of
16130 search-spaces-regexp as nil.
16131
16132 * minibuf.c (Fassoc_string): Tweak docstring.
16133
161342008-04-05 Eli Zaretskii <eliz@gnu.org>
16135
16136 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16137 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16138 2008-03-14 to force inode be positive.
16139
16140 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16141 _S_* ones, since we now use our own sys/stat.h.
16142 (stat, fstat): Don't mangle the inode number.
16143 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16144
161452008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16146
16147 * frame.h (struct frame): Give one more bit to `visible' since we use
16148 values larger than 1 to indicate obscured frames on ttys.
16149
16150 * keymap.c (Qkeymap_canonicalize): New var.
16151 (Fmap_keymap_internal): New fun.
16152 (describe_map): Use keymap-canonicalize.
16153
16154 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16155 (Fundo_boundary): Set them.
16156 (syms_of_undo): Initialize them.
16157 (record_point): Use them instead of last_point_position*.
16158 (last_undo_buffer): Change type.
16159
161602008-04-04 Jason Rumney <jasonr@gnu.org>
16161
16162 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16163 (recompute_cached_metrics): Don't set ascent and descent per char.
16164
16165 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16166 (uniscribe_check_otf): Add GC protection before consing.
16167 Rearrange loop for counting features.
16168
161692008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16170
16171 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16172 buffer with byte-size of source buffer.
16173
161742008-04-03 Chong Yidong <cyd@stupidchicken.com>
16175
16176 * callint.c (Fcall_interactively): Handle temporary region even
16177 when shift-select-mode is off.
16178
161792008-04-03 Jason Rumney <jasonr@gnu.org>
16180
16181 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16182
161832008-04-03 Kenichi Handa <handa@m17n.org>
16184
16185 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16186 (CATEGORY_MASK_UTF_16): Likewise.
16187 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16188 binary file.
16189 (detect_coding): Add null-byte detection for a binary file.
16190 (detect_coding_system): Likewise.
16191
161922008-04-03 Jason Rumney <jasonr@gnu.org>
16193
16194 * w32uniscribe.c: New file.
16195
16196 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16197
16198 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16199
16200 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16201 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16202 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16203 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16204 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16205 (Qphonetic): New symbols.
16206 (syms_of_w32font): Initialize them.
16207 (font_supported_scripts): Use them.
16208 (w32font_list_family): List all charsets.
16209 (w32font_text_extents, recompute_cached_metrics): Fix metric
16210 calculations.
16211 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16212 Give opentype fonts their own format.
16213 (font_matches_spec): New arguments backend and logfont.
16214 Handle :otf spec for uniscribe backend.
16215 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16216 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16217
16218 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16219 font backend.
16220 (globals_of_w32fns): Initialize uniscribe font backend.
16221
16222 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16223 dependencies.
16224 (w32uniscribe.$(O)): New file to build.
16225 (FONT_OBJ): Include w32uniscribe.$(O).
16226 (LIBS): Add uniscribe libraries.
16227
16228 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16229
162302008-04-02 Chong Yidong <cyd@stupidchicken.com>
16231
16232 * callint.c (Vshift_select_mode): New var.
16233 (Finteractive): Document new ^ spec.
16234 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16235 is present.
16236
16237 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16238 (command_loop_1): Avoid running the direct display versions of
16239 forward-char and backward-char if shift-selection may occur.
16240 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16241 shift-translation takes place.
16242
16243 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16244 avoid clobbering by define-minor-mode.
16245
16246 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16247 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16248
16249 * syntax.c (Fforward_word): Add ^ interactive spec.
16250
16251 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16252 (Fscroll_right): Add ^ interactive spec.
16253
162542008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16257
16258 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16259
16260 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16261
162622008-03-31 Juri Linkov <juri@jurta.org>
16263
16264 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16265
162662008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16267
16268 * gtkutil.c (xg_set_geometry): Fix indentation.
16269 (xg_resize_outer_widget): Remove.
16270 (x_wm_size_hint_off): Fix indentation.
16271 (xg_frame_set_char_size): Call flush_and_sync after
16272 gtk_window_resize.
16273 (x_wm_set_size_hint): Pass NULL as geometry window to
16274 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16275 Add menu bar and tool bar height to base height.
16276 (xg_update_frame_menubar, free_frame_menubar)
16277 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16278 (update_frame_tool_bar, free_frame_tool_bar):
16279 Change xg_resize_outer_widget to xg_frame_set_char_size.
16280
162812008-03-30 Michael Albinus <michael.albinus@gmx.de>
16282
16283 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16284 (Fdbus_call_method): New parameter TIMEOUT.
16285 (dbus-send-signal): Optimize UNGCPRO call.
16286
162872008-03-29 Juri Linkov <juri@jurta.org>
16288
16289 * window.c (Fdisplay_buffer): Move call to
16290 Vsplit_window_preferred_function out of conditions that check
16291 if window is eligible for vertical splitting.
16292 When Vsplit_window_preferred_function is non-nil, call it and use
16293 its non-nil return value as window. Otherwise, continue doing
16294 vertical splitting using Fsplit_window with arg horflag=nil.
16295 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16296 default value from `split-window' to nil.
16297
162982008-03-29 Juri Linkov <juri@jurta.org>
16299
16300 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16301 for interactive code letters 'b' and 'B'.
16302
163032008-03-29 Eli Zaretskii <eliz@gnu.org>
16304
16305 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16306 multibyte string.
16307
163082008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16309
16310 * keyboard.c (pending_funcalls): New var.
16311 (timer_check): Run it.
16312 (syms_of_keyboard): Initialize it.
16313 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16314 (Vdelete_terminal_functions): New vars.
16315 (syms_of_terminal): Initialize them.
16316 (Fdelete_terminal): Run delete-terminal-functions.
16317 * xdisp.c (safe_eval): Rewrite.
16318 (safe_call2): New fun.
16319 * frame.c (Qdelete_frame_functions): New var.
16320 (syms_of_frame): Initialize it.
16321 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16322 * lisp.h (safe_call2, pending_funcalls): Declare.
16323
163242008-03-28 Andreas Schwab <schwab@suse.de>
16325
16326 * indent.c (Fmove_to_column): Move declaration before statements.
16327
163282008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16329
16330 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16331 (struct frame): Use bit fields for boolean vars.
16332
16333 * process.c (server_accept_connection): Simplify naming.
16334 (emacs_get_tty_pgrp): Use SDATA.
16335
16336 * coding.c (decode_coding_object): Fix last change.
16337
163382008-03-27 Jason Rumney <jasonr@gnu.org>
16339
16340 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16341
163422008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16343
16344 * charset.c (Fdefine_charset_internal): Change the way of
16345 registering charsets in Vcharset_order_list.
16346 (syms_of_charset): Make the charset `eight-bit' supplementary.
16347
163482008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16349
16350 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16351 operations, to avoid having the difference between pointers
16352 overflow.
16353
163542008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16355
16356 * indent.c (check_display_width): New fun.
16357 (scan_for_column): Use it.
16358
16359 * data.c (syms_of_data): Mark most-positive-fixnum and
16360 most-negative-fixnum as constants.
16361
16362 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16363
16364 * indent.c (scan_for_column): Extract from current_column_1.
16365 Merge with the same code from Fmove_to_column.
16366 (current_column_1, Fmove_to_column): Use it.
16367
163682008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16369
16370 * keymap.c (map_keymap_internal): New fun.
16371 (map_keymap): Use it.
16372 (Fmap_keymap_internal): New fun.
16373 (Fmap_keymap): Remove left-out test from before make_save_value.
16374
16375 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16376
16377 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16378 Use XCAR/XCDR.
16379
16380 * process.h (struct Lisp_Process): Remove filter_multibyte.
16381 * process.c (QCfilter_multibyte): Remove.
16382 (setup_process_coding_systems): Don't use filter_multibyte.
16383 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16384 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16385 (Fset_process_filter_multibyte): Change the coding-system to
16386 approximate the previous behavior.
16387 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16388 coding-system.
16389
16390 * coding.c (decode_coding_object): When not decoding into a buffer,
16391 obey the coding system's preference of (uni|multi)byte.
16392
163932008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16394
16395 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16396 every char is changed and has a different byte-length.
16397 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16398 Fix int -> EMACS_INT.
16399
164002008-03-23 David Hansen <david.hansen@gmx.net>
16401
16402 * dbusbind.c (xd_read_message): Remove extra copying of message
16403 strings. Check for NULL `interface' or `member'.
16404
164052008-03-22 Eli Zaretskii <eliz@gnu.org>
16406
16407 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16408 cFileName a file name that includes `?' characters, use the 8+3
16409 alias in cAlternateFileName instead.
16410
164112008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16412
16413 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16414
164152008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16416
16417 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16418 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16419 work on current_buffer only instead (that was already the case
16420 for some of the code anyway).
16421 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16422 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16423 (SET_PT, SET_PT_BOTH): Adjust.
16424 * intervals.h (set_point, temp_set_point, set_point_both)
16425 (temp_set_point_both): Remove redundant declarations.
16426
164272008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16428
16429 * fileio.c (Finsert_file_contents):
16430 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16431 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16432 when buffer != current_buffer anyway.
16433
164342008-03-20 Andreas Schwab <schwab@suse.de>
16435
16436 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16437 as default.
16438
164392008-03-19 Jason Rumney <jasonr@gnu.org>
16440
16441 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16442 (syms_of_w32fns): Initialize them.
16443 (HOURGLASS_ID): New constant.
16444 (x_window_to_frame): Don't check hourglass_window.
16445 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16446 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16447 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16448 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16449 Only change the cursor if hourglass is not active.
16450 (Fx_create_frame): Initialize frame's current_cursor.
16451 (hourglass_atimer): Remove.
16452 (hourglass_started): New function.
16453 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16454 (show_hourglass): Adapt to w32, changing argument to frame.
16455
16456 * w32term.h (struct w32_output): Remove hourglass_window.
16457 Add current_cursor.
16458
16459 * eval.c (call_debugger, Fsignal):
16460 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16461 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16462 (Fexecute_extended_command, cancel_hourglass_unwind):
16463 * minibuf.c (read_minibuf):
16464 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16465
164662008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16467
16468 * window.c (run_funs): New fun.
16469 (run_window_configuration_change_hook): Use it to run the buffer-local
16470 and the global part of the hook.
16471
16472 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16473 (unwind_format_mode_line): Restore selected window.
16474 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16475
164762008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16477
16478 * editfns.c (Fchar_equal): Check they are valid characters.
16479
16480 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16481
164822008-03-17 Andreas Schwab <schwab@suse.de>
16483
16484 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16485 against a charset.
16486
16487 * lisp.h (Fbuffer_list): Declare.
16488
164892008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16490
aac0c6e3
MR
16491 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16492 handlebox_widget is != 0.
16493
164942008-03-16 Juri Linkov <juri@jurta.org>
16495
16496 * callint.c (Fcall_interactively): For interactive code letters
16497 'b' and 'B' put the buffer list into the list of default "future"
16498 values of the minibuffer.
16499
165002008-03-16 Andreas Schwab <schwab@suse.de>
16501
16502 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16503 modifiers.
16504
16505 * regex.c (re_match_2_internal): Correct matching of a charset
16506 against latin-1 characters.
16507
165082008-03-16 Kenichi Handa <handa@m17n.org>
16509
16510 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16511 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16512 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16513 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16514 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16515 CHAR_STRING_ADVANCE.
16516 (produce_chars): Fix for the case that the source and the
16517 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16518 instead of CHAR_STRING_ADVANCE.
16519 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16520 STRING_CHAR_ADVANCE.
16521
165222008-03-15 Andreas Schwab <schwab@suse.de>
16523
16524 * regex.c (re_match_2_internal): Correct matching of eight bit
16525 characters in unibyte strings.
16526
165272008-03-15 Martin Rudalics <rudalics@gmx.at>
16528
16529 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16530 at end of range when it coincides with the end of the buffer.
16531
165322008-03-14 Eli Zaretskii <eliz@gnu.org>
16533
16534 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16535
16536 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16537
165382008-03-14 Jason Rumney <jasonr@gnu.org>
16539
16540 * editfns.c (initial_tz): New variable.
16541 (syms_of_editfns): Initialize it.
16542 (Fset_time_zone_rule): Set it when first called.
16543 Use it when TZSTRING is nil.
16544
16545 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16546 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16547 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16548 (globals_of_w32fns): Initialize them.
16549 (compute_tip_xy): Use them to position tooltips.
16550
165512008-03-14 Glenn Morris <rgm@gnu.org>
16552
16553 * emacs.c (main): Revert previous change.
16554 (standard_args): Revert -internal-script back to -scriptload,
16555 and remove the long-option form.
16556
165572008-03-13 Glenn Morris <rgm@gnu.org>
16558
16559 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16560 Remove option -enable-font-backend.
16561
165622008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16563
16564 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16565
165662008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16567
16568 * xterm.c (x_connection_closed): For GTK: If this is the last
16569 terminal just exit without closing the display.
16570
165712008-03-11 Jason Rumney <jasonr@gnu.org>
16572
16573 * w32font.c (w32font_full_name): Use floor to round.
16574
f0131492 165752008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16576
16577 * sound.c (alsa_configure): Declare vol at beginning of block.
16578
16579 * fontset.c (Ffontset_info): Remove extra semicolon.
16580
165812008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16582
16583 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16584 size of resulting string.
16585
165862008-03-10 Jason Rumney <jasonr@gnu.org>
16587
16588 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16589
165902008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16591
16592 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16593 Don't pretend as if characters with display property haven't been
16594 consumed for string-replacing-string case.
16595
165962008-03-08 Kim F. Storm <storm@cua.dk>
16597
16598 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16599 (get_next_display_element, next_element_from_string)
16600 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16601
166022008-03-08 Andreas Schwab <schwab@suse.de>
16603
16604 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16605
166062008-03-06 Jason Rumney <jasonr@gnu.org>
16607
16608 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16609 when charset not specified. Only translate ANSI to unicode when
16610 font_type is truetype.
16611 (w32font_coverage_ok): New function.
16612 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16613
166142008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16615
16616 * lread.c (Fread_char): Resolve modifiers.
16617 (Fread_char_exclusive): Likewise.
16618
16619 * character.c (char_resolve_modifier_mask): New function.
16620 (char_string): Use char_resolve_modifier_mask.
16621 (Fchar_resolve_modifiers): New function.
16622 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16623 function.
16624
166252008-03-04 Jason Rumney <jasonr@gnu.org>
16626
16627 * makefile.w32-in: Always include w32font.c in the build.
16628 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16629
166302008-03-04 Andreas Schwab <schwab@suse.de>
16631
16632 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16633 (versionclean): Likewise.
16634
166352008-03-04 Juanma Barranquero <lekktu@gmail.com>
16636
16637 * .cvsignore: Add oo.
16638
166392008-03-03 Andreas Schwab <schwab@suse.de>
16640
16641 * coding.c (decode_coding_object): Inhibit gap shrinking while
16642 decoding in place.
16643
166442008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16645
16646 * w32term.c: Remove unused include "gnu.h".
16647 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16648
16649 * gnu.h: Rename to ...
16650 * emacs-icon.h: ... this.
16651 * xterm.c: Use emacs-icon.h instead of gnu.h.
16652 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16653
166542008-03-03 Juanma Barranquero <lekktu@gmail.com>
16655
16656 * w32font.c: Include math.h.
16657
166582008-03-03 Jason Rumney <jasonr@gnu.org>
16659
16660 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16661 Compute options separately.
16662 (w32font_open_internal): Set glyph_idx before caching metrics.
16663
16664 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16665 Define if system headers don't.
16666 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16667 (w32font_encode_char): Don't declare here.
16668
16669 * w32font.c (Quniscribe, QCformat): New symbols.
16670 (syms_of_w32font): Define them.
16671 (w32font_has_char): Indicate uncertainty.
16672 (w32font_encode_char): Encode as glyph point. Make static.
16673 (recompute_cached_metrics): New function.
16674 (w32font_open_internal): Use it. Set font to use glyph points
16675 initially. Set format based on type of font.
16676 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16677 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16678 on it. Set format based on information available here.
16679 (add_font_entity_to_list): Identify backend based on opentype_only.
16680
166812008-03-02 Andreas Schwab <schwab@suse.de>
16682
16683 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16684
16685 * coding.c (decode_coding_big5, produce_chars):
16686 Fix typos in last change.
16687
166882008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16689
16690 * gnu.h: New icon.
16691
166922008-03-02 Kenichi Handa <handa@m17n.org>
16693
16694 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16695 `dos', don't decode '\r' if that is the last in the source.
16696 (decode_coding_utf_16, decode_coding_emacs_mule)
16697 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16698 (decode_coding_raw_text, decode_coding_charset): Likewise.
16699 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16700
167012008-03-01 Jason Rumney <jasonr@gnu.org>
16702
16703 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16704
167052008-03-01 Kim F. Storm <storm@cua.dk>
16706
16707 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16708
167092008-03-01 Jason Rumney <jasonr@gnu.org>
16710
16711 * w32font.c (w32font_full_name): New function.
16712 (w32font_open_internal): Use it.
16713
167142008-03-01 Kim F. Storm <storm@cua.dk>
16715
16716 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16717
167182008-03-01 Jason Rumney <jasonr@gnu.org>
16719
16720 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16721
167222008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16723
16724 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16725 xg_frame_resized when the event is for the edit widget.
16726
16727 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16728
16729 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16730 set_char_size.
16731 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16732 operations on widgets here. Just set frame size if needed.
16733 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16734 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16735 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16736 the whole frame.
16737 (xg_create_tool_bar): Move attachment of the tool bar to
16738 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16739 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16740
167412008-03-01 Jason Rumney <jasonr@gnu.org>
16742
16743 * w32fns.c (w32_msg_pump): Disable debug code.
16744
167452008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16746
16747 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16748
167492008-02-29 Chong Yidong <cyd@stupidchicken.com>
16750
16751 * xdisp.c (next_overlay_string): Don't set
16752 overlay_strings_at_end_processed_p if we're currently reading from
16753 a display string.
16754
167552008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16756
16757 * xdisp.c (get_overlay_strings_1): Fix typo.
16758
167592008-02-29 Chong Yidong <cyd@stupidchicken.com>
16760
16761 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16762
167632008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16764
16765 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16766
16767 * xdisp.c (display_mode_element): Cancel the previous change.
16768 (decode_mode_spec): Likewise.
16769 (handle_auto_composed_prop): Don't make composition if it->string
16770 is a string.
16771
167722008-02-27 Kim F. Storm <storm@cua.dk>
16773
16774 * lisp.h (GLYPH): Change type from int to struct with separate char
16775 and face_id members.
16776 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16777 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16778 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16779 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16780 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16781 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16782 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16783 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16784 handle new Lisp glyph code encoding, either an integer or a cons.
16785
16786 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16787 (GLYPH_ALIAS): Delete.
16788 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16789 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16790 (GLYPH_FROM_CHAR): Replace macro by ...
16791 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16792
16793 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16794 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16795 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16796 (GLYPH_INVALID_P): New macro.
16797 (spec_glyph_lookup_face): Update prototype.
16798
16799 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16800 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16801 new glyph code encoding.
16802 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16803 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16804
16805 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16806 Adapt to new glyph type and new glyph code encoding.
16807
16808 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16809
16810 * indent.c (current_column, current_column_1, Fmove_to_column)
16811 (compute_motion): Adapt to new glyph code encoding.
16812
16813 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16814
168152008-02-27 Chong Yidong <cyd@stupidchicken.com>
16816
16817 * process.c (wait_reading_process_output): Check for window
16818 changes caused by timers.
16819 Suggested by Johan Bockgård.
16820
168212008-02-27 Glenn Morris <rgm@gnu.org>
16822
16823 * emacs.c (USAGE1): Add `--disable-font-backend'.
16824
168252008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16826
16827 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16828 is made to the buffer.
16829
168302008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16831
16832 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16833 (face_at_string_position):
16834 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16835 (face_at_string_position):
16836 * xdisp.c (display_string, next_overlay_change):
16837 * buffer.h (overlays_at):
16838 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16839 Update callers.
16840
168412008-02-26 Chong Yidong <cyd@stupidchicken.com>
16842
16843 * editfns.c (Fformat): Doc fix.
16844
168452008-02-26 Juanma Barranquero <lekktu@gmail.com>
16846
16847 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16848 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16849 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16850
168512008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16852
16853 * buffer.c (Fbuffer_swap_text): New function.
16854 (syms_of_buffer): Defsubr it.
16855
168562008-02-25 Chong Yidong <cyd@stupidchicken.com>
16857
16858 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16859
168602008-02-25 Jason Rumney <jasonr@gnu.org>
16861
16862 * w32font.c (w32font_draw): Draw one character at a time when padding.
16863
168642008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16865
16866 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16867 Handle a nil arg. Use run_window_configuration_change_hook.
16868 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16869 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16870 Use run_window_configuration_change_hook.
16871
168722008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16873
16874 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16875 1-pixel width.
16876
168772008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16878
16879 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16880 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16881 if the glyph in the font is zero pixel with.
16882
16883 * dispextern.h (struct glyph_string): New member padding_p.
16884
16885 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16886
16887 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16888
16889 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16890
16891 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16892
16893 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16894
168952008-02-25 Jason Rumney <jasonr@gnu.org>
16896
16897 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16898
168992008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16900
16901 Allow fine-grained image-cache flushing.
16902 * dispextern.h (struct image): Add `dependencies' field.
16903 (clear_image_caches): Change arg to Lisp_Object.
16904 * image.c (make_image): Initialize `dependencies' field.
16905 (clear_image_cache): Change arg to allow fine-grained flushing.
16906 Perform the flush even if image-cache-eviction-delay is nil.
16907 (clear_image_caches): Change arg to Lisp_Object.
16908 (Fclear_image_cache): Expand meaning of the argument.
16909 (mark_image): Mark `dependencies' field.
16910 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16911 (lface_hash): Use XHASH rather than XFASTINT.
16912 (face_at_buffer_position): Fix int -> EMACS_INT position.
16913 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16914 (select_frame_for_redisplay): Remove code duplication.
16915 (redisplay_internal): Adapt arg to call to clear_image_caches.
16916
169172008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16918
16919 * s/vms4-0.h:
16920 * s/vms4-2.h:
16921 * s/vms4-4.h:
16922 * s/vms5-5.h: Remove, unused.
16923
16924 * s/irix5-2.h:
16925 * s/irix6-0.h:
16926 * s/riscos5.h:
16927 * s/mach-bsd4-3.h:
16928 * m/mips4.h: Remove files for obsolete systems.
16929
16930 * Makefile.in:
16931 * filelock.c:
16932 * unexmips.c:
16933 * m/hp9000s300.h:
16934 * m/iris4d.h:
16935 * s/aix3-1.h:
16936 * s/hpux.h:
16937 * s/msdos.h:
16938 * s/usg5-0.h:
16939 * s/usg5-2-2.h:
16940 * s/usg5-2.h:
16941 * s/usg5-3.h: Remove references to obsolete variables.
16942
16943 * s/irix5-0.h: Remove, move all the contents ...
16944 * s/irix6-5.h: ... here. Simplify.
16945 * config.in: Regenerate.
16946
169472008-02-24 Jason Rumney <jasonr@gnu.org>
16948
16949 * w32term.c (x_draw_glyph_string_background): Clear the background
16950 manually when cleartype is in use.
16951 (x_draw_glyph_string_foreground): Draw text transparently when
16952 cleartype is in use.
16953
16954 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16955 a font into it unless we have to.
16956
169572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16958
16959 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16960 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16961
aac0c6e3
MR
169622008-02-18 Jason Rumney <jasonr@gnu.org>
16963
16964 * w32fns.c (Fw32_shell_execute): Encode parameters.
16965
169662008-02-09 Eli Zaretskii <eliz@gnu.org>
16967
16968 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16969
169702008-02-05 Juanma Barranquero <lekktu@gmail.com>
16971
16972 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16973
169742008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16975
16976 * xterm.c (x_set_offset): Don't change the gravity if
16977 CHANGE_GRAVITY is -1.
16978
169792008-02-23 Chong Yidong <cyd@stupidchicken.com>
16980
16981 * fileio.c (auto_save_error_occurred): New var.
16982 (auto_save_error): Set it.
16983 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16984 error occurred.
16985
169862008-02-23 Eli Zaretskii <eliz@gnu.org>
16987
16988 * w32.c (globals_of_w32): Add initializations for
16989 g_b_init_get_sid_sub_authority and
16990 g_b_init_get_sid_sub_authority_count.
16991
169922008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16993
16994 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16995 (font_parse_xlfd): Use them for sanity check.
16996 (Finternal_set_font_style_table): Make sure the table is bijective.
16997
16998 Consolidate the image_cache to the terminal struct.
16999 * termhooks.h (P_): Remove redundant def.
17000 (struct terminal): New field `image_cache'.
17001 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17002 of FRAME_X_IMAGE_CACHE.
17003 * xterm.h (struct x_display_info): Remove image_cache field.
17004 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17005 * w32term.h (struct w32_display_info): Remove image_cache field.
17006 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17007 * macterm.h (struct mac_display_info): Remove image_cache field.
17008 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17009 * xterm.c (x_term_init):
17010 * w32term.c (w32_term_init):
17011 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17012 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17013 Remove declarations.
17014 (clear_image_caches, mark_image_cache): New declarations.
17015 * xfaces.c (clear_face_cache):
17016 * xdisp.c (redisplay_internal): Use clear_image_caches.
17017 * image.c (clear_image_cache): Don't check that a frame is on
17018 a window-system before checking if it shares the same cache.
17019 (clear_image_caches): New function.
17020 (Fclear_image_cache): Use it.
17021 (mark_image): Move from allo.c.
17022 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17023 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17024 (mark_object): Don't call mark_image_cache for frames.
17025 (mark_terminals): Call mark_image_cache.
17026
17027 * lisp.h (Fdelete_terminal): Declare.
17028
17029 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17030 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17031 wrong_type_argument.
17032
170332008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17034
17035 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17036 malayalam.el, and tamil.el. Add sinhala.el.
17037
170382008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17039
17040 * xterm.c (x_connection_closed): Consolidate identical tests.
17041 (x_delete_terminal): Don't crash if called via x_connection_closed.
17042
170432008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17044
17045 * xdisp.c (decode_mode_spec): New arg string.
17046 (display_mode_element): Adjust for the above change.
17047
170482008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17049
17050 * callint.c (Fcall_interactively): Use AREF.
17051
170522008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17053
17054 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17055
170562008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17057
17058 * xfns.c (Fx_show_tip): Set string to " " if empty.
17059
170602008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17061
17062 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17063 with Qt.
17064
170652008-02-17 Kenichi Handa <handa@m17n.org>
17066
17067 * ftfont.c (ftfont_shape): Return Lispy number.
17068
17069 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17070 for GCs.
17071 (Finternal_set_font_selection_order): Call font_update_sort_order
17072 only when enable_font_backend is set.
17073 (realize_x_face): Set face->font_info to that of default face only
17074 when enable_font_backend is set.
17075
17076 * xdisp.c (handle_composition_prop): Set it->c to the fist
17077 character of the composed region.
17078 (fill_composite_glyph_string): Set base_face->font_info to
17079 s->font_info. Get a face for ascii from base_face->ascii_face.
17080 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17081 with a face already decided.
17082 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17083 non-negative.
17084 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17085 call font_prepare_composition unconditionally.
17086
17087 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17088
17089 * xterm.h (struct x_display_info): New member font.
17090
17091 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17092 (x_set_mouse_face_gc, x_new_font): Likewise.
17093 (x_term_init): Setup display_info->font.
17094 (x_delete_terminal): Free display_info->font.
17095
17096 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17097
17098 * ftxfont.c (ftxfont_default_fid): Delete it.
17099 (ftxfont_open): Set xfont->fid to 0.
17100 (ftxfont_end_for_frame): Clear data specific to the frame and the
17101 font-driver.
17102
17103 * xftfont.c (xftfont_default_fid): Delete it.
17104 (xftfont_open): Set xfont->fid to 0.
17105
17106 * fontset.c (FONTSET_OBJLIST): New macro.
17107 (fontset_find_font): Update font-object list of the fontset.
17108 (free_realized_fontset): New function.
17109 (free_face_fontset): Call free_realized_fontset.
17110 (Ffont_info): Call font_close_object only when enable_font_backend
17111 is set.
17112
17113 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17114 [HAVE_NTGUI]: Include w32term.h.
17115 [MAC_OS]: Include macterm.ch.
17116 (font_otf_ValueRecord): Use make_number.
17117 (font_finish_cache): Fix handling of reference count.
17118 (font_clear_cache): Update num_fonts.
17119 (font_open_entity): Update smallest_char_width and
17120 smallest_font_height of the frame.
17121 (font_close_object): Update num_fonts.
17122 (Fclear_font_cache): Fix finding the target cache data.
17123
171242008-02-16 Glenn Morris <rgm@gnu.org>
17125
17126 * fontset.c (Finternal_char_font): Fix compilation warning.
17127
171282008-02-16 Eli Zaretskii <eliz@gnu.org>
17129
17130 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17131 instead of char arrays. Enlarge the size of array passed to
17132 get_token_information.
17133
17134 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17135 warnings.
17136
171372008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17138
17139 * .gdbinit: Don't set `args', it breaks gdb --args.
17140
171412008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17142
17143 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17144 within a narrowed buffer.
17145
171462008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17147
17148 * coding.c (decode_coding_object, encode_coding_object):
17149 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17150
171512008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17152
17153 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17154 hardcoding 1.
17155 (detect_coding_system):
17156 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17157 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17158 * insdel.c (insert_from_gap):
17159 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17160 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17161 (string_to_multibyte):
17162 * character.c (chars_in_text, multibyte_chars_in_text):
17163 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17164
17165 * character.h (FETCH_STRING_CHAR_ADVANCE)
17166 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17167 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17168 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17169
17170 * casefiddle.c (casify_region): Only call after-change and composition
17171 functions on the part of the region that was changed.
17172
17173 * keyboard.c (read_avail_input):
17174 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17175
171762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17177
17178 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17179 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17180
171812008-02-11 Juanma Barranquero <lekktu@gmail.com>
17182
17183 * w32menu.c (push_submenu_start, push_submenu_end)
17184 (push_left_right_boundary, push_menu_pane, push_menu_item):
17185 * keyboard.c (read_key_sequence): Don't pass args with side effects
17186 to AREF, it fails when compiling with -DENABLE_CHECKING.
17187
171882008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17189
17190 * Makefile.in (${lispsource}international/charprop.el):
17191 Delete this target.
17192
17193 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17194 emacs-unicode-2.
17195
171962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17197
17198 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17199
172002008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17201
17202 * frame.c (Qnoelisp): New symbol.
17203 (syms_of_frame): Initialize it.
17204 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17205 harmless Elisp code, from a strong `force' from x_connection_closed.
17206 * frame.h (Qnoelisp): Declare.
17207 * xterm.c (x_connection_closed): Pass `noelisp'.
17208
17209 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17210 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17211 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17212 rather than `int' for the type of `type'.
17213
172142008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17215
17216 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17217
17218 * Makefile.in (GNUC): Remove support for gcc-1.x.
17219
172202008-02-10 Richard Stallman <rms@gnu.org>
17221
17222 * lisp.h (ASET): Use AREF, not ASLOT.
17223
172242008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17225
17226 * lisp.h (ASET): Check bounds.
17227
172282008-02-10 Glenn Morris <rgm@gnu.org>
17229
17230 * buffer.c (mode-name): Doc fix.
17231
172322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17233
17234 * Makefile.in:
17235 * emacs.c:
17236 * gmalloc.c:
17237 * keyboard.c:
17238 * lisp.h:
17239 * m/ibm370aix.h:
17240 * process.c:
17241 * regex.c:
17242 * s/hpux.h:
17243 * sysdep.c:
17244 * sysselect.h:
17245 * systty.h:
17246 * unexec.c:
17247 * w32term.c:
17248 * xsmfns.c:
17249 * xterm.c: Remove code that deals with obsolete variables.
17250
17251 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17252
17253 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17254 nothing else needs it anymore.
17255
172562008-02-09 Eli Zaretskii <eliz@gnu.org>
17257
17258 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17259 instead of unibyte_char_to_multibyte.
17260
172612008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17262
17263 * s/gnu-linux.h: Remove commented out code.
17264
17265 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17266
17267 * Makefile.in: Update what RMS says about using autoconf.
17268 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17269 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17270 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17271 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17272
172732008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17274
17275 * keymap.c (Fkey_description): Move side effect outside of macro call.
17276
17277 * xfaces.c (Finternal_make_lisp_face):
17278 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17279
17280 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17281 (syms_of_fontset): Use ASET.
17282
17283 * fns.c (concat): Move side effect outside of macro call.
17284 (hash_clear): Use ASET.
17285
172862008-02-08 Richard Stallman <rms@gnu.org>
17287
17288 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17289 If FORCE, and frame has a surrogate minibuffer for another frame,
17290 delete the other frame first.
17291
172922008-02-07 Timo Savola <timo.savola@iki.fi>
17293
17294 * xterm.c (x_detect_focus_change): Handle embed client message.
17295 (handle_one_xevent): Ditto.
17296 (handle_one_xevent): If embedded and we get a button press/release,
17297 request focus.
17298 (xembed_set_info, xembed_send_message): New functions.
17299 (x_make_frame_visible): Call xembed_set_info if embedded.
17300 (x_make_frame_invisible): Call xembed_set_info if embedded.
17301 (x_term_init): Initialize Xatom_XEMBED.
17302 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17303 (x_iconify_frame): Ditto.
17304
17305 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17306 (enum xembed_info, enum xembed_message, enum xembed_focus)
17307 (enum xembed_modifier, enum xembed_accelerator): New.
17308 (xembed_set_info, xembed_send_message): Declare.
17309 (FRAME_X_EMBEDDED_P): New.
17310
17311 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17312 gtk_plug_new.
17313
17314 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17315 window ID of a frame.
17316 (x_window): Reparent frame if embedded.
17317 (Fx_create_frame): Don't set border width if embedded.
17318
17319 * emacs.c (USAGE3): Add --parent-id.
17320 (standard_args): Ditto.
17321
173222008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17323
17324 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17325
173262008-02-07 Jim Meyering <meyering@redhat.com>
17327
17328 Use "do...while (0)", not "if (1)...else" in macro definitions.
17329 The latter provokes a warning from gcc about the empty else, when
17330 followed by ";". Also, without that trailing semicolon, it would
17331 silently swallow up any following statement.
17332 * syntax.h (SETUP_SYNTAX_TABLE)
17333 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17334 * buffer.h (DECODE_POSITION): Likewise.
17335 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17336 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17337 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17338 (FETCH_CHAR_ADVANCE): Likewise.
17339 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17340
173412008-02-07 Jim Meyering <meyering@redhat.com>
17342
17343 * lread.c [lint]: Don't include <sys/inode.h>.
17344
173452008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17346
17347 * xselect.c (x_handle_dnd_message):
17348 * xmenu.c (digest_single_submenu, xmenu_show):
17349 * xdisp.c (with_echo_area_buffer_unwind_data)
17350 (format_mode_line_unwind_data, unwind_format_mode_line)
17351 (display_menu_bar):
17352 * eval.c (Ffetch_bytecode):
17353 * doc.c (store_function_docstring):
17354 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17355 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17356 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17357
173582008-02-07 Kenichi Handa <handa@m17n.org>
17359
17360 * ftxfont.c (ftxfont_open): Don't set
17361 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17362
17363 * ftfont.c (ftfont_open): Fix previous change.
17364
173652008-02-06 Jason Rumney <jasonr@gnu.org>
17366
17367 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17368 Use cached metrics for ASCII characters.
17369 (w32font_open_internal): Don't set font's owning_frame.
17370 Cache metrics for ASCII characters.
17371
17372 * w32font.h (struct w32font_info): Add ascii_metrics.
17373 Remove owning_frame.
17374
173752008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17376
17377 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17378 to negative value.
17379
17380 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17381
17382 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17383
17384 * charset.c (syms_of_charset): Set QCtest and Qeq.
17385
173862008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17387
17388 * process.c (Fstart_process):
17389 * callproc.c (Fcall_process): Handle the case where
17390 Funhandled_file_name_directory returns nil.
17391
17392 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17393 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17394 * font.c (check_gstring): Use them and AREF to access the vector before
17395 we know it's really a gstring.
17396 (Ffont_shape_text): Fix typo.
46e722a9 17397 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17398
17399 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17400 Declare.
17401
17402 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17403
174042008-02-05 Jason Rumney <jasonr@gnu.org>
17405
17406 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17407 Set smallest_font_height and smallest_char_width in display info.
17408
174092008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17410
17411 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17412
174132008-02-05 Miles Bader <miles@gnu.org>
17414
17415 * xfaces.c (get_lface_attributes, merge_named_face)
17416 (lookup_named_face, lookup_derived_face, realize_named_face):
17417 Revert 2008-02-01 change by cyd@stupidchicken.com.
17418
174192008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17420
17421 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17422 fallback fonts.
17423 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17424
174252008-02-04 Jason Rumney <jasonr@gnu.org>
17426
17427 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17428 set full_name.
17429 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17430
174312008-02-03 Jason Rumney <jasonr@gnu.org>
17432
17433 * makefile.w32-in (OBJ1): Include font.o here.
17434 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17435
174362008-02-02 Jason Rumney <jasonr@gnu.org>
17437
17438 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17439
174402008-02-01 Jason Rumney <jasonr@gnu.org>
17441
17442 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17443
17444 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17445
174462008-02-01 Andreas Schwab <schwab@suse.de>
17447
17448 * Makefile.in (shortlisp, lisp): Update for rename of
17449 ../lisp/language/myanmar.el.
17450
174512008-02-01 Chong Yidong <cyd@stupidchicken.com>
17452
17453 * xfaces.c (get_lface_attributes): Delete function.
17454 (merge_named_face, lookup_named_face, lookup_derived_face)
17455 (realize_named_face): Call lface_from_face_name directly, and use
17456 the fact that merge_face_vectors does not alter its FROM argument.
17457
174582008-02-01 Jason Rumney <jasonr@gnu.org>
17459
17460 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17461 input in the default locale. Handle non-Unicode multibyte input.
17462
174632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17464
17465 * fontset.c (reorder_font_vector): Exclude nil elements from the
17466 font group. Don't try multiple fonts.
17467 (fontset_font): Adjust for the above change.
17468 (Finternal_char_font): Return nil if the found font doesn't
17469 contain the character ch.
17470
17471 * Makefile.in (lisp, shortlisp): Add cham.el.
17472
174732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17474
17475 * font.h (FONTP): Make it return 1 also for a font-object.
17476
17477 * .gdbinit (xfontset): New function.
17478
17479 * font.c (font_find_for_lface): Check if the character C is
17480 supported or not only for the first font.
17481
17482 * fontset.c (reorder_font_vector): Fix typo.
17483 (fontset_find_font): Don't add a font-spec specifying a script.
17484 Use 0 (not Qt) for the indication of empty font-group. Change the
17485 format of RFONT-DEF. Return Qt if no font in the font-group
17486 support the character.
17487 (fontset_font): Adjust for the above change. If no font was
17488 found the character, remember that.
17489 (face_for_char): Adjust for the change of RFONT-DEF.
17490 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17491 no font for the target.
17492 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17493
174942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17495
17496 * font.c (font_load_for_face): Handle the case that the font in
17497 face->lface is a string.
17498
174992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17500
17501 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17502
175032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17504
17505 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17506 Fix previous change. If the frame is not on a window system,
17507 signal an error.
17508
175092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17510
17511 * coding.c (decode_coding_object, encode_coding_object): Adjust
17512 marker positions after conversion.
17513
17514 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17515
175162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17517
17518 * font.c (font_find_for_lface): Fix the handling of the return
17519 value of font_has_char.
17520 (Ffont_shape_text): Fix previous change.
17521
17522 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17523 (fontset_ref_and_range): Delete it.
17524 (fontset_find_font): Call char_table_ref_and_range instead of
17525 FONTSET_REF_AND_RANGE.
17526 (make_fontset): Don't setup font groups of Latin here.
17527 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17528 (new_fontset_from_font): Make the specified font the default for
17529 all Latin characters.
17530
175312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17532
17533 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17534 is on a window system before accessing the fontset of the frame.
17535
175362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17537
17538 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17539
17540 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17541 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17542
17543 * font.c (Ffont_shape_text): If the font driver doesn't have a
17544 shaper function, make zero-width glyphs to have at least one-pixel
17545 width. Fix setting of `to' field of glyphs.
17546
175472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17548
17549 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17550 glyphs.
17551
17552 * font.h (struct font_driver): Improve docstring of member `shape'.
17553
175542008-02-01 Kenichi Handa <handa@m17n.org>
17555
17556 * composite.c (syms_of_composite): Fix docstring of
17557 auto-composition-function.
17558
17559 * font.h (LGLYPH_SIZE): New macro.
17560
17561 * font.c (Ffont_fill_gstring): Stop filling when a character not
17562 supported by the font is found.
17563 (Ffont_shape_text): When a shape callback function returns nil,
17564 try at most two more times with larger gstring.
17565 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17566
17567 * xdisp.c (handle_auto_composed_prop): Change the argument to
17568 auto-composition-function.
17569
17570 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17571 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17572 Lispy glyph and store it in the lgstring.
17573
17574 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17575
17576 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17577
175782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17579
17580 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17581
17582 * fontset.c (Vfont_encoding_charset_alist): New variable.
17583 (syms_of_fontset): DEFVAR it.
17584 (reorder_font_vector, fontset_find_font): Optimize for the case of
17585 no need of reordering.
17586 (face_for_char): Map the charset property by
17587 Vfont_encoding_charset_alist.
17588
175892008-02-01 Jason Rumney <jasonr@gnu.org>
17590
17591 * w32font.c (logfonts_match): Don't check adstyle here.
17592 (font_matches_spec): Check here against physical font instead.
17593 (add_font_entity_to_list): Avoid some substitutions.
17594
17595 * font.c (font_parse_fcname): Default weight and slant to normal.
17596 (font_score): Prefer normal fonts if weight or slant unspecified.
17597 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17598 match freetype scores.
17599
176002008-02-01 Jason Rumney <jasonr@gnu.org>
17601
17602 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17603 font, as it may have been deleted.
17604 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17605 most common hyphenless variation.
17606 (logfonts_match): Check generic family.
17607 (font_matches_spec): Don't check generic family here.
17608 (fill_in_logfont): Set generic family based on adstyle.
17609
17610 * w32font.h (w32font_get_cache): Update declaration.
17611
176122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17613
17614 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17615
17616 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17617 If none of the new drivers are available, call font_update_drivers
17618 with the old drivers.
17619
17620 * w32font.c (w32font_get_cache): Adjust the argument type.
17621
17622 * xfont.c (xfont_get_cache): Adjust the argument type.
17623
17624 * font.h (struct font_driver): Change argument type of get_cache.
17625
17626 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17627
17628 * font.c (Ffont_get): Fix arguments to Fassoc.
17629 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17630 (font_clear_cache): New function.
17631 (font_list_entities, font_matching_entity): Use font_get_cache.
17632 (font_update_drivers): Call font_clear_cache when finishing a driver.
17633
17634 * fontset.c (fontset_find_font): Fix previous change.
17635
176362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17637
17638 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17639 dpyinfo->font_table.
17640 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17641 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17642
17643 * font.c (font_at): Handle the case that the arg C is negative.
17644 Handle the unibyte case.
17645 (Ffont_at): Call font_at with the arg C -1.
17646
17647 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17648 the position here, and call font_at with the arg C -1.
17649 Don't check the range of the existing composition at the point.
17650
176512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17652
17653 * fontset.c (fontset_add): New args charset_id and family.
17654 Change caller.
17655 (load_font_get_repertory, fontset_find_font): Assume that
17656 font_spec is always a font-spec object.
17657 (Fset_fontset_font): Always store a font-spec object in a fontset.
17658
17659 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17660 instead of get_property_and_range.
17661
176622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17663
17664 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17665 (xftfont_open): Don't keep locking face.
17666 (xftfont_close): Don't unlock face.
17667 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17668
17669 * fontset.c (fontset_find_font): Don't prefer a font of
17670 supplementary charset.
17671
176722008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17675 script, langsys_tag to langsys, new member script.
17676 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17677 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17678 listing to the script specified in that property. Fix arg to
17679 OTF_check_features.
17680
176812008-02-01 Jason Rumney <jasonr@gnu.org>
17682
17683 * w32font.h: New file.
17684
17685 * w32font.c: Include it.
17686 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17687 (w32font_open): Set owning_frame.
17688 (w32font_text_extents): Use owning_frame.
17689 (struct font_callback_data): Add opentype_only field.
17690 (add_font_entity_to_list): Use it to filter fonts.
17691 Don't check against full name.
17692 (w32font_list_internal): New function.
17693 (w32font_list): Use it.
17694 (w32font_match_internal): New function.
17695 (w32font_match): Use it.
17696 (w32font_open_internal): New function.
17697 (w32font_open): Use it.
17698 (w32font_get_cache, w32font_close, w32font_has_char)
17699 (w32font_encode_char, w32font_text_extents, w32font_draw):
17700 Make non-static.
17701
17702 * makefile.w32-in (w32font.o): Depend on w32font.h.
17703
177042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17705
17706 * charset.c (Fdefine_charset_internal): Record a supplementary
17707 charset at the tail of Vcharset_order_list.
17708
17709 * font.c (Ffont_shape_text): Fix the return value.
17710
17711 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17712
17713 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17714
177152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17716
17717 * ftfont.c (struct OpenTypeSpec): New struct.
17718 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17719 (ftfont_get_open_type_spec): New function.
17720 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17721
17722 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17723
177242008-02-01 Jason Rumney <jasonr@gnu.org>
17725
17726 * w32font.c (add_font_entity_to_list): Compare only the beginning
17727 of full name.
17728
177292008-02-01 Kenichi Handa <handa@m17n.org>
17730
17731 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17732 Never return HANDLED_RECOMPUTE_PROPS.
17733
177342008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * font.c (font_gstring_produce): Delete it.
17737
17738 * composite.h (COMPOSITION_METHOD):
17739 Handle COMPOSITION_WITH_GLYPH_STRING.
17740
177412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17742
17743 * xfont.c (Qx): Delete.
17744 (syms_of_xfont): Don't initialize Qx.
17745
17746 * composite.h (enum composition_method):
17747 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17748
177492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17750
17751 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17752 (choose_face_font): Accept new form of font-spec.
17753
17754 * frame.h (font_driver_list): Declare it unconditionally.
17755 (struct frame): Define members font_driver_list and font_data_list
17756 unconditionally.
17757
17758 * fontset.c: Include "font.h" unconditionally.
17759 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17760 (Fset_fontset_font): Accept a font-spec object.
17761
17762 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17763 PIXEL_SIZE part a wild card.
17764
17765 * dispextern.h (struct glyph_string): Define members clip and
17766 num_clips unconditionally.
17767 (struct face): Define members font_info and extra unconditionally.
17768
17769 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17770 ftfont_info only when HAVE_LIBOTF is defined.
17771
177722008-02-01 Andreas Schwab <schwab@suse.de>
17773
17774 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17775 and end.
17776
177772008-02-01 Jason Rumney <jasonr@gnu.org>
17778
17779 * w32font.c (w32font_driver): Add new fields.
17780
177812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17782
17783 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17784 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17785 (LIBES): Add @M17N_FLT_CFLAGS@.
17786
17787 * composite.c (compose_text): Don't treat the new style
17788 composition specially.
17789
17790 * emacs.c (main): Call syms_of_font unconditionally.
17791
17792 * font.h (FONT_ENTITY_NOT_LOADABLE)
17793 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17794 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17795 (struct font_driver): New member shape.
17796 (font_registry_charsets): Extern it.
17797 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17798 (font_otf_capability, font_drive_otf): Delete their externs.
17799
17800 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17801 (font_charset_alist, font_registry_charsets): Move from xfont.c
17802 and rename.
17803 (font_prop_validate_otf): New function.
17804 (font_property_table): Register it for QCotf.
17805 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17806 (font_drive_otf): Delete.
17807 (font_prepare_composition): New arg F. Adjust for the change of
17808 lispy gstring.
17809 (font_find_for_lface): New arg C.
17810 (font_load_for_face): Adjust for the change of font_find_for_lface.
17811 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17812 lispy gstring.
17813 (Ffont_shape_text): New function.
17814 (Fopen_font): If the font size is not given, use 12-pixel.
17815 (Ffont_at): New arg STRING.
17816 (syms_of_font): Initalize font_charset_alist.
17817 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17818 conditionally.
17819
17820 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17821 fonts of the same font-spec. Change the format of RFONT-DEF.
17822 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17823 Adjust for the change of RFONT-DEF.
17824 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17825
17826 * ftfont.h: New file.
17827
17828 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17829 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17830 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17831 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17832 font_otf_capability and font_drive_otf, set ftfont_shape.
17833 (ftfont_list): Adjust for the change of :otf property value.
17834 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17835 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17836 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17837 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17838 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17839 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17840
17841 * w32term.c (x_draw_composite_glyph_string_foreground):
17842 Adjust for the change of lispy gstring.
17843
17844 * xdisp.c (handle_composition_prop): Adjust for the change of
17845 lispy gstring. Call a function for auto-composition with the
17846 third arg it->window.
17847 (fill_composite_glyph_string): Adjust for the change of lispy string.
17848 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17849
17850 * xfaces.c (set_font_frame_param): Adjust for the change of
17851 font_find_for_lface.
17852
17853 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17854 (xfont_registry_charsets): Likewise. Change caller.
17855 (syms_of_xfont): Don't handle x_font_charset_alist.
17856
17857 * xftfont.c: Include "ftfont.h".
17858 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17859 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17860 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17861 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17862 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17863 Set xftfont_driver.shape to xftfont_shape.
17864
17865 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17866 the change of lispy gstring.
17867
178682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17869
17870 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17871
178722008-02-01 Jason Rumney <jasonr@gnu.org>
17873
17874 * w32font.c (w32font_draw): Fill background manually.
17875
178762008-02-01 Jason Rumney <jasonr@gnu.org>
17877
17878 * font.c (Qfontp): Remove unused symbol.
17879 (QCantialias): New symbol.
17880 (syms_of_font): Define it.
17881 (font_property_table): Set a validator for QCantialias.
17882
17883 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17884 Define if not already.
17885 (QCfamily): Share with xfaces.c.
17886 (Qstandard, Qsubpixel, Qnatural): New symbols.
17887 (syms_of_w32font): Define them. Don't define QCfamily here.
17888 (w32_antialias_type, lispy_antialias_type): New functions.
17889 (w32_enumfont_pattern_entity): New arg requested_font.
17890 Set antialias parameter if non-default was requested.
17891 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17892
178932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17894
17895 * lread.c (read1): Undo the previous change.
17896
178972008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17898
17899 * frame.c (Fdelete_frame): Call font_update_drivers only when
17900 USE_FONT_BACKEND is defined.
17901
179022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17903
17904 * font.h (struct font_bitmap): New member bits_per_pixel.
17905 (struct font_driver): New members start_for_frame and end_for_frame.
17906 (struct font_data_list): New struct.
17907 (font_put_frame_data, font_get_frame_data): Extern them.
17908
17909 * frame.h (struct frame): New member font_data_list.
17910
17911 * font.c (font_update_drivers): Call driver->start_for_frame and
17912 driver->end_for_frame at proper timings.
17913 (font_put_frame_data, font_get_frame_data): New functions.
17914 (Ffont_spec): Add usage in the docstring.
17915
17916 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17917 (Fdelete_frame): Call font_update_drivers.
17918
17919 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17920 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17921 (xftfont_get_xft_draw): New function.
17922 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17923 (xftfont_end_for_frame): New function.
17924 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17925
17926 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17927 Change argument. Cache GCs in the per-frame data.
17928 (struct ftxfont_frame_data): New struct.
17929 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17930 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17931 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17932 (ftxfont_end_for_frame): New function.
17933 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17934
17935 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * xselect.c (Vselection_coding_system)
17940 (Vnext_selection_coding_system): Delete them.
17941 (syms_of_xselect): Don't declare selection-coding-system and
17942 next-selection-coding-system. They are declared in select.el.
17943
179442008-02-01 Jason Rumney <jasonr@gnu.org>
17945
17946 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17947
17948 * w32fns.c: Include imm.h.
17949 (get_composition_string_fn, get_ime_context_fn): New optional
17950 system functions.
17951 (globals_of_w32fns): Load them from imm32.dll.
17952 (ignore_ime_char): New flag.
17953 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17954 WM_IME_ENDCOMPOSITION messages.
17955
17956 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17957 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17958
179592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17960
17961 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17962 (READCHAR_REPORT_MULTIBYTE): New macro.
17963 (readchar): New 2nd arg MULTIBYTE.
17964 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17965 Make symbol's name multibyte according to the multibyteness of the
17966 source.
17967
179682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17969
17970 * xfaces.c (face_for_overlay_string): Call lookup_face with
17971 correct arguments (fix of synching with the trunk).
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17976 (font_prop_validate_non_neg, font_prop_validate_spacing):
17977 Delete argument prop_index.
17978 (font_property_table): Change arguments to validater. Change Callers.
17979 (font_lispy_object): Delete.
17980 (font_at): Use font_find_object instead fo font_lispy_object.
17981
179822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17983
17984 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17985 and file names.
17986
179872008-02-01 Jason Rumney <jasonr@gnu.org>
17988
17989 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17990 (font_matches_spec): Remove debug output.
17991 (add_font_entity_to_list): Avoid using substituted fonts.
17992
179932008-02-01 Jason Rumney <jasonr@gnu.org>
17994
17995 * doc.c (Fsnarf_documentation):
17996 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17997
179982008-02-01 Miles Bader <miles@gnu.org>
17999
18000 * dispextern.h (struct glyph_row): Only define "clip" field if
18001 HAVE_WINDOW_SYSTEM is defined.
18002
180032008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18004
18005 Fix up multi-tty merge.
18006
18007 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18008 and indentation.
18009
18010 * xfaces.c (free_realized_face, clear_face_gcs):
18011 Include font_done_for_face in the input_blocked section, just in case.
18012
18013 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18014 (get_char_face_and_encoding): Undo last change and remove the *other*
18015 duplicate definition (i.e. keep the one that's better scoped and that
18016 includes code for the font-backend).
18017
18018 * terminal.c (create_terminal): Default keyboard_coding to
18019 `no-conversion' and terminal_coding to `undecided'.
18020
18021 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18022
18023 * fontset.c (free_realized_fontsets): Check that the table entry does
18024 contain a fontset before trying to compare it to `base'.
18025
18026 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18027 syms_of_charset, and syms_of_coding earlier because init_window_once
18028 now needs Vcoding_system_hash_table to be setup.
18029
18030 * coding.h (default_buffer_file_coding): Remove.
18031
18032 * coding.c (default_buffer_file_coding): Remove.
18033 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18034 than ->symbol, and use the terminal-local coding system.
18035 (syms_of_coding): Don't setup the coding-systems that are not
18036 terminal-local.
18037 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18038
18039 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18040 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18041
18042 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18043 in chartab.c and were re-added here by mistake.
18044 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18045
18046 * doc.c (Fsnarf_documentation):
18047 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18048 src to etc.
18049
18050 * ChangeLog.10: Add mistakenly removed entry.
18051
180522008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18053
18054 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18055
180562008-02-01 Miles Bader <miles@gnu.org>
18057
18058 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18059 Add extra args to FACE_FOR_CHAR.
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18064 in sequence.
18065
18066 * chartab.c (map_sub_char_table, map_char_table): If the range
18067 contains just one character, call the function with that character
18068 even if the depth is not 3.
18069
180702008-02-01 Jason Rumney <jasonr@gnu.org>
18071
18072 * w32font.c (w32font_text_extents): Calculate metrics for the
18073 whole string.
18074
180752008-02-01 Jason Rumney <jasonr@gnu.org>
18076
18077 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18078
180792008-02-01 Jason Rumney <jasonr@gnu.org>
18080
18081 * w32term.c (x_set_glyph_string_clipping): Use
18082 get_glyph_string_clip_rects.
18083 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18084 Adjust for the change of struct glyph_string.
18085
18086 * w32font.c (w32font_draw): Do clipping here.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * xftfont.c (xftfont_draw): Adjust for the change of struct
18091 glyph_string.
18092
18093 * xterm.c (x_set_glyph_string_clipping): Use
18094 get_glyph_string_clip_rects.
18095 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18096 Adjust for the change of struct glyph_string.
18097
18098 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18099 the resulting clip(s}.
18100 (expose_overlaps): Add arg r. Change callers. Set it to
18101 row->clip temporarily.
18102 (expose_window): Redraw rows overlapping the exposed area.
18103
18104 * dispextern.h (struct glyph_row): New member clip.
18105 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18106 clip_height, new member clip, and num_clips.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * data.c (Fchar_or_string_p): Fix docstring.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18115 create a temporary XftDraw object.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * font.c (Ffontp): Fix docstring.
18120
18121 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18122 strong evidence of ISO-2022.
18123
181242008-02-01 Kenichi Handa <handa@m17n.org>
18125
18126 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18127 SYNTAX_ENTRY_FOLLOW_PARENT.
18128
181292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18130
18131 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18132 its type.
18133 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18134 Update to the new type of weak_hash_tables and next_weak.
18135
18136 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18137 a plain C pointer to Lisp_Hash_Table.
18138
18139 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18140 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18141 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18142 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18143 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18144 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18145 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18146 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18147 (GC_EQ): Remove since they've been identical to their non-GC_
18148 alter-egos ever since the markbit was eradicated.
18149
18150 * alloc.c:
18151 * buffer.c:
18152 * buffer.h:
18153 * data.c:
18154 * fileio.c:
18155 * filelock.c:
18156 * fns.c:
18157 * frame.h:
18158 * lisp.h:
18159 * macterm.c:
18160 * print.c:
18161 * process.c:
18162 * w32fns.c:
18163 * w32menu.c:
18164 * w32term.c:
18165 * xfns.c:
18166 * xmenu.c:
18167 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * chartab.c (map_sub_char_table): Make it work for the top-level
18172 char-table. Fix handling of parent char-table.
18173 (map_char_table): Adjust for the above change.
18174
181752008-02-01 Jason Rumney <jasonr@gnu.org>
18176
18177 * w32font.c (Qgdi): Rename from Qw32.
18178
181792008-02-01 Jason Rumney <jasonr@gnu.org>
18180
18181 * w32bdf.c (get_quoted_string): Make function static.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18186 bigger ascent and descent than those of the font, use them as
18187 font's ascent and descent.
18188
181892008-02-01 Kenichi Handa <handa@m17n.org>
18190
18191 * Makefile.in (${lispsource}international/charprop.el): Move this
18192 target within "#ifdef HAVE_UNIDATA" and "#endif".
18193
181942008-02-01 Kenichi Handa <handa@m17n.org>
18195
18196 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18197 (shortlisp): Add ../lisp/language/tai-viet.el.
18198
181992008-02-01 Ulrich Mueller <ulm@gentoo.org>
18200
18201 * Makefile.in (${lispsource}international/charprop.el): Depend on
18202 temacs${EXEEXT}.
18203
182042008-02-01 Jason Rumney <jasonr@gnu.org>
18205
18206 * w32font.c (w32font_close): Delete the GDI font object.
18207
18208 * w32menu.c: Include character.h.
18209
18210 * w32proc.c: Likewise.
18211
18212 * w32select.c: Likewise.
18213
18214 * makefile.w32-in (w32proc.o): Depend on character.h.
18215
182162008-02-01 Jason Rumney <jasonr@gnu.org>
18217
18218 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18219
18220 * w32menu.c (syms_of_w32menu): Likewise.
18221
18222 * w32proc.c (syms_of_ntproc): Likewise.
18223
18224 * w32select.c (syms_of_w32select): Likewise.
18225
18226 * w32term.c (syms_of_w32term): Likewise.
18227
182282008-02-01 Jason Rumney <jasonr@gnu.org>
18229
18230 * w32font.c (w32font_draw): Delete brush after using it.
18231
182322008-02-01 Jason Rumney <jasonr@gnu.org>
18233
18234 * w32font.c (w32font_open): Don't set font_idx.
18235 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18236 to font settings.
18237 (w32font_draw): Fill background explicitly.
18238
182392008-02-01 Jason Rumney <jasonr@gnu.org>
18240
18241 * w32term.c (w32_initialize): Don't call w32font_initialize.
18242
18243 * w32font.c (w32font_info): Remove subranges.
18244 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18245 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18246 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18247 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18248 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18249 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18250 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18251 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18252 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18253 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18254 New symbols.
18255 (font_callback_data): New struct.
18256 (w32font_list, w32font_match): Use it.
18257 (w32font_open): Don't populate subranges.
18258 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18259 (w32font_encode_char): Always return unicode code-point as-is.
18260 (w32font_text_extents): Supply a transformation matrix to
18261 GetGlyphOutline. Never look up by glyph index. Avoid looping
18262 twice. Use unicode version of GetTexExtentPoint32 instead of
18263 glyph index version.
18264 (set_fonts_frame): Remove.
18265 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18266 set frame parameter. Use backward compatible fake foundries.
18267 Save generic family in extra slot under QCfamily. Make width slot
18268 constant. Save QCspacing value. Save list of scripts instead of
18269 binary subranges.
18270 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18271 (add_font_entity_to_list): Use font_callback_data struct. Filter
18272 unwanted fonts.
18273 (add_one_font_entity_to_list): Use font_callback_data struct.
18274 (w32_registry): Default to iso10646_1.
18275 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18276 string font registries. Don't fill in font name if it is a generic
18277 family name, fill family instead. Use spacing, family and script
18278 extra info to fill pitch, family and charset fields.
18279 (list_all_matching_fonts): Use font_callback_data struct.
18280 (unicode_range_for_char): Remove.
18281 (font_supported_scripts): New function.
18282 (w32font_initialize): Remove.
18283 (syms_of_w32font): Update which symbols are defined.
18284
182852008-02-01 Jason Rumney <jasonr@gnu.org>
18286
18287 * font.c (font_pixel_size): Reverse assq_no_quit args.
18288
18289 * w32term.h (FONT_WIDTH): Report max width, not average.
18290 (FONT_MAX_WIDTH): Remove.
18291 (FONT_AVG_WIDTH): New macro.
18292
18293 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18294 redefinition of FONT_WIDTH.
18295
18296 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18297 (w32_cache_char_metrics): Use FONT_WIDTH.
18298
18299 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18300
183012008-02-01 Jason Rumney <jasonr@gnu.org>
18302
18303 * w32font.c (w32font_open): Make lfHeight negative.
18304
18305 * w32fns.c (x_default_font_parameter): Use new style font name.
18306 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18307
183082008-02-01 Jason Rumney <jasonr@gnu.org>
18309
18310 * w32font.c (QCsubranges): New symbol.
18311 (w32font_open, w32font_has_char): Get subranges from subproperty
18312 of extra.
18313 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18314 (syms_of_w32font): Define :subranges symbol.
18315
18316 * font.c (font_put_extra): Expose externally.
18317
18318 * font.h (font_put_extra): Move declaration from font.c.
18319
18320 * font.c (Ffont_get): Use font driver to determine otf capability.
18321 (adjust_anchor): Check if driver defines anchor_point before using.
18322
18323 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18324 (w32font_draw): Use options.
18325 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18326 Fix detection of truetype fonts.
18327 (registry_to_w32_charset): Handle charsets other than iso8859-1
18328 expressed as lisp symbols.
18329 (w32_registry): Express charset as lisp symbol.
18330 (fill_in_logfont): Reverse pixel and point height logic.
18331 Don't set width here. Set quality to default.
18332
18333 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18334 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18335
18336 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18337 Remove redundant loop and allocation.
18338
18339 * makefile.w32-in (font.o, w32font.o): New objects.
18340 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18341 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18342
18343 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18344 STORE_XCHARB a valid l-value.
18345
18346 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18347 calculations for non-Truetype fonts.
18348 (x_draw_glyph_string): Sync with xterm.c.
18349 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18350 Remove redundant code.
18351 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18352
18353 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18354 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18355
18356 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18357 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18358
18359 * w32font.c: New file for w32 font backend.
18360
183612008-02-01 Kenichi Handa <handa@m17n.org>
18362
18363 * term.c: Don't include "buffer.h" twice.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * character.c (Funibyte_string): New function.
18368 (syms_of_character): Defsubr it.
18369
183702008-02-01 Jason Rumney <jasonr@gnu.org>
18371
18372 * w32term.c [USE_FONT_BACKEND]:
18373 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18374 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18375 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18376 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18377 (x_free_frame_resources): Sync with xterm.c.
18378
183792008-02-01 Andreas Schwab <schwab@suse.de>
18380
18381 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18382 char-table size.
18383
183842008-02-01 Kenichi Handa <handa@m17n.org>
18385
18386 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18387
183882008-02-01 Kenichi Handa <handa@m17n.org>
18389
18390 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18391 font_otf_gpos, add font_drive_otf.
18392
18393 * fontset.c (fontset_find_font): Pay attention to font size
18394 specified for a font.
18395 (reorder_font_vector): Check contents of font_def.
18396
18397 * font.c (struct otf_list): Delete it.
18398 (otf_list): Make it a lisp variable.
18399 (otf_open): Use lispy otf_list.
18400 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18401 (check_otf_features): New function.
18402 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18403 New functions.
18404 (font_drive_otf): New function merging font_otf_gsub and
18405 font_otf_gpos.
18406 (font_open_for_lface): New arg spec. Change argument order.
18407 (font_load_for_face): Adjust for the change of font_open_for_lface.
18408 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18409 Ffont_otf_gpos.
18410 (syms_of_font): Staticpro otf_list. Delete defsubr of
18411 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18412
18413 * xfaces.c (set_font_frame_param): Adjust for the change of
18414 font_open_for_lface.
18415
18416 * font.h (font_open_for_lface): Adjust prototype.
18417 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18418 member otf_drive.
18419 (font_otf_gsub, font_otf_gpos): Delete externs.
18420 (font_drive_otf): Extern it.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * font.c (font_at): If the window W is not on a window system,
18425 return Qnil.
18426
18427 * coding.c (produce_chars, encode_coding): Don't call
18428 insert_from_gap if no characters to produce.
18429
184302008-02-01 Kenichi Handa <handa@m17n.org>
18431
18432 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18433 Fclear_face_cache.
18434
18435 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18436
184372008-02-01 Miles Bader <miles@gnu.org>
18438
18439 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18440 Parse "--disable-font-backend" option.
18441 (standard_args): Add "--disable-font-backend" option.
18442
184432008-02-01 Kenichi Handa <handa@m17n.org>
18444
18445 * fontset.c (fontset_find_font): New function.
18446 (fontset_font): Use fontset_find_font.
18447 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18448 Register the specified font for all Latin characters.
18449 (new_fontset_from_font): Register the specified font for all Latin
18450 characters.
18451 (dump_fontset): For a realized fontset, include the base fontset
18452 name in the returned vector.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * character.h (CHAR_STRING): Cast C to unsigned on calling
18457 char_string.
18458
18459 * character.c (char_string): Type of arg C changed to unsigned.
18460 Signal an error if C is an invalid character code.
18461
18462 * editfns.c (general_insert_function, Fchar_to_string):
18463 Use CHARACTERP, not INTEGERP.
18464
184652008-02-01 Kenichi Handa <handa@m17n.org>
18466
18467 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18468 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18469
18470 * regex.c (analyse_first): Fix for multibyte characters in "case
18471 charset:" and "case categoryspec:".
18472
184732008-02-01 Andreas Schwab <schwab@suse.de>
18474
18475 * Makefile.in (LIBES): Move standard libraries to the end.
18476
184772008-02-01 Kenichi Handa <handa@m17n.org>
18478
18479 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18480 nonzero, don't shrink the buffer nextb.
18481
18482 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18483
18484 * coding.c (coding_alloc_by_making_gap): New arg offset.
18485 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18486 offset.
18487 (decode_coding_iso_2022): Update coding->safe_charsets.
18488 (decode_coding_gap): Temporarily set
18489 current_buffer->text->inhibit_shrinking to 1.
18490
184912008-02-01 Kenichi Handa <handa@m17n.org>
18492
18493 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18494 indexing into elements of s->cmp and s->char2b.
18495
184962008-02-01 Juanma Barranquero <lekktu@gmail.com>
18497
18498 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18499
185002008-02-01 Kenichi Handa <handa@m17n.org>
18501
18502 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18503 target_multibyte instead of multibyte.
18504 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18505 (bcmp_translate): Change the argument name from multibyte to
18506 target_multibyte.
18507
185082008-02-01 Kenichi Handa <handa@m17n.org>
18509
18510 These changes are to compile a regexp into a pattern that can be
18511 used both for multibyte and unibyte targets.
18512
18513 * Makefile.in (search.o): Depend on charset.h.
18514
18515 * character.c (multibyte_char_to_unibyte_safe): New function.
18516
18517 * search.c: Include "charset.h".
18518 (compile_pattern_1): Delete argument multibyte. Don't set
18519 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18520 (compile_pattern): Don't compare cp->buf.target_multibyte.
18521 Compare cp->buf.charset_unibyte.
18522 (compile_pattern): Set cp->buf.target_multibyte.
18523
18524 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18525
18526 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18527
18528 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18529 multibyte. Change callers.
18530 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18531 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18532 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18533 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18534 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18535 (regex_compile): Make the compiled pattern usable both for
18536 multibyte and unibyte targets.
18537 (analyse_first): Make the fastmap usable both for multibyte and
18538 unibyte targets.
18539 (TRANSLATE_VIA_MULTIBYTE): Delete.
18540 (re_match_2_internal): Pay attention to the case that the
18541 multibyteness of bufp and target may be different.
18542
185432008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18546 empty box occupy at least one column width.
18547
185482008-02-01 Miles Bader <miles@gnu.org>
18549
18550 * Makefile.in: Remove redundant HAVE_XFT clause.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18555
185562008-02-01 Kenichi Handa <handa@m17n.org>
18557
18558 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18559 being nil.
18560
185612008-02-01 Kenichi Handa <handa@m17n.org>
18562
18563 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18564
185652008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18568
185692008-02-01 Kenichi Handa <handa@m17n.org>
18570
18571 * search.c (simple_search): Fix previous change.
18572
185732008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * xftfont.c (ftfont_font_format): Extern declaration.
18576
18577 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18578
18579 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18580 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18581
18582 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18583 (ftfont_font_format): Fix previous change.
18584
18585 * font.h (Ffont_xlfd_name): EXFUN it.
18586
18587 * font.c (font_parse_xlfd): Fix the array size of `f'.
18588 (register_font_driver): Use EQ to compare driver->type.
18589
18590 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18591 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18592 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18593
185942008-02-01 Kenichi Handa <handa@m17n.org>
18595
18596 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18597 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18598
185992008-02-01 Kenichi Handa <handa@m17n.org>
18600
18601 * xfont.c (xfont_open): Set font->format.
18602
18603 * xftfont.c (xftfont_open): Set font->format.
18604
18605 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18606 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18607 (ftfont_open): Set font->format.
18608 (ftfont_font_format): New function.
18609
18610 * font.h (struct font): New member format.
18611
18612 * font.c (Qopentype): New variable.
18613 (syms_of_font): Defsym it.
18614 (Fquery_font): Change the format of the last element of the return
18615 value.
18616
186172008-02-01 Kenichi Handa <handa@m17n.org>
18618
18619 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18620 last resort.
18621
186222008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * coding.c (detect_coding_charset): Fix detection of multi-byte
18625 charset.
18626
186272008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18628
18629 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * xdisp.c (get_next_display_element): Set it->face_id for the
18634 first component of a composition.
18635 (x_produce_glyphs): Check if the font is changed or not for composition.
18636
186372008-02-01 Kenichi Handa <handa@m17n.org>
18638
18639 * fontset.c (Qlatin): New variable.
18640 (syms_of_fontset): Define it as a lisp symbol.
18641 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * font.c (font_unparse_fcname): Pay attention to the case that
18646 some of font property is a null string.
18647
186482008-02-01 Kenichi Handa <handa@m17n.org>
18649
18650 * term.c: Include "composite.h".
18651 (encode_terminal_code): Output all components of composition.
18652 Check the size of encode_terminal_src.
18653 (produce_glyphs): For composition, call produce_composite_glyph.
18654 (append_composite_glyph, produce_composite_glyph): New functions.
18655
18656 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18657 is not found, get font_info from the current ascii face.
18658
186592008-02-01 Kenichi Handa <handa@m17n.org>
18660
18661 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18662 buffer-file-name to Qnil before calling insert_from_buffer.
18663
18664 * font.c (font_unparse_fcname): Pay attention to the case that
18665 foundry is a null string.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18670
18671 * font.c (Qunicode_sip): New variable.
18672 (syms_of_font): Declare it as a Lisp symbol.
18673
18674 * font.h (Qunicode_sip): Extern it.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * composite.c (get_composition_id): Pay attention to TAB component.
18679
18680 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18681 TAB. Adjust for the change of s->char2b which always points to
18682 the first element of allocated memory.
18683
18684 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18685
18686 * xdisp.c (handle_composition_prop): Set it->c to the first
18687 non-TAB component.
18688 (fill_composite_glyph_string): Change argument.
18689 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18690 (x_produce_glyphs): Fix handling of left/right padding.
18691
186922008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * coding.c (detect_coding_system): Fix for handling off
18695 inhibit_iso_escape_detection. Fix for the case that no coding
18696 system is defined for a specific coding category.
18697
186982008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * font.c (font_matching_entity): Delete unused local var.
18701
18702 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18703 opening a font.
18704
18705 * fileio.c (Finsert_file_contents): On recovering a file, assume
18706 Unix-like eol.
18707 (choose_write_coding_system): On auto-saving a file, force
18708 Unix-like eol.
18709
18710 * coding.c (setup_coding_system): Fix setting of
18711 coding->common_flags based on eol_type.
18712 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18713 inherit from it.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * alloc.c (NSTATICS): Increas to 0x600.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18722 (ftfont_list): Don't check :name property.
18723 (ftfont_match): New function.
18724 (ftfont_pattern_entity): If the pattern doesn't contain
18725 FC_SPACING, don't assume FC_MONO.
18726
18727 * font.h (struct font_driver): New member `match'.
18728 (font_update_drivers): Adjust prototype.
18729
18730 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18731 property of FONT.
18732 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18733 them unconditionally.
18734 (font_matching_entity): New function.
18735 (font_open_by_name): Try font_matching_entity if exact match is
18736 not found.
18737 (font_update_drivers): Delete the arg FONT. Return a list of
18738 actually used backends. Don't free faces, font caches here.
18739 Don't store data in frame parameters. Don't call x_set_font.
18740 (Ffont_spec): Store :name property as is.
18741 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18742 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18743 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18744 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18745 Call font->driver->otf_gsub instead of font_otf_gsub.
18746
18747 * frame.c (x_set_font_backend): Do more works that were done in
18748 font_update_drivers before.
18749
18750 * xfont.c (xfont_match): New function.
18751 (xfont_driver): Set xfont_driver.match to xfont_match.
18752 (xfont_draw): Set font in GC if necessary.
18753
18754 * ftxfont.c (ftxfont_match): New function.
18755 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18756
18757 * xftfont.c (xftfont_match): New function.
18758 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18759
187602008-02-01 Kenichi Handa <handa@m17n.org>
18761
18762 * font.h (struct font): New member scalable.
18763 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18764 (font_otf_gsub): Adjust prototype.
18765
18766 * font.c (font_otf_capability): Fix handling of the default langsys.
18767 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18768 Check the contents of SPEC.
18769 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18770 (check_gstring): New function.
18771 (REPLACEMENT_CHARACTER): New macro.
18772 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18773 glyph codes of GSTRING.
18774 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18775 (font_prepare_composition): Set cmp->glyph_len.
18776 (font_open_entity): Set font->scalable.
18777 (Ffont_get): Handle :otf property.
18778 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18779 functions.
18780 (Fquery_font): Use font->font.full_name.
18781 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18782 Sfont_otf_alternates.
18783
18784 * ftfont.c (ftfont_open): Set font->font.full_name and
18785 font->font.name properly. Fix calculation of font->font.height
18786 and font->min_width.
18787
18788 * ftxfont.c (ftxfont_create_gcs): New function.
18789 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18790 (ftxfont_draw_backgrond): Fix filling region.
18791 (ftxfont_default_fid): New function.
18792 (ftxfont_open): Set xfont->fid to the return value of
18793 ftxfont_default_fid.
18794 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18795 (ftxfont_done_face): Free only GCs that are created by
18796 ftxfont_create_gcs.
18797 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18798
18799 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18800 Clip to src->width, etc (not src->clip_XXX).
18801
18802 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18803 FontBackend frame parameter.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * font.h (struct font_driver_list): New member `on'.
18808 (Fclear_font_cache): EXFUN it.
18809 (font_update_drivers): Extern it.
18810
18811 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18812 (font_list_entities): Check driver_list->on.
18813 (register_font_driver): Initalize `on' member to 0.
18814 (font_update_drivers): New function.
18815 (Fclear_font_cache): Check driver_list->on.
18816
18817 * frame.h (Qfont_backend): Extern it.
18818 (x_set_font_backend): Extern it.
18819
18820 * frame.c (Qfont_backend): New variable.
18821 (frame_parms): New element for font-backend.
18822 (x_set_font_backend): New function.
18823
18824 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18825 FontBackend frame parameter.
18826 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18827 x_set_font_backend.
18828
18829 * xfont.c (xfont_list): Don't try listing by :name property if the
18830 name is not for XLFD.
18831
188322008-02-01 Kenichi Handa <handa@m17n.org>
18833
18834 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18835 (LGLYPH_SET_TO): New macros.
18836 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18837 element of G is vector or not.
18838 (font_at): Extern it.
18839
18840 * font.c: Include window.h.
18841 (font_lispy_object): New function.
18842 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18843 end of valid glyph.
18844 (font_close_object): Fix getting (struct font *).
18845 (font_at): New function.
18846 (Ffont_get): If FONT is a font-object, get entity from it.
18847 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18848 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18849 range check.
18850 (Ffont_at): New function.
18851 (syms_of_font): Defsubr Sfont_at.
18852
18853 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18854 before the entry for Qcomposition.
18855 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18856 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18857 the font in gstring.
18858 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18859 LGLYPH_FORM (g) to detect the end of valid glyph.
18860 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18861 we are composing with gstring.
18862
18863 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18864 Check if adjustment is vector or not.
18865
18866 * Makefile.in (font.o): Make it depends on window.h.
18867
188682008-02-01 Kenichi Handa <handa@m17n.org>
18869
18870 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18871 adjustment is vector or not.
18872
188732008-02-01 Miles Bader <miles@gnu.org>
18874
18875 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18876
188772008-02-01 Kenichi Handa <handa@m17n.org>
18878
18879 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18880 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18881 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18882
18883 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18884 (DEVICE_DELTA): Fix typo.
18885 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18886 LGLYPH format.
18887
18888 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18889 the change of LGLYPH format.
18890
188912008-02-01 Kenichi Handa <handa@m17n.org>
18892
18893 * ftfont.c (ftfont_list): Fix typo.
18894 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18895
188962008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18897
18898 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18899
18900 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18901 xftface_info is non-NULL.
18902
189032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18904
18905 * ftfont.c (ftfont_list): Move misplaced #endif.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * ftfont.c (ftfont_list): Pay attention to the case that
18910 FC_CAPABILITY is not defined.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 * xftfont.c (xftfont_open): Set charset related members to -1.
18915
18916 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18917 QCname.
18918 (ftfont_open): Set charset related members to -1.
18919
18920 * fontset.c (Votf_script_alist): New variable.
18921 (syms_of_fontset): Initialize it.
18922 (fontset_font): Delete unused variable.
18923
18924 * fontset.h (Votf_script_alist): Extern it.
18925
18926 * font.c (font_find_for_lface): Optimize code.
18927
18928 * font.h (font_close_object, font_merge_old_spec): Extern them.
18929
189302008-02-01 Kenichi Handa <handa@m17n.org>
18931
18932 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18933 (syms_of_font): Initialize them.
18934 (font_pixel_size): Allow float value in dpi.
18935 (font_prop_validate_type): Delete.
18936 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18937 Change caller.
18938 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18939 (font_prop_validate_extra): Delete.
18940 (font_prop_validate_spacing): New function.
18941 (font_property_table): Add elements for all known properties.
18942 (get_font_prop_index): Rename from check_font_prop_name. New
18943 argument FROM. Change caller.
18944 (font_prop_validate): Validate all known properties.
18945 (font_put_extra): Delete argument force. Change caller.
18946 (font_expand_wildcards): Make it static. Fix the way of shrinking
18947 the possible range.
18948 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18949 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18950 Change caller.
18951 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18952 (font_parse_fcname): Delete argument merge. Fix parsing of point
18953 size. Don't validate properties values here. Change caller.
18954 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18955 (font_open_by_name): Delete unused variable.
18956 (Ffont_spec): Likewise. Validate property values.
18957 (Ffont_match_p): New function.
18958
18959 * font.h (QCscalable): Extern it.
18960 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18961
18962 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18963
18964 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18965 (xfont_list_pattern): New function.
18966 (xfont_list): Use xfont_list_pattern.
18967
189682008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * font.h (Flist_fonts): EXFUN it.
18971
189722008-02-01 Jason Rumney <jasonr@gnu.org>
18973
18974 * w32term.c (w32_initialize): Add back smoothing_type and
18975 smoothing_enabled definitions.
18976
189772008-02-01 Kenichi Handa <handa@m17n.org>
18978
18979 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18980 s->face->font on determining underline position.
18981
189822008-02-01 Kenichi Handa <handa@m17n.org>
18983
18984 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18985 (font_has_char): Accept font-object too.
18986 (font_find_for_lface): Try at first with a size specified in face.
18987
189882008-02-01 Kenichi Handa <handa@m17n.org>
18989
18990 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18991 font_open_by_name.
18992
189932008-02-01 Kenichi Handa <handa@m17n.org>
18994
18995 * font.h (QCspacing, QCdpi): Extern them.
18996 (enum font_spacing): New enum.
18997 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18998
18999 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19000 (QCspacing, QCdpi): New variables.
19001 (syms_of_font): Initialize them.
19002 (font_pixel_size): New function.
19003 (font_put_extra): New function.
19004 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19005 in FONT_EXTRA.
19006 (font_parse_fcname): Handle enumerated values (e.g. bold).
19007 Fix handling font size. Add QCname property that contains only
19008 unknown properties.
19009 (font_score): Change argument. Change caller. Pay attention to
19010 FONT_PIXEL_SIZE_QUANTUM.
19011 (font_sort_entites, font_list_entities, font_find_for_lface)
19012 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19013 (Ffont_spec): Add QCname property that contains only unknown properties.
19014
19015 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19016 include weight in listing pattern, instead check weight of each
19017 listed font. Don't include scalable in pattern. Pay attention to
19018 FONT_PIXEL_SIZE_QUANTUM.
19019
190202008-02-01 Kenichi Handa <handa@m17n.org>
19021
19022 * font.c (font_parse_fcname): Fix parsing of point-size.
19023 (font_unparse_fcname): Produce symbolic names for style properties.
19024 (font_list_entities): Handle float size correctly.
19025 (font_open_by_name): Prefer `normal' property values if the name
19026 doesn't specify them.
19027
19028 * fontset.c (Finternal_char_font): Use font_get_name, not
19029 Ffont_xlfd_name.
19030
19031 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19032 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19033 pattern. Don't force scalable.
19034
19035 * xftfont.c (xftfont_open): For generating a name, start from
19036 96-byte buffer.
19037
190382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19039
19040 * frame.h (x_new_fontset2): Fix prototype.
19041
190422008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * font.h (struct font_driver): Delete member parse_name.
19045 (font_match_p, font_get_spec, font_parse_fcname)
19046 (font_unparse_fcname): Extern them.
19047 (font_get_name): Adjust prototype.
19048
19049 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19050 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19051 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19052 unnecessary checks for weight, slant, and swidth.
19053 (font_parse_fcname): New function.
19054 (font_unparse_fcname): New function.
19055 (font_parse_name): New function.
19056 (font_match_p): New function.
19057 (font_get_name): Change return value to Lisp string.
19058 (font_get_spec): New function.
19059 (Qunspecified, Qignore_defface): Don't extern them.
19060 (font_find_for_lface): Assume that LFACE is fully specified.
19061 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19062 object, use it for FACE.
19063 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19064 driver->parse_name.
19065 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19066
19067 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19068 prototype.
19069
19070 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19071 argument F. Don't call Fnew_fontset. Instead, directly call
19072 make_fontset.
19073
19074 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19075
19076 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19077 of x_new_fontset2.
19078
19079 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19080 (Qsans__serif): New variables.
19081 (ftfont_generic_family_list): New variable.
19082 (syms_of_ftfont): Initialize the above variables.
19083 (ftfont_pattern_entity): Delete argument NAME.
19084 (ftfont_list_generic_family): New function.
19085 (ftfont_parse_name): Delete this function.
19086 (ftfont_list): Try generic family only when FcFontList found no font.
19087 (ftfont_list_family): Fix args to FcObjectSetBuild.
19088
19089 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19090 object in attrs[LFACE_FONT_INDEX].
19091 (set_lface_from_font_name): Cancel all changes for font-backend.
19092 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19093 function.
19094 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19095 font object in QCfont attribute.
19096 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19097 (realize_default_face) [USE_FONT_BACKEND]: Call
19098 set_lface_from_font_and_fontset.
19099
19100 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19101 "fixed", and signal error here if no suitable font was found.
19102
19103 * xfont.c (xfont_parse_name): Delete this function.
19104
19105 * xftfont.c (xftfont_open): Change coding style of error
19106 handling. Generate fontconfig's fontname pattern.
19107
19108 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19109 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19110
19111 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19112 Both args FONTSET and FONT_OBJECT must be existing ones.
19113
191142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19115
19116 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19121
19122 * font.h (struct font): Fix typo.
19123
19124 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19125 XLFD_XXX_INDEX.
19126 (enum xlfd_field_mask): New enum.
19127 (intern_font_field): Changed argument. Change caller. If digits
19128 are followed by non-digits, return a symbol.
19129 (font_expand_wildcards): New function.
19130 (font_parse_xlfd): Fix wildcard handling.
19131 (Ffont_spec): If :name is specified, reflect the info in the other
19132 properties.
19133
19134 * ftfont.c (ftfont_pattern_entity): Fix typo.
19135 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19136 locale.
19137
191382008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19141
19142 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19143 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19144 registry doesn't specify encoding part.
19145 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19146 (font_open_by_name): At first try parsing the name.
19147 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19148 as Lisp symbols.
19149
19150 * fontset.c (reorder_font_vector): Pay attention to the case that
19151 the 3rd element of font_def is nil.
19152 (fontset_font): For the default fontset, append one more fontset
19153 elements for a script-based font specification. Don't add script
19154 attribute on finding a font.
19155 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19156 font name.
19157 (fontset_ascii_font): If a font can't be opened, return nil.
19158
19159 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19160 (ftfont_pattern_entity): New function.
19161 (ftfont_get_cache): Assume that freetype_font_cache is already
19162 initialized.
19163 (ftfont_list): Handle the case that a file is specified in font
19164 name. Use ftfont_pattern_entity to generate entities.
19165 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19166 (syms_of_ftfont): Initialize freetype_font_cache.
19167
19168 * xftfont.c (xftfont_open): Make the font name fontconfig's
19169 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19170 (xftfont_close): Free font->font.name if not NULL.
19171
19172 * xfont.c (xfont_list): If script is specified for a font, return
19173 null_vector.
19174 (xfont_list_family): Declare argument type.
19175
19176 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19177 name, set LFACE_FONT (lface) to nil.
19178
19179 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19180 return Qnil.
19181
191822008-02-01 Kenichi Handa <handa@m17n.org>
19183
19184 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19185 (standard_args): Add "-enable-font-backend".
19186
191872008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19190 (struct xftdraw_list, xftdraw_list): Delete them.
19191 (register_xftdraw, check_xftdraw): Delete them.
19192 (xftfont_prepare_face): Don't call register_xftdraw.
19193 (xftfont_done_face): Don't call check_xftdraw.
19194 (xftfont_draw): Get background color only when with_background is
19195 nonzero.
19196
19197 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19198
191992008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 These changes are for the new font handling codes.
19202
19203 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19204 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19205 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19206 (FONTSRC, FONTOBJ): New variables.
19207 (obj): Add $(FONTOBJ).
19208 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19209 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19210 @LIBOTF_LIBS@.
19211 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19212 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19213
19214 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19215
19216 * character.h (Vscript_representative_chars): Extern it.
19217
19218 * character.c (Vscript_representative_chars): New variable.
19219 (syms_of_character): Declare it as a Lisp variable.
19220
19221 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19222 enable_font_backend is nonzero, accept the composition method
19223 COMPOSITION_WITH_GLYPH_STRING.
19224
19225 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19226 enumeration COMPOSITION_WITH_GLYPH_STRING.
19227
19228 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19229 members clip_x, clip_y, clip_width, and clip_height.
19230 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19231
19232 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19233 --enable-font-backend. Call syms_of_font.
19234
19235 * fns.c (assoc_no_quit): New function.
19236
19237 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19238 (face_for_font, new_fontset_from_font)
19239 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19240
19241 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19242 (fontset_font, fontset_ascii, face_for_char)
19243 (make_fontset_for_ascii_face, Ffont_info)
19244 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19245 is nonzero, use font-backend mechanism.
19246 (find_font_encoding): Make it non-static.
19247 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19248 New functions.
19249
19250 * frame.h (struct frame): New members resx and resy.
19251 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19252 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19253
19254 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19255 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19256
19257 * lisp.h (assoc_no_quit): Extern it.
19258
19259 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19260 Through out the file, use FONT_INFO_FROM_FACE instead of
19261 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19262 rif->per_char_metric.
19263 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19264 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19265 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19266 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19267 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19268 nonzero, use font-backend mechanism.
19269 (get_per_char_metric): New function.
19270
19271 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19272 (set_lface_from_font_name)
19273 (set_font_frame_param, free_realized_face)
19274 (prepare_face_for_display, clear_face_gcs)
19275 (Finternal_set_font_selection_order, realize_x_face)
19276 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19277 font-backend mechanism.
19278 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19279 (load_face_font) [USE_FONT_BACKEND]: Abort.
19280 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19281 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19282
19283 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19284 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19285 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19286 nonzero, register all available font drivers. Call
19287 x_default_font_parameter for deciding a font.
19288 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19289
19290 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19291 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19292 (x_set_glyph_string_clipping_exactly)
19293 (x_compute_glyph_string_overhangs)
19294 (x_draw_glyph_string_foreground)
19295 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19296 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19297 enable_font_backend is nonzero, use font-backend mechanism.
19298 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19299
193002008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19303 system_eol_type.
19304 (syms_of_coding): Initialize system_eol_type.
19305
19306 * process.c (Fset_process_coding_system): Inherit system's eol
19307 format if necessary.
19308
193092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19310
19311 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * coding.c (decode_eol): Pay attention to buffer relocation in
19316 del_range_2.
19317 (decode_coding): Call decode_eol before restoring undo_list.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * charset.c (Fdefine_charset_internal): Fix setting of
19322 emacs_mule_bytes.
19323
193242008-02-01 Kenichi Handa <handa@m17n.org>
19325
19326 * keyboard.c (read_char): Check if C is a character or not before
19327 looking up Vkeyboard_translate_table.
19328
193292008-02-01 Kenichi Handa <handa@m17n.org>
19330
19331 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19332 condition to terminate the loop.
19333
193342008-02-01 Kenichi Handa <handa@m17n.org>
19335
19336 * coding.c (produce_composition): Compare charbuf[i] instead of
19337 args[i] against 0.
19338 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19339
193402008-02-01 Kenichi Handa <handa@m17n.org>
19341
19342 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19343 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19344 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19345 detect_coding.
19346 (emacs_mule_char): Handle old style (Emacs 20) component character
19347 of a composition.
19348 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19349 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19350 composition rule.
19351 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19352
193532008-02-01 Kenichi Handa <handa@m17n.org>
19354
19355 * coding.c (encode_coding_ccl): Allocate destination dynamically
19356 when necessary.
19357
193582008-02-01 Kenichi Handa <handa@m17n.org>
19359
19360 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19361 the loop. When quitted, show a proper error message.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19366 src->clip_head and src->clip_tail temporarily instead of src->hl.
19367
19368 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19369 character sequence.
19370 (Fccl_execute_on_string): Use ASET, not XSET.
19371
193722008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * coding.c (decode_coding): Fix the condition of terminating the
19379 decoding loop.
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * data.c (Faset): On setting a character bigger than 255 in a
19384 unibyte string, signal an error instead of make the string multibyte.
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19389 made by a mapping table.
19390
193912008-02-01 Kenichi Handa <handa@m17n.org>
19392
19393 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19394 not.
19395 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19396 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19397
19398 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19399 s->face is NULL or not.
19400
194012008-02-01 Kenichi Handa <handa@m17n.org>
19402
19403 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19404 (x_draw_glyph_string): Fix drawing of right_overhang and
19405 left_overhang around/on cursor.
19406
19407 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19412
194132008-02-01 Kenichi Handa <handa@m17n.org>
19414
19415 * coding.c (Fdefine_coding_system_internal)
19416 (Fdefine_coding_system_alias): Avoid a duplicated element in
19417 Vcoding_system_alist.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19422
19423 * coding.c (Qcoding_system_define_form): New variable.
19424 (syms_of_coding): Intern and staticpro it.
19425 (Fcoding_system_p): Check Qcoding_system_define_form.
19426 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19427
19428 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19429 Fcoding_system_p.
19430 (CHECK_CODING_SYSTEM): If ID is not available, call
19431 Fcheck_coding_system.
19432 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19433 Try also Fcheck_coding_system.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * coding.c (code_conversion_restore): GCPRO arg.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * character.c (lisp_string_width): Check multibyteness of STRING.
19442
194432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19444
19445 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19446 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19447 (decode_mac_font_name): Use decode_coding_c_string instead of
19448 decode_coding.
19449 (x_load_font): Initialize fontp->fontset to -1. Set
19450 fontp->encoding_type.
19451
194522008-02-01 Kenichi Handa <handa@m17n.org>
19453
19454 * search.c (search_buffer): Give up BM search on case-fold-search
19455 if one of a target character has a case-equivalence of different
19456 byte length even if that target charcter is an ASCII.
19457 (simple_search): Fix calculation of byte length of matched text.
19458 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * coding.c (decode_coding): Fix handling of invalid bytes.
19463
194642008-02-01 Kenichi Handa <handa@m17n.org>
19465
19466 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19467 Unicode characters.
19468
194692008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * coding.c (encode_coding_object): If a pre-write-conversion
19472 function makes a new buffer, kill it.
19473
194742008-02-01 Kenichi Handa <handa@m17n.org>
19475
19476 * coding.c (QCascii_compatible_p): New variable.
19477 (syms_of_coding): Initialize it.
19478 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19479 calling string_char.
19480 (record_conversion_result): Add `default:' case.
19481 (coding_charset_list): Delete unused variable `coding_type'.
19482 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19483 property in the plist of the coding system.
19484 (Fcoding_system_put): Check QCascii_compatible_p.
19485
194862008-02-01 Miles Bader <miles@gnu.org>
19487
19488 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19489 removed calculation of frame `f', as it's now used.
19490
194912008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19494 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19495 (UNIDATA): New variable.
19496 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19497 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19498 $(RUN_TEMACS) unconditionally.
19499
195002008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19503 (admindir): New variable.
19504 ($(lispsource)international/charprop.el): New target.
19505
195062008-02-01 Miles Bader <miles@gnu.org>
19507
19508 * character.c (chars-in-region): Remove obsolete function.
19509 (syms_of_character): Remove its initialization.
19510
195112008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19512
19513 * w32select.c (validate_coding_system)
19514 (setup_windows_coding_system): New functions.
19515 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19516 setup_windows_coding_system.
19517 (setup_config, Fw32_get_clipboard_data): Use
19518 validate_coding_system.
19519 (Fx_selection_exists): Move call to setup_config to a place
19520 where signals are allowed.
19521
19522 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19523 (Fcheck_coding_system): Add declarations.
19524
195252008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19528
195292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19530
19531 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19532 string as the second argument for x_new_fontset.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19537 (encode_coding_object): Use safe_call instead of call2.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19542
19543 * Makefile.in (lisp): Include charprop.el.
19544
195452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19546
19547 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19548 Not sure if it's unnecessary.
19549
195502008-02-01 Steven Tamm <steventamm@mac.com>
19551
19552 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19553 some possibly unnecessary fontset checking code that crashed
19554 when creating a new frame.
19555
195562008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19559 lookup_face.
19560
19561 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19562
19563 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19564
195652008-02-01 Kenichi Handa <handa@m17n.org>
19566
19567 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19568 (coding_charset_list): New function.
19569
19570 * coding.h (coding_charset_list): Extern it.
19571
195722008-02-01 Kenichi Handa <handa@m17n.org>
19573
19574 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19575 concatenation of family and registry.
19576
195772008-02-01 Kenichi Handa <handa@m17n.org>
19578
19579 * character.h (BYTE8_STRING): Fix typo.
19580
19581 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19582 string to multibyte (sync to HEAD).
19583
19584 * casefiddle.c (casify_region): Handle changes in byte-length
19585 using replace_range_2 (sync to HEAD).
19586
195872008-02-01 Andreas Schwab <schwab@suse.de>
19588
19589 * chartab.c (map_char_table): GCPRO table and arg.
19590
195912008-02-01 Kenichi Handa <handa@m17n.org>
19592
19593 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19594 already at limit.
19595
195962008-02-01 Kenichi Handa <handa@m17n.org>
19597
19598 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19599 instead of fast_c_string_match_ignore_case.
19600 (find_font_encoding): Change argument to Lisp_Object. Use
19601 fast_string_match_ignore_case instead of
19602 fast_c_string_match_ignore_case. Change caller.
19603
196042008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * xdisp.c (get_next_display_element): In unibyte case, decide to
19607 display in octal form by checking a character by
19608 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19609
19610 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19611
19612 * character.c (unibyte_has_multibyte_table): New variable.
19613
19614 * character.h (unibyte_has_multibyte_table): Extern it.
19615 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19616
196172008-02-01 Kenichi Handa <handa@m17n.org>
19618
19619 * coding.c (encode_coding_iso_2022): Fix handling of charset
19620 annotation.
19621
196222008-02-01 Kenichi Handa <handa@m17n.org>
19623
19624 * coding.c (setup_coding_system): If coding_system is nil, use
19625 Qundecided.
19626 (Fterminal_coding_system): Return nil if terminal coding system is
19627 `undecided'.
19628 (syms_of_coding): Define coding-system `undecided' here. Setup
19629 terminal_coding as `undecided'.
19630
196312008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * xdisp.c (message_dolog, set_message_1): Call
19634 unibyte_char_to_multibyte with arg type int.
19635
19636 * lread.c (read1): Fix reading of a char-table.
19637
19638 * print.c (print_object): Include sub char-table in circularities
19639 detection.
19640
196412008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19644 Append the found sequences in car of ARGS instead of prepending.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * fileio.c (report_file_error): Make a unibyte string from
19649 strerror (errorno).
19650 (Fsubstitute_in_file_name): Fix the arg to
19651 unibyte_char_to_multibyte. It is evaluated twice.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19660 BOM is not found.
19661 (detect_coding, detect_coding_system): Optimization for ISO-2022
19662 when no 8-bit data is found.
19663
196642008-02-01 Jason Rumney <jasonr@gnu.org>
19665
19666 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19671 CHARS.
19672
196732008-02-01 Steven Tamm <steventamm@mac.com>
19674
19675 * macterm.c (mac_encode_char): Add charset argument and update
19676 to use encoding_type.
19677 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19678 switch to pure fontset.
19679 (decode_mac_font_name): Temporarily remove decoding.
19680 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19681 (x_load_font): Temporarily remove encoding.
19682
196832008-02-01 Kenichi Handa <handa@m17n.org>
19684
19685 * xfaces.c (Fface_font): If frame is not on a window system,
19686 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19687 refer to face->font.
19688 (split_font_name_into_vector, build_font_name_from_vector)
19689 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19690 when HAVE_WINDOW_SYSTEM is defined.
19691
196922008-02-01 Kenichi Handa <handa@m17n.org>
19693
19694 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19695 (x_produce_glyphs): Fix setting of members of cmp in case
19696 cmp->glyph_len is zero.
19697
19698 * fontset.c (Fset_fontset_font): Fix docstring.
19699 (Ffontset_info): Make it backward compatible. New arg ALL.
19700
197012008-02-01 Kim F. Storm <storm@cua.dk>
19702
19703 * process.c (read_process_output): Grow decoding_buf when needed;
19704 this could cause a crash in allocate_string and compact_small_strings.
19705
197062008-02-01 Kenichi Handa <handa@m17n.org>
19707
19708 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19709
197102008-02-01 Kenichi Handa <handa@m17n.org>
19711
19712 * coding.c (setup_coding_system): Set coding->common_flags
19713 correctly for raw-text.
19714 (consume_chars): On encoding unibyte text by raw-text, don't check
19715 multibyte form.
19716 (encode_coding): On encoding by raw-text, never use translation tables.
19717
19718 * fileio.c (e_write): Short cut for the case of no encoding.
19719
197202008-02-01 Kenichi Handa <handa@m17n.org>
19721
19722 * coding.c (detect_coding, detect_coding_system): Delete unused
19723 variables.
19724
197252008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19728 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19729
197302008-02-01 Kenichi Handa <handa@m17n.org>
19731
19732 * coding.c (Ffind_coding_systems_region_internal): Include
19733 raw-text and no-conversion in the result.
19734
197352008-02-01 Kenichi Handa <handa@m17n.org>
19736
19737 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19738 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19739 FONT_DEF.
19740 (font_def_arg, add_arg, from_arg, to_arg): New args.
19741 (set_fontset_font): Change argument.
19742 (Fset_fontset_font): Fix for the case that TARGET is a script
19743 name and charset name.
19744 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19745
197462008-02-01 Kenichi Handa <handa@m17n.org>
19747
19748 * fontset.c (fontset_font): Rename from fontset_face. Change return
19749 value.
19750 (face_suitable_for_char_p, face_for_char): Adjust for the change
19751 of fontset_font.
19752 (make_fontset_for_ascii_face): Fix setting of the fontset element
19753 for ASCII.
19754 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19755 to get a font name.
19756 (Ffontset_info): Adjust for the change of fontset_font.
19757
19758 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19759
19760 * character.h (LEADING_CODE_LATIN_1_MIN)
19761 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19762
197632008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * editfns.c (check_translation): New function.
19766 (Ftranslate_region_internal): Handle M:N mapping.
19767
197682008-02-01 Kenichi Handa <handa@m17n.org>
19769
19770 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19771
197722008-02-01 Kenichi Handa <handa@m17n.org>
19773
19774 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19775 goto invalid_code.
19776 (decode_coding_iso_2022): Fix handling of invalid designation.
19777
19778 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19779 after calling code_conversion_save.
19780
197812008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19784
19785 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19786
19787 * fontset.c: Include "intervals.h".
19788 (fontset_face): Fix comparing of Lisp_Objects.
19789 (free_face_fontset, new_fontset_from_font_name): Fix
19790 Lisp_Object/int mixup.
19791
19792 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19793
19794 * coding.c: Add many prototypes for static functions.
19795 (get_translation_table): Allow max_lookup to be NULL.
19796 (decode_coding, Ffind_coding_systems_region_internal)
19797 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19798 get_translation_table with max_lookup NULL.
19799
198002008-02-01 Kenichi Handa <handa@m17n.org>
19801
19802 * coding.c (get_translation_table): Declare it as Lisp_Object.
19803 (LOOKUP_TRANSLATION_TABLE): New macro.
19804 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19805 instead of CHAR_TABLE_REF.
19806
198072008-02-01 Kenichi Handa <handa@m17n.org>
19808
19809 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19810 annotation data format.
19811 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19812 Change arguments FROM and TO to single argument NCHARS. Change caller.
19813 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19814 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19815 (decode_coding_ccl, decode_coding_charset): Pay attention to
19816 coding->charbuf_used.
19817 (get_translation): New function.
19818 (produce_chars): New arguments translation_table and last_block.
19819 Translate characters here. Return number of carryover chars.
19820 Change caller.
19821 (produce_composition): New argument pos. Change caller.
19822 Adjust for the change of annotation data format.
19823 (produce_charset, produce_annotation): Likewise.
19824 (decode_coding, encode_coding): Don't call translate_chars.
19825 (consume_chars): New arg translation_table. Change caller.
19826 (translate_chars): Delete.
19827 (syms_of_coding): Make translation-table's number of extra slots 2.
19828
198292008-02-01 Kenichi Handa <handa@m17n.org>
19830
19831 * search.c (simple_search): Fix setting this_pos_byte in backward
19832 search.
19833
19834 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19835 byte sequence.
19836 (detect_coding_ccl): Fix setting of the variable valids.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19841
19842 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19843
19844 * editfns.c (Ftranslate_region_internal): Rename from
19845 Ftranslate_region. Accept a char-table in TABLE.
19846 (syms_of_editfns): Defsubr Stranslate_region_internal.
19847
19848 * xfaces.c (set_lface_from_font_name): If a font is specified for
19849 a frame, generate a fontset from the font.
19850 (build_scalable_font_name): If the scalable font is requested for
19851 a specific size, don't change that size.
19852 (try_font_list): Try a scalable font also in the case that a
19853 pattern string is specified.
19854
198552008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * xfaces.c (Fface_font): New optional arg CHARACTER.
19858
198592008-02-01 Kenichi Handa <handa@m17n.org>
19860
19861 * charset.h (CHARSET_OFFSET): New macro.
19862
198632008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19866
19867 * fontset.c (fontset_face): Handle the case that repertory is a
19868 char-table.
19869 (find_font_encoding): Return nil for unknown encoding.
19870 (Fset_fontset_font): Ignore a font of unknown encoding.
19871
198722008-02-01 Kenichi Handa <handa@m17n.org>
19873
19874 * keymap.c (describe_vector): Handle default value of a char table.
19875
19876 * fontset.c (fontset_face): Handle fallback fonts correctly.
19877 (Ffontset_info): Return infomation about fallback fonts.
19878
198792008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 * fontset.c (FONTSET_DEFAULT): New macro.
19882 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19883 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19884 the case that it is nil.
19885 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19886 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19887
19888 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19889 subset or superset.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * emacs.c (main): Call init_charset after syms_of_XXX.
19894
19895 * charset.c (Vcharset_map_directory): Delete.
19896 (Vcharset_map_path): New variable.
19897 (load_charset_map_from_file): Use Vcharset_map_path instead.
19898 (init_charset): Initialize Vcharset_map_path.
19899 (syms_of_charset): Delete declaration of "charset-map-directory",
19900 add declaration of "charset-map-path".
19901
199022008-02-01 Kenichi Handa <handa@m17n.org>
19903
19904 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19905 ASCII only string.
19906
19907 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19908
19909 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19910 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19911
199122008-02-01 Kenichi Handa <handa@m17n.org>
19913
19914 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19915
19916 * coding.c (QCmnemonic, QCdefalut_char)
19917 (QCdecode_translation_table, QCencode_translation_table)
19918 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19919 (get_translation_table): Return a list of translation tables if
19920 necessary.
19921 (decode_coding): Call get_translation_table with ENCODEP 0.
19922 (char_encodable_p): If translation_table is non-nil, always call
19923 translate_char.
19924 (Fdefine_coding_system_internal): Accept list of translation
19925 tables as :encode-translation-table and :decode-translation-table.
19926 (Fcoding_system_put): New function.
19927 (syms_of_coding): Declare new symbols. Defsubr
19928 Scoding_system_put.
19929 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19930 typically JISX0212.
19931
19932 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19933 when the charset is superset type.
19934
19935 * character.c (translate_char): Accept list of translation tables.
19936
199372008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19940 (CODING_ATTR_TRANS_TBL): New macro.
19941
19942 * coding.c (get_translation_table): New function.
19943 (translate_chars): Fix the bug of skipping annotation data.
19944 (decode_coding, encode_coding): Utilize get_translation_table.
19945 (char_encodable_p, Funencodable_char_position): Translate char if
19946 necessary.
19947 (Ffind_coding_systems_region_internal)
19948 (Fcheck_coding_systems_region): Setup translation table for encode
19949 in a coding system attribute vector in advance.
19950 (Fdefine_coding_system_internal): Allow a symbol as translation
19951 table. For shift-jis type coding system, allow 4th charset.
19952
199532008-02-01 Kenichi Handa <handa@m17n.org>
19954
19955 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19956
19957 * xdisp.c (get_next_display_element): Pass -1 as POS to
19958 FACE_FOR_CHAR if displaying a C-string.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * composite.c (get_composition_id): Handle xoff and yoff in a
19963 composition rule.
19964
19965 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19966 (struct composition): New member lbearing and rbearing.
19967
19968 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19969 (x_get_glyph_overhangs): Handle a composition glyph.
19970 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19971
19972 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19973 composition glyph.
19974
199752008-02-01 Kenichi Handa <handa@m17n.org>
19976
19977 * print.c: Include charset.h.
19978 (Vprint_charset_text_property): New variable.
19979 (Qdefault): Extern it.
19980 (PRINT_STRING_NON_CHARSET_FOUND)
19981 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19982 (print_check_string_result): New variable.
19983 (print_check_string_charset_prop): New function.
19984 (print_prune_charset_plist): New variable.
19985 (print_prune_string_charset): New function.
19986 (print_object): Call print_prune_string_charset if
19987 Vprint_charset_text_property is not t.
19988 (print_interval): Print nothing if interval->plist is nil.
19989 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19990 variable. Init and staticpro print_prune_charset_plist.
19991
199922008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * fontset.c (new_fontset_from_font_name): Use the specified font
19995 for all characters in the new fontset.
19996
19997 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19998 OBJECT args.
19999
20000 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20001 OBJECT args for composition too.
20002
20003 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20004 OBJECT args.
20005
200062008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20009
20010 * fontset.c (reorder_font_vector): Adjust for the change of
20011 FONT_DEF format.
20012 (fontset_face): New arg id. Change caller.
20013 (face_for_char): New args pos and object.
20014 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20015 (fs_query_fontset): Check NAME by Fassoc too.
20016 (Fset_fontset_font): Allow non-XLFD font name.
20017 (Ffontset_info): Adjust for the change of FONT_DEF format.
20018
20019 * fontset.h (face_for_char): Adjust prototype.
20020
20021 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20022 (append_space, extend_face_to_end_of_line)
20023 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20024 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20025
20026 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20027 POS and OBJECT args.
20028
20029 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20030 POS and OBJECT args.
20031
200322008-02-01 Jason Rumney <jasonr@gnu.org>
20033
20034 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20035 of GlobalAlloc'ed memory.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20040
20041 * charset.h (charset_table_used): Delete extern.
20042
20043 * charset.c (charset_table_used): Make it static.
20044 (map_charset_chars): Fix args to c_function with.
20045
20046 * chartab.c (map_sub_char_table_for_charset): Fix args to
20047 c_function with.
20048
20049 * coding.h (enum coding_result_code): Delete
20050 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20051
20052 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20053 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20054 (Vlast_code_conversion_error): New variables.
20055 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20056 (ONE_MORE_BYTE): Record error if any instead of signaling an
20057 error. If non-ASCII multibyte char is found, return the negative
20058 value of the code. All callers changed to check it.
20059 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20060 (record_conversion_result): New function. Change all codes setting
20061 coding->result to call this function.
20062 (detect_coding_utf_8, decode_coding_utf_8)
20063 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20064 Don't use the local variable incomplete.
20065 (emacs_mule_char): Change the second arg to `const'.
20066 (decode_coding): Fix of flushing out unprocessed data.
20067 (make_conversion_work_buffer): Fix making of a work buffer.
20068 (decode_coding_object): Return coding->dst_object.
20069
20070 * fontset.c (set_fontset_font): Fix args.
20071
20072 * lisp.h (CHARACTERBITS): Define as 22.
20073
20074 * process.c (send_process): Be sure to set coding->src_multibyte.
20075
20076 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20077
200782008-02-01 Kenichi Handa <handa@m17n.org>
20079
20080 * xdisp.c (handle_auto_composed_prop): Give limit to
20081 Fnext_single_char_property_change.
20082
200832008-02-01 Kenichi Handa <handa@m17n.org>
20084
20085 * composite.c (syms_of_composite): Don't make the composition hash
20086 table weak.
20087
20088 * fontset.c (Fset_fontset_font): Fix docstring.
20089
20090 * lisp.h (detect_coding_system): Adjust prototype.
20091
20092 * fileio.c (kill_workbuf_unwind): Delete this function.
20093 (Finsert_file_contents): Adjust the call of detect_coding_system.
20094 Get conversion_buffer by code_conversion_save. Use the macro
20095 CODING_MAY_REQUIRE_DECODING. After decoding, update
20096 coding_system.
20097
20098 * coding.h (make_conversion_work_buffer): Delete extern.
20099 (code_conversion_save): Extern it.
20100
20101 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20102 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20103 (decode_coding_utf_8): Don't do eol converion.
20104 (detect_coding_utf_16): Check coding->src_chars, not
20105 coding->src_bytes. Add heuristics for those that have no signature.
20106 (decode_coding_emacs_mule, decode_coding_iso_2022)
20107 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20108 Don't do eol converion.
20109 (adjust_coding_eol_type): Return a new coding system.
20110 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20111 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20112 each change.
20113 (decode_coding): Pay attention to undo_list. Do eol conversion for
20114 all types of coding-systems (if necessary).
20115 (Vcode_conversion_work_buf_list): Delete it.
20116 (Vcode_conversion_reused_workbuf): Rename from
20117 Vcode_conversion_reused_work_buf.
20118 (Vcode_conversion_workbuf_name): New variable.
20119 (reused_workbuf_in_use): New variable.
20120 (make_conversion_work_buffer): Delete the arg DEPTH.
20121 (code_conversion_restore): Change argument to cons.
20122 (code_conversion_save): Delete the argument BUFFER. Change callers.
20123 (detect_coding_system): New argument src_chars. Change callers.
20124 Fix for utf-16 detection.
20125 (init_coding_once): Don't use ISO_carriage_return.
20126 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20127 reused_workbuf_in_use.
20128
201292008-02-01 Kenichi Handa <handa@m17n.org>
20130
20131 * keymap.c (store_in_keymap): Pay attention to the case that idx
20132 is a cons specifying a character range.
20133
201342008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20137 HANDLED_RECOMPUTE_PROPS.
20138
20139 * coding.c (Fdefine_coding_system_internal): Fix checking of
20140 ascii compatibility.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * charset.c (find_charsets_in_text): Delete unused locale variable.
20145 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20146
20147 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20148 Resync charset_list to Vemacs_mule_charset_list.
20149
20150 * keymap.c (store_in_keymap): Pay attention to the case that idx
20151 is a cons specifying a character range.
20152
201532008-02-01 Kenichi Handa <handa@m17n.org>
20154
20155 * composite.c (update_compositions): Bind inhibit-read-only, etc
20156 to t before calling remove-list-of-text-properties.
20157
20158 * print.c (print_object): Always print ASCII chars as is.
20159
201602008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20163
20164 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20165 is a char table.
20166
201672008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20170
201712008-02-01 Kenichi Handa <handa@m17n.org>
20172
20173 * xfaces.c (set_lface_from_font_name): Fix for the case that
20174 FONTNAME is not fontset name.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * fns.c (base64_encode_1): Fix previous change.
20179
201802008-02-01 Kenichi Handa <handa@m17n.org>
20181
20182 * fontset.c (set_fontset_font): New function.
20183 (Fset_fontset_font): If a font is specified for a charset, use
20184 map_charset_chars to store the font spec in a fontset.
20185
201862008-02-01 Kenichi Handa <handa@m17n.org>
20187
20188 * fontset.c (fontset_face): Create a fallback fontset on demand.
20189 (make_fontset): Don't create a fallback fontset here.
20190 (free_face_fontset): Free a fallback fontset (if any) too.
20191 (n_auto_fontsets): Delete this variable.
20192 (auto_fontset_alist): New variable.
20193 (new_fontset_from_font_name): Check auto_fontset_alist.
20194 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20195 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20196 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20197 Defsubr Sfontset_list_all.
20198
201992008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * editfns.c (Fgoto_char): Fix docstring.
20210
202112008-02-01 Kenichi Handa <handa@m17n.org>
20212
20213 * insdel.c (insert_from_gap): Adjust intervals correctly.
20214
202152008-02-01 Jason Rumney <jasonr@gnu.org>
20216
20217 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20218 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20219 (w32_initialize): Try to load it.
20220 (x_get_font_repertory): Use it if available.
20221 (w32_encode_char): Add shortcut for unicode output.
20222
20223 * w32fns.c (w32_load_system_font): Default charset to -1.
20224 (x_to_w32_charset): Match all fonts for unicode.
20225 (w32_to_x_charset): New parameter matching. Don't return partial
20226 or wildcard charsets.
20227 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20228 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20229 (w32_to_x_font): Match charset to real charset.
20230 (enum_font_cb2): Always list unicode versions.
20231
20232 * makefile.w32-in (temacs): Increase EMHEAP.
20233
202342008-02-01 Jason Rumney <jasonr@gnu.org>
20235
20236 * w32term.c (w32_encode_char): New charset parameter.
20237 font_info.encoding becomes encoding_type.
20238 (x_get_font_repertory): New function. Warning: stub only!
20239 (x_new_font): Return quickly if font already set.
20240 (x_new_fontset): fontsetname parameter is Lisp_Object.
20241 Use new fs_query_fontset. Try new_fontset_from_font_name.
20242 Use fontset_name for return value.
20243
20244 * w32term.h: Declare x_get_font_repertory.
20245
20246 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20247 place of find_charset_in_text. Use encode_coding_object in place
20248 of encode_coding.
20249 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20250 decode_coding.
20251
20252 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20253 of x_new_fontset.
20254 (w32_load_system_font): Initialize charset as unicode.
20255 font_info.encoding becomes encoding_type.
20256 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20257 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20258 (syms_of_w32fns): Set get_font_repertory_func.
20259
20260 * w32console.c: Include character.h. Use terminal_encode_buffer
20261 from term.c.
20262 (write_glyphs): Use new version of encode_terminal_code. Use
20263 encode_coding_object in place of encode_coding.
20264
20265 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20266 encoding becomes encoding_type.
20267
20268 * term.c (terminal_encode_buffer): Make externally visible.
20269
20270 * makefile.w32-in: Add character.h dependancies.
20271 (character.o, chartab.o): New targets.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20276 CODING_ID_EOL_TYPE.
20277
202782008-02-01 Andreas Schwab <schwab@suse.de>
20279
20280 * coding.c (produce_chars): Revert last change.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * charset.h (charset_unicode): Extern it.
20285
20286 * charset.c (string_xstring_p): Check by (C >= 0x100).
20287 (find_charsets_in_text): Change format of the arc CHARSETS. New
20288 arg MULTIBYTE.
20289 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20290 change of find_charsets_in_text.
20291 (Fsplit_char): Fix doc. Never return unknown.
20292
20293 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20294
20295 * coding.c (Fdefine_coding_system_alias): Update
20296 Vcoding_system_list.
20297
20298 * fontset.c (load_font_get_repertory): Pay attention to the case
20299 that ENCODING of a font is specified by a char-table.
20300
20301 * xterm.c (x_get_font_repertory): Handle the case that the
20302 encoding of font is other than Unicode.
20303
203042008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20307 if a character is encodable by the terminal coding system. If
20308 not, produces proper number of `?'s. Update
20309 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20310 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20311
203122008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20315 variables.
20316 (encode_terminal_code): Change argument. Encode multiple
20317 characters at once. Store the result of encoding in
20318 terminal_encode_buffer.
20319 (write_glyphs, insert_glyphs): Adjust for the change of
20320 encode_terminal_code.
20321 (term_init): Initialize terminal_encode_buffer and
20322 terminal_encode_buf_size.
20323
20324 * coding.c (consume_chars): If coding->src_object is nil, don't
20325 check annotation.
20326
203272008-02-01 Kenichi Handa <handa@m17n.org>
20328
20329 * character.c (char_string): Use ASCII_CHAR_P instead of
20330 SINGLE_BYTE_CHAR_P.
20331
203322008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * xdisp.c (handle_auto_composed_prop): Check if the last
20335 characters of auto-composed region is newly composed with the
20336 following characters.
20337 (handle_composition_prop): Fix checking of point being inside
20338 composition.
20339
203402008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 * fns.c (concat): Don't change multibyteness of the result by
20343 concatenating an 8-bit character.
20344
20345 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20346 multibyteness of the result when newelt is an 8-bit character.
20347
203482008-02-01 Dave Love <fx@gnu.org>
20349
20350 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20351 EMACS_INT.
20352
20353 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20354
20355 * xfaces.c (face_numeric_value): Declare dim size_t.
20356 (Finternal_lisp_face_equal_p): Remove unused f.
20357
20358 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20359 (MATRIX_ROW): Remove unused vars.
20360 (draw_glyphs, x_insert_glyphs, fast_find_position)
20361 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20362 byte/char counts.
20363
20364 * regex.c (regex_compile): Remove unused var.
20365
20366 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20367
20368 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20369 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20370
20371 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20372
20373 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20374
20375 * fileio.c (Fwrite_region): Remove unused var.
20376
20377 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20378 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20379
20380 * composite.c (Fremove_list_of_text_properties): Declare.
20381
20382 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20383 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20384 (coding_inherit_eol_type): Remove unused attrs.
20385 (detect_coding): Cast arg of detect_eol.
20386
20387 * charset.c (syms_of_charset): Remove unused var p.
20388 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20389 byte/char counts.
20390
20391 * casetab.c (set_case_table): Remove unused var.
20392
20393 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20394 unused vars.
20395
203962008-02-01 Dave Love <fx@gnu.org>
20397
20398 * xterm.c (x_bitmap_mask): Declare.
20399
204002008-02-01 Dave Love <fx@gnu.org>
20401
20402 * xterm.c (x_term_init): Fix type error.
20403
20404 * lisp.h: Add Funibyte_char_to_multibyte.
20405
20406 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20407 (Fset_coding_system_priority): Doc fix.
20408
20409 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20410
20411 * indent.c (check_composition): Make start and end EMACS_INT.
20412
20413 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20414
20415 * xdisp.c (handle_composition_prop, check_point_in_composition):
20416 Make buffer positions EMACS_INT.
20417
20418 * composite.c (find_composition, run_composition_function)
20419 (update_compositions, Ffind_composition_internal): Make buffer
20420 positions EMACS_INT.
20421
20422 * composite.h (find_composition, update_compositions): Make
20423 position args EMACS_INT.
20424
20425 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20426
20427 * intervals.c (get_property_and_range):
20428 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20429
20430 * unexalpha.c: Don't include varargs.h.
20431
204322008-02-01 Dave Love <fx@gnu.org>
20433
20434 * coding.h (ENCODE_UTF_8): New.
20435
20436 * Makefile.in (gtkutil.o): Depend on coding.h.
20437
20438 * coding.c (Fset_coding_system_priority): Doc fix.
20439
204402008-02-01 Kenichi Handa <handa@m17n.org>
20441
20442 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20443 the case of auto saving.
20444
204452008-02-01 Andreas Schwab <schwab@suse.de>
20446
20447 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20448 `range' from GC.
20449
204502008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * fileio.c (choose_write_coding_system): Return a decided coding system.
20457 (Fwrite_region): Set Vlast_coding_system_used to the return value
20458 of choose_write_coding_system.
20459
204602008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * charset.c (Fset_charset_priority): Pay attention to duplicated
20463 arguments.
20464
20465 * coding.c (QCcategory): New variable.
20466 (syms_of_coding): Defsym it. Set all elements of
20467 Vcoding_category_table and their symbol values.
20468 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20469 coding-category-XXX, and coding-category-list.
20470 (Fdefine_coding_system_internal): Add category in the plist.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * callproc.c (Fcall_process): Handle carryover correctly.
20475
20476 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20477 (raw_text_coding_system): Check NILP (coding_system).
20478 (coding_inherit_eol_type): Check NILP (coding_system) and
20479 NILP (parent).
20480 (consume_chars): Fix for the case of raw-text.
20481
20482 * process.c (read_process_output): Handle carryover correctly.
20483
204842008-02-01 Dave Love <fx@gnu.org>
20485
20486 * regex.c (re_search_2): Fix last change.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20491 target_multibyte. Even in a unibyte case, return a converted
20492 multibyte char.
20493 (GET_CHAR_AFTER): New macro.
20494 (PATFETCH): Translate via multibyte char.
20495 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20496 (SETUP_MULTIBYTE_RANGE): New macro.
20497 (regex_compile): Setup compiled code so that its multibyteness
20498 matches that of a target. Fix the handling of "[X-YZ]" using
20499 SETUP_MULTIBYTE_RANGE.
20500 (analyse_first) <charset>: For filling fastmap for all multibyte
20501 characters, don't check by BASE_LEADING_CODE_P.
20502 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20503 the same as RE_MULTIBYTE_P (bufp) now.
20504 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20505 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20506 (TRANSLATE_VIA_MULTIBYTE): New macro.
20507 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20508 It is the same as RE_MULTIBYTE_P (bufp) now.
20509 <exactn>: Translate via multibyte.
20510 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20511 translate it.
20512 <charset, charset_not>: Fetch a character by
20513 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20514 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20515 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20516 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20517 by GET_CHAR_AFTER.
20518 (bcmp_translate): Likewise.
20519
20520 * search.c (compile_pattern): Check the member target_multibyte,
20521 not the member multibyte of buf.
20522
20523 * lread.c (read1): While reading a string, set force_singlebyte
20524 and force_multibyte correctly.
20525
20526 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20527 up of unibyte_to_multibyte_table.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * coding.c (setup_coding_system): If coding has
20532 post-read-conversion or pre-write-conversion, set
20533 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20534 respectively.
20535 (decode_coding_gap): Run post-read-conversion if any.
20536
20537 * fileio.c (Finsert_file_contents): Even if we read into a
20538 unibyte buffer, check if we must decode the result or not.
20539
205402008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 * coding.c (make_conversion_work_buffer): Change the work buffer
20543 name to the same one as that of Emacs 21.
20544
205452008-02-01 Kenichi Handa <handa@m17n.org>
20546
20547 * coding.h (make_conversion_work_buffer): Adjust prototype.
20548 (code_conversion_restore): Don't extern it.
20549
20550 * coding.c (detected_mask): Delete unused variable.
20551 (decode_coding_iso_2022): Pay attention to the byte sequence of
20552 CTEXT extended segment, and retain those bytes as is.
20553 (decode_coding_ccl): Delete unused variable `valids'.
20554 (setup_coding_system): Delete unused variable `category'.
20555 (consume_chars): Delete unused variable `category'. Make it work
20556 for non-multibyte case.
20557 (make_conversion_work_buffer): Change argument.
20558 (saved_coding): Delete unused variable.
20559 (code_conversion_restore): Don't check saved_coding->destination.
20560 (code_conversion_save): New function.
20561 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20562 instead of record_unwind_protect.
20563 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20564 (detect_coding_system): Delete unused variable `mask'.
20565 (Fdefine_coding_system_internal): Delete unused variable id.
20566
20567 * fileio.c (kill_workbuf_unwind): New function.
20568 (Finsert_file_contents): On replacing, call
20569 make_conversion_work_buffer with correct args, and call
20570 record_unwind_protect with the first arg kill_workbuf_unwind.
20571
20572 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20573
205742008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20577 (fontset_add): Fix for the case that TO is less than TO1.
20578 (Ffontset_info): Don't use fallback fontset on checking the
20579 default fontset.
20580 (dump_fontset): New function for debugging.
20581
20582 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20583 coding_type is Qcharset.
20584
205852008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20588 (map_char_table): Don't inherit the value from the parent on
20589 initializing VAL. Adjust for the above change.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * coding.c (Qsignature, Qendian): Delete these variables.
20594 (syms_of_coding): Don't initialize them.
20595 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20596 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20597 detect_info->found.
20598 (decode_coding_utf_16): Don't detect BOM here.
20599 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20600 is NOT utf_16_without_bom.
20601 (setup_coding_system): For a coding system of type utf-16, check
20602 if the attribute :endian is Qbig or not (not nil or not), and set
20603 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20604 (detect_coding): If coding type is utf-16 and BOM detection is
20605 required, detect it.
20606 (Fdefine_coding_system_internal): For a coding system of type
20607 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20608
206092008-02-01 Kenichi Handa <handa@m17n.org>
20610
20611 * coding.c (coding_set_source): Fix for the case that the current
20612 buffer is different from coding->src_object.
20613 (decode_coding_object): Don't use the conversion work buffer if
20614 DST_OBJECT is a buffer.
20615
206162008-02-01 Dave Love <fx@gnu.org>
20617
20618 * lread.c (read_emacs_mule_char) [len==2]: Index
20619 emacs_mule_charset correctly.
20620
206212008-02-01 Dave Love <fx@gnu.org>
20622
20623 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20624 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20625 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20626 treated specially.)
20627 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20628 (detected_mask): Remove Big5 bits.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 The following changes are to make the font rescaling facility
20633 compatible with Emacs 21.
20634
20635 * xfaces.c (Vface_font_rescale_alist): Rename from
20636 Vface_resizing_fonts.
20637 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20638 (font_rescale_ratio): Rename from font_resizing_ratio.
20639 (split_font_name): Set font->rescale_ratio.
20640 (better_font_p): Pay attention to font->rescale_ratio.
20641 (build_scalable_font_name): Likewise. Change RESX, and RESY
20642 fields.
20643 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20644
206452008-02-01 Kenichi Handa <handa@m17n.org>
20646
20647 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20648 (Qutf_16_le): Remove these variables.
20649 (syms_of_coding): Don't DEFSYM them.
20650 (decode_coding_utf_16): Fix handling of BOM.
20651 (encode_coding_utf_16): Fix handling of BOM.
20652
206532008-02-01 Kenichi Handa <handa@m17n.org>
20654
20655 * fileio.c (Finsert_file_contents): On replacing, before decoding
20656 the file into the work buffer, set point of the work buffer to the end.
20657
206582008-02-01 Dave Love <fx@gnu.org>
20659
20660 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20661
206622008-02-01 Dave Love <fx@gnu.org>
20663
20664 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20665 and fix C types.
20666
206672008-02-01 Kenichi Handa <handa@m17n.org>
20668
20669 * xdisp.c (SKIP_GLYPHS): New macro.
20670 (set_cursor_from_row): Pay attention to string display properties.
20671
20672 * category.c (copy_category_entry): Fix for the case that RANGE
20673 is an integer.
20674
20675 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20676
20677 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20678
206792008-02-01 Kenichi Handa <handa@m17n.org>
20680
20681 * charset.c (Fcharset_id_internal): New function.
20682 (syms_of_charset): Defsubr it.
20683
20684 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20685 with the last arg charset_list acquired from coding.
20686 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20687 the attribute coding_attr_ccl_valids.
20688
20689 * coding.h (enum define_coding_ccl_arg_index): Set the first
20690 member coding_arg_ccl_decoder to coding_arg_max.
20691
20692 * ccl.h (ccl_driver): Adjust prototype.
20693
20694 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20695 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20696 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20697 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20698 last arg Qnil.
20699
207002008-02-01 Kenichi Handa <handa@m17n.org>
20701
20702 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20703 call encode_char.
20704
20705 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20706
207072008-02-01 Dave Love <fx@gnu.org>
20708
20709 * composite.c (syms_of_composite): Make composition_hash_table weak.
20710
207112008-02-01 Kenichi Handa <handa@m17n.org>
20712
20713 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20714 (font_name_registry): Don't extern them.
20715 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20716
20717 * fontset.h (Qfontset): Don't extern it.
20718 (new_fontset_from_font_name): Extern it.
20719
20720 * fontset.c: Give 8 extra slots to fontset objects.
20721 (Qfontset_info): New variable.
20722 (syms_of_fontset): Defsym it.
20723 (FONTSET_FALLBACK): New macro.
20724 (fontset_face): Try also the default fontset.
20725 (make_fontset): Realize a fallback fontset from the default fontset.
20726 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20727 using split_font_name_into_vector and build_font_name_from_vector.
20728 (Fset_fontset_font): Access the elements of font_spec by enum
20729 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20730 name by using split_font_name_into_vector.
20731 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20732 generate a proper font name from the fontset name. Update
20733 Vfontset_alias_alist.
20734 (n_auto_fontsets): New variable.
20735 (new_fontset_from_font_name): New function.
20736 (Ffont_info): Store the information about fonts generated from the
20737 default fontset in the first extra slot of the returned char-table.
20738
20739 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20740 (font_name_registry): Delete function.
20741 (split_font_name_into_vector): New function.
20742 (build_font_name_from_vector): New function.
20743 (font_list): The argument REGISTRY is now a list of registry names.
20744 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20745 specifies an explicit font name, return the name as is. Make a
20746 list of registy names.
20747
20748 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20749 of x_new_fontset.
20750 (Fx_create_frame): Don't call x_new_fontset here. Just use
20751 x_list_fonts to check the existence of fonts.
20752
20753 * xterm.h (x_new_fontset): Adjust prototype.
20754
20755 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20756 string. Use new_fontset_from_font_name to create a fontset from a
20757 font name.
20758
207592008-02-01 Kenichi Handa <handa@m17n.org>
20760
20761 * syntax.c (Vfind_word_boundary_function_table): New name for
20762 Vnext_word_boundary_function_table.
20763 (find-word-boundary-function-table): New name for
20764 next-word-boundary-function-table.
20765
207662008-02-01 Dave Love <fx@gnu.org>
20767
20768 * Makefile.in: Fix some dependencies.
20769
20770 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20771 set it to nil before returning.
20772
20773 * composite.c (update_compositions): Fix type error.
20774
20775 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20776
207772008-02-01 Kenichi Handa <handa@m17n.org>
20778
20779 * xterm.c (x_new_font): Optimize for the case that the font is
20780 already set for the frame.
20781
207822008-02-01 Kenichi Handa <handa@m17n.org>
20783
20784 * chartab.c (char_table_ascii): Check if the char table contents
20785 is sub-char-table or not.
20786 (char_table_set, char_table_set_range): Fix argument to
20787 char_table_ascii.
20788
20789 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20790 (detect_coding_utf_8, detect_coding_utf_16)
20791 (detect_coding_emacs_mule, detect_coding_iso_2022)
20792 (detect_coding_sjis, detect_coding_big5)
20793 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20794 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20795 sequence is valid in this coding system. Change callers.
20796 (MAX_ANNOTATION_LENGTH): New macro.
20797 (ADD_ANNOTATION_DATA): New macro.
20798 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20799 ADD_ANNOTATION_DATA. Change the format of annotation data.
20800 (ADD_CHARSET_DATA): New macro.
20801 (emacs_mule_char): New argument ID. Change callers.
20802 (decode_coding_emacs_mule, decode_coding_iso_2022)
20803 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20804 Produce charset annotation data in coding->charbuf.
20805 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20806 to charset annotation data in coding->charbuf.
20807 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20808 coding->common_flags if the coding system is iso-2022 based and
20809 uses designation.
20810 (produce_composition): Adjust for the new annotation data format.
20811 (produce_charset): New function.
20812 (produce_annotation): Handle charset annotation.
20813 (handle_composition_annotation, handle_charset_annotation): New
20814 functions.
20815 (consume_chars): Handle charset annotation. Utilize the above two
20816 functions.
20817 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20818 buffer, get the deleted text as a string and set
20819 coding->src_object to that string.
20820 (detect_coding, detect_coding_system): Use the new struct
20821 coding_detection_info.
20822
20823 * coding.h (struct coding_detection_info): New structure.
20824 (struct coding_system): Adjust prototype of the member `detector'.
20825 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20826
208272008-02-01 Kenichi Handa <handa@m17n.org>
20828
20829 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20830
208312008-02-01 Dave Love <fx@gnu.org>
20832
20833 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20834 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20835 to new local and nullify apropos_accumulate before returning.
20836 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20841 correctly.
e3eea1fc 20842
aac0c6e3
MR
208432008-02-01 Dave Love <fx@gnu.org>
20844
20845 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 The following changes are to make character composition happen
20850 automatically on displaying.
20851
20852 * Makefile.in (lisp, shortlisp): Add composite.elc.
20853
20854 * composite.h (Qauto_composed, Vauto_composition_function)
20855 (Qauto_composition_function): Extern them.
20856
20857 * composite.c (Vcomposition_function_table)
20858 (Qcomposition_function_table): Delete variables.
20859 (Qauto_composed, Vauto_composition_function)
20860 (Qauto_composition_function): New variables.
20861 (run_composition_function): Don't call
20862 compose-chars-after-function.
20863 (update_compositions): Clear `auto-composed' text property.
20864 (compose_chars_in_text): Delete this function.
20865 (syms_of_composite): Staticpro Qauto_composed and
20866 Qauto_composition_function. Declare Vauto_composition_function as
20867 a Lisp variable.
20868
20869 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20870
20871 * xdisp.c (it_props): Add an entry for Qauto_composed.
20872 (handle_auto_composed_prop): New function.
20873
20874 * xselect.c (selection_data_to_lisp_data): Don't call
20875 compose_chars_in_text.
20876
208772008-02-01 Dave Love <fx@gnu.org>
20878
20879 * keyboard.c (read_char): Modify checking around use of
20880 Vkeyboard_translate_table.
20881
20882 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20883 and fix C types.
20884
208852008-02-01 Kenichi Handa <handa@m17n.org>
20886
20887 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20888 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20889 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20890 the case that the last byte is '\r' correctly.
20891 (decode_coding): Flush out the unprocessed data correctly.
20892 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20893
208942008-02-01 Dave Love <fx@gnu.org>
20895
20896 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20897 Add XK_ISO... case.
20898 (xaw_scroll_callback): Revert last change.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20903
209042008-02-01 Kenichi Handa <handa@m17n.org>
20905
20906 * xfaces.c (Vface_resizing_fonts): New variable.
20907 (struct font_name): New member `resizing_ratio'.
20908 (font_resizing_ratio): New function.
20909 (split_font_name): Set font->resizing_ratio.
20910 (better_font_p): Pay attention to font->resizing_ratio.
20911 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20912 RESX, and RESY fields.
20913 (try_alternative_families): Try scalable fonts if
20914 Vscalable_fonts_allowed is not Qt.
20915 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20916
209172008-02-01 Dave Love <fx@gnu.org>
20918
20919 * xterm.c (xaw_scroll_callback): Cast correctly.
20920
209212008-02-01 Dave Love <fx@gnu.org>
20922
20923 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20924 (lispy_kana_keys): Comment out.
20925 (make_lispy_event) [XK_kana_A]: Comment out.
20926
20927 * xterm.c (xaw_scroll_callback): Cast call_data.
20928 (XTread_socket): Deal with ASCII keysyms.
20929 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20930
209312008-02-01 Dave Love <fx@gnu.org>
20932
20933 * xterm.c (Vx_keysym_table): New.
20934 (syms_of_xterm): Initialize it.
20935 (XTread_socket): Use it.
20936 From head: Eliminate incorrect optimization that tried to avoid
20937 decoding the output of X*LookupString.
20938 (x_get_font_repertory): Delete charset declaration.
20939
209402008-02-01 Kenichi Handa <handa@m17n.org>
20941
20942 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20943 return 0.
20944 (Fdefine_coding_system_internal): Setup
20945 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20946
209472008-02-01 Dave Love <fx@gnu.org>
20948
20949 * coding.c (Fcheck_coding_system): Doc fix.
20950
20951 * editfns.c (Finsert_byte): Return a proper value.
20952
209532008-02-01 Kenichi Handa <handa@m17n.org>
20954
20955 * coding.c (decode_coding): Fix args to translate_chars. Pay
20956 attention to Vstandard_translation_table_for_decode.
20957 (encode_coding): Fix args to translate_chars. Pay attention to
20958 Vstandard_translation_table_for_encode.
20959
20960 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20961 SINGLE_BYTE_CHAR_P.
20962
20963 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20964 not by SINGLE_BYTE_CHAR_P.
20965
20966 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20967 SINGLE_BYTE_CHAR_P.
20968
20969 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20970 SINGLE_BYTE_CHAR_P.
20971
20972 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20973 by SINGLE_BYTE_CHAR_P.
20974
20975 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20976 SINGLE_BYTE_CHAR_P.
20977
209782008-02-01 Dave Love <fx@gnu.org>
20979
20980 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20981
209822008-02-01 Dave Love <fx@gnu.org>
20983
20984 * fns.c (Flanginfo): Fix typo.
20985
20986 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20987
209882008-02-01 Kenichi Handa <handa@m17n.org>
20989
20990 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20991 (detect_coding_emacs_mule, detect_coding_iso_2022)
20992 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20993 incomplete byte sequence. Don't update *mask when correctly detected.
20994 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20995 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20996 (detect_coding, detect_coding_system): Adjust for the changes above.
20997
209982008-02-01 Kenichi Handa <handa@m17n.org>
20999
21000 * character.c (char_string): Rename from
21001 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21002 (string_char): Rename from string_char.
21003
21004 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21005 if C is greater than MAX_3_BYTE_CHAR.
21006 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21007 string_char instead of string_char_with_unification.
21008
210092008-02-01 Dave Love <fx@gnu.org>
21010
21011 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21012
210132008-02-01 Kenichi Handa <handa@m17n.org>
21014
21015 * keymap.c (push_key_description): Pay attention to force_multibyte.
21016
21017 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21018
210192008-02-01 Dave Love <fx@gnu.org>
21020
21021 * charset.c (define_charset_internal): Rename `supprementary'.
21022
21023 * Makefile.in (lisp, shortlisp): Remove latin-N.
21024
210252008-02-01 Dave Love <fx@gnu.org>
21026
21027 * xfns.c (x_window, x_window): Use use_xim.
21028
21029 * xterm.c (use_xim): Initialize.
21030 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21031 (x_term_init): Maybe set use_xim.
21032
21033 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21034
210352008-02-01 Kenichi Handa <handa@m17n.org>
21036
21037 * search.c (search_buffer): Fix case-fold-search of multibyte
21038 characters.
21039 (boyer_moore): Rename the last argument to char_high_bits.
21040
210412008-02-01 Kenichi Handa <handa@m17n.org>
21042
21043 * xdisp.c (display_string): Fix for the case of zero width glyph.
21044
21045 * xfns.c (x_set_font): Change the error message of the case that
21046 x_new_fontset returns Qt.
21047
21048 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21049 (Finternal_set_lisp_face_attribute): Use signal_error for the
21050 error of invalid fontset.
21051
21052 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21053 fontset, return Qt.
21054
210552008-02-01 Dave Love <fx@gnu.org>
21056
21057 * unexelf.c (unexec): Make .got handling not SGI-specific.
21058
21059 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21060
21061 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21062
21063 * keyboard.c (read_key_sequence): Fix type error.
21064
21065 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21066 type error.
21067
21068 * fontset.c (fontset_add): Return Lisp_Object.
21069
210702008-02-01 Dave Love <fx@gnu.org>
21071
21072 * charset.h (charset_ordered_list_tick): Declare extern.
21073
210742008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 The following changes (and some of 2008-02-01 changes of mine) are
21077 for handling syntax, category, and case conversion for unibyte
21078 characters by converting them to multibyte on the fly. With these
21079 changes, we don't have to setup syntax and case tables for unibyte
21080 characters in each language environment.
21081
21082 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21083 multibyte if necessary.
21084
21085 * bytecode.c (Fbyte_code): Likewise.
21086
21087 * character.h (LEADING_CODE_LATIN_1_MIN)
21088 (LEADING_CODE_LATIN_1_MAX): New macros.
21089 (unibyte_to_multibyte_table): Extern it.
21090 (unibyte_char_to_multibyte): New macro.
21091 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21092 (CHAR_LEADING_CODE): New macro.
21093 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21094
21095 * character.c (unibyte_to_multibyte_table): New variable.
21096 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21097 (multibyte_char_to_unibyte): If C is an eight-bit character,
21098 convert it to the corresponding byte value.
21099
21100 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21101 not 1, signals an error. Update the elements of
21102 unibyte_to_multibyte_table.
21103 (init_charset_once): Initialize unibyte_to_multibyte_table.
21104 (syms_of_charset): Define the charset `iso-8859-1'.
21105
21106 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21107 as is without converting it to unibyte. In a unibyte buffer,
21108 convert C to multibyte before checking the syntax.
21109
21110 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21111
21112 * minibuf.c (Fminibuffer_complete_word): Use the macro
21113 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21114
21115 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21116
21117 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21118 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21119 that is zero, convert an eight-bit char to multibyte.
21120 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21121 non-emacs case.
21122 (PATFETCH): Convert an eight-bit char to multibyte.
21123 (HANDLE_UNIBYTE_RANGE): New macro.
21124 (regex_compile): Setup the compiled pattern for multibyte chars
21125 even if the given regex string is unibyte. Use PATFETCH_RAW
21126 instead of PATFETCH in many places. To handle `charset'
21127 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21128 only for ASCII chars.
21129 (analyse_first) <exactn>: Simplify because the compiled pattern
21130 is multibyte.
21131 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21132 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21133 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21134 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21135 multibyte always 1.
21136 (re_search_2): In emacs, set the locale variable multibyte to 1,
21137 otherwise to 0. New local variable target_multibyte. Check it
21138 to decide the multibyteness of STR1 and STR2. If
21139 target_multibyte is zero, convert unibyte chars to multibyte
21140 before translating and checking fastmap.
21141 (TARGET_CHAR_AND_LENGTH): New macro.
21142 (re_match_2_internal): In emacs, set the locale variable multibyte
21143 to 1, otherwise to 0. New local variable target_multibyte. Check
21144 it to decide the multibyteness of STR1 and STR2. Use
21145 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21146 <charset, charset_not>: If multibyte is nonzero, check fastmap
21147 only for ASCII chars. Call bcmp_translate with
21148 target_multibyte, not with multibyte.
21149 <begline>: Declare the local variable C as `unsigned'.
21150 (bcmp_translate): Change the last arg name to target_multibyte.
21151
21152 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21153 the regexp pattern and the matching target. Set cp->buf.multibyte
21154 to the multibyteness of the regexp pattern. Set
21155 cp->but.target_multibyte to the multibyteness of the matching target.
21156 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21157 FETCH_STRING_CHAR_ADVANCE.
21158 (Freplace_match): Convert unibyte chars to multibyte.
21159
21160 * syntax.c (char_quoted, back_comment, scan_words)
21161 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21162 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21163 unibyte chars to multibyte.
21164 (skip_chars): Delete the arg syntaxp, and move the code for
21165 handling syntaxes to skip_syntaxes. Change callers.
21166 Fix the case that the multibyteness of STRING and the current
21167 buffer doesn't match.
21168 (skip_syntaxes): New function.
21169 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21170 SINGLE_BYTE_CHAR_P.
21171
211722008-02-01 Kenichi Handa <handa@m17n.org>
21173
21174 * xfaces.c (QCfontset): New variable.
21175 (LFACE_FONTSET): New macro.
21176 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21177 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21178 (Finternal_set_lisp_face_attribute)
21179 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21180 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21181 check also LFACE_FONTSET_INDEX.
21182 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21183 attrs[LFACE_FONT_INDEX].
21184 (syms_of_xfaces): Intern and staticpro QCfontset.
21185
21186 * dispextern.h (enum lface_attribute_index): New member
21187 LFACE_FONTSET_INDEX.
21188
21189 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21190
211912008-02-01 Kenichi Handa <handa@m17n.org>
21192
21193 * coding.c (coding_set_destination): Fix coding->destination for
21194 the case converting a region.
21195 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21196 (encode_coding_object): Fix coding->dst_pos and
21197 coding->dst_pos_byte for the case converting a region.
21198
21199 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21200
21201 * character.h (BYTE8_STRING): New macro.
21202
21203 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21204
212052008-02-01 Kenichi Handa <handa@m17n.org>
21206
21207 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21208 characters by octal form.
21209
21210 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21211
21212 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21213 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21214 _fetch_multibyte_char_len.
21215 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21216
21217 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21218
21219 * casefiddle.c (casify_object): Simplify. Handle the case that
21220 the case conversion change the byte length.
21221 (casify_region): Likewise.
21222
21223 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21224
21225 * character.c (_fetch_multibyte_char_len): Delete this variable.
21226 (syms_of_character): Setup Vprintable_chars.
21227
21228 * editfns.c (Fchar_equal): Fix for the unibyte case.
21229 (Finsert_byte): New function.
21230 (syms_of_editfns): Defsubr it.
21231
21232 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21233 of direct code 0x3ffff.
21234
21235 * search.c (Freplace_match): Fix for the unibyte case.
21236
212372008-02-01 Kenichi Handa <handa@m17n.org>
21238
21239 * lread.c (safe_to_load_p): Fix the logic.
21240
21241 * syntax.c (scan_words): Don't treat characters belonging to
21242 different scripts as constituting a word.
21243
21244 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21245
21246 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21247
21248 * emacs.c (main): In the case of --unibyte, instead of aborting on
21249 finding non-empty buffer, make it unibyte.
21250
212512008-02-01 Kenichi Handa <handa@m17n.org>
21252
21253 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21254 to create a fontset.
21255
212562008-02-01 Dave Love <fx@gnu.org>
21257
21258 * character.c (Funibyte_char_to_multibyte): Doc fix.
21259
21260 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21261
212622008-02-01 Kenichi Handa <handa@m17n.org>
21263
21264 * fontset.c (fontset_add): Make the type `int'.
21265 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21266
21267 * character.c (unibyte_char_to_multibyte)
21268 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21269 charset_unibyte, not charset_primary.
21270
21271 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21272
21273 * charset.c (charset_unibyte): Rename from charset_primary.
21274 (Funibyte_charset): Rename from Fprimary_charset.
21275 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21276 (syms_of_charset): Adjust for the above changes.
21277
21278 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21279 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21280 it->multibyte_p is zero.
21281
21282 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21283 Delete extern.
21284
212852008-02-01 Kenichi Handa <handa@m17n.org>
21286
21287 * coding.c (Fdefine_coding_system_internal): Fix category setting
21288 for a coding system of type iso-2022.
21289
212902008-02-01 Kenichi Handa <handa@m17n.org>
21291
21292 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21293
212942008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * syntax.c (Vnext_word_boundary_function_table): New variable.
21297 (next-word-boundary-function-table): Declare it as a Lisp variable
21298 in syms_of_syntax.
21299 (scan_words): Call functions in Vnext_word_boundary_function_table
21300 if any.
21301
21302 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21303
21304 * fontset.c (fs_load_font): If fontp->charset is not negative,
21305 return fontp without setting its members.
21306
213072008-02-01 Dave Love <fx@gnu.org>
21308
21309 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21310
21311 * m/sparc.h (HAVE_ALLOCA): Delete.
21312
21313 * s/irix6-5.h: Don't include strings.h.
21314 (bcopy, bzero, bcmp): Don't undef.
21315
21316 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21317
21318 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21319 (TIOCSIGSEND): Don't test IRIX6.
21320 (bcopy, bzero, bcmp): Define conditionally.
21321
213222008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * buffer.c (Qas, Qmake, Qto): New variables.
21325 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21326 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21327
21328 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21329 we are inserting a process output into a multibyte buffer.
21330
21331 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21332 multibyte_char_to_unibyte.
21333
21334 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21335 by the primary charset, make it eight-bit char.
21336 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21337
21338 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21339 (charset_8_bit__control, charset_8_bit_graphic)
21340 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21341 (define_charset_internal): New function.
21342 (syms_of_charset): Call define_charset_internal for pre-defined
21343 charsets.
21344
21345 * charset.h (charset_8_bit): Extern it.
21346
21347 * coding.c (make_conversion_work_buffer): Adjust for the change
21348 of Fset_buffer_multibyte.
21349 (encode_coding_raw_text): Increment p0 in the loop.
21350
21351 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21352
21353 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21354 for the change of Fset_buffer_multibyte.
21355
21356 * fns.c (Fstring_to_multibyte): New function.
21357 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21358
213592008-02-01 Dave Love <fx@gnu.org>
21360
21361 * xfns.c (x_put_x_image): Declare args.
21362
21363 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21364 (try_font_list): Declare an arg.
21365
21366 * xdisp.c (message2_nolog, set_message): Declare an arg.
21367
21368 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21369
21370 * syntax.c (scan_sexps_forward): Declare an arg.
21371
21372 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21373 Declare an arg.
21374
21375 * lisp.h (Fnew_fontset): Declare.
21376
21377 * keymap.c (push_key_description): Call CHARACTERP correctly.
21378
21379 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21380 (face_for_char): Delete unused vars.
21381 (Fset_fontset_font): Doc fix. Delete unused vars.
21382
21383 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21384
21385 * composite.c (update_compositions): Declare arg.
21386
21387 * cm.c (calccost, cmgoto): Declare args.
21388
21389 * charset.c: Remove `emacs' conditional. Doc fixes.
21390 (map_char_table_for_charset): Declare.
21391
21392 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21393
21394 * ccl.c: Remove `emacs' conditional.
21395
213962008-02-01 Kenichi Handa <handa@m17n.org>
21397
21398 The following changes are to allow specifying multiple font
21399 patterns for a character range (specified by script or charset).
21400
21401 * Makefile.in (abbrev.o): Depend on syntax.h.
21402 (xfaces.o): Depend on charset.h.
21403
21404 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21405 SINGLE_BYTE_CHAR_P.
21406
21407 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21408
21409 * character.h (Vchar_script_table): Extern it.
21410
21411 * character.c (Vscript_alist): Delete.
21412 (Vchar_script_table, Qchar_script_table): New variable.
21413 (syms_of_character): Declare Vchar_script_table as a lisp variable
21414 and initialize it.
21415
21416 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21417 have property char-table-extra-slots, make no extra slot.
21418
21419 * dispextern.h (struct face): Delete member `charset'.
21420 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21421 SINGLE_BYTE_CHAR_P.
21422 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21423 Add prototypes.
21424 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21425 (generate_ascii_font_name): Rename from generate_ascii_font.
21426
21427 * fontset.h (get_font_repertory_func): New prototype.
21428 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21429 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21430
21431 * fontset.c (Qprepend, Qappend): New variables.
21432 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21433 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21434 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21435 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21436 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21437 (load_font_get_repertory): New functions.
21438 (fontset_set): Delete.
21439 (fontset_face): New arg FACE. Return face ID, not face.
21440 Complete re-write to handle new fontset structure. Change caller.
21441 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21442 (face_for_char): Don't call lookup_face.
21443 (make_fontset_for_ascii_face): New arg FACE.
21444 (fs_load_font): New arg CHARSET_ID. Don't check
21445 Vfont_encoding_alist here.
21446 (find_font_encoding): New function.
21447 (list_fontsets): Use STRINGP, not ! NILP.
21448 (accumulate_script_ranges): New function.
21449 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21450 re-written to handle new fontset structure.
21451 (Ffontset_font): Return a copy of element.
21452 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21453 docstring of font-encoding-alist.
21454
21455 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21456 (Fset_fotset_font): Fix arguments to 5.
21457
21458 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21459
21460 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21461 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21462 (highlight_trailing_whitespace): Adjust for the change of
21463 lookup_named_face.
21464
21465 * xfaces.c: Include charset.h.
21466 (load_face_font): Delete argument C. Change caller.
21467 (generate_ascii_font_name): Rename from generate_ascii_font.
21468 (font_name_registry): New function.
21469 (cache_face): Store ascii faces before non-ascii faces in buckets.
21470 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21471 Lookup only ascii faces.
21472 (lookup_non_ascii_face): New function.
21473 (lookup_named_face): Delete argument C. Change caller.
21474 (lookup_derived_face): Delete argument C. Change caller.
21475 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21476 a string, just call font_list with it.
21477 (choose_face_font): Delete arguments FACE and C. New arg
21478 FONT_SPEC. Change caller.
21479 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21480 Change caller.
21481 (realize_non_ascii_face): New function.
21482 (realize_x_face): Call load_face_font here.
21483 (realize_tty_face): Delete argument C. Change caller.
21484 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21485 get a face ID.
21486 (dump_realized_face): Don't print charset of FACE.
21487
21488 * xfns.c (x_set_font): Always call x_new_fontset and
21489 store_frame_parameter.
21490 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21491 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21492
21493 * xterm.h (x_get_font_repertory): Extern it.
21494
21495 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21496 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21497 it->multibyte_p is zero.
21498 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21499 (x_new_fontset): If FONTSETNAME doesn't match any existing
21500 fontsets, create a new one.
21501 (x_get_font_repertory): New function.
21502
215032008-02-01 Kenichi Handa <handa@m17n.org>
21504
21505 * coding.c (Ffind_coding_systems_region_internal): Detect an
21506 ASCII only string correctly.
21507
21508 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21509 version is 0.
21510
215112008-02-01 Kenichi Handa <handa@m17n.org>
21512
21513 * lread.c: Include "coding.h".
21514 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21515 (load_each_byte, unread_char): New variables.
21516 (readchar_backlog): Delete.
21517 (readchar): Return a character unless load_each_byte is nonzero.
21518 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21519 cons. If unread_char is not -1, simply return it.
21520 (unreadchar): Handle the case that readcharfun is
21521 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21522 (read_multibyte): Delete.
21523 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21524 (read_emacs_mule_char): New functions.
21525 (Fload): Even if the file doesn't have the extension ".elc", if
21526 safe_to_load_p returns a positive version number, assume that the
21527 file contains bytecompiled code. If the version is less than 22,
21528 load the file while decoding multibyte sequences by emacs-mule.
21529 (readevalloop): Don't use readchar_backlog.
21530 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21531 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21532 (read_escape): Delete the arg BYTEREP.
21533 (read1): Set load_each_byte to 1 temporarily while handling
21534 #@NUMBER. Don't call read_multibyte.
21535 (read_vector): Call Fread with a cons. If readcharfun is
21536 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21537 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21538 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21539 and Qload_force_doc_strings.
21540
215412008-02-01 Kenichi Handa <handa@m17n.org>
21542
21543 * xdisp.c (face_before_or_after_it_pos): Call
21544 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21545
215462008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 * character.h (TRAILING_CODE_P): New macro.
21549 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21550 (string_char_with_unification): Fix prototype.
21551 (Vscript_alist): Extern it.
21552
21553 * character.c (Vscript_alist): New variable.
21554 (string_char_with_unification, str_as_unibyte)
21555 (string_escape_byte8): Add `const' to local variables.
21556 (syms_of_character): Declare script-alist as a Lisp variable.
21557
21558 * charset.h (Vcharset_ordered_list): Extern it.
21559 (charset_ordered_list_tick): Extern it.
21560 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21561 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21562 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21563 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21564 (Funify_charset): Adjust for the change of Funify_charset.
21565
21566 * charset.c (charset_ordered_list_tick): New variable.
21567 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21568 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21569 deunify instead of unify a charset.
aac0c6e3
MR
21570 (string_xstring_p): Add `const' to local variables.
21571 (find_charsets_in_text): Add `const' to arguments and local variables.
21572 (encode_char): Adjust for the change of Funify_charset. Fix
21573 detecting of invalid code.
21574 (Fset_charset_priority): Increment charset_ordered_list_tick.
21575 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21576 and TO_CODE.
21577
21578 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21579 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21580 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21581 (decode_coding_ccl, consume_chars)
21582 (Ffind_coding_systems_region_internal)
21583 (Fcheck_coding_systems_region): Add `const' to local variables.
21584
21585 * print.c (print_object): Use octal form for printing the
21586 contents of a bool vector.
21587
215882008-02-01 Dave Love <fx@gnu.org>
21589
21590 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21591 <version == 20>: Refuse to load.
21592
215932008-02-01 Dave Love <fx@gnu.org>
21594
21595 * fns.c: Move coding.h.
21596 (Qcodeset, Qdays, Qmonths): New.
21597 (concat): Use CHARACTERP instead of INTEGERP.
21598 (Flocale_codeset): Delete.
21599 (Flanginfo): New function.
21600 (syms_of_fns): Change accordingly.
21601
21602 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21603
216042008-02-01 Dave Love <fx@gnu.org>
21605
21606 * casetab.c (init_casetab_once, init_casetab_once): Fix
21607 CHAR_TABLE_SET call.
21608
21609 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21610
21611 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21612
21613 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21614 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21615 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21616
21617 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21618
21619 * coding.c (ENCODE_DESIGNATION, decode_eol)
21620 (make_conversion_work_buffer, code_conversion_restore)
21621 (Fdefine_coding_system_internal): Convert Lisp types.
21622 (code_conversion_restore): Use EQ, not ==.
21623 (Fencode_coding_string): Fix code_convert_string call.
21624
21625 * coding.h (code_convert_region): Fix prototype.
21626
21627 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21628
21629 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21630 (Ffontset_info): Convert Lisp types.
21631
21632 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21633
21634 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21635
21636 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21637
21638 * chartab.c: Include "...h", not <...h> in some cases.
21639
21640 * callproc.c (Fcall_process): Remove unused variables.
21641
216422008-02-01 Dave Love <fx@gnu.org>
21643
21644 * coding.c (Fset_coding_system_priority): Allow null arg list.
21645
216462008-02-01 Dave Love <fx@gnu.org>
21647
21648 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21649 (Fself_insert_and_exit): Use CHARACTERP.
21650
21651 * callproc.c (Fcall_process): Remove unused vars.
21652
21653 * xterm.c (XTread_socket): Add extra dead keysyms.
21654
21655 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21656
21657 * dispextern.h: Remove prototypes for redraw_frame,
21658 redraw_garbaged_frames.
21659
21660 * cmds.c (Fself_insert_command): Use CHARACTERP.
21661
21662 * chartab.c (make_sub_char_table): Remove unused var.
21663 (Fset_char_table_default, Fmap_char_table): Doc fix.
21664
21665 * keymap.c (access_keymap): Remove generic char code.
21666 (push_key_description): Use CHARACTERP.
21667
216682008-02-01 Dave Love <fx@gnu.org>
21669
21670 * charset.c: Doc fixes.
21671 (Funify_charset): Extra checking.
21672
216732008-02-01 Dave Love <fx@gnu.org>
21674
21675 * lread.c: Remove some unused variables.
21676 (safe_to_load_p): If safe, return the magic number version byte.
21677 (Fload): Maybe use load-with-code-conversion.
21678
216792008-02-01 Kenichi Handa <handa@m17n.org>
21680
21681 * category.c (Fmodify_category_entry): Don't modify the contents
21682 of category_set for characters out of the range. Avoid
21683 unnecessary modification.
21684
21685 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21686 Vchar_unify_table. The default value of the table is now nil.
21687
21688 * character.c (syms_of_character): Setup Vchar_width_table for
21689 eight-bit-control and raw-byte chars.
21690
21691 * charset.h (enum define_charset_arg_index): Delete
21692 charset_arg_parents and add charset_arg_subset and
21693 charset_arg_superset.
21694 (enum charset_attr_index): Delete charset_parents and add
21695 charset_subset and charset_superset.
21696 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21697 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21698 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21699 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21700 (CHARSET_SUPERSET): New macros.
21701 (charset_work): Extern it.
21702 (ENCODE_CHAR): Use charset_work.
21703 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21704 (map_charset_chars): Extern it.
21705
21706 * charset.c (load_charset_map): Set the default value of encoder
21707 and deunifier char-tables to nil.
21708 (map_charset_chars): Change argument. Change callers. Use
21709 map_char_table_for_charset instead of map_char_table.
21710 (Fmap_charset_chars): New optional args from_code and to_code.
21711 (Fdefine_charset_internal): Adjust for the change of
21712 `define-charset' (:parents -> :subset or :superset).
21713 (charset_work): New variable.
21714 (encode_char, syms_of_charset): Adjust for the change of
21715 Fdefine_charset_internal.
21716 (Ffind_charset_string): Setup the vector `charsets' correctly.
21717
21718 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21719 the previous change.
21720 (char_table_ref_and_range): Adjust for the above change.
21721 (map_sub_char_table_for_charset): New function.
21722 (map_char_table_for_charset): New function.
21723
21724 * keymap.c (describe_vector): Handle a char-table directly here.
21725 (describe_char_table): Delete.
21726
21727 * lisp.h (map_charset_chars): Delete.
21728
217292008-02-01 Dave Love <fx@gnu.org>
21730
21731 * fns.c (count_combining): Comment out (unused).
21732 (Flocale_codeset): New.
21733 (syms_of_fns): Defsubr it.
21734
21735 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21736 (size_t): Remove.
21737
217382008-02-01 Dave Love <fx@gnu.org>
21739
21740 * Makefile.in (chartab.o): Depend on charset.h.
21741
217422008-02-01 Kenichi Handa <handa@m17n.org>
21743
21744 * character.c (syms_of_character): Set the default value of
21745 Vprintable_chars to Qnil.
21746
217472008-02-01 Dave Love <fx@gnu.org>
21748
21749 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21750
217512008-02-01 Kenichi Handa <handa@m17n.org>
21752
21753 * charset.c (load_charset_map): Handle the case that from < to
21754 correctly.
21755
21756 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21757 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21758 Pay attention to raw-8-bit chars.
21759
217602008-02-01 Kenichi Handa <handa@m17n.org>
21761
21762 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21763 It is not bytecompiled now.
21764
21765 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21766 (charset_jisx0208): New variables.
21767 (Fdefine_charset_internal): Setup them if appropriate.
21768 (init_charset_once): Initialize them to -1.
21769
21770 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21771 (charset_jisx0208): Extern them.
21772
21773 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21774 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21775 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21776 (setup_iso_safe_charsets): Fix arguments to Fassq.
21777 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21778 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21779 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21780 (encode_coding_iso_2022): Change the 1st arg to
21781 ENCODE_ISO_CHARACTER to a variable.
21782
217832008-02-01 Kenichi Handa <handa@m17n.org>
21784
21785 * charset.h (enum define_charset_arg_index): New enums
21786 charset_arg_min_code and charset_arg_max_code.
21787 (struct charset): New member char_index_offset.
21788
21789 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21790 Take charset->char_index_offset into account.
21791 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21792 args[charset_arg_max_code]. Setup charset.char_index_offset.
21793 (syms_of_charset): Fix args to Fdefine_charset_internal.
21794
217952008-02-01 Dave Love <fx@gnu.org>
21796
21797 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21798
217992008-02-01 Dave Love <fx@gnu.org>
21800
21801 * coding.c: Doc fixes.
21802 (Fcoding_system_aliases): Fix return value.
21803 (Qmac): Remove (duplicated) definition.
21804
218052008-02-01 Dave Love <fx@gnu.org>
21806
362654a6
JB
21807 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21808 New functions.
aac0c6e3
MR
21809
21810 * character.c (Fstring): Doc fix.
21811
21812 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21813
362654a6 21814 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21815 (font-encoding-alist): Doc fix.
21816
218172008-02-01 Dave Love <fx@gnu.org>
21818
21819 * term.c (costs_set): Declare static, non-initialized for pcc.
21820 (encode_terminal_code): Remove unused var.
21821
21822 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21823 for K&R.
21824
21825 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21826
21827 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21828 (suffixes): Move out of make_subsidiaries for K&R.
21829
21830 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21831
21832 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21833
218342008-02-01 Dave Love <fx@gnu.org>
21835
21836 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21837
21838 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21839
218402008-02-01 Yong Lu <lyongu@asia-infonet.com>
21841
21842 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21843
21844 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21845
218462008-02-01 Kenichi Handa <handa@m17n.org>
21847
21848 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21849 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21850
218512008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * coding.c (decode_coding_charset): Adjust for the change of
21854 Fdefine_coding_system_internal.
21855 (Fdefine_coding_system_internal): For a coding system of
21856 `charset' type, store a list of charset IDs in
21857 `charset_attr_charset_valids' element of coding attributes.
21858
218592008-02-01 Kenichi Handa <handa@m17n.org>
21860
21861 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21862 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21863 caller. Handle 2-byte and 3-byte charsets correctly.
21864 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21865 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21866 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21867 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21868 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21869 sequence.
21870 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21871 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21872 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21873 and alt&rule composition.
21874 (decode_coding_iso_2022): Handle composition correctly.
21875 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21876
21877 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21878 re-defining a charset. If the charset has :emacs-mule-id, setup
21879 emacs_mule_bytes.
21880 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21881
218822008-02-01 Kenichi Handa <handa@m17n.org>
21883
21884 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21885 (encode_coding_big5, encode_coding_charset): If coding requires safe
21886 encoding, produce a character specified by
21887 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21888
218892008-02-01 Dave Love <fx@gnu.org>
21890
21891 * xterm.c (XSetIMValues): Declare.
21892
21893 * process.c: Conditionally include sys/wait.h, pty.h.
21894
21895 * print.c (print_object): Fix print format for 64-bit systems.
21896
21897 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21898
21899 * buffer.c (emacs_strerror): Declare.
21900
21901 * fontset.c (Fclear_face_cache): Declare.
21902 (accumulate_font_info): Comment-out (unused).
21903 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21904 variables.
21905
21906 * character.h (string_escape_byte8): Declare.
21907
21908 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21909 unused vars.
21910 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21911 (Fmap_charset_chars): Doc fix.
21912
21913 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21914 (Fset_coding_system_priority, Fset_coding_system_priority)
21915 (Fdefine_coding_system_internal): Doc fix.
21916
219172008-02-01 Dave Love <fx@gnu.org>
21918
21919 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21920
219212008-02-01 Kenichi Handa <handa@m17n.org>
21922
21923 * character.c (string_escape_byte8): Make multibyte string with
21924 correct size.
21925
21926 * charset.c (Fmake_char): Delete unnecessary code.
21927
219282008-02-01 Kenichi Handa <handa@m17n.org>
21929
21930 * xfns.c (x_encode_text): Allocate coding.destination here, and
21931 call encode_coding_object with dst_object Qnil.
21932
21933 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21934 multibyte form correctly.
21935
21936 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21937 against Vfont_encoding_alist.
21938
21939 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21940 handling of charset list.
21941 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21942 (decode_coding_object): Move point to coding->dst_pos before
21943 calling post-read-conversion function.
21944 (encode_coding_object): Give correct arguments to
21945 pre-write-conversion. Ignore the return value of
21946 pre-write-conversion function. Pay attention to the case that
21947 pre-write-conversion changes the current buffer. If dst_object is
21948 Qt, even if coding->src_bytes is zero, allocate at least one byte
21949 to coding->destination.
21950
21951 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21952
21953 * charset.c (Fmake_char): Make it more backward compatible.
21954 (Fmap_charset_chars): Fix docstring.
21955
219562008-02-01 Dave Love <fx@gnu.org>
21957
21958 * coding.c: Doc fixes.
21959 (Fdefine_coding_system_alias): Use names, not symbols, in
21960 coding-system-alist.
21961
219622008-02-01 Kenichi Handa <handa@m17n.org>
21963
21964 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21965 of calling free_realized_face.
21966
219672008-02-01 Yong Lu <lyongu@asia-infonet.com>
21968
21969 * charset.c (read_hex): Don't treat SPC as a comment starter.
21970 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21971 (Fdecode_char): Fix typo.
21972
219732008-02-01 Kenichi Handa <handa@m17n.org>
21974
21975 * charset.h (struct charset): New member `code_space_mask'.
21976
21977 * coding.c (coding_set_source): Delete the local variable beg_byte.
21978 (encode_coding_charset, Fdefine_coding_system_internal):
21979 Delete the local variable charset.
21980 (Fdefine_coding_system_internal): Setup
21981 attrs[coding_attr_charset_valids] correctly.
21982
21983 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21984 member to check if CODE is valid or not.
21985 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21986 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21987 is within the range of charset->min_code and carset->max_code.
21988
219892008-02-01 Dave Love <fx@gnu.org>
21990
21991 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21992
21993 * dispextern.h (generate_ascii_font): Fix return type.
21994
21995 * xfaces.c (generate_ascii_font): Fix arg declaration.
21996
21997 * coding.c (coding_inherit_eol_type)
21998 (Fset_terminal_coding_system_internal)
21999 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22004 multiple charsets correctly.
22005
220062008-02-01 Kenichi Handa <handa@m17n.org>
22007
22008 * search.c (boyer_moore): Fix handling of multibyte character
22009 translation.
22010
22011 * xdisp.c (display_mode_element): When the variable `elt' is
22012 changed, update `this' and `lisp_string'.
22013
220142008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22017
22018 * callproc.c (Fcall_process): Be sure to give the current buffer
22019 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22020
22021 * charset.c (struct charset_map_entries): New struct.
22022 (load_charset_map): Rename from parse_charset_map. New args
22023 entries and n_entries. Change caller.
22024 (load_charset_map_from_file): Rename from load_charset_map.
22025 Change caller. New arg control_flag. Call load_charset_map at
22026 the tail.
22027 (load_charset_map_from_vector): New function.
22028 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22029 (encode_char): If the charset is compact, change a character index
22030 to a code point.
22031
22032 * coding.c (coding_alloc_by_making_gap): Check the case that the
22033 source and destination are the same correctly.
22034 (decode_coding_raw_text): Set coding->consumed_char and
22035 coding->consumed to 0.
22036 (produce_chars): If coding->chars_at_source is nonzero, update
22037 coding->consumed_char and coding->consumed before calling
22038 alloc_destination.
22039 (Fdefine_coding_system_alias): Register ALIAS in
22040 Vcoding_system_alist.
22041 (syms_of_coding): Define `no-conversion' coding system at the tail.
22042
22043 * fileio.c (Finsert_file_contents): Set coding_system instead of
22044 val. If the current buffer is multibyte, always call
22045 decode_coding_gap.
22046
22047 * xfaces.c (try_font_list): Give higher priority to fontset's
22048 family than face's family.
22049
220502008-02-01 Kenichi Handa <handa@m17n.org>
22051
22052 * callproc.c (Fcall_process): Be sure to give the current buffer
22053 to decode_coding_c_string.
22054
22055 * xfaces.c (try_font_list): Give a family specified in a fontset
22056 higher priority than a family specified in a face.
22057
220582008-02-01 Kenichi Handa <handa@m17n.org>
22059
22060 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22061 Fix arguments to insert_from_buffer.
22062
22063 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22064
220652008-02-01 Kenichi Handa <handa@m17n.org>
22066
22067 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22068 (decode_coding_gap): Set coding->dst_multibyte correctly.
22069
220702008-02-01 Kenichi Handa <handa@m17n.org>
22071
22072 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22073 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22074 (encode_coding_utf_16): Substitute coding->default_char for
22075 non-Unicode characters.
22076 (decode_coding): Don't call record_insert here.
22077 (setup_coding_system): Initialize `surrogate' of
22078 coding->spec.utf_16 to 0.
22079 (EMIT_ONE_BYTE): Fix for multibyte case.
22080
22081 * insdel.c (insert_from_gap): Call record_insert.
22082
220832008-02-01 Kenichi Handa <handa@m17n.org>
22084
22085 * casefiddle.c (casify_region): Fix multibyte case.
22086
22087 * character.c (c_string_width): Add return type `int'.
22088 (char_string_with_unification): Delete arg ADVANCED.
22089
22090 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22091 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22092 (CHAR_STRING_ADVANCE): Make it do-while statement.
22093
22094 * chartab.c (sub_char_table_set_range): Optimize for the case
22095 DEPTH == 3. Add workaround code for a GCC optimization bug.
22096
22097 * charset.c (parse_charset_map): Remove an unused variable.
22098
22099 * coding.c: Delete unused variables.
22100
22101 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22102 earlier. If inserted is zero and the coding system doesn't
22103 require flushing, don't call decode_coding_gap.
22104
22105 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22106
221072008-02-01 Kenichi Handa <handa@m17n.org>
22108
22109 The following changes are for using Unicode as an internal
22110 character model, and use UTF-8 format for buffer/string
22111 representation.
22112
22113 * .gdbinit (xchartable): Adjust for the change of char table structure.
22114 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22115
22116 * Makefile.in (obj): Add character.o and chartab.o.
22117 (lisp, shortlisp): Remove utf-8.elc.
22118 (*.o): For many files, change dependency on charset.h to
22119 character.h, and add dependency on character.h.
22120 (character.o, chartab.o): New targets.
22121
22122 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22123 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22124 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22125 of "charset.h".
22126
22127 * dired.c, filelock.c: Include "character.h".
22128
22129 * alloc.c: Include "character.h" instead of "charset.h".
22130 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22131 (syms_of_alloc): Remove defsubr for Smake_char_table.
22132
22133 * buffer.c: Include "character.h" instead of "charset.h", don't
22134 include "coding.h".
22135 (Fset_buffer_multibyte): Adjust for UTF-8.
22136
22137 * buffer.h: EXFUN Fbuffer_live_p.
22138
22139 * callproc.c: Include "character.h" instead of "charset.h".
22140 (Fcall_process): Big change for the new code-conversion APIs.
22141
22142 * casetab.c: Include "character.h" instead of "charset.h".
22143 (set_canon, set_identity, shuffle): Adjust for the new
22144 map_char_table spec.
22145 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22146 accessing the char table structure.
22147
22148 * chartab.c: New file that implements char table.
22149
22150 * category.c: Include "character.h".
22151 (copy_category_entry): New function.
22152 (copy_category_table): Call map_char_table and copy_category_entry.
22153 (Fmake_category_table): Initialize all top-level slots.
22154 (char_category_set): New function.
22155 (modify_lower_category_set): Delete.
22156 (Fmodify_category_entry): Call char_table_ref_and_range.
22157
22158 * category.h (CATEGORY_SET): Just call char_category_set.
22159
22160 * ccl.c: Include "character.h".
22161 (Qccl, Qcclp): New variables.
22162 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22163 it's less than 256.
22164 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22165 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22166 and DST type.
22167 (ccl_driver): Change types of argument, adjust code accordingly.
22168 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22169 ccl_driver.
22170 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22171
22172 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22173 New members src_multibyte, dst_multibyte, consumed, and produced.
22174 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22175 (CODING_SPEC_CCL_PROGRAM): New macro.
22176 (ccl_driver): Update prototype.
22177 (Qccl, Qcclp, Fccl_program_p): Extern them.
22178 (CHECK_CCL_PROGRAM): New macro.
22179
22180 * character.c, character.h, chartab.c: New files.
22181
22182 * charset.c: Mostly re-written. Move character and multibyte sequence
22183 handling codes to character.c.
22184
22185 * charset.h: Mostly re-written. Move character and multibyte sequence
22186 handling codes to character.h.
22187
22188 * coding.c, coding.h: Mostly re-written.
22189
22190 * composite.c: Include "character.h" instead of "charset.h".
22191 (CHAR_WIDTH): Move to character.h.
22192 (HASH_KEY, HASH_VALUE): Delete.
22193
22194 * composite.h (enum composition_method): Change order of enumeration
22195 symbols.
22196
22197 * data.c: Include "character.h" instead of "charset.h".
22198 (Faref): Call CHAR_TABLE_REF for a char table.
22199 (Faset): Call CHAR_TABLE_SET for a char table.
22200
22201 * dispextern.h (free_realized_face, check_face_attribytes)
22202 (generate_ascii_font): Extern them.
22203 (free_realized_multibyte_face): Delete extern.
22204
22205 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22206 table structure.
22207
22208 * editfns.c: Include "character.h" instead of "charset.h".
22209 (Fchar_to_string): Always call CHAR_STRING.
22210
22211 * emacs.c (main): Call init_charset_once, init_charset,
22212 syms_of_chartab, and syms_of_character.
22213
22214 * fileio.c: Include "character.h" instead of "charset.h".
22215 (Finsert_file_contents): Big change for the new code-conversion API.
22216 (choose_write_coding_system, Fwrite_region): Likewise.
22217 (build_annotations_2): Delete.
22218 (e_write): Big change for the new code-conversion API.
22219
22220 * fns.c: Include "character.h" instead of "charset.h".
22221 (copy_sub_char_table): Move to chartab.c.
22222 (Fcopy_sequence): Call copy_char_table for a char table.
22223 (concat): Delete codes calling count_multibyte.
22224 (string_char_to_byte, string_byte_to_char): Adjust for the new
22225 multibyte form.
22226 (internal_equal): Adjust for the change of char table structure.
22227 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22228 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22229 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22230 (char_table_translate, optimize_sub_char_table)
22231 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22232 chartab.c.
22233 (char_table_ref_and_index): Delete.
22234 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22235 (Fmd5): Call preferred_coding_system instead of accessing
22236 Vcoding_category_list. Adjust for the new code-conversion API.
22237 (syms_of_fns): Move defsubr for char table related functions to
22238 chartab.c.
22239
22240 * fontset.c: Mostly re-written.
22241
22242 * fontset.h (struct font_info): Change type of the member encoding_type.
22243 (enum FONT_SPEC_INDEX): New enum.
22244 (fontset_font_pattern, fs_load_font): Update prototype.
22245 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22246
22247 * indent.c: Include "character.h" instead of "charset.h".
22248 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22249
22250 * insdel.c: Include "character.h" instead of "charset.h".
22251 (copy_text): Don't refer to Vnonascii_translation_table.
22252 (insert_from_gap): New function.
22253
22254 * keyboard.c: Include "character.h" instead of "charset.h".
22255 (command_loop_1): Never call direct_output_forward_char before
22256 a non-ASCII character.
22257 (read_char): If Vkeyboard_translate_table is a char table, always
22258 translate a character.
22259
22260 * keymap.c: Include "character.h".
22261 (store_in_keymap): Handle the case that IDX is a cons.
22262 (Fdefine_key): Handle the case that KEY is a cons and the car part
22263 is also a cons (range).
22264 (push_key_description): Adjust for the new character code.
22265 (describe_vector): Call describe_char_table for a char table.
22266 (describe_char_table): New function.
22267
22268 * keymap.h (describe_char_table): Extern it.
22269
22270 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22271 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22272 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22273 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22274 Delete.
22275 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22276 structure.
22277 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22278 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22279 (CHARTAB_SIZE_BITS_3): New macros.
22280 (chartab_size): Extern it.
22281 (struct Lisp_Char_Table): Re-design.
22282 (struct Lisp_Sub_Char_Table): New structure.
22283 (HASH_KEY, HASH_VALUE): Move from fns.c.
22284 (CHARACTERBITS): Define as 22.
22285 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22286 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22287 (GC_SUB_CHAR_TABLE_P): New macro.
22288 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22289 (code_convert_string_norecord): Deleted extern.
22290 (init_character_once, syms_of_character, init_charset)
22291 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22292
22293 * lread.c: Include "character.h".
22294 (read_multibyte): New arg NBYTES.
22295 (read_escape): Change the meaning of returned *BYTEREP.
22296 (to_multibyte): Delete.
22297 (read1): Adjust the handling of char table and string.
22298
22299 * print.c: Include "character.h" instead of "charset.h".
22300 (print_string): Convert 8-bit raw bytes to octal form by
22301 string_escape_byte8.
22302 (print_object): Adjust for the new multibyte form. Print 8-bit
22303 raw bytes always in octal form. Handle sub char table correctly.
22304
22305 * process.c: Include "character.h" instead of "charset.h".
22306 (read_process_output, send_process): Adjust for the new
22307 code-conversion API.
22308
22309 * puresize.h (BASE_PURESIZE): Increase.
22310
22311 * regex.c: Include "character.h" instead of "charset.h".
22312 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22313 (regex_compile): Accept a range whose starting and ending
22314 character have different leading bytes.
22315 (analyse_first): Adjust for the above change.
22316
22317 * search.c: Include "character.h" instead of "charset.h".
22318 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22319 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22320
22321 * syntax.c: Include "character.h" instead of "charset.h".
22322 (syntax_parent_lookup): Delete.
22323 (Fmodify_syntax_entry): Accept a cons as CHAR.
22324 (skip_chars): Adjust for the new multibyte form.
22325 (init_syntax_once): Call char_table_set_range instead of directly
22326 accessing the structure of a char table.
22327
22328 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22329 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22330 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22331 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22332
22333 * term.c: Include "buffer.h" and "character.h".
22334 (encode_terminal_code, write_glyphs): Adjust for the new
22335 code-conversion API.
22336 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22337
22338 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22339
22340 * xdisp.c: Include "character.h".
22341 (get_next_display_element): Adjust for the new multibyte form.
22342 (disp_char_vector): Adjust for the new char table structure.
22343 (decode_mode_spec_coding): Adjust for the new structure of
22344 coding system.
22345 (decode_mode_spec): Adjust for the new code-conversion API.
22346
22347 * xfaces.c: Include "character.h" instead of "charset.h".
22348 (load_face_font): Adjust for the change of choose_face_font and
22349 FS_LOAD_FONT.
22350 (generate_ascii_font): New function.
22351 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22352 (set_font_frame_param): Adjust for the change of choose_face_font.
22353 (free_realized_face): Make it public.
22354 (free_realized_faces_for_fontset): Rename from
22355 free_realized_multibyte_face. Free also faces realized for ASCII.
22356 (choose_face_font): Change arguments. Adjust for the change of
22357 fontset_font_pattern and FS_LOAD_FONT.
22358
22359 * xfns.c: Include "character.h".
22360 (x_encode_text): Adjust for the new code-conversion API.
22361
22362 * xselect.c: Don't include "charset.h".
22363 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22364
22365 * xterm.c: Include "character.h".
22366 (x_encode_char): New argument CHARSET. Change caller.
22367 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22368 Call ENCODE_CHAR instead of SPLIT_CHAR.
22369 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22370 CHAR_WIDTH instead of CHARSET_WIDTH.
22371 (XTread_socket): Adjust for the new code-conversion API.
22372 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22373 (x_load_font): Adjust for the change of struct font.
22374
223752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22376
22377 * xfaces.c (face_at_buffer_position): Remove unused vars.
22378
223792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22380
22381 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22382 Fix overflow checking.
22383
223842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22385
22386 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22387 Cancel previous change.
22388
223892008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22390
22391 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22392 ccl->eight_bit_control. Fix check for buffer overflow.
22393 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22394 (ccl_driver): Initialize extra_bytes to 0.
22395
223962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22397
22398 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22399 return it ORed with ctrl_modifier.
22400
224012008-01-29 Miles Bader <miles@gnu.org>
22402
22403 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22404
224052008-01-28 Jason Rumney <jasonr@gnu.org>
22406
22407 * w32.c (stat): Don't double check for networked drive.
22408
224092008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22410
22411 * window.c (run_window_configuration_change_hook): New function.
22412 Code extracted from set_window_buffer. Set the selected frame.
22413 (set_window_buffer): Use it.
22414 * window.h (run_window_configuration_change_hook): Declare.
22415 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22416
22417 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22418
224192008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22420
22421 * Makefile.in: Remove references to unused macros.
22422
224232008-01-26 Eli Zaretskii <eliz@gnu.org>
22424
22425 * w32.c (g_b_init_get_sid_sub_authority)
22426 (g_b_init_get_sid_sub_authority_count): New static variables.
22427 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22428 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22429 (init_user_info): Use them to retrieve uid and gid.
22430 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22431 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22432 st_uid and st_gid of the file.
22433
224342008-01-26 Jason Rumney <jasonr@gnu.org>
22435
22436 * w32.c (logon_network_drive): New function.
22437 (stat): Use it.
22438
224392008-01-26 Chong Yidong <cyd@stupidchicken.com>
22440
22441 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22442 invisible text covered with an ellipsis.
22443
224442008-01-25 Richard Stallman <rms@gnu.org>
22445
22446 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22447 jump back to beginning. Move some other initializations after that.
22448 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22449 New variables.
22450 (syms_of_xdisp): Init them.
22451
22452 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22453
22454 * buffer.c (reset_buffer_local_variables):
22455 Implement `permanent-local-hook'.
22456 (Qpermanent_local_hook): New variable.
22457 (syms_of_buffer): Init and staticpro it.
22458
224592008-01-25 Michael Albinus <michael.albinus@gmx.de>
22460
22461 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22462
224632008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22464
22465 * fns.c (Fclrhash): Return TABLE.
22466
224672008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22468
22469 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22470 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22471 is set even without positional changes.
22472 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22473
22474 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22475
224762008-01-23 Jason Rumney <jasonr@gnu.org>
22477
22478 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22479
22480 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22481 the unicode range available in MULE by locale-coding-system.
22482 Improve dbcs lead byte detection. Set event timestamp and modifiers
22483 earlier.
22484
224852008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22486
22487 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22488 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22489 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22490 when used on child processes.
22491
224922008-01-21 Michael Albinus <michael.albinus@gmx.de>
22493
22494 * dbusbind.c (Fdbus_method_return_internal): Rename from
22495 Fdbus_method_return.
22496 (Fdbus_unregister_object): Move to dbus.el.
22497 (Fdbus_call_method, Fdbus_method_return_internal)
22498 (Fdbus_send_signal): Improve debug messages.
22499
225002008-01-20 Martin Rudalics <rudalics@gmx.at>
22501
22502 * undo.c (undo_inhibit_record_point): New variable.
22503 (syms_of_undo): Initialize it.
22504 (record_point): Don't record point when undo_inhibit_record_point
22505 is set.
22506
225072008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22508
22509 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22510
22511 * xdisp.c (Qauto_hscroll_mode): New var.
22512 (syms_of_xdisp): Initialize it.
22513 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22514 window's buffer.
22515 (hscroll_windows): Don't check automatic_hscrolling_p here.
22516
22517 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22518 vscroll if we're setting window-buffer to the value it already has.
22519
225202008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22521
22522 * m/intel386.h: Remove references to XENIX.
22523
225242008-01-17 Andreas Schwab <schwab@suse.de>
22525
22526 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22527 instead of HAVE_X86_64_LIB64_DIR.
22528 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22529
225302008-01-17 Glenn Morris <rgm@gnu.org>
22531
22532 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22533 to HAVE_X86_64_LIB64_DIR.
22534
225352008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22536
22537 * s/irix3-3.h:
22538 * s/irix4-0.h:
22539 * s/386-ix.h:
22540 * s/domain.h:
22541 * s/hpux9-x11r4.h:
22542 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22543
22544 * sysdep.c: Remove code containing references to symbols defined
22545 by unsupported systems.
22546
225472008-01-16 Glenn Morris <rgm@gnu.org>
22548
22549 * coding.c (select-safe-coding-system-function): Doc fix.
22550
225512008-01-15 Glenn Morris <rgm@gnu.org>
22552
22553 * config.in: Revert 2008-01-13 change: this is a generated file.
22554
225552008-01-13 Tom Tromey <tromey@redhat.com>
22556
22557 * lisp.h: Fix typo.
22558
225592008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22560
22561 * m/sequent-ptx.h:
22562 * m/sequent.h:
22563 * s/ptx.h:
22564 * s/ptx4-2.h:
22565 * s/ptx4.h: Remove files for systems no longer supported.
22566
22567 * callproc.c (Fcall_process): Fix previous change.
22568
225692008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22570
22571 * unexsunos4.c: Remove file, system not supported anymore.
22572
22573 * m/mips.h:
22574 * m/intel386.h:
22575 * callproc.c:
22576 * config.in:
22577 * ecrt0.c:
22578 * emacs.c:
22579 * fileio.c:
22580 * frame.c:
22581 * getpagesize.h:
22582 * keyboard.c:
22583 * lread.c:
22584 * process.c:
22585 * puresize.h:
22586 * sysdep.c:
22587 * systty.h:
22588 * syswait.h:
22589 * unexec.c:
22590 * xdisp.c:
22591 * alloc.c: Remove code containing references to symbols defined by
22592 unsupported systems.
22593
225942008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22595
22596 * coding.c (detect_coding_mask): Fix previous change.
22597
225982008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22599
22600 * coding.c (detect_coding_iso2022): New arg
22601 latin_extra_code_state. Allow Latin extra codes only
22602 when *latin_extra_code_state is nonzero.
22603 (detect_coding_mask): If there is a NULL byte, detect the encoding
22604 as UTF-16 or binary. If Latin extra codes exist, detect the
22605 encoding as ISO-2022 only when there's no other proper encoding is
22606 found.
22607
226082008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22609
22610 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22611 #ifdef MAC_OS.
22612
226132008-01-08 Richard Stallman <rms@gnu.org>
22614
22615 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22616
226172008-01-06 Nick Roberts <nickrob@snap.net.nz>
22618
22619 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22620 menu bar in parentheses.
22621
226222008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22623
22624 * m/7300.h:
22625 * m/acorn.h:
22626 * m/alliant-2800.h:
22627 * m/alliant.h:
22628 * m/alliant1.h:
22629 * m/alliant4.h:
22630 * m/altos.h:
22631 * m/amdahl.h:
22632 * m/apollo.h:
22633 * m/att3b.h:
22634 * m/aviion-intel.h:
22635 * m/aviion.h:
22636 * m/celerity.h:
22637 * m/clipper.h:
22638 * m/cnvrgnt.h:
22639 * m/convex.h:
22640 * m/cydra5.h:
22641 * m/delta88k.h:
22642 * m/dpx2.h:
22643 * m/dual.h:
22644 * m/elxsi.h:
22645 * m/f301.h:
22646 * m/gould-np1.h:
22647 * m/gould.h:
22648 * m/i860.h:
22649 * m/ibmps2-aix.h:
22650 * m/ibmrt-aix.h:
22651 * m/ibmrt.h:
22652 * m/irist.h:
22653 * m/is386.h:
22654 * m/isi-ov.h:
22655 * m/mega68.h:
22656 * m/mg1.h:
22657 * m/news-r6.h:
22658 * m/news-risc.h:
22659 * m/news.h:
22660 * m/nh3000.h:
22661 * m/nh4000.h:
22662 * m/ns16000.h:
22663 * m/ns32000.h:
22664 * m/nu.h:
22665 * m/orion.h:
22666 * m/orion105.h:
22667 * m/paragon.h:
22668 * m/pfa50.h:
22669 * m/plexus.h:
22670 * m/pyramid.h:
22671 * m/pyrmips.h:
22672 * m/sh3el.h:
22673 * m/sps7.h:
22674 * m/sr2k.h:
22675 * m/stride.h:
22676 * m/sun1.h:
22677 * m/sun2.h:
22678 * m/sun3-68881.h:
22679 * m/sun3-fpa.h:
22680 * m/sun3-soft.h:
22681 * m/sun3.h:
22682 * m/sun386.h:
22683 * m/symmetry.h:
22684 * m/tad68k.h:
22685 * m/tahoe.h:
22686 * m/targon31.h:
22687 * m/tek4300.h:
22688 * m/tekxd88.h:
22689 * m/tower32.h:
22690 * m/tower32v3.h:
22691 * m/ustation.h:
22692 * m/wicat.h:
22693 * m/xps100.h:
22694 * s/cxux.h:
22695 * s/cxux7.h:
22696 * s/dgux.h:
22697 * s/dgux4.h:
22698 * s/dgux5-4-3.h:
22699 * s/dgux5-4r2.h:
22700 * s/esix.h:
22701 * s/esix5r4.h:
22702 * s/hiuxmpp.h:
22703 * s/hiuxwe2.h:
22704 * s/iris3-5.h:
22705 * s/iris3-6.h:
22706 * s/isc2-2.h:
22707 * s/isc3-0.h:
22708 * s/isc4-0.h:
22709 * s/isc4-1.h:
22710 * s/newsos5.h:
22711 * s/newsos6.h:
22712 * s/osf1.h:
22713 * s/osf5-0.h:
22714 * s/riscix1-1.h:
22715 * s/riscix12.h:
22716 * s/sco4.h:
22717 * s/sco5.h:
22718 * s/sunos4-0.h:
22719 * s/sunos4-1.h:
22720 * s/sunos413.h:
22721 * s/sunos4shr.h:
22722 * s/umax.h:
22723 * s/unipl5-2.h:
22724 * s/xenix.h:
22725 * cxux-crt0.s:
22726 * unexapollo.c:
22727 * unexconvex.c:
22728 * unexenix.c:
22729 * unexsni.c: Remove files for systems no longer supported.
22730
22731 * m/intel386.h: Remove references to unsupported systems.
22732
22733 * w32.c (get_emacs_configuration): Remove reference to i860.
22734
22735 * sysdep.c: Remove dead code.
22736
227372008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22738
22739 * s/rtu.h:
22740 * m/masscomp.h: Remove files. Platform is obsolete.
22741
227422008-01-04 Michael Albinus <michael.albinus@gmx.de>
22743
22744 * dbusbind.c (Fdbus_method_return): New function.
22745 (xd_read_message): Add the serial number to the event.
22746 (Fdbus_register_method): Activate the function.
22747
227482008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22749
22750 * keyboard.c (read_key_sequence): Fix typo.
22751
227522008-01-03 Michael Albinus <michael.albinus@gmx.de>
22753
22754 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22755 (xd_signature, xd_append_arg): Handle element type detection for
22756 empty arrays.
22757 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22758 SDATA () calls; this must be solved more general.
22759 (Fdbus_register_signal): Use SBYTES instead of strlen.
22760
227612008-01-03 Magnus Henoch <magnus@zemdatav>
22762
22763 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22764 unsigned int for byte values (necessary for big-endian platform).
22765 (Fdbus_call_method): Handle the case of no returned arguments.
22766
227672007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22768
22769 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22770
227712007-12-31 Magnus Henoch <mange@freemail.hu>
22772
22773 * dbusbind.c (xd_signature): Signature of variant is just "v".
22774
227752007-12-30 Michael Albinus <michael.albinus@gmx.de>
22776
22777 * dbusbind.c: Fix several errors and compiler warnings.
22778 Reported by Tom Tromey <tromey@redhat.com>.
22779 (XD_ERROR, XD_DEBUG_MESSAGE)
22780 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22781 (xd_append_arg): Part for basic D-Bus types rewritten.
22782 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22783 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22784 appropriate.
22785 (xd_read_message): Return Qnil. Don't signal an error; it is not
22786 useful during event reading.
22787 (Fdbus_register_signal): Signal an error if the check for
22788 FUNCTIONP fails.
22789 (Fdbus_register_method): New function. The implementation is not
22790 complete, the call of the function signals an error therefore.
22791 (Fdbus_unregister_object): New function, renamed from
22792 Fdbus_unregister_signal. The initial check signals an error, if
22793 the object is not well formed.
22794
227952007-12-30 Richard Stallman <rms@gnu.org>
22796
22797 * textprop.c (get_char_property_and_overlay):
22798 Signal error if POSITION is out of range in a buffer.
22799
228002007-12-29 Martin Rudalics <rudalics@gmx.at>
22801
22802 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22803 because the original parameters are in pure storage now.
22804
228052007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22806
22807 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22808
228092007-12-22 Eli Zaretskii <eliz@gnu.org>
22810
22811 * callint.c (syms_of_callint) <command-history>: Add reference to
22812 history-length in the doc string.
22813
228142007-12-17 Jason Rumney <jasonr@gnu.org>
22815
22816 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22817 before passing as wParam.
22818
228192007-12-22 Michael Albinus <michael.albinus@gmx.de>
22820
22821 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22822 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22823 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22824 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22825 as number.
22826 (Fdbus_call_method): Fix docstring.
22827
228282007-12-21 Michael Albinus <michael.albinus@gmx.de>
22829
22830 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22831 New macros.
22832 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22833 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22834 Simplify.
22835 (xd_signature): New function.
22836 (xd_append_arg): Compute also signatures. Major rewrite.
22837 (xd_retrieve_arg): Make debug messages friendly.
22838 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22839 Check for signatures of arguments.
22840
228412007-12-19 Michael Albinus <michael.albinus@gmx.de>
22842
22843 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22844 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22845 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22846 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22847 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22848 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22849 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22850 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22851 (xd_retrieve_value): Remove. Functionality included in ...
22852 (xd_append_arg): New function.
22853 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22854
228552007-12-16 Michael Albinus <michael.albinus@gmx.de>
22856
22857 * dbusbind.c (top): Include <stdio.h>.
22858 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22859 dbus_message_new_method_call and dbus_message_new_signal.
22860 (Fdbus_register_signal): Rename unique_name to uname.
22861 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22862 non-existing unique name. Fix typos in matching rule. Return an
22863 object which is useful in Fdbus_unregister_signal.
22864 (Fdbus_unregister_signal): Reimplementation, in order to remove
22865 only the corresponding entry.
22866 (Vdbus_registered_functions_table): Change the order of entries.
22867 Apply these changes in xd_read_message and Fdbus_register_signal.
22868
228692007-12-16 Andreas Schwab <schwab@suse.de>
22870
22871 * fileio.c (Finsert_file_contents): Fix overflow check to not
22872 depend on undefined integer overflow.
22873
228742007-12-14 Jason Rumney <jasonr@gnu.org>
22875
22876 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22877 for characters above 127.
22878
228792007-12-13 Jason Rumney <jasonr@gnu.org>
22880
22881 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22882 before dereferencing array.
22883 (lookup_vk_code): Remove zero comparison.
22884
228852007-12-14 Michael Albinus <michael.albinus@gmx.de>
22886
22887 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22888 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22889 Use `unsigned int' instead of `uint'.
22890 (xd_read_message, Fdbus_register_signal): Split expressions into
22891 multiple lines before operators "&&" and "||", according to the
22892 GNU Coding Standards.
22893
228942007-12-14 Eli Zaretskii <eliz@gnu.org>
22895
22896 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22897
228982007-12-12 Juri Linkov <juri@jurta.org>
22899
22900 * buffer.c (Frename_buffer): In interactive spec replace
22901 `read-buffer' with `read-string' that uses `buffer-name-history'
22902 as history, and the current buffer's name as default.
22903
229042007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22905
22906 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22907 manipulating the backtrace manually.
22908 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22909 (struct backtrace, backtrace_list): Remove.
22910 (command_loop_1): Remove dead var `no_direct'.
22911
22912 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22913 preserve non-built-in buffer-local variables.
22914 (Fkill_all_local_variables): Don't re-create&re-set permanent
22915 buffer-local variables.
22916
229172007-12-09 Juri Linkov <juri@jurta.org>
22918
22919 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22920 Lisp code that uses `read-buffer' with current buffer as default.
22921
229222007-12-08 Michael Albinus <michael.albinus@gmx.de>
22923
22924 * dbusbind.c (xd_read_message): Generate an event for every
22925 registered handler. There might be several handlers registered
22926 for the same signal.
22927 (Fdbus_register_signal): Don't overwrite a registration for the
22928 same signal. Add a new registration if handlers are different.
22929 (Vdbus_registered_functions_table): Rework doc string.
22930
229312007-12-07 Michael Albinus <michael.albinus@gmx.de>
22932
22933 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22934 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22935 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22936 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22937 Unify argument lists.
22938 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22939 arguments and hash table keys. Use unique name for service.
22940 (Fdbus_unregister_signal): Remove checks.
22941 (Vdbus_registered_functions_table): Fix doc string.
22942
229432007-12-05 Magnus Henoch <mange@freemail.hu>
22944
22945 * process.c (make_process): Initialize pty_flag to 0.
22946
229472007-12-05 Jason Rumney <jasonr@gnu.org>
22948
22949 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22950 specified XBMs.
22951
229522007-12-05 Richard Stallman <rms@gnu.org>
22953
22954 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22955
229562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22957
22958 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22959 New variable.
22960 (mac_try_close_socket) [MAC_OSX]: New function.
22961 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22962 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22963
22964 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22965 Use mac_try_close_socket.
22966
229672007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22968
22969 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22970 reloc_base.
22971 (copy_dysymtab): Compute relocation base here.
22972 (rebase_reloc_address) [__ppc64__]: New function.
22973 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22974 changed.
22975
229762007-12-05 Jason Rumney <jasonr@gnu.org>
22977
22978 * w32proc.c (sys_spawnve): Quote args with wildcards.
22979
229802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22981
22982 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22983 __objc_* sections.
22984 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22985
229862007-12-05 Michael Albinus <michael.albinus@gmx.de>
22987
22988 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22989 Move check for Vdbus_registered_functions_table to
22990 xd_read_queued_messages.
22991 (xd_read_queued_messages): Protect xd_read_message calls by
22992 internal_condition_case_1.
22993
229942007-12-04 Michael Albinus <michael.albinus@gmx.de>
22995
22996 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22997 Qdbus_system_bus and Qdbus_session_bus, respectively.
22998 (Vdbus_intern_symbols): Remove.
22999 (Vdbus_registered_functions_table): New hash table.
23000 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23001 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23002 Rewrite in order to manage registered functions by hash table
23003 Vdbus_registered_functions_table.
23004
230052007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23006
23007 * xterm.c: Update URL to Window Manager Specification in comment.
23008
230092007-12-02 Michael Albinus <michael.albinus@gmx.de>
23010
23011 * config.in (HAVE_DBUS): Add.
23012
23013 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23014 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23015 (obj): Add $(DBUS_OBJ).
23016 (LIBES): Add $(DBUS_LIBS).
23017 (dbusbind.o): New target.
23018
23019 * dbusbind.c: New file.
23020
23021 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23022
23023 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23024 (Qdbus_event): New Lisp symbol.
23025 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23026 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23027 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23028
23029 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23030
230312007-12-01 Richard Stallman <rms@gnu.org>
23032
23033 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23034
230352007-11-30 Jason Rumney <jasonr@gnu.org>
23036
23037 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23038 (w32con_reset_terminal_modes): Clear screen buffer.
23039 (w32_face_attributes): Don't use color indexes that are out of range.
23040 Only reverse the default colors.
23041
23042 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23043 WINDOWSNT.
23044
23045 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23046
230472007-11-29 Jason Rumney <jasonr@gnu.org>
23048
23049 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23050 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23051 if the terminal colors are initialized.
23052 (unspecified_fg, unspecified_bg): Remove unused declarations.
23053
230542007-11-29 Andreas Schwab <schwab@suse.de>
23055
23056 * keyboard.c (apply_modifiers): Fix typo.
23057
230582007-11-29 Richard Stallman <rms@gnu.org>
23059
23060 * keymap.c (Fcurrent_local_map): Doc fix.
23061
230622007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23063
23064 * s/gnu-kfreebsd.h: New file.
23065
230662007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23067
23068 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23069 Don't cast redundantly.
23070
23071 * keyboard.c (KEY_TO_CHAR): New macro.
23072 (parse_modifiers, apply_modifiers): Accept integer arguments.
23073 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23074 for chars and symbol keys.
23075 After doing such remapping, apply function-key-map again.
23076
230772007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23078
23079 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23080 compiled anymore.
23081
230822007-11-26 Andreas Schwab <schwab@suse.de>
23083
23084 * process.c (list_processes_1): Fix indentation level of the
23085 command column.
23086
230872007-11-23 Andreas Schwab <schwab@suse.de>
23088
23089 * editfns.c (Fformat): Handle %c specially since it requires the
23090 argument to be of type int.
23091
230922007-11-23 Markus Triska <markus.triska@gmx.at>
23093
23094 * emacs.c (main): Call init_editfns before init_process, since
23095 init_process sets Vprocess_connection_type depending on OS release.
23096
230972007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23098
23099 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23100 (find_symbol_value): Use do_symval_forwarding.
23101
23102 * data.c (set_internal): Set the value in the `cons-cell' (for
23103 Buffer_Local_values) not only for frame-local variables.
23104
231052007-11-22 Andreas Schwab <schwab@suse.de>
23106
23107 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23108 values to sprintf.
23109 * keymap.c (Fsingle_key_description): Likewise.
23110 * print.c (print_object): Likewise.
23111
231122007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23113
23114 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23115 file for image is nil.
23116
231172007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23118
23119 * term.c: Include stdarg.h.
23120 (fatal): Implement using varargs.
23121 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23122
231232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23124
23125 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23126 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23127 Update call to buffer_slot_type_mismatch.
23128 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23129 (buffer_slot_type_mismatch): Update.
23130 * buffer.c (buffer_local_types): Remove.
23131 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23132 (defvar_per_buffer): Set the type in the buffer_objfwd.
23133
231342007-11-21 Jason Rumney <jasonr@gnu.org>
23135
23136 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23137 CreateFileMapping returns NULL on failure.
23138
231392007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23140
23141 * search.c (Fset_match_data): Remove the `evaporate' feature.
23142 (unwind_set_match_data): Don't use the `evaporate' feature.
23143
231442007-11-21 Jason Rumney <jasonr@gnu.org>
23145
23146 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23147
23148 * w32console.c (w32con_write_glyphs): Remove unused variables.
23149
231502007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23151
23152 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23153
23154 * s/darwin.h (MULTI_KBOARD): Remove.
23155
23156 * macfns.c (x_create_tip_frame, Fx_create_frame)
23157 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23158
231592007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23160
23161 * buffer.c (Fbuffer_local_value): Remove redundant test.
23162 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23163 than in `current-buffer' to match the comment.
23164 Do the swap using swap_in_global_binding.
23165
23166 * data.c (store_symval_forwarding, set_internal):
23167 * eval.c (specbind): Remove dead code.
23168
23169 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23170 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23171 Since we do not want to see internal Lisp_*fwd objects here.
23172
231732007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23174
23175 * sysdep.c (init_system_name): Use getaddrinfo if available.
23176
23177 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23178 (x_scroll_bar_note_movement): start, end, with, height in struct
23179 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23180
231812007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23182
23183 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23184
231852007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23186
23187 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23188 This undoes Richard's change of 14-Oct-2002.
23189
23190 * alloc.c (allocate_other_vector):
23191 * lisp.h (allocate_other_vector): Remove.
23192
23193 * window.c (struct save_window_data): Move non-lisp data to the end
23194 and make it `int' rather than Lisp_Object.
23195 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23196 Done wrap/unwrap integer values.
23197 (Fset_window_configuration, compare_window_configurations):
23198 Update use of fields to their new types.
23199
23200 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23201 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23202 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23203 (SET_SCROLL_BAR_X_WINDOW): Remove.
23204 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23205 Access the new x_window field directly.
23206 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23207 Don't wrap/unwrap integers into Lisp_Objects.
23208 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23209 (x_scroll_bar_report_motion):
23210 Don't wrap/unwrap integers into Lisp_Objects.
23211 (x_term_init): Use SDATA.
23212 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23213 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23214 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23215 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23216 * xfns.c (x_set_background_color):
23217 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23218 Access the new x_window field directly.
23219
23220 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23221 (allocate_pseudovector): Make non-static.
23222
23223 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23224 (allocate_pseudovector): Declare.
23225 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23226
232272007-11-15 Andreas Schwab <schwab@suse.de>
23228
23229 * editfns.c (Fformat): Correctly format EMACS_INT values.
23230 Also take precision into account when formatting an integer.
23231
23232 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23233
232342007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23235
23236 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23237 (syms_of_keyboard): Defsubr it.
23238
23239 * data.c (swap_in_global_binding): Fix longstanding bug where
23240 store_symval_forwarding was not called with the right second argument,
23241 thus causing objfwd-ing from being dropped.
23242
232432007-11-14 Juanma Barranquero <lekktu@gmail.com>
23244
23245 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23246 (Fx_display_pixel_height, Fx_display_planes)
23247 (Fx_display_color_cells, Fx_server_max_request_size)
23248 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23249 (Fx_display_visual_class, Fx_display_save_under):
23250 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23251 (Fx_display_pixel_height, Fx_display_planes)
23252 (Fx_display_color_cells, Fx_server_max_request_size)
23253 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23254 (Fx_display_mm_height, Fx_display_mm_width)
23255 (Fx_display_backing_store, Fx_display_visual_class)
23256 (Fw32_select_font, Fx_display_save_under):
23257 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23258 (Fx_display_pixel_height, Fx_display_planes)
23259 (Fx_display_color_cells, Fx_server_max_request_size)
23260 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23261 (Fx_display_save_under): Fix typos in docstrings.
23262
232632007-11-14 Juanma Barranquero <lekktu@gmail.com>
23264
23265 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23266 corresponding to deleted entries; they are an implementation detail.
23267 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23268 Remove variables.
23269 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23270 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23271 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23272 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23273 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23274 (Fw32_define_rgb_color, Fw32_load_color_file)
23275 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23276 Fix typos in docstrings.
23277 (Fx_server_version): Reflow docstring.
23278 (Fw32_shell_execute): Doc fixes.
23279
232802007-11-13 Juanma Barranquero <lekktu@gmail.com>
23281
23282 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23283 if w32_parse_hot_key returned nil.
23284
232852007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23286
23287 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23288
232892007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23290
aac0c6e3
MR
23291 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23292
23293 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23294
23295 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23296 Remove W32_SCROLL_BAR_CLICK_EVENT.
23297
23298 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23299 Add MULTIMEDIA_KEY_EVENT.
23300
23301 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23302 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23303 (make_lispy_event) [WINDOWSNT]: Use it to translate
23304 MULTIMEDIA_KEY_EVENT.
23305
23306 * w32term.h (WM_APPCOMMAND): Define if not already.
23307 (GET_APPCOMMAND_LPARAM): Likewise.
23308
23309 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23310 WM_APPCOMMAND.
23311
23312 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23313 (syms_of_w32fns): Export and initialize it.
23314 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23315
233162007-11-09 Chong Yidong <cyd@stupidchicken.com>
23317
23318 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23319 twice.
23320
23321 * xdisp.c (handle_face_prop): Fix last change.
23322
233232007-11-09 Richard Stallman <rms@gnu.org>
23324
23325 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23326 not just for after-strings and before-strings.
23327 Call face_for_overlay_string and pass the overlay to it.
23328 (handle_display_prop): Determine whether property came from an overlay.
23329 Pass OVERLAY arg to handle_single_display_spec.
23330 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23331 (load_overlay_strings): Fill in it->string_overlays.
23332 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23333
23334 * xfaces.c (face_for_overlay_string): Function renamed from
23335 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23336
23337 * dispextern.h (struct it): New elt string_overlays.
23338 New elt from_overlay, also in stack.
23339 Rearrange a few elements.
23340 (face_for_overlay_string): Decl renamed from
23341 face_at_buffer_position_no_overlays, and add argument.
23342
233432007-11-09 Richard Stallman <rms@gnu.org>
23344
23345 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23346 to get the base face for an overlay string.
23347
23348 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23349
23350 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23351
23352 * xdisp.c (handle_stop): Move some code out of loop.
23353
233542007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23355
23356 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23357 Fix conversion from Lisp object to ATSUFontID.
23358
233592007-11-09 Jason Rumney <jasonr@gnu.org>
23360
23361 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23362
233632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23364
23365 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23366 Don't assume regions are aligned to page boundary.
23367 (print_load_command_name): Add LC_UUID if defined.
23368
233692007-11-09 Richard Stallman <rms@gnu.org>
23370
23371 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23372
233732007-11-07 Jason Rumney <jasonr@gnu.org>
23374
23375 * s/windows95.h: Remove.
23376
233772007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23378
23379 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23380 abort with a message on unhandled store_type values.
23381
233822007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23383
23384 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23385 Remove HAVE_X11R5 and HAVE_X11R4.
23386
233872007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23388
23389 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23390
233912007-11-01 Johan Bockgård <bojohan@gnu.org>
23392
23393 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23394 Don't set s->stippled_p here, since it has already been set by
23395 x_set_glyph_string_gc from x_draw_glyph_string.
23396
233972007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23398
23399 * sunfns.c: Remove file.
23400
23401 * m/sun386.h:
23402 * m/sun2.h:
23403 * m/sparc.h: Remove Sun windows code.
23404
234052007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23406
23407 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23408 (init_keyboard): Set current_kboard's window-system to nil.
23409 (tty_read_avail_input): Typo.
23410 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23411
234122007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23413
23414 * s/usg5-4.h:
23415 * s/usg5-3.h:
23416 * s/ptx.h:
23417 * m/is386.h:
23418 * m/ibmps2-aix.h:
23419 * Makefile.in: Remove all mentions of X10.
23420
23421 * dispnew.c (syms_of_display): Don't mention version 10.
23422
234232007-10-28 Juanma Barranquero <lekktu@gmail.com>
23424
23425 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23426 ($(BLD)/abbrev.$(O)): Remove.
23427
234282007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23429
23430 Rewrite abbrev.c in Elisp.
23431 * image.c (Qcount): Don't declare as extern.
23432 (syms_of_image): Initialize and staticpro `Qcount'.
23433 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23434 * emacs.c (main): Don't call syms_of_abbrev.
23435 * Makefile.in (obj): Remove abbrev.o.
23436 (abbrev.o): Remove.
23437 * abbrev.c: Remove.
23438
234392007-10-26 Martin Rudalics <rudalics@gmx.at>
23440
23441 * window.c (window_min_size_2): Don't count header-line.
23442
234432007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23444
23445 * frame.h (struct frame): Move all bit fields after the first bit
23446 field to take advantage of the available space. Group all the
23447 chars together to reduce wasted space due to padding.
23448
234492007-10-26 Juanma Barranquero <lekktu@gmail.com>
23450
23451 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23452
23453 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23454 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23455 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23456 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23457 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23458 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23459 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23460 (last_marked, mark_object_loop_halt): Make static.
23461
23462 * frame.c (syms_of_frame) <delete-frame-functions>:
23463 Fix typo in docstring.
23464
234652007-10-25 Juanma Barranquero <lekktu@gmail.com>
23466
23467 * w32.c (init_environment): Fix tiny memory leak.
23468 (w32_get_resource): Remove unused variable `ok'.
23469
234702007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23471
23472 Make `window-system' into a keyboard-local variable (rather than
23473 frame-local as done originally by multi-tty).
23474
23475 * keyboard.h (struct kboard): Add Vwindow_system.
23476 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23477 (mark_kboards): Mark Vwindow_system.
23478
23479 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23480 (init_display): Don't set the obsolete `window-system' frame-param.
23481
23482 * xterm.c (x_term_init):
23483 * w32term.c (w32_create_terminal):
23484 * term.c (init_tty): Set Vwindow_system.
23485 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23486 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23487
23488 * xfns.c (Fx_create_frame, x_create_tip_frame):
23489 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23490 * macfns.c (Fx_create_frame):
23491 Don't set the obsolete `window-system' frame-param.
23492
23493 * frame.h (Qwindow_system): Remove.
23494 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23495 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23496
234972007-10-24 Richard Stallman <rms@gnu.org>
23498
23499 * frame.c (x_figure_window_size): For fullscreen case,
23500 set USPosition | PPosition without clobbering rest of window_prompting.
23501
23502 * keyboard.c (Fcurrent_idle_time): Doc fix.
23503
23504 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23505
235062007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23507
23508 * process.c (unwind_request_sigio): Only define if __ultrix__.
23509
23510 * callproc.c (child_setup): Remove spurious *.
23511
23512 * lisp.h (Fget_text_property): Declare.
23513 (have_menus_p): Declare it here rather than in sys-dep header files.
23514 * macterm.h (have_menus_p):
23515 * msdos.h (have_menus_p):
23516 * xterm.h (have_menus_p): Remove.
23517
23518 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23519 (Fmake_variable_frame_local): Just check the variable's const-ness
23520 rather than checking nil or t.
23521
235222007-10-22 Jason Rumney <jasonr@gnu.org>
23523
23524 * w32fns.c: Include math.h.
23525 (w32_abort): Declaration moved to nt/config.nt.
23526
23527 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23528 (abort): Redefinition moved to nt/config.nt.
23529
23530 * m/windowsnt.h: Remove.
23531
235322007-10-22 Juanma Barranquero <lekktu@gmail.com>
23533
23534 * emacs.c (Fdump_emacs): Fix typo in message.
23535 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23536 <installation-directory>: Reflow docstring.
23537
235382007-10-22 Juri Linkov <juri@jurta.org>
23539
23540 * minibuf.c: Allow minibuffer default to be a list of default values.
23541 With empty input use the first element of this list as returned default.
23542 (string_to_object)
23543 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23544 (read_minibuf): If defalt is cons, set histstring to its car.
23545 (Fread_string): If default_value is cons, set val to its car.
23546 (Fread_buffer): If def is cons, use its car.
23547 (Fcompleting_read): If defalt is cons, set val to its car.
23548
235492007-10-21 Michael Albinus <michael.albinus@gmx.de>
23550
23551 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23552
235532007-10-20 Juanma Barranquero <lekktu@gmail.com>
23554
23555 * doc.c (Fdocumentation): Check for advice in all cases.
23556
235572007-10-19 Chong Yidong <cyd@stupidchicken.com>
23558
23559 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23560
235612007-10-19 Richard Stallman <rms@gnu.org>
23562
23563 * doc.c (Fdocumentation): Check for and handle an advised function.
23564
235652007-10-19 Juanma Barranquero <lekktu@gmail.com>
23566
23567 * process.c (Fset_process_filter): Doc fix.
23568
235692007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23570
23571 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23572 which caused key-translation-map to applied repeatedly (thus breaking
23573 double-mode).
23574
235752007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23576
23577 * xselect.c (x_own_selection, x_handle_selection_clear)
23578 (x_clear_frame_selections):
23579 * w32menu.c (list_of_panes, list_of_items):
23580 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23581 * textprop.c (validate_plist, interval_has_all_properties)
23582 (interval_has_some_properties, interval_has_some_properties_list)
23583 (add_properties, text_property_list):
23584 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23585 * minibuf.c (Fassoc_string):
23586 * macselect.c (x_own_selection, x_clear_frame_selections)
23587 (Fx_disown_selection_internal):
23588 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23589 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23590
235912007-10-17 Chong Yidong <cyd@stupidchicken.com>
23592
23593 * process.c: Link to libs for calling res_init() if available.
23594 (Fmake_network_process): Call res_init() before getaddrinfo or
23595 gethostbyname, if possible.
23596
235972007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23598
23599 * lread.c (read1): Set pvectype for char_tables.
23600
23601 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23602 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23603 Add type checks.
23604 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23605
23606 * alloc.c (free_misc): Use XMISCTYPE.
23607 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23608
236092007-10-17 Glenn Morris <rgm@gnu.org>
23610
23611 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23612 (syms_of_minibuf): Add Qcompletion_ignore_case.
23613 * dired.c (Qcompletion_ignore_case): Change to external.
23614 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23615 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23616 (Fread_file_name): Use it rather than intern'ing.
23617
23618 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23619 (Fread_coding_system): Ignore case of user input.
23620
236212007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23622
23623 * xdisp.c (handle_display_prop): Ignore display specs after
23624 replacing one when string text is being replaced.
23625 (handle_single_display_spec): Pretend as if characters with display
23626 property haven't been consumed only when buffer text is being replaced.
23627
236282007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23629
23630 * xfns.c (Fx_create_frame, Fx_display_list):
23631 * window.c (window_fixed_size_p, enlarge_window)
23632 (shrink_window_lowest_first):
23633 * macterm.c (init_font_name_table):
23634 * macfns.c (Fx_create_frame, Fx_display_list):
23635 * lread.c (close_load_descs):
23636 * keyboard.c (read_char_x_menu_prompt):
23637 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23638 * coding.c (code_convert_region_unwind): Test the type of an object
23639 rather than just !NILP before extracting data from it.
23640
23641 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23642
23643 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23644 (XMISCANY): New macro.
23645 (XMISCTYPE): Use it.
23646 (struct Lisp_Misc_Any): New type.
23647 (union Lisp_Misc): Use it.
23648 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23649 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23650 (find_symbol_value, set_internal, default_value, Fset_default)
23651 (Fmake_variable_buffer_local, Fmake_local_variable)
23652 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23653 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23654 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23655 * alloc.c (allocate_buffer): Set the size and tag.
23656 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23657 Use XMISCANY.
23658 (die): Follow the GNU convention for error messages.
23659 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23660 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23661 tag any more.
23662 (set_buffer_internal_1):
23663 * frame.c (store_frame_param):
23664 * eval.c (specbind):
23665 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23666
23667 * doc.c (Fsnarf_documentation): Simplify.
23668
236692007-10-14 Juanma Barranquero <lekktu@gmail.com>
23670
23671 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23672 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23673
236742007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23675
23676 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23677
236782007-10-14 Juanma Barranquero <lekktu@gmail.com>
23679
23680 * eval.c (do_autoload): Don't save autoloads.
23681
23682 * data.c (Ffset): Save autoload of the function being set.
23683
236842007-10-07 John Paul Wallington <jpw@pobox.com>
23685
23686 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23687 parameter before setting up faces.
23688
236892007-10-13 Eli Zaretskii <eliz@gnu.org>
23690
23691 * ccl.c (Fregister_code_conversion_map):
23692 * keyboard.c (append_tool_bar_item): Reformat last change.
23693
23694 * lisp.h (eabs): Rename from `abs'. All callers changed.
23695
236962007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23697
23698 * buffer.c (add_overlay_mod_hooklist):
23699 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23700 * fontset.c (make_fontset):
23701 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23702 (append_tool_bar_item):
23703 * macmenu.c (grow_menu_items):
23704 * w32menu.c (grow_menu_items):
23705 * xmenu.c (grow_menu_items): Use larger_vector.
23706
237072007-10-13 Eli Zaretskii <eliz@gnu.org>
23708
23709 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23710 selected frame'' on MSDOS).
23711
237122007-10-12 Martin Rudalics <rudalics@gmx.at>
23713
23714 * frame.c (Qexplicit_name): New variable.
23715 (x_report_frame_params): Report it in parameter alist.
23716 (syms_of_frame): Intern and staticpro it.
23717
237182007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23719
23720 * macfns.c (x_create_tip_frame): Set terminal for frame.
23721
237222007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23723
23724 * frame.c (Qenvironment): Remove.
23725 (syms_of_frame) <Qenvironment>: Don't initialize.
23726 (Fdelete_frame): Don't treat the `environment' param specially.
23727 * frame.h (Qenvironment): Don't declare.
23728 * callproc.c (set_initial_environment): Don't set unused frame param.
23729
23730 * frame.c (Fframe_with_environment): Remove.
23731 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23732
23733 * lisp.h (Fframe_with_environment): Don't declare.
23734
237352007-10-10 Juanma Barranquero <lekktu@gmail.com>
23736
23737 * indent.c (indent_tabs_mode, last_known_column)
23738 (last_known_column_modified): Make static.
23739 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23740
237412007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23742
23743 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23744
237452007-10-09 Jason Rumney <jasonr@gnu.org>
23746
23747 * w32term.c (x_set_window_size): Disable code that attempts to tell
23748 Lisp code about a size change before it actually happens.
23749
237502007-10-09 Richard Stallman <rms@gnu.org>
23751
23752 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23753 return HANDLED_RETURN.
23754
237552007-10-08 Martin Rudalics <rudalics@gmx.at>
23756
23757 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23758 when there's an unread command event.
23759
23760 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23761 window autoselection act appropriately when leaving selected frame.
23762 (syms_of_frame): Initialize focus_follows_mouse.
23763 * frame.h (focus_follows_mouse): Extern it.
23764 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23765 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23766 * msdos.c (dos_rawgetc): Likewise.
23767 * w32term.c (w32_read_socket): Likewise.
23768 * xterm.c (handle_one_xevent): Likewise.
23769 * xdisp.c (syms_of_xdisp): In doc-string of
23770 mouse-autoselect-window mention focus-follows-mouse.
23771
237722007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23773
23774 * macterm.c (mac_load_query_font): Fix missing return value.
23775 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23776 Add BLOCK_INPUT.
23777
237782007-10-08 Richard Stallman <rms@gnu.org>
23779
23780 * xdisp.c (get_window_cursor_type): Implement documented behavior
23781 for cursor-in-non-selected-windows = t.
23782
237832007-10-08 Jason Rumney <jasonr@gnu.org>
23784
23785 * w32.c (w32_get_resource): Always close registry keys.
23786
237872007-10-08 Jason Rumney <jasonr@gnu.org>
23788
23789 * makefile.w32-in (LIBS): Add COMCTL32.
23790
23791 * w32fns.c (globals_of_w32fns): Init common controls.
23792
237932007-10-08 Richard Stallman <rms@gnu.org>
23794
23795 * image.c (our_memory_buffer): Rename from omfib_buffer.
23796
237972007-10-08 Richard Stallman <rms@gnu.org>
23798
23799 * buffer.c (Foverlays_at): Doc fix.
23800
238012007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23802
23803 * fns.c (Fplist_put): Preserve uneven tail data.
23804
238052007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23806
23807 * termhooks.h (enum event_kind): Remove trailing comma.
23808
23809 * frame.h (enum): Remove trailing comma.
23810
238112007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23812
23813 * w32proc.c (delete_child): Don't terminate threads of zombies.
23814
238152007-10-08 Martin Rudalics <rudalics@gmx.at>
23816
23817 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23818
23819 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23820 last-repeatable-command.
23821 (init_kboard): Initialize Vlast_repeatable_command.
23822 (command_loop_1): Set it to real_this_command unless that was
23823 bound to an input event.
23824 (mark_kboards): Mark it.
23825
238262007-10-08 Richard Stallman <rms@gnu.org>
23827
23828 * eval.c (condition-case): Doc fix.
23829
238302007-10-08 Masatake YAMATO <jet@gyve.org>
23831
23832 * xfaces.c (tty_supports_face_attributes_p): Fix code
23833 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23834 was copied and not edited.
23835
238362007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23837
23838 Add new `input-decode-map' keymap and use it for terminal
23839 escape sequences.
23840 * keyboard.h (struct kboard): Add Vinput_decode_map.
23841 Remove Vlocal_key_translation_map.
23842 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23843 (init_kboard): Init input-decode-map.
23844 Replace local-key-translation-map back with key-translation-map.
23845 (syms_of_keyboard): Declare input-decode-map.
23846 Remove local-key-translation-map. Update docstrings.
23847 (mark_kboards): Mark Vinput_decode_map.
23848 Don't mark Vlocal_key_translation_map.
23849 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23850 Replace local-key-translation-map back with key-translation-map.
23851 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23852 Bind in input-decode-map rather than function-key-map.
23853
23854 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23855 This was made redundant by the previous introduction of XSETPVECTYPE.
23856
238572007-10-09 Richard Stallman <rms@gnu.org>
23858
23859 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23860
238612007-09-29 Richard Stallman <rms@gnu.org>
23862
23863 * eval.c (internal_condition_case_2, internal_condition_case_1)
23864 (internal_condition_case): Reenable abort if x_catching_errors ()
23865 to see if that really happens and why.
23866
238672007-10-06 Andreas Schwab <schwab@suse.de>
23868
23869 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23870
238712007-10-04 Juanma Barranquero <lekktu@gmail.com>
23872
23873 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23874
238752007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23876
23877 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23878
238792007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23880
23881 * window.h (struct window):
23882 * window.c (struct save_window_data, struct saved_window):
23883 * termhooks.h (struct terminal):
23884 * process.h (struct Lisp_Process):
23885 * frame.h (struct frame):
23886 * buffer.h (struct buffer):
23887 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23888 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23889 The size field of (pseudo)vectors is now unsigned.
23890 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23891
23892 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23893 Turn `count' into an integer.
23894
23895 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23896 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23897 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23898 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23899 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23900
23901 * alloc.c (allocate_pseudovector): New fun.
23902 (ALLOCATE_PSEUDOVECTOR): New macro.
23903 (allocate_window, allocate_terminal, allocate_frame)
23904 (allocate_process): Use it.
23905 (mark_vectorlike): New function.
23906 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23907 (mark_terminals): Use it.
23908 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23909 (Fmake_byte_code): Use XSETPVECTYPE.
23910
23911 * frame.c (Fframe_parameters): Minor simplification.
23912
23913 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23914
23915 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23916
23917 * buffer.c (Fget_buffer_create, init_buffer_once):
23918 * lread.c (defsubr):
23919 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23920
23921 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23922 defined differently in the m/*.h files.
23923 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23924 (XSETPVECTYPE): New macro.
23925 (XSETPSEUDOVECTOR): Use it.
23926
23927 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23928 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23929
23930 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23931 * lread.c (defvar_per_buffer):
23932 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23933
23934 * window.c (candidate_window_p): Only consider as visible frames that
23935 are on the same terminal.
23936
23937 * m/ibms390x.h (MARKBIT): Remove unused macro.
23938
239392007-10-01 Juanma Barranquero <lekktu@gmail.com>
23940
23941 * lread.c (Fload): Fix typo in docstring.
23942
239432007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23944
23945 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23946 of a non-zero value can't yield zero.
23947
239482007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23949
23950 * term.c (term_clear_mouse_face, term_mouse_highlight)
23951 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23952
23953 * print.c (safe_debug_print): Use XHASH.
23954
23955 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23956 Lisp elements such as tags.
23957 (XHASH): New macro.
23958 (EQ): Use it.
23959 (SREF, SSET, STRING_COPYIN): Use SDATA.
23960 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23961
23962 * alloc.c (mark_terminal): Remove left-over declaration.
23963 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23964 (allocate_vectorlike): Remove type argument. Adjust callers.
23965 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23966 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23967
23968 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23969 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23970 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23971 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23972 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23973 Use them.
23974
23975 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23976 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23977 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23978
239792007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23980
23981 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23982 loaded by default.
23983
239842007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23985
23986 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23987 on this tty.
23988 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23989
23990 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23991 Update all users.
23992 (handle_one_term_event): Use Gpm_DrawPointer.
23993 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23994 Signal errors instead of returning nil. Always return nil.
23995 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23996 Make it a noop if gpm-mouse was not activated.
23997 (syms_of_term): Update names.
23998
239992007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24000
24001 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24002 (init_sys_modes): Check that gpm_tty is the current tty.
24003
24004 * alloc.c (allocate_terminal): Set the vector size to only count the
24005 lisp fields. Initialize those to nil.
24006 (mark_object): Don't treat terminals specially.
24007 (mark_terminal): Remove.
24008 (mark_terminals): Use mark_object instead.
24009
24010 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24011 the GC to the beginning.
24012
24013 * indent.h:
24014 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24015
24016 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24017
240182007-09-25 Jason Rumney <jasonr@gnu.org>
24019
24020 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24021
24022 * w32console.c (create_w32cons_output): Remove.
24023
24024 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24025
24026 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24027 (reset_sys_modes): Use reset_terminal_modes_hook.
24028
240292007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24030
24031 * eval.c (do_autoload): Don't output any message.
24032
240332007-09-24 Juri Linkov <juri@jurta.org>
24034
24035 * emacs.c (standard_args): Change priority of "--no-splash"
24036 from 40 to 3. Add "--no-desktop" with the same priority.
24037
240382007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24039
24040 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24041 and optimize the case where they are all 1.
24042
240432007-09-23 Johannes Weiner <hannes@saeurebad.de>
24044
24045 * lisp.h (abs): Define if not defined.
24046 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24047 Don't define `abs', since it's defined in lisp.h.
24048
240492007-09-22 Eli Zaretskii <eliz@gnu.org>
24050
24051 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24052 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24053 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24054 (init_tty): Use DEV_TTY instead of "/dev/tty".
24055 [WINDOWSNT]: No need to protect from NAME arg being null.
24056
240572007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24058
24059 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24060 up the tty state.
24061
240622007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24063
24064 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24065 (gpm_tty): Change its type.
24066 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24067 (gpm_tty): Change its type and initialize it.
24068 (Fterm_open_connection): Check the frame is indeed a tty.
24069 Use the new gpm_tty.
24070 (Fterm_close_connection): Use the new gpm_tty.
24071 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24072 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24073
240742007-09-21 Juanma Barranquero <lekktu@gmail.com>
24075
24076 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24077 underline_color, to draw strike-through.
24078
240792007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24080
24081 * lisp.h (allocate_terminal): Declare.
24082
24083 * window.c (candidate_window_p): Consider frames that are being placed
24084 by the user as somewhere between visible and iconified.
24085 (window_loop): Prefer windows on the current frame.
24086 (Fselect_window): Move the use of select-frame to the beginning so we
24087 can just delegate all the work (it'll call us back anyway).
24088
24089 * frame.c (Qdisplay_environment_variable):
24090 * frame.h (Qdisplay_environment_variable): Delete.
24091
24092 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24093 of the first arg, since that value may be a union.
24094
24095 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24096 parameter rather than Qdisplay_environment_variable. If all else
24097 fails, look for DISPLAY in initial-environment.
24098
240992007-09-21 Glenn Morris <rgm@gnu.org>
24100
24101 * Makefile.in (emacstool): Remove target.
24102 (lisp, shortlisp): Remove termdev.elc.
24103
241042007-09-21 Markus Triska <markus.triska@gmx.at>
24105
24106 * xterm.c (x_delete_display): Compile session management conditionally.
24107
241082007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24109
24110 * callproc.c (getenv_internal_1): New function.
24111 (getenv_internal): Use it.
24112 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24113
24114 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24115 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24116 (Fset_terminal_parameter): Work with dead terminals as well.
24117 (Fmodify_terminal_parameters): Remove.
24118
24119 * terminal.c (get_terminal): Handle terminals.
24120 Make sure the terminal returned is live.
24121 (create_terminal): Use allocate_terminal.
24122 (mark_terminals): Move to alloc.c.
24123 (delete_terminal): Use terminal->name as liveness status.
24124 NULL out fields after freeing their contents.
24125 Don't deallocate the object.
24126 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24127 rather than an int.
24128 (Fterminal_live_p): Accept non-integer arguments.
24129 (Fterminal_list): Return terminal objects rather than an ints.
24130
24131 * alloc.c (enum mem_type): New member for `terminal' objects.
24132 (allocate_terminal): New function.
24133 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24134 Handle terminals.
24135 (mark_terminal): New fun.
24136 (mark_terminals): Move from terminal.c.
24137
24138 * term.c (get_tty_terminal): Don't treat output_initial specially.
24139 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24140 (delete_tty): Use terminal->name as liveness status.
24141
24142 * termhooks.h (struct terminal): Make it into a pseudovector.
24143 Remove `deleted' replaced by checking `name's nullness.
24144
24145 * print.c (print_object): Handle terminals.
24146
24147 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24148 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24149
24150 * frame.c (make_terminal_frame):
24151 * keyboard.c (tty_read_avail_input):
24152 * w32term.c (x_delete_terminal):
24153 * xfns.c (Fx_create_frame, x_create_tip_frame):
24154 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24155
241562007-09-20 Glenn Morris <rgm@gnu.org>
24157
24158 * process.c (Fmake_network_process): Doc fix.
24159
241602007-09-19 Jason Rumney <jasonr@gnu.org>
24161
24162 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24163
241642007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24165
24166 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24167 Fix a C warning regarding variable constness.
24168
24169 * xterm.c (handle_one_xevent): Fix a C warning.
24170
241712007-09-18 Jason Rumney <jasonr@gnu.org>
24172
24173 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24174
241752007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24176
24177 * gtkutil.c (gdpy_def): New variable.
24178 (xg_initialize): Initialize gdpy_def.
24179 (xg_display_close): If no other display exists, set gdpy_def to a
24180 new connection.
24181
241822007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24183
24184 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24185 when we have no file name for the icon.
24186 (xg_tool_bar_expose_callback): Remove.
24187 (xg_create_tool_bar): Don't connect expose signal to
24188 xg_tool_bar_expose_callback.
24189 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24190
241912007-09-16 Andreas Schwab <schwab@suse.de>
24192
24193 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24194 values instead of zapping them.
24195
241962007-09-14 Glenn Morris <rgm@gnu.org>
24197
24198 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24199 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24200 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24201 scope and rename to omfib_buffer for clarity.
24202 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24203
242042007-09-14 Kenichi Handa <handa@m17n.org>
24205
24206 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24207
242082007-09-13 Jason Rumney <jasonr@gnu.org>
24209
24210 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24211
24212 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24213
24214 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24215 (mac_term_init): Call here instead, passing rif.
24216
242172007-09-13 Glenn Morris <rgm@gnu.org>
24218
24219 * s/hpux.h: No longer define `static' as nothing.
24220
242212007-09-13 Johan Bockgård <bojohan@gnu.org>
24222
24223 * callint.c (Fcall_interactively): Remove unused var `fun'.
24224
242252007-09-12 Romain Francoise <romain@orebokech.com>
24226
24227 * window.c (prefer_window_split_horizontally, display_buffer):
24228 Revert 2007-09-08 change.
24229
242302007-09-12 Glenn Morris <rgm@gnu.org>
24231
24232 * alloca.c: Remove file.
24233 * Makefile.in (alloca): Do not undef.
24234 (allocaobj, alloca.o): Remove.
24235 (otherobj): Remove allocaobj.
24236 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24237 * regex.c (C_ALLOCA): Remove all references and code that was only
24238 used when this was defined.
24239 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24240 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24241 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24242
24243 * Makefile.in (SOURCES, unlock, relock): Delete.
24244
24245 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24246 (menu_grab_callback): All uses changed.
24247
24248 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24249 (x_reply_selection_request): All uses changed.
24250
242512007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24252
24253 * lread.c (load_warn_old_style_backquotes): Change message to look
24254 better when it appears in the middle of byte-compiler messages.
24255
242562007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24257
24258 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24259
24260 * xterm.c (x_create_terminal): Add comment.
24261
24262 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24263
242642007-09-10 Richard Stallman <rms@gnu.org>
24265
24266 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24267
242682007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24269
24270 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24271 (DEFUN): Document `intspec', use it instead of `prompt'.
24272
24273 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24274
24275 * data.c (Finteractive_form): If the interactive specification starts
24276 with a `(', use it as a Lisp form.
24277
24278 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24279 name and file modes.
24280
24281 * callint.c (Fcall_interactively): Comment fixes.
24282
242832007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24284
24285 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24286 and compiled functions.
24287
242882007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24289
24290 * window.c (prefer_window_split_horizontally): New variable.
24291 (display_buffer): Consider splitting window horizontally depending
24292 on prefer_window_split_horizontally.
24293
242942007-09-08 Eli Zaretskii <eliz@gnu.org>
24295
24296 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24297
242982007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24299
24300 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24301
24302 * frame.c (x_set_frame_parameters): Check number is positive before
24303 using XFASTINT.
24304
24305 * window.c (freeze_window_start): Don't presume selected_window holds
24306 a window object.
24307 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24308
243092007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24310
24311 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24312
243132007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24314
24315 * window.c (Vsplit_window_preferred_function): New var.
24316 (Fdisplay_buffer): Use it.
24317 (syms_of_window): Export, and initialize it.
24318
243192007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24320
24321 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24322
243232007-09-06 Glenn Morris <rgm@gnu.org>
24324
24325 * gtkutil.c (menu_grab_callback) <cnt>:
24326 * xselect.c (x_reply_selection_request) <cnt>: Move static
24327 variable to file scope.
24328
243292007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24330
24331 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24332 consistent values of selected_frame and selected_window.
24333
243342007-09-04 Jason Rumney <jasonr@gnu.org>
24335
24336 * w32console.c (initialize_w32_display): Zero unused hooks.
24337
243382007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24339
24340 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24341 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24342
243432007-09-04 Jason Rumney <jasonr@gnu.org>
24344
24345 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24346 in w32console.c. Set up input. Remove XXX comments that have been
24347 confirmed as correct.
24348
24349 * s/ms-w32.h (MULTI_KBOARD): Define.
24350
24351 * w32console.c (one_and_only_w32cons): Remove.
24352 (initialize_w32_display): Take terminal argument.
24353
24354 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24355 initialize_w32_display.
24356 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24357
24358 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24359
24360 * keyboard.c (discard_mouse_events): Discard it.
24361 (make_lispy_event): Translate it to a lisp event.
24362 (lispy_wheel_names): Add wheel-left and right events.
24363 (syms_of_keyboard): Enlarge wheel_syms.
24364
24365 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24366 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24367
24368 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24369
24370 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24371 from WM_MOUSEHWHEEL.
24372 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24373
24374 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24375 terminal.
24376
24377 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24378 keyboard for the terminal.
24379
243802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24381
24382 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24383 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24384 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24385 and resume-tty-function to resume-tty-hook.
24386 (Fsuspend_tty, Fresume_tty): Use new names.
24387
243882007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24389
24390 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24391 if it starts with "n:".
24392
243932007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24394
24395 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24396
243972007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24398
24399 * frame.h:
24400 * frame.c (Qterm_environment_variable): Remove.
24401 (syms_of_frame): Don't init and staticpro it.
24402
24403 * callproc.c (getenv_internal): Remove special case for $TERM.
24404
24405 * callproc.c (Vinitial_environment): New variable.
24406 (set_initial_environment): Initialize it.
24407 (syms_of_callproc): Declare it.
24408 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24409 TERM under which a process runs is never related to the TERM in which
24410 Emacs is running.
24411
244122007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24413
24414 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24415 * s/darwin.h: ... do it here.
24416
244172007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24418
24419 * lisp.h (set_initial_environment): Rename from set_global_environment.
24420
24421 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24422 removed by mistake on the multi-tty branch.
24423
24424 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24425 (Fmodify_frame_parameters): Return a value.
24426
24427 * image.c (png_load): Comment-out var only used in commented-out code.
24428
24429 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24430 before passing it to mark_object.
24431
24432 * xfaces.c (internal_resolve_face_name): Return a value.
24433 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24434
24435 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24436 (x_icon): Comment-out var only used in commented-out code.
24437
244382007-08-29 Romain Francoise <romain@orebokech.com>
24439
24440 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24441 QUIT hasn't been provided.
24442
244432007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24444
24445 * callproc.c (child_setup, getenv_internal): Use the
24446 display-environment-variable and term-environment-variable frame params.
24447 (set_initial_environment): Initialise Vprocess_environment.
24448
24449 * config.in: Disable multi-keyboard support on a mac.
24450
24451 * frame.c (Qterm_environment_variable)
24452 (Qdisplay_environment_variable): New variables.
24453 (syms_of_frame): Intern and staticpro them.
24454 (Fmake_terminal_frame): Disable output method test.
24455
24456 * frame.h: Declare them here.
24457
24458 * macfns.c (x_set_mouse_color): Get rif from the frame.
24459 (x_set_tool_bar_lines): Don't use updating_frame.
24460 (mac_window): Add 2 new parameters for consistency with other systems.
24461 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24462 frame parameters following what is done in X11 and w32. Don't use
24463 FRAME_MAC_DISPLAY_INFO.
24464 (Fx_open_connection, start_hourglass): Remove window-system check.
24465 (x_create_tip_frame): Get the keyboard from the terminal.
24466
24467 * macmenu.c: Reorder includes.
24468 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24469
24470 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24471 terminal parameter.
24472 (x_clear_frame): Add a frame parameter.
24473 (note_mouse_movement): Get rif from the frame.
24474 (mac_term_init): Initialize the terminal.
24475 (mac_initialize): Make static and move terminal initialization ...
24476 (mac_create_terminal): ... to this new function.
24477
24478 * macterm.h (struct mac_display_info): Add terminal.
24479 (mac_initialize): Delete declaration.
24480
24481 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24482
24483 * sysdep.c: Comment out text after #endif.
24484
24485 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24486 is defined. Better initialize ttys in windows. Use terminal
24487 specific mouse_position_hook.
24488
24489 * termhooks.h (union display_info): Add mac_display_info.
24490
24491 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24492 Set the default minibuffer frame, window_system and the rest of the
24493 frame parameters following what is done in X11.
24494
24495 * w32term.c (w32_initialize): Make static.
24496
24497 * xselect.c (x_handle_selection_clear): Only access
24498 terminal->kboard when MULTI_KBOARD is defined.
24499
24500 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24501 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24502
245032007-08-29 Jason Rumney <jasonr@gnu.org>
24504
24505 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24506 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24507
24508 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24509 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24510
24511 * keyboard.c (restore_kboard_configuration): Only define when
24512 MULTI_KBOARD defined.
24513
24514 * makefile.w32-in: Update dependancies from Makefile.in.
24515 (OBJ1): Add terminal.$(O)
24516
24517 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24518 Don't define function body.
24519 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24520
24521 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24522
24523 * w32.c (request_sigio, unrequest_sigio): Remove.
24524
24525 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24526 (w32con_clear_frame, w32con_clear_end_of_line)
24527 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24528 (w32con_delete_glyphs, w32con_set_terminal_window)
24529 (scroll_line, w32_sys_ring_bell): Add frame arg.
24530 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24531 Add terminal arg.
24532 (PICK_FRAME): Remove.
24533 (w32con_write_glyphs): Use frame specific terminal coding.
24534 (one_and_only_w32cons): New global variable.
24535 (initialize_w32_display): Use it for storing hooks.
24536 (create_w32cons_output): New function.
24537
24538 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24539 arg a frame.
24540
24541 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24542 Set window_system.
24543 (x_set_tool_bar_lines): Don't use updating_frame.
24544 (Fx_create_frame): Set terminal and ref count.
24545 (Fx_open_connection): Remove window-system check.
24546
24547 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24548
24549 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24550 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24551 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24552 Add frame arg.
24553 (x_delete_terminal, w32_create_terminal): New functions.
24554 (w32_term_init): Create a terminal.
24555 (w32_initialize): Move terminal specific initialization to
24556 w32_create_terminal.
24557
24558 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24559 (w32_clear_rect, w32_clear_area): Use background from frame.
24560 (w32_display_info): Add terminal.
24561 (w32_sys_ring_bell, x_delete_display): Declare here.
24562
24563 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24564
24565 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24566
245672007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24568
24569 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24570 Fix get_named_tty calls for the controlling tty.
24571
245722007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24573
194d44e7 24574 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24575
245762007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24577
24578 * term.c (tty_insert_glyphs): Add missing first parameter.
24579
245802007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24581
24582 * buffer.c (Fbuffer_list, Fbury_buffer):
24583 Take frame->buried_buffer_list into account.
24584
24585 * cm.c (current_tty): New variable, for cmputc().
24586 (cmputc): Use it.
24587 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24588 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24589 (cmgoto): Add tty parameter. Pass it on to calccost().
24590 Use emacs_tputs() instead of tputs().
24591
24592 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24593 tputs().
24594 (current_tty): New variable, for cmputc().
24595 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24596
24597 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24598 (internal_condition_case, internal_condition_case_1)
24599 (internal_condition_case_2): Don't abort when x_catching_errors.
24600
24601 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24602 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24603 prevent crashes caused by bogus longjmps in read_char.
24604
24605 * keymap.h (Fset_keymap_parent): Add EXFUN.
24606
24607 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24608 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24609 Remove redundant definition.
24610
24611 * macfns.c (x_set_mouse_color, x_make_gc):
24612 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24613
24614 * w32term.c (x_free_frame_resources):
24615 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24616 (w32_initialize): Use the accessor macros for terminal characteristics.
24617
24618 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24619 Use the accessor macros for terminal characteristics.
24620 * msdos.c (internal_terminal_init): Use the accessor macros for
24621 terminal characteristics.
24622 (ScreenVisualBell, internal_terminal_init):
24623 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24624
24625 * termopts.h (no_redraw_on_reenter): Declare.
24626
24627 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24628 (mark_terminals, mark_ttys): Declare.
24629 (Fgarbage_collect): Call them.
24630 (mark_object): Mark buried_buffer_list.
24631
24632 * prefix-args.c: Include stdlib.h for exit.
24633
24634 * syssignal.h: Add comment.
24635
24636 * indent.c: Include stdio.h.
24637
24638 * window.h (Vinitial_window_system): Declare.
24639 (Vwindow_system): Delete declaration.
24640
24641 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24642
24643 * image.c (lookup_image): Don't initialize `c' until the xasserts
24644 have been run.
24645
24646 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24647 FRAME_FOREGROUND_PIXEL.
24648
24649 * print.c (print_preprocess): Don't lose print_depth levels while
24650 iterating.
24651
24652 * widget.c (update_from_various_frame_slots):
24653 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24654
24655 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24656 frames.
24657 (window_internal_height): Remove bogus make_number call.
24658 (init_window_once): Call make_terminal_frame with two zero parameters.
24659
24660 * fileio.c (Fread_file_name): Update comment.
24661
24662 * callint.c (Fcall_interactively):
24663 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24664 Make sure it is correctly unwound.
24665
24666 * xsmfns.c (x_session_close): New function.
24667
24668 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24669 Delete declarations.
24670
24671 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24672 (x_output): Remove background_pixel and foreground_pixel fields.
24673 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24674 (x_delete_device, x_session_close): Declare.
24675
24676 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24677 (read_filtered_event): Call `read_char' with a local
24678 `wrong_kboard_jmpbuf'.
24679
24680 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24681 Don't call single_kboard_state. Use FRAME_RIF.
24682
24683 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24684 systems.
24685
24686 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24687 (Fframe_with_environment, Fset_input_meta_mode)
24688 (Fset_quit_char): EXFUN.
24689 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24690 (init_sys_modes, reset_sys_modes): Update prototypes.
24691 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24692
24693 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24694 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24695 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24696 Delete declarations.
24697 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24698 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24699 New declarations.
24700
24701 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24702 already does that during init_display(). Call syms_of_keymap
24703 before syms_of_keyboard. Call `syms_of_terminal'.
24704 Call set_initial_environment, not set_process_environment.
24705 (shut_down_emacs): Call reset_all_sys_modes() instead of
24706 reset_sys_modes().
24707
24708 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24709 (internal_resolve_face_name, resolve_face_name_error): New functions.
24710 (resolve_face_name): Protect against loops and errors thrown by Fget.
24711 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24712 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24713
24714 * scroll.c: Replace CURTTY() with local variables throughout the
24715 file (where applicable).
24716 (calculate_scrolling, calculate_direct_scrolling)
24717 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24718 characteristics.
24719
24720 * keymap.c (Vfunction_key_map): Remove.
24721 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24722 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24723 (Vkey_translation_map): Remove.
24724 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24725 (Fdescribe_buffer_bindings)
24726 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24727 Update for terminal-local key-translation-map.
24728
24729 * Makefile.in (callproc.o): Update dependencies.
24730 (lisp, shortlisp): Add termdev.elc.
24731 (obj): Add terminal.o.
24732 (terminal.o): Add dependencies.
24733 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24734 (data.o, fns.o): Add termhooks.h dependency.
24735 (SOME_MACHINE_LISP): Add dnd.elc.
24736 (minibuf.o): Fix typo.
24737 Update dependencies.
24738
24739 * data.c (do_symval_forwarding, store_symval_forwarding)
24740 (find_symbol_value): Use the selected frame's keyboard, not
24741 current_kboard.
24742
24743 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24744 Vwindow_system.
24745
24746 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24747 Fmenu_bar_open.
24748 (syms_of_xmenu): Update defsubr.
24749 (mouse_position_for_popup, Fx_popup_menu)
24750 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24751 (set_frame_menubar, free_frame_menubar)
b97439ce 24752 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24753 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24754 an X frame.
24755
24756 * xselect.c (x_own_selection): Abort if not an X frame.
24757 (some_frame_on_display): Check if it is an X frame.
24758 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24759
24760 * coding.c: Include frame.h and termhooks.h.
24761 (terminal_coding, keyboard_coding): Delete.
24762 (Fset_terminal_coding_system_internal)
24763 (Fset_keyboard_coding_system_internal)
24764 (Fkeyboard_coding_system)
24765 (Fterminal_coding_system): Add a terminal parameter.
24766 Get terminal_coding from the terminal.
24767 (init_coding_once): Don't call setup_coding_system here.
24768
24769 * dispextern.h (set_scroll_region, turn_off_insert)
24770 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24771 (tty_clear_end_of_line, tty_setup_colors)
24772 (delete_tty, updating_frame)
24773 (produce_special_glyphs, produce_glyphs, write_glyphs)
24774 (insert_glyphs): Remove.
24775 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24776 (tty_turn_off_highlight, get_tty_size): Add declaration.
24777 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24778
24779 * frame.h (enum output_method): Add output_initial.
24780 (struct x_output): Delete.
24781 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24782 Access foreground_pixel and background_pixel directly from the frame.
24783 (tty_display): Delete.
24784 (struct frame): Add buried_buffer_list, foreground_pixel,
24785 background_pixel and terminal. Delete kboard.
24786 (union output_data): Add tty.
24787 (FRAME_KBOARD): Get the kboard from the terminal.
24788 (FRAME_INITIAL_P): New macro.
24789 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24790 (Qterm_environment_variable, Qdisplay_environment_variable)
24791 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24792 New declarations.
24793
24794 * termchar.h (tty_output, tty_display_info): New structures.
24795 (tty_list): Declare.
24796 (FRAME_TTY, CURTTY): New macros.
24797 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24798 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24799 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24800 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24801
24802 * callproc.c: Include frame.h and termhooks.h, for terminal
24803 parameters.
24804 (add_env): New function.
24805 (child_setup): Use it.
24806 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24807 (getenv_internal): Fix get_terminal_param call.
24808 (Fgetenv_internal, egetenv): Update doc.
24809 (syms_of_callproc): Initialize Vprocess_environment to nil.
24810 Register and initialize them. Remove obsolete defvars. Update doc
24811 strings.
24812 (child_setup): Handle Vlocal_environment_variables.
24813 (getenv_internal): Add terminal parameter.
24814 Handle Vlocal_environment_variables.
24815 (Fgetenv_internal): Add terminal parameter.
24816 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24817 environment in a frame (not terminal) parameter. Update doc strings.
24818 (set_initial_environment): Rename from set_global_environment.
24819 Store Emacs environment in initial frame parameter.
24820
24821 * xdisp.c (redisplay_internal): Update references to
24822 `previous_terminal_frame'.
24823 (display_mode_line, Fformat_mode_line): Replace calls to
24824 `push_frame_kboard' with `push_kboard'.
24825 (get_glyph_string_clip_rects): Add extra parentheses and
24826 braces to prevent compiler warnings.
24827 (calc_pixel_width_or_height): Add xassert to check that the
24828 frame is alive. Don't call `lookup_image' on a termcap frame.
24829 (message2_nolog, message3_nolog, redisplay_internal)
24830 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24831 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24832 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24833 (Fx_display_pixel_width, Fx_display_pixel_height)
24834 (Fx_display_planes, Fx_display_color_cells)
24835 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24836 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24837 (Fx_display_backing_store, Fx_display_visual_class)
24838 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24839 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24840
24841 * xfns.c (x_set_foreground_color x_set_background_color)
24842 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24843 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24844 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24845 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24846 terminal that is being deleted.
24847 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24848 frame parameter, and make sure it overrides any user-supplied setting.
24849 (Fx_close_connection, Fx_synchronize): Unify argument names with
24850 the rest of the DEFUNs.
24851
24852 * dispnew.c (Fsend_string_to_terminal): Update call to
24853 `get_tty_terminal'.
24854 (Fredraw_frame, Fsend_string_to_terminal)
24855 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24856 FRAME_TERMCAP_P and FRAME_TTY.
24857 (window_change_signal): Don't believe width/height values that are
24858 impossibly small.
24859 (Vinitial_window_system): Rename from Vwindow_system.
24860 (termscript, Wcm, rif): Delete.
24861
24862 * termhooks.h (struct terminal): New struct containing the
24863 previously global text display hooks and new members NAME,
24864 DELETED and PARAM_ALIST.
24865 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24866 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24867 (FRAME_RIF): New macros.
24868 (get_terminal_param, get_device): New declarations.
24869 (termscript): Delete declaration.
24870
24871 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24872 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24873 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24874 FRAME_FOREGROUND_PIXEL.
24875 (x_fully_uncatch_errors): Disable definition.
24876 (x_scroll_bar_expose): Fix reference to foreground pixel.
24877 (XTread_socket): Disable loop on all X displays.
24878 (x_delete_terminal): Don't set terminal->deleted and let
24879 delete_terminal delete the frames on the terminal.
24880 (x_delete_display): Doc update to reflect changes in
24881 delete_terminal.
24882 (x_display_info) <terminal>: Move member earlier in the struct.
24883 (deleting_tty): Remove old variable.
24884 (Fsuspend_tty): Call clear_tty_hooks.
24885 (Fresume_tty, init_tty): Call set_tty_hooks.
24886 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24887 errors on X frames.
24888 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24889 (handle_one_xevent): Initialize `f' to NULL.
24890 (x_delete_terminal, x_create_terminal): New functions.
24891 (XTset_terminal_modes, XTreset_terminal_modes)
24892 (XTread_socket, x_connection_closed, x_term_init)
24893 (x_term_init, x_delete_display): Add terminal parameter.
24894 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24895 X connections.
24896
24897 * frame.c: Include termchar.h.
24898 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24899 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24900 (Qdisplay_environment_variable): New vars.
24901 (Fframep): Deal with output_initial.
24902 (Fframe-live-p): Doc fix.
24903 (Fwindow-system): New function.
24904 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24905 (make_terminal_frame): Don't create frames on a terminal that is
24906 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24907 (store_frame_param): Check for found_for_frame before calling XFRAME.
24908 (Fmake_terminal_frame): Handle NULL tty names correctly.
24909 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24910 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24911 frames to refer to a deleted frame in their 'environment parameter.
24912 (Fframe_with_environment): New function.
24913 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24914 (get_future_frame_param): New function.
24915 (Fmake_terminal_frame): Use it.
24916 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24917
24918 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24919 * sysdep.c (reset_sys_modes): Update for renames.
24920
24921 * keyboard.c (tty_read_avail_input): New function.
24922 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24923 (syms_of_keyboard): Defsubr them.
24924 (Fset_input_meta_mode, Fset_quit_char): New functions.
24925 (Fset_input_mode): Split to above functions.
24926 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24927 parameter. Use it in call to `read_char'.
24928 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24929 Set wrong_kboard_jmpbuf correctly in recursive calls.
24930 Use current_kboard to access Vkeyboard_translate_table.
24931 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24932 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24933 Update longjmp invocations. Remember the original current_kboard,
24934 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24935 changes it. Comment out unnecessary calls to
24936 `record_single_kboard_state' and `any_kboard_state'.
24937 Update recursive calls.
24938 (wrong_kboard_jmpbuf): Remove global variable.
24939 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24940 Handle deleted interrupted_kboards correctly; that is a legal
24941 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24942 and read_char calls. Abort if interrupted_kboard died in read_char.
24943 (any_kboard_state, single_kboard_state)
24944 (push_frame_kboard): Remove function.
24945 (pop_kboard): Switch out of single_kboard mode if the kboard has
24946 been deleted. Remove unused variable. Help debugging by not
24947 changing current_kboard unnecessarily. Set current_kboard to the
24948 kboard of the selected frame when the stored kboard object has
24949 been deleted before pop_kboard.
24950 (temporarily_switch_to_single_kboard): Change first parameter to a
24951 frame pointer. Throw an error when caller wants to change kboards
24952 while in single_kboard mode. Don't push_kboard if we weren't in
24953 single kboard state. Don't pop_kboard if we popped into any
24954 kboard state.
24955 (restore_kboard_configuration): Abort if pop_kboard changed the
24956 kboard in single_kboard mode. Call pop_kboard only after setting
24957 up single_kboard mode.
24958 (Frecursive_edit): Switch to single_kboard mode only in nested
24959 command loops.
24960 (cmd_error, command_loop, command_loop_1, timer_check):
24961 Comment out unnecessary call to `any_kboard_state' and
24962 `record_single_kboard_state'.
24963 (delete_kboard): Exit single_kboard mode if we have just deleted
24964 that kboard. Use FRAME_KBOARD.
24965 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24966 `fatal_error_signal'.
24967 (record_single_kboard_state): Don't push_kboard if we weren't in
24968 single kboard state. Don't pop_kboard if we popped into any
24969 kboard state.
24970 (push_frame_kboard): Rename to push_kboard.
24971 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24972 (read_avail_input): Read input from all terminals.
24973 (mark_kboards): Also mark Vkeyboard_translate_table.
24974 (kbd_buffer_store_event_hold): Simplify condition.
24975 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24976 (Vkeyboard_translate_table): Move to struct kboard.
24977 (init_kboard): Initialize Vkeyboard_translate_table.
24978 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24979 Vkeyboard_translate_table. Update doc strings. Update docs of
24980 local-function-key-map and function-key-map.
24981
24982 * terminal.c: New file.
24983
24984 * term.c: Include errno.h.
24985 (Vring_bell_function, device_list, initial_device)
24986 (next_device_id, ring_bell, update_begin, update_end)
24987 (set_terminal_window, cursor_to, raw_cursor_to)
24988 (clear_to_end, clear_frame, clear_end_of_line)
24989 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24990 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24991 (syms_of_term): Move their initialization to terminal.c.
24992 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24993 (Ftty_display_color_cells)
24994 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24995 (clear_tty_hooks, set_tty_hooks)
24996 (init_tty, maybe_fatal): New functions.
24997 (Ftty_type): Return nil if terminal is not on a tty instead of
24998 throwing an error. Doc update.
24999 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25000 Doc update. Initialize new subrs and variables.
25001 (delete_tty): Use terminal->deleted.
25002 (tty_set_terminal_modes): Rename from set_terminal_modes.
25003 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25004 (set_scroll_region): Rename to `tty_set_scroll_region'.
25005 (turn_on_insert): Rename to `tty_turn_on_insert'.
25006 (turn_off_insert): Rename to `tty_turn_off_insert'.
25007 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25008 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25009 (toggle_highligh): Rename to `tty_toggle_highlight'.
25010 (background_highlight): Rename to `tty_background_highlight'.
25011 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25012 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25013 (tty_set_scroll_region, tty_background_highlight)
25014 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25015 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25016 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25017 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25018 Add static modifier.
25019 (tty_reset_terminal_modes, tty_set_terminal_window)
25020 (tty_set_scroll_region, tty_background_highlight)
25021 (tty_highlight_if_desired, tty_cursor_to)
25022 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25023 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25024 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25025 renames.
25026
250272007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25028
25029 * keyboard.c: Qrtl is new.
25030 (parse_tool_bar_item): Handle :rtl keyword.
25031 (syms_of_keyboard): Intern :rtl keyword.
25032
25033 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25034
25035 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25036 so no Lisp code is executed.
25037 (file_for_image, find_rtl_image): New functions.
25038 (xg_get_image_for_pixmap): Use file_for_image.
25039 (update_frame_tool_bar): If direction is RTL, use RTL image if
25040 defined. Use Gtk stock images if defined.
25041
250422007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25043
25044 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25045 for nonexistent or zero-width glyph in composition glyph.
25046
250472007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25048
25049 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25050
25051 * xdisp.c (Finvisible_p): New function.
25052 (syms_of_xdisp): defsubr it.
25053
250542007-08-24 Juanma Barranquero <lekktu@gmail.com>
25055
25056 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25057 Doc fixes.
25058
250592007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25060
25061 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25062
250632007-08-24 Martin Rudalics <rudalics@gmx.at>
25064
25065 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25066 whether decoding has modified buffer contents.
25067
250682007-08-24 Jason Rumney <jasonr@gnu.org>
25069
25070 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25071 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25072 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25073 (init_svg_functions) [HAVE_NTGUI]: New function.
25074 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25075 (svg_load_image): Use them.
25076 (svg_load_image) [HAVE_NTGUI]: Implement background.
25077
250782007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25079
25080 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25081 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25082 (LIBX): Remove @RSVG_LIBS@.
25083 (LIBES): Add $(RSVG_LIBS).
25084
25085 * image.c (svg_load_image): Blend with specified background if exists.
25086 Use IMAGE_BACKGROUND. Add Mac OS Support.
25087
25088 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25089 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25090 Remove macros.
25091 [MAC_OSX] (socket_callback): Do nothing.
25092 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25093 ReceiveNextEvent.
25094 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25095 socket_callback.
25096 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25097
250982007-08-22 Glenn Morris <rgm@gnu.org>
25099
25100 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25101
251022007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25103
25104 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25105
25106 * image.c: Add support for SVG images. Some additional comments
25107 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25108 (svg_image_p): New function to test for SVG image.
25109 (svg_load): New function to load SVG image.
25110 (svg_load_image): New function, helper for svg_load.
25111 (Qsvg): New Lisp_object.
25112 (svg_keyword_index): New enum.
25113 (svg_format): New static `image_keyword' struct.
25114 (svg_type): New static `image_type' struct.
25115 (librsvg/rsvg.h): Include it.
25116
251172007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25118
25119 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25120
251212007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25122
25123 * lread.c (Qold_style_backquotes): New var.
25124 (syms_of_lread): Init and staticpro it.
25125 (load_warn_old_style_backquotes): New fun.
25126 (Fload): Use them to warn about old style backquotes.
25127 (end_of_file_error, Fload): Remove unused vars.
25128
25129 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25130
25131 * lread.c (Vold_style_backquotes): New var.
25132 (syms_of_lread): Init and export it to Elisp.
25133 (read1): Set it when we find an old-style (back)quote.
25134
251352007-08-22 Jason Rumney <jasonr@gnu.org>
25136
25137 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25138
251392007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25140
25141 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25142
251432007-08-19 Richard Stallman <rms@gnu.org>
25144
25145 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25146
251472007-08-19 Andreas Schwab <schwab@suse.de>
25148
25149 * alloc.c (pure): Round PURESIZE up.
25150
251512007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25152
25153 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25154 active frame.
25155
251562007-08-16 Richard Stallman <rms@gnu.org>
25157
25158 * eval.c (Fcommandp): Add parens to clarify.
25159
25160 * minibuf.c (Fall_completions): Use enum for type of table.
25161
25162 * emacs.c (USAGE2): Improve text.
25163
251642007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25165
25166 * term.c (tty_default_color_capabilities): Declare static
25167 variables in file scope, to avoid HPUX compiler problem.
25168
251692007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25170
25171 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25172 to gtk_toolbar_insert.
25173
251742007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25175
25176 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25177
25178 * insdel.c (reset_var_on_error): New fun.
25179 (signal_before_change, signal_after_change):
25180 Use it to reset (after|before)-change-functions to nil in case of error.
25181 Bind inhibit-modification-hooks to t.
25182 Don't bind (after|before)-change-functions to nil while they run.
25183
251842007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25185
25186 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25187 filling pixmap with stippled background.
25188
251892007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25190
25191 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25192 Don't use invisible frame as parent window for repositioning.
25193
251942007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25195
25196 * print.c (new_backquote_output): Rename from old_backquote_output.
25197 (print): Inverse its logic (according to its name) so as to match the
25198 behavior of new_backquote_flag in lread.c.
25199
252002007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25201
25202 * gmalloc.c (posix_memalign): New function.
25203
25204 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25205 ActivateControl/DeactivateControl here.
25206 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25207 frame-notice-user-settings is non-nil.
25208 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25209 for kEventParamFMFontStyle.
25210 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25211 mac_pass_command_to_system and mac_pass_control_to_system here.
25212 (XTread_socket): Call ActivateControl/DeactivateControl here.
25213 (XTread_socket) [TARGET_API_MAC_CARBON]:
25214 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25215 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25216 for window repositioning.
25217
252182007-08-08 Glenn Morris <rgm@gnu.org>
25219
25220 * Replace `iff' in doc-strings and comments.
25221
252222007-08-07 Chong Yidong <cyd@stupidchicken.com>
25223
25224 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25225
252262007-08-07 Martin Rudalics <rudalics@gmx.at>
25227
25228 * fileio.c (Finsert_file_contents): Run format-decode and
25229 after_insert_file_functions on entire buffer when REPLACE is
25230 non-nil and inhibit modification_hooks and point_motion_hooks.
25231 For consistency, run after_insert_file_functions iff something
25232 got inserted. Move signal_after_change and update_compositions
25233 after code running after_insert_file_functions. Make sure that
25234 undo_list doesn't record intermediate steps of the decoding process.
25235
252362007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25237
25238 * emacs.c (main)
25239 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25240 Call malloc_enable_thread on interactive startup.
25241
25242 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25243 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25244 [USE_PTHREAD]: Conditionalize with it.
25245 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25246 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25247 New functions.
25248
252492007-08-06 Chong Yidong <cyd@stupidchicken.com>
25250
25251 * xdisp.c (redisplay_window): When restoring original buffer
25252 position, make sure it is still valid.
25253
25254 * image.c (png_load): Ignore png-supplied background color.
25255
252562007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25257
25258 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25259 Use kCFAbsoluteTimeIntervalSince1970.
25260
25261 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25262 New variable.
25263 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25264 event loop should be quit.
25265 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25266 Quit dialog event loop if quit_dialog_event_loop is set.
25267
25268 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25269 (Selection): New typedef. Use instead of ScrapRef.
25270 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25271 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25272 (mac_clear_selection): Rename from clear_scrap.
25273 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25274 scrap_has_target_type. All uses changed.
25275 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25276 (mac_selection_has_target_p): New functions.
25277 (mac_put_selection_value): Rename from put_scrap_string.
25278 (mac_get_selection_value): Rename from get_scrap_string.
25279 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25280 (put_scrap_private_timestamp, scrap_has_target_type)
25281 (get_scrap_private_timestamp): Remove functions.
25282 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25283 (x_own_selection, x_get_local_selection):
25284 Use mac_valid_selection_value_p.
25285 (x_own_selection): Don't use put_scrap_private_timestamp.
25286 Record OWNERSHIP-INFO into Vselection_alist instead.
25287 (x_get_local_selection): Don't check type if request is local.
25288 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25289 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25290
252912007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25292
25293 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25294 add comment explaining why.
25295
252962007-08-03 Richard Stallman <rms@gnu.org>
25297
25298 * fileio.c (Fvisited_file_modtime): Use make_time.
25299
253002007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25301
25302 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25303 build.
25304
253052007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25306
25307 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25308
253092007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25310
25311 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25312
253132007-07-30 Richard Stallman <rms@gnu.org>
25314
25315 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25316
253172007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25318
25319 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25320
253212007-07-28 Nick Roberts <nickrob@snap.net.nz>
25322
25323 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25324 remote default-directory.
25325
25326 * buffer.c (mode-line-format): Update doc string.
25327
253282007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25329
25330 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25331 scroll bar gap.
25332 (x_scroll_bar_create): Set bar->fringe_extended_p.
25333 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25334 on frame edge. Check fringe background extension. Don't clear
25335 extended fringe background area.
25336
25337 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25338 (w32_fill_area): Enclose multiple statements with do ... while (0).
25339
25340 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25341 Extend fringe background to scroll bar gap.
25342 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25343 Set bar->fringe_extended_p.
25344 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25345 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25346 background extension. Don't clear extended fringe background area.
25347
25348 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25349 New member fringe_extended_p.
25350
253512007-07-25 Glenn Morris <rgm@gnu.org>
25352
25353 * Relicense all FSF files to GPLv3 or later.
25354
25355 * COPYING: Switch to GPLv3.
25356
253572007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25358
25359 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25360
25361 * data.c (Finteractive_form): Check for the presence of an
25362 `interactive-form' symbol property more thoroughly.
25363
25364 * data.c (Finteractive_form): Use an `interactive-form' property if
25365 present, analogous to the function-documentation property.
25366
253672007-07-24 Jason Rumney <jasonr@gnu.org>
25368
25369 * w32fns.c (x_real_positions): Get real position from OS instead of
25370 calculating it.
25371
253722007-07-23 Jason Rumney <jasonr@gnu.org>
25373
25374 * filelock.c (current_lock_owner): Allow for @ sign in username.
25375
253762007-07-22 Nick Roberts <nickrob@snap.net.nz>
25377
25378 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25379 remote default-directory.
25380
25381 * buffer.c (mode-line-format): Describe above case in doc string.
25382
253832007-07-20 Eli Zaretskii <eliz@gnu.org>
25384
25385 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25386 Define if not defined.
25387
253882007-07-18 Jason Rumney <jasonr@gnu.org>
25389
25390 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25391
253922007-07-18 Richard Stallman <rms@gnu.org>
25393
25394 * data.c (Fsetq_default): Doc fix.
25395
25396 * eval.c (Fsetq): Doc fix.
25397
253982007-07-18 Juanma Barranquero <lekktu@gmail.com>
25399
25400 * coding.c (Ffind_operation_coding_system):
25401 * eval.c (For, Fand): Doc fixes.
25402 Reported by Johan Bockgård.
25403
254042007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25405
25406 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25407
25408 * xterm.h: Declare x_ewmh_activate_frame.
25409
25410 * xterm.c (x_ewmh_activate_frame): New function.
25411 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25412
254132007-07-17 Martin Rudalics <rudalics@gmx.at>
25414
25415 * window.c (Fdisplay_buffer): If largest or LRU window is the
25416 only window, split it even if it is not eligible for splitting.
25417 This restores the original behavior broken by the 2007-07-15
25418 change.
25419
254202007-07-17 Glenn Morris <rgm@gnu.org>
25421
25422 * abbrev.c (abbrev_check_chars): New function.
25423 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25424 Call abbrev_check_chars to check abbrev characters are word
25425 constituents. Doc fix.
25426
254272007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25428
25429 * process.c (Fstart_process, Fmake_network_process)
25430 (read_process_output): Fix up last changes.
25431
254322007-07-16 Eli Zaretskii <eliz@gnu.org>
25433
25434 * makefile.w32-in (clean): Don't delete *~.
25435
254362007-07-16 Andreas Schwab <schwab@suse.de>
25437
25438 * window.c (Fdisplay_buffer): Use NILP.
25439 (Fset_window_scroll_bars): Likewise.
25440
254412007-07-15 Martin Rudalics <rudalics@gmx.at>
25442
25443 * window.c (window_min_size_2): New function.
25444 (window_min_size_1, size_window, Fdisplay_buffer)
25445 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25446 windows without mode- or header-lines when window-min-height is
25447 too small.
25448 (size_window): Reset nodelete_p after testing it, following an
25449 earlier note by Kim F. Storm.
25450 (display_buffer): Do not set split_height_threshold to twice the
25451 value of window_min_height to avoid changing the value of a
25452 customizable variable. Rather explicitly check whether the
25453 height of the window that shall be splitted is at least as large
25454 as split_height_threshold.
25455 (Fwindow_full_width_p): New defun.
25456 (syms_of_window): Defsubr it.
25457
25458 * window.h: Add EXFUN for Fwindow_full_width_p.
25459
254602007-07-14 Jason Rumney <jasonr@gnu.org>
25461
25462 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25463
254642007-07-14 Richard Stallman <rms@gnu.org>
25465
25466 * eval.c (maybe_call_debugger): New function.
25467 (find_handler_clause): Use maybe_call_debugger.
25468 Call it when the handler says `debug'.
25469 Eliminate DEBUGGER_VALUE_PTR.
25470 (Fsignal): Eliminate debugger_value.
25471 (Qdebug): New variable.
25472 (syms_of_eval): Initialize it.
25473
254742007-07-14 Juanma Barranquero <lekktu@gmail.com>
25475
25476 * eval.c (Fprogn):
25477 * keyboard.c (Ftrack_mouse):
25478 * print.c (Fwith_output_to_temp_buffer):
25479 * window.c (Fsave_window_excursion): Doc fix.
25480
254812007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25482
25483 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25484
254852007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25486
25487 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25488 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25489 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25490 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25491 Remove unused encoding_carryover.
25492 * process.c: Adjust all functions accordingly.
25493
254942007-07-12 Richard Stallman <rms@gnu.org>
25495
25496 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25497
254982007-07-11 Jason Rumney <jasonr@gnu.org>
25499
25500 * makefile.w32-in (LIBS): Include OLE32.
25501
25502 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25503 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25504
255052007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25506
25507 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25508 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25509 from a Lisp_Object into a bare pointer.
25510 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25511 Adjust the code correspondingly.
25512
25513 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25514
25515 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25516 (term_show_mouse_face): Remove unused var `j'.
25517 (handle_one_term_event): Remove unused vars `i' and `j'.
25518 Don't cast return value of ttyname since it's not necessary.
25519
255202007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25521
25522 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25523 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25524
25525 * fns.c (map_char_table): Use an array of int for `indices' rather than
25526 an array of Lisp_Objects (which are only ever integers anyway).
25527 (Fmap_char_table): Update caller.
25528 * lisp.h: Update prototype.
25529 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25530 * fontset.c (Ffontset_info):
25531 * casetab.c (set_case_table): Update callers.
25532
25533 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25534
25535 * keymap.c (struct accessible_keymaps_data)
25536 (struct where_is_internal_data): New structures.
25537 (accessible_keymaps_1, where_is_internal_1): Use them to change
25538 interface to adhere to the one used by map_keymap.
25539 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25540 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25541
25542 * keymap.h (map_keymap_function_t): More informative prototype.
25543
255442007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25545
25546 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25547 (looking_at_1): Don't change search_regs and last_thing_searched
25548 if `inhibit-changing-match-data' is non-nil.
25549 (string_match_1, search_buffer, set_search_regs): Likewise.
25550 (syms_of_search): Add Lisp level definition for
25551 `inhibit-changing-match-data' and set it to nil.
25552 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25553 start and end of the match, instead of using values in search_regs.
25554
255552007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25556
25557 * minibuf.c (Fcompleting_read): New value `confirm-only'
25558 for `require-match'.
25559
255602007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25561
25562 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25563 part of the 2007-06-27 change to syms_of_fileio.
25564
255652007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25566
25567 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25568 Check WINDOWP before using XWINDOW. Consolidate return statements.
25569
255702007-06-27 Richard Stallman <rms@gnu.org>
25571
25572 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25573
255742007-06-27 Juanma Barranquero <lekktu@gmail.com>
25575
25576 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25577
255782007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25579
25580 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25581 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25582 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25583 (_free_internal, memalign): Use them.
25584 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25585 Initialize to PTHREAD_MUTEX_INITIALIZER.
25586 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25587 (morecore_nolock): Rename from morecore. All uses changed.
25588 Use only nolock versions of internal allocation functions.
25589 (_malloc_internal_nolock, _realloc_internal_nolock)
25590 (_free_internal_nolock): New functions created from
25591 _malloc_internal, _realloc_internal, and _free_internal.
25592 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25593 Copy hook value to automatic variable before its use.
25594 (memalign): Copy hook value to automatic variable before its use.
25595
255962007-06-26 Kenichi Handa <handa@m17n.org>
25597
25598 * coding.c (Ffind_operation_coding_system): Docstring improved.
25599 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25600
256012007-06-25 David Kastrup <dak@gnu.org>
25602
25603 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25604 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25605 cater for additional parameter.
25606
25607 * keymap.h: Adjust number of parameters to `current-active-maps'.
25608
25609 * doc.c (Fsubstitute_command_keys): Adjust call of
25610 `current-active-maps'.
25611
256122007-06-25 David Kastrup <dak@gnu.org>
25613
25614 * callint.c (Fcall_interactively): Make the parsing of interactive
25615 specs somewhat more readable.
25616
256172007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25618
25619 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25620 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25621 if extended background has already been filled.
25622
256232007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25624
25625 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25626 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25627
25628 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25629 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25630 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25631 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25632 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25633 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25634 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25635 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25636 Run timers during dialog popup.
25637 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25638
256392007-06-21 Jason Rumney <jasonr@gnu.org>
25640
25641 * image.c (convert_mono_to_color_image): Swap fore and background.
25642
256432007-06-20 Jason Rumney <jasonr@gnu.org>
25644
25645 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25646 (w32_free_bdf_font): Unmap memory not handle.
25647
256482007-06-20 Sam Steingold <sds@gnu.org>
25649
25650 * gmalloc.c (__morecore): Fix the declaration to comply with the
25651 definition.
25652
256532007-06-20 Juanma Barranquero <lekktu@gmail.com>
25654
25655 * w32term.c (w32_delete_display): Remove leftover declaration.
25656 (w32_define_cursor, w32_initialize): Make static.
25657
25658 * w32.c (_wsa_errlist): Fix typo in error message.
25659 (init_environment): Ignore any environment variable from the
25660 registry having a null value.
25661
256622007-06-20 Glenn Morris <rgm@gnu.org>
25663
25664 * Makefile.in (LIBGIF): Default to -lgif.
25665
256662007-06-17 Jason Rumney <jasonr@gnu.org>
25667
25668 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25669 unicode strings.
25670
256712007-06-16 Juanma Barranquero <lekktu@gmail.com>
25672
25673 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25674 Fix typo in docstring.
25675
256762007-06-16 Eli Zaretskii <eliz@gnu.org>
25677
25678 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25679 and their keybindings.
25680
256812007-06-15 Chong Yidong <cyd@stupidchicken.com>
25682
25683 * composite.c (update_compositions): Fix last fix.
25684
256852007-06-14 Jason Rumney <jasonr@gnu.org>
25686
25687 * w32.c (get_process_times_fn): New function pointer.
25688 (globals_of_w32): Intialize it if present in kernel32.dll.
25689 (w32_get_internal_run_time): New function.
25690
25691 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25692
256932007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25694
25695 * composite.c (update_compositions): Check the validness of
25696 compositions.
25697
256982007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25699
25700 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25701 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25702
25703 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25704 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25705
25706 * macgui.h (USE_MAC_TOOLBAR): New define.
25707
25708 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25709 Return immediately unless popup is activated.
25710
25711 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25712 background to scroll bar gap.
25713 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25714 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25715 scroll bars on frame edge. Check fringe background extension.
25716 Don't clear extended fringe background area.
25717 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25718 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25719 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25720 [USE_MAC_TOOLBAR]: New macros.
25721 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25722 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25723 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25724 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25725 [USE_MAC_TOOLBAR]: New functions.
25726 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25727 manually if previous repositioning has failed.
25728 (mac_handle_keyboard_event): Use precomputed event kind.
25729 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25730 as tool bar item click. Handle mouse movement over tool bar items.
25731
25732 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25733 toolbar_win_gravity.
25734 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25735 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25736 Add externs.
25737
25738 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25739 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25740
257412007-06-14 Chong Yidong <cyd@stupidchicken.com>
25742
25743 * image.c (search_image_cache): Remove unused variable.
25744
257452007-06-13 Chong Yidong <cyd@stupidchicken.com>
25746
25747 * xfns.c, xmenu.c: Link to xaw3d if available.
25748
257492007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25750
25751 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25752 frame_foreground and frame_background.
25753
25754 * image.c (lookup_image): Save frame foreground and background colors.
25755 (search_image_cache): Check if saved and current frame colors match.
25756
257572007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25758
25759 * regex.c (regex_compile): Remove the `regnum' counter.
25760 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25761
257622007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25763
25764 * term.c: Include intervals.h to declare Fget_text_property.
25765
257662007-06-10 Jason Rumney <jasonr@gnu.org>
25767
25768 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25769
257702007-06-08 Juanma Barranquero <lekktu@gmail.com>
25771
25772 * callint.c (Fcall_interactively):
25773 * editfns.c (Fdelete_and_extract_region):
25774 * fileio.c (Fread_file_name):
25775 * fns.c (Fmapconcat):
25776 * keyboard.c (cmd_error_internal):
25777 * keymap.c (Fkey_description):
25778 * lread.c (openp):
25779 * minibuf.c (read_minibuf):
25780 * search.c (wordify):
25781 * sunfns.c (sel_read):
25782 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25783 * xfns.c (x_default_scroll_bar_color_parameter):
25784 * xmenu.c (menu_help_callback):
25785 * xselect.c (Fx_get_atom_name):
25786 * xterm.c (x_term_init): Use empty_unibyte_string.
25787
257882007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25789
25790 * alloc.c (init_strings): Initialize canonical empty strings.
25791 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25792 canonical empty string when the requested size is 0.
25793
25794 * emacs.c (empty_unibyte_string): Rename from empty_string.
25795 (empty_multibyte_string): New canonical empty string.
25796 (syms_of_emacs): Don't initialize empty_string.
25797
25798 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25799 string, if appropriate.
25800 (empty_unibyte_string, empty_multibyte_string): New externs.
25801 (empty_string): Remove extern.
25802
25803 * lread.c (syms_of_lread): Use empty_unibyte_string.
25804
258052007-06-07 Jason Rumney <jasonr@gnu.org>
25806
25807 * s/ms-w32.h: Don't define HAVE_TZNAME.
25808
25809 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25810
258112007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25812
25813 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25814
25815 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25816 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25817
25818 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25819 Don't call next handler.
25820 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25821 Remove argument. Install handler to application.
25822 (set_frame_menubar): Don't change deep_p.
25823 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25824 FRAME_OUTER_TO_INNER_DIFF_Y.
25825 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25826 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25827 [HAVE_DIALOGS]: New macros.
25828 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25829 Use them.
25830 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25831
25832 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25833 init_service_handler. All callers changed. Return OSStatus value.
25834
25835 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25836 All callers changed so as not to call SetPortWindowPort.
25837 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25838 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25839 mac_draw_string_common.
25840 (mac_draw_image_string_qd): Likewise.
25841 (mac_draw_string_common): Use them. Add INLINE.
25842 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25843 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25844 GetGlobalMouse.
25845 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25846 and FRAME_OUTER_TO_INNER_DIFF_Y.
25847 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25848 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25849 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25850 repositioning window to mac_handle_window_event.
25851 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25852 saving window location to mac_handle_window_event
25853 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25854 (install_menu_target_item_handler): Remove argument in extern.
25855 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25856 Also accept command events.
25857 (do_keystroke): New function created from XTread_socket.
25858 (init_command_handler): Remove functions.
25859 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25860 and save window location by kEventWindowShowing and kEventWindowHiding
25861 handlers here. Don't call next handler for window state change and
25862 focus events.
25863 (mac_handle_application_event, mac_handle_keyboard_event)
25864 [TARGET_API_MAC_CARBON]: New functions.
25865 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25866 kEventWindowShowing and kEventWindowHiding events. Move installation
25867 of mouse, font, text input and menu target item handlers to
25868 install_application_handler.
25869 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25870 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25871 New function.
25872 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25873 Register it.
25874 (XTread_socket) [TARGET_API_MAC_CARBON]:
25875 Consolidate SendEventToEventTarget calls.
25876 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25877 Move application activation handler to mac_handle_application_event.
25878 Move keyboard handler to mac_handle_keyboard_event.
25879 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25880 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25881 init_command_handler. Call install_application_handler.
25882
25883 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25884 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25885
258862007-06-07 Glenn Morris <rgm@gnu.org>
25887
25888 * emacs.c (main): Use `emacs-copyright' in --version output.
25889
258902007-06-06 Chong Yidong <cyd@stupidchicken.com>
25891
25892 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25893
258942007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25895
25896 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25897
25898 * macgui.h: Replace WindowPtr with WindowRef.
25899
25900 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25901 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25902 Replace ControlHandle with ControlRef.
25903 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25904
25905 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25906 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25907 Replace ControlHandle with ControlRef.
25908 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25909 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25910
25911 * macterm.h (struct scroll_bar): Rename member control_handle_low
25912 and control_handle_high to control_ref_low and control_ref_high.
25913 All uses changed.
25914 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25915 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25916 respectively. All uses changed.
25917 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25918 (install_window_handler, remove_window_handler): Replace WindowPtr
25919 with WindowRef in externs.
25920
259212007-06-05 Juanma Barranquero <lekktu@gmail.com>
25922
25923 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25924
259252007-06-03 Nick Roberts <nickrob@snap.net.nz>
25926
25927 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25928
25929 * frame.c (Fmouse_position, Fmouse_pixel_position):
25930 Condition on HAVE_GPM too.
25931
25932 * term.c (term_mouse_highlight): Remove unused variables.
25933 (Fterm_open_connection): Set gpm_zerobased to 1.
25934 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25935 Use zero based co-ordinates.
25936 (handle_one_term_event): Report a drag as mouse movement too.
25937
25938 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25939
259402007-06-03 Chong Yidong <cyd@stupidchicken.com>
25941
25942 * image.c (search_image_cache): New function. Require background
25943 color match if background color is unspecified in the image spec.
25944 (uncache_image, lookup_image): Use it.
25945
259462007-06-01 Juanma Barranquero <lekktu@gmail.com>
25947
25948 * window.c (Fshrink_window): Reflow docstring.
25949
259502007-06-02 Chong Yidong <cyd@stupidchicken.com>
25951
25952 * Version 22.1 released.
25953
259542007-06-01 Richard Stallman <rms@gnu.org>
25955
25956 * xfns.c (x_encode_text): Add GCPRO.
25957
259582007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25959
25960 * xfns.c (x_set_name_internal): Save encoded name before
25961 x_encode_text in case string data is relocated.
25962
259632007-05-31 Richard Stallman <rms@gnu.org>
25964
25965 * buffer.c (syms_of_buffer): Doc fix.
25966
259672007-05-30 Nick Roberts <nickrob@snap.net.nz>
25968
25969 * sysdep.c (init_sys_modes): Add rather than replace with
25970 O_NONBLOCK.
25971
25972 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25973 term_mouse_moveto.
25974
25975 * termhooks.h (term_mouse_moveto): New extern.
25976
25977 * term.c (mouse_face_window): Rename...
25978 (Qmouse_face_window): ...to this.
25979 (term_show_mouse_face, term_clear_mouse_face)
25980 (term_mouse_highlight): Use Qmouse_face_window.
25981 (term_mouse_moveto): New function.
25982 (term_mouse_position): Make it work.
25983 (syms_of_term): Uncomment assignment to mouse_position_hook.
25984 Staticpro Qmouse_face_window.
25985
259862007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25987
25988 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25989 around current_column call.
25990
259912007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25992
25993 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25994 * xdisp.c (next_element_from_buffer):
25995 * window.c (delete_window):
25996 * term.c (term_mouse_highlight):
25997 * msdos.c (getdefdir):
25998 * macterm.c (mac_create_bitmap_from_bitmap_data)
25999 (init_font_name_table):
26000 * fns.c (Fsxhash):
26001 * data.c (Fmake_local_variable):
26002 * ccl.c (ccl_driver): Likewise.
26003
260042007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26005
26006 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26007 Call mac_wakeup_from_rne on window size change.
26008
260092007-05-25 Chong Yidong <cyd@stupidchicken.com>
26010
26011 * image.c (uncache_image): Fix typo.
26012
260132007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26014
26015 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26016
260172007-05-22 Richard Stallman <rms@gnu.org>
26018
26019 * xterm.c (x_connection_closed): Remove NO_RETURN.
26020
260212007-05-22 Martin Rudalics <rudalics@gmx.at>
26022
26023 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26024
260252007-05-21 Chong Yidong <cyd@stupidchicken.com>
26026
26027 * image.c (uncache_image): New function.
26028 (Fimage_refresh): New function.
26029
260302007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26031
26032 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26033
260342007-05-20 Nick Roberts <nickrob@snap.net.nz>
26035
26036 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26037 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26038
260392007-05-20 Nick Roberts <nickrob@snap.net.nz>
26040
26041 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26042 conditional on [HAVE_GPM_H].
26043
260442007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26045
26046 * syntax.c (skip_chars): Update syntax-table only after we checked that
26047 the new location is valid.
26048
260492007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26050
26051 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26052 mac_get_window_bounds.
26053
260542007-05-20 Nick Roberts <nickrob@snap.net.nz>
26055
26056 * Makefile.in (LIBGPM): Allow it to be set from configure.
26057 If set then link Emacs with it.
26058
26059 * config.in: Regenerate.
26060
26061 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26062 New externs.
26063
26064 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26065 Include gpm.h.
26066 (handle_one_term_event, term_gpm): New externs.
26067
26068 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26069 and allow it to be interrupted by SIGIO.
26070
26071 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26072 (wait_reading_process_output): Wait on gpm_fd too.
26073 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26074 (add_gpm_wait_descriptor_called_flag): New variable.
26075 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26076
26077 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26078 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26079 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26080 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26081 (make_lispy_event): Add case GPM_CLICK_EVENT.
26082 (read_avail_input): Handle mouse input.
26083
26084 * term.c (write_glyphs_with_face): New function.
26085 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26086 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26087 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26088 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26089 (last_mouse_x, last_mouse_y): New variables.
26090 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26091 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26092 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26093 (Fterm_close_connection): New functions.
26094 (term_init): Initialise mouse_face_window.
26095
260962007-05-19 Chong Yidong <cyd@stupidchicken.com>
26097
26098 * xdisp.c (redisplay_window): If first window line is a
26099 continuation line, recompute the new window start instead of
26100 recentering.
26101
261022007-05-18 Glenn Morris <rgm@gnu.org>
26103
26104 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26105 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26106
261072007-05-17 Glenn Morris <rgm@gnu.org>
26108
26109 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26110
261112007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26112
26113 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26114 dead key repeat and up events.
26115
261162007-05-14 Chong Yidong <cyd@stupidchicken.com>
26117
26118 * image.c (pbm_load): Check image size for monochrome pbm.
26119
261202007-05-13 Chong Yidong <cyd@stupidchicken.com>
26121
26122 * xterm.c (XTread_socket): Revert last change.
26123
261242007-05-12 Chong Yidong <cyd@stupidchicken.com>
26125
26126 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26127
26128 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26129
261302007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26131
26132 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26133 mixup (YAILOM).
26134
261352007-05-07 Andreas Schwab <schwab@suse.de>
26136
26137 * keymap.c (Flookup_key): Fix typo in last change.
26138
261392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26140
26141 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26142 mapping for unibyte strings.
26143
261442007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26145
26146 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26147 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26148
261492007-04-29 Richard Stallman <rms@gnu.org>
26150
26151 * insdel.c (replace_range): For undo, record insertion first.
26152
261532007-04-29 Andreas Schwab <schwab@suse.de>
26154
26155 * lisp.h (VECSIZE): Use OFFSETOF.
26156
261572007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26158
26159 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26160 disabled lines.
26161
261622007-04-28 Richard Stallman <rms@gnu.org>
26163
26164 * lread.c (read_escape): In a string, \s is always space.
26165
261662007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26167
26168 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26169
26170 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26171 submenu for menu bar items.
26172
26173See ChangeLog.10 for earlier changes.
26174
26175;; Local Variables:
26176;; coding: utf-8
26177;; add-log-time-zone-rule: t
aac0c6e3
MR
26178;; End:
26179
e3eb1dae 26180 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26181
26182 This file is part of GNU Emacs.
26183
26184 GNU Emacs is free software: you can redistribute it and/or modify
26185 it under the terms of the GNU General Public License as published by
26186 the Free Software Foundation, either version 3 of the License, or
26187 (at your option) any later version.
26188
26189 GNU Emacs is distributed in the hope that it will be useful,
26190 but WITHOUT ANY WARRANTY; without even the implied warranty of
26191 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26192 GNU General Public License for more details.
26193
26194 You should have received a copy of the GNU General Public License
26195 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26196
26197;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40